Static resources for Plone
Project description
plone.staticresources
This add-on contains Fonts, Icons and JavaScript used by Plone Classic-UI.
How to upgrade the resources in this package
> NOTE: > Changes to JavaScript functionality must be done outside this package. > If you want to fix something or add functionality please go to > the [mockup](https://github.com/plone/mockup.git) repository and follow the > instructions there. This package is only to deliver the generated bundles.
Add plone.staticresources and mockup to checkouts.cfg in buildout.coredev and do the buildout.
Update JavaScript resources in mockup and request a release on npmjs.
Update dependency versions (eg. new mockup release) in package.json here. Use yarn upgrade-interactive –latest for conveniently update all the versions in package.json at once. Since plone.staticresources should contain deterministically reproducible builds use fixed versions and not version ranges in package.json. For example use “@plone/mockup”: “5.0.11” instead of “@plone/mockup”: “^5.0.11”.
Run make all to compile the bundles and map Bootstrap icons to the registry files located in src/plone/staticresources/profiles/default/registry/icons_*.xml.
Submit a Pull Request and run the tests on Jenkins.
What has changed
Since Plone 6.x we use webpack to compile bundles. See configuration in webpack.config.js.
Bundle build analyzation
https://survivejs.com/webpack/optimizing/build-analysis/ https://formidable.com/blog/2018/finding-webpack-duplicates-with-inspectpack-plugin/
Build the stats.json file:
npx yarn stats
Check dependency tree and why which package was included https://www.npmjs.com/package/whybundled
npx whybundled stats.json
Visualize dependency tree and analyze bundle size: https://www.npmjs.com/package/webpack-bundle-analyzer
npx webpack-bundle-analyzer stats.json
License
The project is licensed under the GPLv2.
Changelog
2.1.16 (2024-09-03)
Bug fixes:
Upgrade dependencies and development resources. [petschki] (#352)
2.1.15 (2024-08-20)
Bug fixes:
Latest mockup = 5.1.13. See https://github.com/plone/mockup/releases/tag/5.1.13 for detailed changes. [petschki] (#347)
2.1.14 (2024-04-24)
Bug fixes:
Update JS dependencies [petschki] (#0)
Internal:
Update configuration files. [plone devs]
2.1.13 (2024-02-28)
Bug fixes:
Fix datatables.net version resolution. [petschki] (#326)
2.1.12 (2024-02-27)
Bug fixes:
update mockup=5.1.11: pat-tinymce image editing fix. [petschki] (#324)
2.1.11 (2024-02-26)
Bug fixes:
update mockup=2.1.10 [petschki] (#322)
2.1.10 (2024-02-21)
Bug fixes:
Update dependencies: mockup 5.1.9, bootstrap 5.3.3, bootstrap-icons 1.11.3 [petschki] (#321)
2.1.9 (2023-12-12)
Bug fixes:
Maintenance upgrade: mockup 5.1.7, Bootstrap Icons 1.11.2 [petschki] (#314)
2.1.8 (2023-10-24)
Bug fixes:
Update mockup=5.1.6 [petschki] (#309)
2.1.7 (2023-09-19)
Bug fixes:
Update Bootstrap to 5.3.2, bootstrap-icons to 1.11.1 and Mockup to 5.1.5. [petschki] (#303)
2.1.6 (2023-08-10)
Bug fixes:
Mockup 5.1.4 - see https://github.com/plone/mockup/releases/tag/5.1.4 [petschki] (#302)
2.1.5 (2023-07-30)
Bug fixes:
Upgrade various dependencies. [petschki] (#300)
2.1.4 (2023-07-26)
Bug fixes:
Update mockup=5.1.2 [petschki] (#299)
Internal:
Update configuration files. [plone devs] (cfffba8c)
2.1.3 (2023-06-05)
New features:
Bootstrap 5.3 final release. [petschki] (#292)
2.1.2.1 (2023-05-17)
Bug fixes:
Upgrade to Mockup 5.1.0-alpha.3 and @patternslib/dev 3.3.1. [thet] (283-0)
Use fixed versions instead of version ranges in package.json.
Since plone.staticresources should contain deterministically reproducible builds use fixed versions and not version ranges in package.json. For example use “@plone/mockup”: “5.0.11” instead of “@plone/mockup”: “^5.0.11”. (283-1)
Update bundles interfaces (from CMFPlone to plone.base) [gforcada] (#286)
Update Mockup 5.1.0-alpha.4 [petschki] (#291)
subpatch release with towncrier enabled - the fixes mentioned here are all released since 2.1.2 [petschki]
2.1.1 (2023-04-18)
New features:
Upgrade to mockup 5.1.0-alpha.2 and Bootstrap Icons 1.10.4 (no resource changed) [petschki] (#277)
Bug fixes:
Remove deprecated argument ez_setup in setup.py. [gforcada] (#1)
Internal:
Update configuration files. [plone devs] (7032e1d4)
2.1.0 (2023-03-05)
New features:
Upgrade to Mockup 5.1.0-alpha.0 with Bootstrap 5.3 and dark mode support. [toalba, thet] (#1282)
2.0.6 (2023-02-22)
New features:
Upgrade Mockup to 5.0.5. [thet, petschki] (#267)
2.0.5 (2023-02-10)
Bug fixes:
Update mockup to 5.0.1 [petschki, thet] (#262)
2.0.4 (2023-01-13)
Bug fixes:
Updrade mockup to 5.0.0-beta.11 [petschki] (#262)
2.0.3 (2022-12-12)
Bug fixes:
Upgrade Mockup to 5.0.0-beta.7. [thet, petschki] (#259)
2.0.2 (2022-12-02)
Bug fixes:
Upgrade mockup -> 5.0.0-beta.3 (Bootstrap -> 5.2.3). [petschki] (#256)
Update mockup -> 5.0.0-beta.4 [petschki] (#257)
2.0.1 (2022-11-18)
Bug fixes:
Fix missing upgrade step. [petschki] (#0)
2.0.0 (2022-11-18)
Bug fixes:
Update mockup -> 5.0.0-alpha.27, Bootstrap Icons -> 1.10.0 [petschki] (#254)
Update mockup -> 5.0.0-beta.2 [petschki] (#255)
2.0.0b9 (2022-11-14)
New features:
Upgrade Mockup to 5.0.0-alpha.26. [thet] (#251)
2.0.0b8 (2022-10-04)
New features:
Use successor repository of svg-country-flags [petschki] (#248)
Upgrade to Bootstrap 5.2.2. [petschki] (#250)
2.0.0b7 (2022-10-03)
New features:
Update Bootstrap 5.2.1 [petschki] (#246)
Upgrade to Mockup 5.0.0-alpha.23. [thet] (#249)
2.0.0b6 (2022-09-09)
Bug fixes:
Update mockup = 5.0.0-alpha.19 [petschki] (#239)
Update mockup = 5.0.0-alpha.20: Minor TinyMCE styling fixes [MrTango, petschki] (#242)
Update mockup = 5.0.0-alpha.21 [petschki, thet] (#243)
2.0.0b5 (2022-07-22)
New features:
Update Bootstrap -> 5.2.0 and Bootstrap Icons -> 1.9.1 [petschki] (#236)
2.0.0b4 (2022-07-20)
New features:
Mockup update: register jquery and bootstrap globally. [petschki] (#231)
Upgrade to @plone/mockup 5.0.0-alpha.17. (#232)
Bug fixes:
Fix exclude_from_nav in pat-structure for items without metadata information. [petschki] (#230)
Fix tinymce link/image modals. [petschki] (#233)
Mockup update: pat-relateditems customizable templates. [petschki] (#234)
2.0.0b3 (2022-06-27)
Bug fixes:
Previous release is not installable, for unknown reasons. Rerelease, now also as wheel. Maybe this helps. [maurits] (#200)
2.0.0b2 (2022-06-27)
Bug fixes:
Add Upgrade Stept for image full screen support [1letter] (#229)
2.0.0b1 (2022-06-24)
New features:
Integrate bootstrap and jquery bundles with module federation. They now live in the bundle-plone directory. [thet] (222-1)
Makefile: Separate update-icons from build target. [thet] (222-2)
Update iconmap.json. [thet] (222-3)
Update README.rst [petschki] (#213)
Update toolbar toggler. [agitator] (#220)
Update to latest Mockup with module federation. [thet] (#222)
Add image full screen support thru full screen API [MrTango] (#226)
Bug fixes:
structure pattern fixes:
row actions cut/copy/default_page
datatable manual sorting
[petschki] (#224)
Fix popover positioning in structure pattern. [petschki] (#225)
Refactor pat-recurrence:
remove jquerytools.overlay -> use pat-plone-modal instead
remove jquerytools.calendar -> use native <input type=”date” />
update forms to Bootstrap 5
[petschki] (#227)
2.0.0a3 (2022-04-08)
Breaking changes:
New version with Mockup ES6 support and removed TTW compilation (PLIP 3211). (#119)
New features:
Restructure searchbox markup for mobile navigation as offcanvas sidebar. [agitator] (#202)
Make pat-inject from patternslib available [agitator] (#208)
Adding support for images in liveSearch results. [agitator] (#217)
Bug fixes:
Italian translations have been updated [yurj] (#178)
Remove obsolete plone-logged-in bundle. [pbauer] (#205)
Add mimetype icons and change pdf icon [pbauer] (#215)
Update icons_bootstrap.xml and iconmap.json, also automate this for future updates. [jensens] (#216)
2.0.0a2 (2021-10-22)
New features:
Created last_compilation profile as only place with last_compilation values. Moved the last_compilation values out of the default profile. Then we do not need a complete profile when we add an upgrade step for updating the last_compilation date of a bundle. [mauritsvanrees] (172-1)
Hide the upgrades package from site-creation and quickinstaller. This way, we do not need to add each new upgrade profile to the list of non installable products. [mauritsvanrees] (172-2)
Upgrade to Mockup 4.0.2. [thet] (172-3)
Register new icons. [thet] (172-4)
Adapt gitignore to only include necessary and registered dependencies. [thet] (174-1)
Update Bootstrap to 5.1.1 Update Bootstrap Icons to 1.5.0 [petschki] (#164)
Bug fixes:
Fix underscore version to 1.9.1 due to incompatibilities with backbone.paginator. (174-5)
Add missing upgrade step for datatables.net-autofill resource location. [thet] (174-6)
Update svg toolbar icons [agitator] (#165)
2.0.0a1 (2021-06-14)
New features:
Upgrade Mockup to version 4, patternslib to version 3 and jQuery to 3.5.1. [thet] (#102)
Update Bootstrap to 5.0.0-alpha2 Add bootstrap-js bundle [agitator] (#111)
Provide a wide variety of SVG based flags using the icon infrastructure Register new Resources Add NPM Package as source for Country Flags Add Custom SVG Language Flags [1letter] (#140)
Update link type icons. [agitator] (#144)
Update Bootstrap to 5.0.1 [agitator] (#157)
Bug fixes:
Remove bundle with typo [petschki] (#121)
Increase Python package version number to 2.0.dev0. Start with the 2.x version numbers from 200 to not have same version numbers for multiple branches and stay aligned with the python package version. [thet] (#124)
Fix selectors for sort_reversed checkbox in pat-querystring [petschki] (#132, #145)
Reduce bundle sizes by not inlining fonts in each bundle - moved plone-fontello and glyphicons to their own bundle. Icon font bundles use fonts from ++plone++static/fonts/. [agitator] (#134)
1.4.0 (2020-10-30)
New features:
Updated Bootstrap Icons to 1.0.0 final. [santonelli] (#3162)
Bug fixes:
Bumps bl from 4.0.2 to 4.0.3. [dependabot, jensens] (#97)
Build bundles with latest mockup 3.x. [maurits] (#1026)
Fixed deprecation warning for zope.site.hooks. [maurits] (#3130)
1.3.2 (2020-08-14)
Bug fixes:
Update static resources. [pbauer] (#94)
Fix content type icons not showing in the toolbar Add menu on Safari. This fixes https://github.com/plone/Products.CMFPlone/issues/3163 [vincentfretin] (#95)
1.3.1 (2020-07-17)
Bug fixes:
Update static resources. Now in line with mockup 3.2.1. [vincentfretin] (#91)
1.3.0 (2020-06-28)
New features:
Add figcaption support - https://github.com/plone/mockup/pull/911 [thet] (#30)
Register icon resources & add bootstrap-icons [agitator] (#75)
Adapt pat-plone-modal and pat-inlinevalidation to work with barceloneta LTS. Add missing plone.svg icon. [petschki, agitator] (#76)
Update static resources. [thet] (#82)
Bug fixes:
Fix buildout and use latest Plone 5.2. [thet] (#51)
Fix missing styles in plone-datatables bundle. [agitator] (#62)
Upgrade resources with latest mockup. [thet] (#64)
Move metadata.xml from async/registry profile directory to correct location. (#65)
Add jQuery workaround for XSS vulnerability - https://github.com/plone/plone.staticresources/issues/69 [frapell] (#69)
Fix pat-querystring to set value of RelativeDateWidget correctly when editing [petschki] (#78)
Hide upgrade profile [petschki] (#83)
fix syntax in upgrades/profiles/8/registry.xml [petschki] (#85)
1.2.1 (2020-01-12)
Bug fixes:
Fixed drag problem on click on sortable items in folder contents. (#56)
Fix problem with TTW compilation of bundles. (#58)
1.2.0 (2019-11-14)
New features:
Update jQuery from version 1.11.3 to 1.12.4 [davilima6] (#34)
Recompile ‘plone’ bundle after updating jQuery-related packages (#40)
Update all components and recompile bundles. (#44)
Split up bundles for more flexibility and optimized resource loading. Move select2 and datepicker to logged-in bundle. Move toolbar, portletmanager, querystring and structure pattern to editor bundle. Move tinymce to it’s own bundle. Single out moment.js to reduce plone bundle size and allow async loading. Add optional datatables bundle. [agitator] (#46)
Bug fixes:
Fix autotoc pattern: activate the element link with active class during initialization [mamico] (#37)
Fix Tinymce pattern: Link popup looses tab selection on active linktype [mamico] (#37)
build js/css for mockup changes plone/mockup#922 [mamico] (#37)
When compiling a bundle and including a resource from a request, open the temporary file in binary mode. [frapell] (#38)
Bring fix for https://github.com/plone/mockup/issues/923 [frapell] (#41)
Fix “TTW Bundle compilation broken”. Refs: https://github.com/plone/Products.CMFPlone/issues/2969 [thet] (#43)
1.1.0 (2019-06-22)
New features:
Add support for asynchronous loading of javascript resources. A new plone-base bundle is added with the minimum required scripts from plone bundle. Import the extra profile to enable experimental async loading. [agitator] (#27)
Bug fixes:
Fixes plone/mockup#895 again. (#24)
Fixed plone/Products.CMFPlone#2490 conflict in z-index between main toolbar and structure pattern toolbar (#25)
Integrate https://github.com/plone/mockup/pull/906 which fixes wrong in-path marking for similar pathnames. #26 [agitator] (#26)
1.0.2 (2019-03-21)
Bug fixes:
Fix highlight of current item in nav for image and file. [agitator] (#18)
Fix less building error. [vangheem] (#19)
Update resources after alignment fix in Select2-based widgets [davilima6] (#21)
1.0.1 (2019-03-12)
Bug fixes:
Fix highlight of current item in nav for image and file. [agitator] (#18)
Update resources after alignment fix in Select2-based widgets [davilima6] (#21)
1.0.0 (2019-03-04)
New features:
Ship moment.js without locales, which are now lazily loaded in ‘mockup’ package [davilima6] (#10)
Bug fixes:
Customize select2 to work better with relateditems pattern, update compiled resources: plone, logged-in [MrTango] (#16)
1.0a1 (2019-02-13)
New features:
Put together all Plone assets in a single package. [thet] (#1)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file plone_staticresources-2.1.16.tar.gz
.
File metadata
- Download URL: plone_staticresources-2.1.16.tar.gz
- Upload date:
- Size: 10.9 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8595a3fde5b6bfbc9a6be99860d3c48a5f39e1c8fcd887b82b12d48d8721876a |
|
MD5 | 6ecb5dfa322937e4035478a7ca2e2468 |
|
BLAKE2b-256 | 23955eb0a39374260142e72de9dfb5005747f26da9ab750eabfcd8a10852c013 |
File details
Details for the file plone.staticresources-2.1.16-py3-none-any.whl
.
File metadata
- Download URL: plone.staticresources-2.1.16-py3-none-any.whl
- Upload date:
- Size: 13.6 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 722bbbc26d656e75c4520864434c0f96b6116d158610c07fb08a68671e440902 |
|
MD5 | 5b8c96364d2def64c8b5921a6f2fccaf |
|
BLAKE2b-256 | b941ef2bcfd099d51feb71edd5513d8121f55b66d6919cc600ab57c0addcc548 |