@eightshift/frontend-libs-tailwind 1.4.8 → 2.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +20 -0
- package/bun.lockb +0 -0
- package/package.json +28 -35
- package/scripts/components/block-inserter.js +1 -1
- package/scripts/components/file-picker.js +17 -3
- package/scripts/components/picker-placeholder.js +5 -7
- package/scripts/components/server-side-render.js +1 -1
- package/scripts/components/settings/settings.js +21 -20
- package/blocks/init/assets/application-admin.js +0 -10
- package/blocks/init/assets/application.js +0 -13
- package/blocks/init/assets/fonts/fraunces-italic-latin-extended.woff2 +0 -0
- package/blocks/init/assets/fonts/fraunces-italic-latin.woff2 +0 -0
- package/blocks/init/assets/fonts/fraunces-latin-extended.woff2 +0 -0
- package/blocks/init/assets/fonts/fraunces-latin.woff2 +0 -0
- package/blocks/init/assets/fonts/noto-sans-italic-latin-extended.woff2 +0 -0
- package/blocks/init/assets/fonts/noto-sans-italic-latin.woff2 +0 -0
- package/blocks/init/assets/fonts/noto-sans-latin-extended.woff2 +0 -0
- package/blocks/init/assets/fonts/noto-sans-latin.woff2 +0 -0
- package/blocks/init/assets/images/index.js +0 -5
- package/blocks/init/assets/scripts/application-admin.js +0 -7
- package/blocks/init/assets/scripts/application.js +0 -3
- package/blocks/init/assets/scripts/theme-colors.js +0 -39
- package/blocks/init/assets/styles/application-admin.css +0 -6
- package/blocks/init/assets/styles/application.css +0 -3
- package/blocks/init/src/Blocks/assets/application-blocks-editor.js +0 -14
- package/blocks/init/src/Blocks/assets/application-blocks-frontend.js +0 -13
- package/blocks/init/src/Blocks/assets/application-blocks.js +0 -9
- package/blocks/init/src/Blocks/assets/scripts/application-blocks-editor.js +0 -65
- package/blocks/init/src/Blocks/assets/scripts/application-blocks-frontend.js +0 -24
- package/blocks/init/src/Blocks/assets/scripts/link-section-editor.js +0 -262
- package/blocks/init/src/Blocks/assets/scripts/shared.js +0 -25
- package/blocks/init/src/Blocks/assets/styles/application-blocks-editor.css +0 -15
- package/blocks/init/src/Blocks/assets/styles/application-blocks-frontend.css +0 -9
- package/blocks/init/src/Blocks/assets/styles/application-blocks.css +0 -1
- package/blocks/init/src/Blocks/assets/styles/editor/editor-overrides.css +0 -15
- package/blocks/init/src/Blocks/assets/styles/fonts.css +0 -90
- package/blocks/init/src/Blocks/assets/styles/tailwind.css +0 -30
- package/blocks/init/src/Blocks/components/admin-theme-options/admin-theme-options.php +0 -20
- package/blocks/init/src/Blocks/components/admin-theme-options/assets-admin/index.js +0 -36
- package/blocks/init/src/Blocks/components/admin-theme-options/assets-admin/pages/parts.js +0 -56
- package/blocks/init/src/Blocks/components/admin-theme-options/manifest.json +0 -5
- package/blocks/init/src/Blocks/components/button/assets/index.js +0 -22
- package/blocks/init/src/Blocks/components/button/button.php +0 -88
- package/blocks/init/src/Blocks/components/button/components/button-editor.js +0 -36
- package/blocks/init/src/Blocks/components/button/components/button-options.js +0 -134
- package/blocks/init/src/Blocks/components/button/manifest.json +0 -302
- package/blocks/init/src/Blocks/components/card/card.php +0 -42
- package/blocks/init/src/Blocks/components/card/components/card-editor.js +0 -43
- package/blocks/init/src/Blocks/components/card/components/card-options.js +0 -55
- package/blocks/init/src/Blocks/components/card/manifest.json +0 -111
- package/blocks/init/src/Blocks/components/head/head.php +0 -52
- package/blocks/init/src/Blocks/components/head/manifest.json +0 -17
- package/blocks/init/src/Blocks/components/heading/components/heading-editor.js +0 -26
- package/blocks/init/src/Blocks/components/heading/components/heading-options.js +0 -62
- package/blocks/init/src/Blocks/components/heading/heading.php +0 -45
- package/blocks/init/src/Blocks/components/heading/manifest.json +0 -76
- package/blocks/init/src/Blocks/components/hero/components/hero-editor.js +0 -42
- package/blocks/init/src/Blocks/components/hero/components/hero-options.js +0 -100
- package/blocks/init/src/Blocks/components/hero/hero.php +0 -45
- package/blocks/init/src/Blocks/components/hero/manifest.json +0 -96
- package/blocks/init/src/Blocks/components/icon/components/icon-editor.js +0 -23
- package/blocks/init/src/Blocks/components/icon/components/icon-options.js +0 -65
- package/blocks/init/src/Blocks/components/icon/icon.php +0 -53
- package/blocks/init/src/Blocks/components/icon/manifest.json +0 -1238
- package/blocks/init/src/Blocks/components/image/components/image-editor.js +0 -64
- package/blocks/init/src/Blocks/components/image/components/image-options.js +0 -111
- package/blocks/init/src/Blocks/components/image/image.php +0 -68
- package/blocks/init/src/Blocks/components/image/manifest.json +0 -125
- package/blocks/init/src/Blocks/components/list/components/list-editor.js +0 -30
- package/blocks/init/src/Blocks/components/list/components/list-options.js +0 -62
- package/blocks/init/src/Blocks/components/list/list.php +0 -32
- package/blocks/init/src/Blocks/components/list/manifest.json +0 -127
- package/blocks/init/src/Blocks/components/load-more/assets/index.js +0 -19
- package/blocks/init/src/Blocks/components/load-more/assets/load-more.js +0 -146
- package/blocks/init/src/Blocks/components/load-more/components/load-more-editor.js +0 -14
- package/blocks/init/src/Blocks/components/load-more/components/load-more-options.js +0 -19
- package/blocks/init/src/Blocks/components/load-more/load-more.php +0 -47
- package/blocks/init/src/Blocks/components/load-more/manifest.json +0 -39
- package/blocks/init/src/Blocks/components/modal/assets/index.js +0 -27
- package/blocks/init/src/Blocks/components/modal/manifest.json +0 -48
- package/blocks/init/src/Blocks/components/modal/modal.php +0 -46
- package/blocks/init/src/Blocks/components/paragraph/components/paragraph-editor.js +0 -38
- package/blocks/init/src/Blocks/components/paragraph/components/paragraph-options.js +0 -48
- package/blocks/init/src/Blocks/components/paragraph/manifest.json +0 -81
- package/blocks/init/src/Blocks/components/paragraph/paragraph.php +0 -33
- package/blocks/init/src/Blocks/components/post-header/manifest.json +0 -5
- package/blocks/init/src/Blocks/components/post-header/post-header.php +0 -24
- package/blocks/init/src/Blocks/components/quote/components/quote-editor.js +0 -53
- package/blocks/init/src/Blocks/components/quote/components/quote-options.js +0 -29
- package/blocks/init/src/Blocks/components/quote/manifest.json +0 -47
- package/blocks/init/src/Blocks/components/quote/quote.php +0 -49
- package/blocks/init/src/Blocks/components/share/assets/index.js +0 -39
- package/blocks/init/src/Blocks/components/share/components/share-editor.js +0 -28
- package/blocks/init/src/Blocks/components/share/components/share-options.js +0 -112
- package/blocks/init/src/Blocks/components/share/manifest.json +0 -72
- package/blocks/init/src/Blocks/components/share/share.php +0 -69
- package/blocks/init/src/Blocks/components/tracking-before-body-end/manifest.json +0 -5
- package/blocks/init/src/Blocks/components/tracking-before-body-end/tracking-before-body-end.php +0 -9
- package/blocks/init/src/Blocks/components/tracking-head/manifest.json +0 -5
- package/blocks/init/src/Blocks/components/tracking-head/tracking-head.php +0 -9
- package/blocks/init/src/Blocks/components/video/components/video-editor.js +0 -74
- package/blocks/init/src/Blocks/components/video/components/video-options.js +0 -279
- package/blocks/init/src/Blocks/components/video/manifest.json +0 -120
- package/blocks/init/src/Blocks/components/video/video.php +0 -70
- package/blocks/init/src/Blocks/custom/accordion/accordion-block.js +0 -15
- package/blocks/init/src/Blocks/custom/accordion/accordion.php +0 -28
- package/blocks/init/src/Blocks/custom/accordion/assets/index.js +0 -37
- package/blocks/init/src/Blocks/custom/accordion/components/accordion-editor.js +0 -22
- package/blocks/init/src/Blocks/custom/accordion/components/accordion-options.js +0 -18
- package/blocks/init/src/Blocks/custom/accordion/manifest.json +0 -32
- package/blocks/init/src/Blocks/custom/accordion-item/accordion-item-block.js +0 -19
- package/blocks/init/src/Blocks/custom/accordion-item/accordion-item.php +0 -46
- package/blocks/init/src/Blocks/custom/accordion-item/components/accordion-item-editor.js +0 -60
- package/blocks/init/src/Blocks/custom/accordion-item/manifest.json +0 -69
- package/blocks/init/src/Blocks/custom/button/button-block.js +0 -13
- package/blocks/init/src/Blocks/custom/button/button.php +0 -11
- package/blocks/init/src/Blocks/custom/button/components/button-editor.js +0 -12
- package/blocks/init/src/Blocks/custom/button/components/button-options.js +0 -12
- package/blocks/init/src/Blocks/custom/button/manifest.json +0 -18
- package/blocks/init/src/Blocks/custom/card/card-block.js +0 -13
- package/blocks/init/src/Blocks/custom/card/card.php +0 -11
- package/blocks/init/src/Blocks/custom/card/components/card-editor.js +0 -12
- package/blocks/init/src/Blocks/custom/card/components/card-options.js +0 -15
- package/blocks/init/src/Blocks/custom/card/manifest.json +0 -18
- package/blocks/init/src/Blocks/custom/carousel/assets/index.js +0 -46
- package/blocks/init/src/Blocks/custom/carousel/assets/navigation.js +0 -31
- package/blocks/init/src/Blocks/custom/carousel/assets/pagination.js +0 -40
- package/blocks/init/src/Blocks/custom/carousel/carousel-block.js +0 -21
- package/blocks/init/src/Blocks/custom/carousel/carousel.php +0 -61
- package/blocks/init/src/Blocks/custom/carousel/components/carousel-editor.js +0 -25
- package/blocks/init/src/Blocks/custom/carousel/components/carousel-options.js +0 -47
- package/blocks/init/src/Blocks/custom/carousel/manifest.json +0 -130
- package/blocks/init/src/Blocks/custom/column/column-block.js +0 -21
- package/blocks/init/src/Blocks/custom/column/column-hooks.js +0 -32
- package/blocks/init/src/Blocks/custom/column/column.php +0 -21
- package/blocks/init/src/Blocks/custom/column/components/column-editor.js +0 -22
- package/blocks/init/src/Blocks/custom/column/components/column-options.js +0 -580
- package/blocks/init/src/Blocks/custom/column/manifest.json +0 -625
- package/blocks/init/src/Blocks/custom/columns/columns-block.js +0 -20
- package/blocks/init/src/Blocks/custom/columns/columns.php +0 -21
- package/blocks/init/src/Blocks/custom/columns/components/columns-editor.js +0 -81
- package/blocks/init/src/Blocks/custom/columns/components/columns-options.js +0 -104
- package/blocks/init/src/Blocks/custom/columns/manifest.json +0 -581
- package/blocks/init/src/Blocks/custom/featured-content/components/featured-content-editor.js +0 -28
- package/blocks/init/src/Blocks/custom/featured-content/components/featured-content-options.js +0 -248
- package/blocks/init/src/Blocks/custom/featured-content/featured-content-block.js +0 -13
- package/blocks/init/src/Blocks/custom/featured-content/featured-content.php +0 -139
- package/blocks/init/src/Blocks/custom/featured-content/manifest.json +0 -131
- package/blocks/init/src/Blocks/custom/featured-content/partials/cards.php +0 -39
- package/blocks/init/src/Blocks/custom/group/components/group-editor.js +0 -6
- package/blocks/init/src/Blocks/custom/group/group-block.js +0 -14
- package/blocks/init/src/Blocks/custom/group/group.php +0 -10
- package/blocks/init/src/Blocks/custom/group/manifest.json +0 -32
- package/blocks/init/src/Blocks/custom/heading/components/heading-editor.js +0 -15
- package/blocks/init/src/Blocks/custom/heading/components/heading-options.js +0 -38
- package/blocks/init/src/Blocks/custom/heading/heading-block.js +0 -13
- package/blocks/init/src/Blocks/custom/heading/heading-transforms.js +0 -26
- package/blocks/init/src/Blocks/custom/heading/heading.php +0 -15
- package/blocks/init/src/Blocks/custom/heading/manifest.json +0 -79
- package/blocks/init/src/Blocks/custom/hero/components/hero-editor.js +0 -12
- package/blocks/init/src/Blocks/custom/hero/components/hero-options.js +0 -14
- package/blocks/init/src/Blocks/custom/hero/hero-block.js +0 -13
- package/blocks/init/src/Blocks/custom/hero/hero.php +0 -11
- package/blocks/init/src/Blocks/custom/hero/manifest.json +0 -17
- package/blocks/init/src/Blocks/custom/image/components/image-editor.js +0 -12
- package/blocks/init/src/Blocks/custom/image/components/image-options.js +0 -14
- package/blocks/init/src/Blocks/custom/image/image-block.js +0 -13
- package/blocks/init/src/Blocks/custom/image/image.php +0 -11
- package/blocks/init/src/Blocks/custom/image/manifest.json +0 -33
- package/blocks/init/src/Blocks/custom/list/components/list-editor.js +0 -14
- package/blocks/init/src/Blocks/custom/list/components/list-options.js +0 -39
- package/blocks/init/src/Blocks/custom/list/list-block.js +0 -13
- package/blocks/init/src/Blocks/custom/list/list.php +0 -15
- package/blocks/init/src/Blocks/custom/list/manifest.json +0 -58
- package/blocks/init/src/Blocks/custom/map/assets/index.js +0 -20
- package/blocks/init/src/Blocks/custom/map/assets/map-controller.js +0 -41
- package/blocks/init/src/Blocks/custom/map/assets/utils.js +0 -161
- package/blocks/init/src/Blocks/custom/map/components/map-components.js +0 -403
- package/blocks/init/src/Blocks/custom/map/components/map-editor.js +0 -56
- package/blocks/init/src/Blocks/custom/map/components/map-options.js +0 -550
- package/blocks/init/src/Blocks/custom/map/manifest.json +0 -79
- package/blocks/init/src/Blocks/custom/map/map-block.js +0 -13
- package/blocks/init/src/Blocks/custom/map/map.php +0 -52
- package/blocks/init/src/Blocks/custom/map/styles.css +0 -2
- package/blocks/init/src/Blocks/custom/modal/components/modal-editor.js +0 -90
- package/blocks/init/src/Blocks/custom/modal/manifest.json +0 -51
- package/blocks/init/src/Blocks/custom/modal/modal-block.js +0 -14
- package/blocks/init/src/Blocks/custom/modal/modal.php +0 -20
- package/blocks/init/src/Blocks/custom/paragraph/components/paragraph-editor.js +0 -17
- package/blocks/init/src/Blocks/custom/paragraph/components/paragraph-options.js +0 -38
- package/blocks/init/src/Blocks/custom/paragraph/manifest.json +0 -82
- package/blocks/init/src/Blocks/custom/paragraph/paragraph-block.js +0 -13
- package/blocks/init/src/Blocks/custom/paragraph/paragraph-transforms.js +0 -46
- package/blocks/init/src/Blocks/custom/paragraph/paragraph.php +0 -15
- package/blocks/init/src/Blocks/custom/quote/components/quote-editor.js +0 -12
- package/blocks/init/src/Blocks/custom/quote/components/quote-options.js +0 -14
- package/blocks/init/src/Blocks/custom/quote/manifest.json +0 -17
- package/blocks/init/src/Blocks/custom/quote/quote-block.js +0 -13
- package/blocks/init/src/Blocks/custom/quote/quote.php +0 -13
- package/blocks/init/src/Blocks/custom/share/components/share-editor.js +0 -6
- package/blocks/init/src/Blocks/custom/share/components/share-options.js +0 -12
- package/blocks/init/src/Blocks/custom/share/manifest.json +0 -19
- package/blocks/init/src/Blocks/custom/share/share-block.js +0 -13
- package/blocks/init/src/Blocks/custom/share/share.php +0 -11
- package/blocks/init/src/Blocks/custom/site-footer/components/site-footer-editor.js +0 -57
- package/blocks/init/src/Blocks/custom/site-footer/components/site-footer-options.js +0 -106
- package/blocks/init/src/Blocks/custom/site-footer/manifest.json +0 -73
- package/blocks/init/src/Blocks/custom/site-footer/site-footer-block.js +0 -13
- package/blocks/init/src/Blocks/custom/site-footer/site-footer.php +0 -74
- package/blocks/init/src/Blocks/custom/site-navigation/assets/index.js +0 -9
- package/blocks/init/src/Blocks/custom/site-navigation/components/site-navigation-editor.js +0 -42
- package/blocks/init/src/Blocks/custom/site-navigation/components/site-navigation-options.js +0 -73
- package/blocks/init/src/Blocks/custom/site-navigation/manifest.json +0 -77
- package/blocks/init/src/Blocks/custom/site-navigation/site-navigation-block.js +0 -13
- package/blocks/init/src/Blocks/custom/site-navigation/site-navigation.php +0 -99
- package/blocks/init/src/Blocks/custom/table-of-contents/assets/index.js +0 -58
- package/blocks/init/src/Blocks/custom/table-of-contents/components/table-of-contents-editor.js +0 -38
- package/blocks/init/src/Blocks/custom/table-of-contents/components/table-of-contents-options.js +0 -32
- package/blocks/init/src/Blocks/custom/table-of-contents/manifest.json +0 -48
- package/blocks/init/src/Blocks/custom/table-of-contents/table-of-contents-block.js +0 -13
- package/blocks/init/src/Blocks/custom/table-of-contents/table-of-contents.php +0 -31
- package/blocks/init/src/Blocks/custom/video/components/video-editor.js +0 -6
- package/blocks/init/src/Blocks/custom/video/components/video-options.js +0 -12
- package/blocks/init/src/Blocks/custom/video/manifest.json +0 -29
- package/blocks/init/src/Blocks/custom/video/video-block.js +0 -13
- package/blocks/init/src/Blocks/custom/video/video.php +0 -22
- package/blocks/init/src/Blocks/manifest.json +0 -32
- package/blocks/init/src/Blocks/variations/card-simple/manifest.json +0 -17
- package/blocks/init/src/Blocks/wrapper/components/wrapper-editor.js +0 -12
- package/blocks/init/src/Blocks/wrapper/components/wrapper-options.js +0 -364
- package/blocks/init/src/Blocks/wrapper/manifest.json +0 -459
- package/blocks/init/src/Blocks/wrapper/styles-editor.css +0 -13
- package/blocks/init/src/Blocks/wrapper/styles.css +0 -19
- package/blocks/init/src/Blocks/wrapper/wrapper.js +0 -27
- package/blocks/init/src/Blocks/wrapper/wrapper.php +0 -34
package/CHANGELOG.md
CHANGED
|
@@ -6,6 +6,24 @@ This projects adheres to [Semantic Versioning](https://semver.org/) and [Keep a
|
|
|
6
6
|
|
|
7
7
|
---
|
|
8
8
|
|
|
9
|
+
## [2.0.0]
|
|
10
|
+
|
|
11
|
+
### Removed
|
|
12
|
+
- All legacy built-in blocks.
|
|
13
|
+
|
|
14
|
+
### Changed
|
|
15
|
+
- Updated WordPress dependency extraction webpack plugin - React 19 is now supported!
|
|
16
|
+
- Updated dependencies.
|
|
17
|
+
|
|
18
|
+
## [1.5.0]
|
|
19
|
+
|
|
20
|
+
### Added
|
|
21
|
+
- Rive-related strings to `FilePicker`.
|
|
22
|
+
|
|
23
|
+
### Changed
|
|
24
|
+
- Updated dependencies.
|
|
25
|
+
- Updated internal components to use ES UIC 2.x/3.x classnames.
|
|
26
|
+
|
|
9
27
|
## [1.4.8]
|
|
10
28
|
|
|
11
29
|
### Added
|
|
@@ -175,6 +193,8 @@ This projects adheres to [Semantic Versioning](https://semver.org/) and [Keep a
|
|
|
175
193
|
- Initial release.
|
|
176
194
|
|
|
177
195
|
[Unreleased]: https://github.com/infinum/eightshift-frontend-libs-tailwind/compare/master...HEAD
|
|
196
|
+
[2.0.0]: https://github.com/infinum/eightshift-frontend-libs-tailwind/compare/1.5.0...2.0.0
|
|
197
|
+
[1.5.0]: https://github.com/infinum/eightshift-frontend-libs-tailwind/compare/1.4.8...1.5.0
|
|
178
198
|
[1.4.8]: https://github.com/infinum/eightshift-frontend-libs-tailwind/compare/1.4.7...1.4.8
|
|
179
199
|
[1.4.7]: https://github.com/infinum/eightshift-frontend-libs-tailwind/compare/1.4.6...1.4.7
|
|
180
200
|
[1.4.6]: https://github.com/infinum/eightshift-frontend-libs-tailwind/compare/1.4.5...1.4.6
|
package/bun.lockb
ADDED
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@eightshift/frontend-libs-tailwind",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "2.0.0",
|
|
4
4
|
"description": "A framework for creating modern Gutenberg themes with styling provided by Tailwind CSS.",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "Eightshift team",
|
|
@@ -34,48 +34,41 @@
|
|
|
34
34
|
"homepage": "https://github.com/infinum/eightshift-frontend-libs-tailwind#readme",
|
|
35
35
|
"license": "MIT",
|
|
36
36
|
"dependencies": {
|
|
37
|
-
"@eightshift/ui-components": "^
|
|
38
|
-
"@stylistic/eslint-plugin-js": "^2.
|
|
39
|
-
"@stylistic/stylelint-plugin": "^3.1.
|
|
40
|
-
"@swc/core": "^1.
|
|
41
|
-
"@wordpress/api-fetch": "^7.
|
|
42
|
-
"@wordpress/block-editor": "^14.
|
|
43
|
-
"@wordpress/dependency-extraction-webpack-plugin": "^
|
|
44
|
-
"@wordpress/dom-ready": "^4.
|
|
45
|
-
"@wordpress/server-side-render": "^5.
|
|
46
|
-
"browserslist": "^4.24.
|
|
37
|
+
"@eightshift/ui-components": "^3.0.0",
|
|
38
|
+
"@stylistic/eslint-plugin-js": "^4.2.0",
|
|
39
|
+
"@stylistic/stylelint-plugin": "^3.1.2",
|
|
40
|
+
"@swc/core": "^1.11.11",
|
|
41
|
+
"@wordpress/api-fetch": "^7.20.0",
|
|
42
|
+
"@wordpress/block-editor": "^14.15.0",
|
|
43
|
+
"@wordpress/dependency-extraction-webpack-plugin": "^6.20.0",
|
|
44
|
+
"@wordpress/dom-ready": "^4.20.0",
|
|
45
|
+
"@wordpress/server-side-render": "^5.20.0",
|
|
46
|
+
"browserslist": "^4.24.4",
|
|
47
47
|
"css-loader": "^7.1.2",
|
|
48
|
-
"css-minimizer-webpack-plugin": "^7.0.
|
|
49
|
-
"eslint": "^9.
|
|
50
|
-
"eslint-config-prettier": "^
|
|
51
|
-
"eslint-plugin-prettier": "^5.2.
|
|
52
|
-
"globals": "^
|
|
48
|
+
"css-minimizer-webpack-plugin": "^7.0.2",
|
|
49
|
+
"eslint": "^9.22.0",
|
|
50
|
+
"eslint-config-prettier": "^10.1.1",
|
|
51
|
+
"eslint-plugin-prettier": "^5.2.3",
|
|
52
|
+
"globals": "^16.0.0",
|
|
53
53
|
"husky": "^9.1.7",
|
|
54
|
-
"lightningcss": "^1.
|
|
54
|
+
"lightningcss": "^1.29.3",
|
|
55
55
|
"mini-css-extract-plugin": "^2.9.2",
|
|
56
|
-
"postcss": "^8.
|
|
56
|
+
"postcss": "^8.5.3",
|
|
57
57
|
"postcss-loader": "^8.1.1",
|
|
58
|
-
"prettier": "^3.
|
|
59
|
-
"prettier-plugin-tailwindcss": "^0.6.
|
|
60
|
-
"sonner": "^
|
|
61
|
-
"stylelint": "^16.
|
|
62
|
-
"stylelint-config-standard": "^
|
|
58
|
+
"prettier": "^3.5.3",
|
|
59
|
+
"prettier-plugin-tailwindcss": "^0.6.11",
|
|
60
|
+
"sonner": "^2.0.1",
|
|
61
|
+
"stylelint": "^16.16.0",
|
|
62
|
+
"stylelint-config-standard": "^37.0.0",
|
|
63
63
|
"swc-loader": "^0.2.6",
|
|
64
|
-
"terser-webpack-plugin": "^5.3.
|
|
65
|
-
"webpack": "^5.
|
|
66
|
-
"webpack-cli": "^
|
|
67
|
-
"webpack-manifest-plugin": "^5.0.
|
|
64
|
+
"terser-webpack-plugin": "^5.3.14",
|
|
65
|
+
"webpack": "^5.98.0",
|
|
66
|
+
"webpack-cli": "^6.0.1",
|
|
67
|
+
"webpack-manifest-plugin": "^5.0.1",
|
|
68
68
|
"webpack-merge": "^6.0.1"
|
|
69
69
|
},
|
|
70
70
|
"devDependencies": {
|
|
71
|
-
"
|
|
72
|
-
"fluid-tailwind": "^1.0.4",
|
|
73
|
-
"lint-staged": "^15.2.11",
|
|
74
|
-
"micromodal": "^0.4.10",
|
|
75
|
-
"ol": "^10.3.1",
|
|
76
|
-
"ol-mapbox-style": "^12.4.0",
|
|
77
|
-
"tailwindcss": "^3.4.17",
|
|
78
|
-
"tailwindcss-animate": "^1.0.7"
|
|
71
|
+
"lint-staged": "^15.5.0"
|
|
79
72
|
},
|
|
80
73
|
"sideEffects": false,
|
|
81
74
|
"lint-staged": {
|
|
@@ -123,6 +123,18 @@ export const ManageFileButton = (props) => {
|
|
|
123
123
|
replace: __('Select a new Lottie animation', 'eightshift-frontend-libs-tailwind'),
|
|
124
124
|
},
|
|
125
125
|
},
|
|
126
|
+
rive: {
|
|
127
|
+
buttonTooltip: {
|
|
128
|
+
browse: __('Select a Rive animation', 'eightshift-frontend-libs-tailwind'),
|
|
129
|
+
upload: __('Upload a Rive animation', 'eightshift-frontend-libs-tailwind'),
|
|
130
|
+
replace: __('Replace Rive animation', 'eightshift-frontend-libs-tailwind'),
|
|
131
|
+
},
|
|
132
|
+
modalTitle: {
|
|
133
|
+
browse: __('Select a Rive animation', 'eightshift-frontend-libs-tailwind'),
|
|
134
|
+
upload: __('Upload a Rive animation', 'eightshift-frontend-libs-tailwind'),
|
|
135
|
+
replace: __('Select a new Rive animation', 'eightshift-frontend-libs-tailwind'),
|
|
136
|
+
},
|
|
137
|
+
},
|
|
126
138
|
custom: {
|
|
127
139
|
buttonTooltip: labels?.buttonTooltip,
|
|
128
140
|
buttonLabel: labels?.buttonLabel,
|
|
@@ -174,7 +186,7 @@ export const ManageFileButton = (props) => {
|
|
|
174
186
|
*
|
|
175
187
|
* @returns {JSX.Element} The FileSelector component.
|
|
176
188
|
*
|
|
177
|
-
* @typedef {'file' | 'image' | 'video' | 'subtitle' | 'geoJson' | 'lottie' | 'custom'} FileKind
|
|
189
|
+
* @typedef {'file' | 'image' | 'video' | 'subtitle' | 'geoJson' | 'lottie' | 'rive' | 'custom'} FileKind
|
|
178
190
|
*
|
|
179
191
|
* @example
|
|
180
192
|
* <FileSelector
|
|
@@ -202,6 +214,7 @@ export const FileSelector = (props) => {
|
|
|
202
214
|
subtitle: __('Remove subtitle file', 'eightshift-frontend-libs-tailwind'),
|
|
203
215
|
geoJson: __('Remove GeoJSON file', 'eightshift-frontend-libs-tailwind'),
|
|
204
216
|
lottie: __('Remove Lottie animation', 'eightshift-frontend-libs-tailwind'),
|
|
217
|
+
rive: __('Remove Rive animation', 'eightshift-frontend-libs-tailwind'),
|
|
205
218
|
custom: labels?.removeTooltip,
|
|
206
219
|
};
|
|
207
220
|
|
|
@@ -211,6 +224,7 @@ export const FileSelector = (props) => {
|
|
|
211
224
|
subtitle: icons.closedCaptions,
|
|
212
225
|
geoJson: icons.fileMetadata,
|
|
213
226
|
lottie: icons.animationFile,
|
|
227
|
+
rive: icons.animationFile,
|
|
214
228
|
custom: labels?.removeIcon,
|
|
215
229
|
};
|
|
216
230
|
|
|
@@ -222,7 +236,7 @@ export const FileSelector = (props) => {
|
|
|
222
236
|
>
|
|
223
237
|
<HStack
|
|
224
238
|
noWrap
|
|
225
|
-
className='es
|
|
239
|
+
className='es:pl-1'
|
|
226
240
|
>
|
|
227
241
|
<ManageFileButton {...commonManageFileButtonProps} />
|
|
228
242
|
{!noUpload && (
|
|
@@ -236,7 +250,7 @@ export const FileSelector = (props) => {
|
|
|
236
250
|
</FilePlaceholder>
|
|
237
251
|
|
|
238
252
|
<AnimatedVisibility
|
|
239
|
-
visible={fileName}
|
|
253
|
+
visible={(fileName ?? '').length > 0}
|
|
240
254
|
noInitial
|
|
241
255
|
>
|
|
242
256
|
<HStack noWrap>
|
|
@@ -60,14 +60,14 @@ export const PickerPlaceholder = (props) => {
|
|
|
60
60
|
}
|
|
61
61
|
|
|
62
62
|
return (
|
|
63
|
-
<div className='es
|
|
63
|
+
<div className='es:font-sans es:border-gray-200 es:mx-auto es:grid es:max-w-72 es:grid-cols-2 es:gap-1.5 es:rounded-lg es:border es:p-3 es:text-xs es:shadow-lg'>
|
|
64
64
|
<RichLabel
|
|
65
65
|
icon={icon}
|
|
66
66
|
label={title}
|
|
67
|
-
className='col-span-2 mb-2
|
|
67
|
+
className='col-span-2 mb-2 font-medium !text-gray-400 select-none'
|
|
68
68
|
/>
|
|
69
69
|
|
|
70
|
-
<span className='es
|
|
70
|
+
<span className='es:col-span-2 es:select-none es:justify-self-center'>{presetsHeading}</span>
|
|
71
71
|
|
|
72
72
|
{presets.map(({ name, icon, blocks: blockData, attributes: attrsToSet }, index) => {
|
|
73
73
|
return (
|
|
@@ -92,11 +92,9 @@ export const PickerPlaceholder = (props) => {
|
|
|
92
92
|
|
|
93
93
|
{inserter && (
|
|
94
94
|
<>
|
|
95
|
-
<span className='es
|
|
96
|
-
{__('or', 'fe-libs-tailwind')}
|
|
97
|
-
</span>
|
|
95
|
+
<span className='es:col-span-2 es:select-none es:justify-self-center'>{__('or', 'fe-libs-tailwind')}</span>
|
|
98
96
|
|
|
99
|
-
<div className='es
|
|
97
|
+
<div className='es:col-span-2 es:justify-self-center'>
|
|
100
98
|
{inserter}
|
|
101
99
|
|
|
102
100
|
{inserter === true && (
|
|
@@ -30,7 +30,7 @@ export const ServerSideRender = (props) => {
|
|
|
30
30
|
block={block}
|
|
31
31
|
attributes={attributes}
|
|
32
32
|
className={clsx(
|
|
33
|
-
'es
|
|
33
|
+
'es:pointer-events-none es:rounded-lg es:border es:border-dotted es:border-gray-300 es:p-2 es:flow-root',
|
|
34
34
|
className,
|
|
35
35
|
)}
|
|
36
36
|
/>
|
|
@@ -2,10 +2,9 @@
|
|
|
2
2
|
|
|
3
3
|
import { Toaster } from 'sonner';
|
|
4
4
|
import { __ } from '@wordpress/i18n';
|
|
5
|
-
import { Button,
|
|
5
|
+
import { Button, OptionsPanelHeader } from '@eightshift/ui-components';
|
|
6
6
|
import { icons } from '@eightshift/ui-components/icons';
|
|
7
7
|
import { createContext } from '@wordpress/element';
|
|
8
|
-
import { clsx } from '@eightshift/ui-components/utilities';
|
|
9
8
|
import { useThemeOptions } from './use-theme-options';
|
|
10
9
|
|
|
11
10
|
export const EsThemeOptionsContext = createContext(null);
|
|
@@ -19,25 +18,27 @@ export const ThemeOptionsPage = ({
|
|
|
19
18
|
const { isLoading, saveSettings } = themeOptions;
|
|
20
19
|
|
|
21
20
|
return (
|
|
22
|
-
|
|
23
|
-
<
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
21
|
+
<>
|
|
22
|
+
<EsThemeOptionsContext.Provider value={themeOptions}>
|
|
23
|
+
<OptionsPanelHeader
|
|
24
|
+
title={title}
|
|
25
|
+
actions={
|
|
26
|
+
<Button
|
|
27
|
+
onPress={() => saveSettings()}
|
|
28
|
+
disabled={isLoading}
|
|
29
|
+
icon={isLoading ? icons.moreH : icons.save}
|
|
30
|
+
>
|
|
31
|
+
{isLoading
|
|
32
|
+
? __('Saving...', 'eightshift-frontend-libs-tailwind')
|
|
33
|
+
: __('Save', 'eightshift-frontend-libs-tailwind')}
|
|
34
|
+
</Button>
|
|
35
|
+
}
|
|
36
|
+
/>
|
|
38
37
|
|
|
39
38
|
{children}
|
|
40
|
-
</
|
|
41
|
-
|
|
39
|
+
</EsThemeOptionsContext.Provider>
|
|
40
|
+
|
|
41
|
+
<Toaster richColors />
|
|
42
|
+
</>
|
|
42
43
|
);
|
|
43
44
|
};
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Main entry point for styles, scripts, and other assets used in the site frontend.
|
|
3
|
-
* Don't load Block editor-related assets here!
|
|
4
|
-
*/
|
|
5
|
-
|
|
6
|
-
// Styles.
|
|
7
|
-
import './styles/application.css';
|
|
8
|
-
|
|
9
|
-
// Scripts.
|
|
10
|
-
import './scripts/application';
|
|
11
|
-
|
|
12
|
-
// Images.
|
|
13
|
-
import './images';
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Theme color definitions, used in the Tailwind configuration file and during registration.
|
|
3
|
-
*/
|
|
4
|
-
|
|
5
|
-
import colors from 'tailwindcss/colors';
|
|
6
|
-
|
|
7
|
-
export const themeColors = {
|
|
8
|
-
transparent: 'transparent',
|
|
9
|
-
current: 'currentColor',
|
|
10
|
-
black: colors.black,
|
|
11
|
-
white: colors.white,
|
|
12
|
-
gray: colors.stone,
|
|
13
|
-
navy: {
|
|
14
|
-
50: '#eef8ff',
|
|
15
|
-
100: '#dcf0ff',
|
|
16
|
-
200: '#b2e3ff',
|
|
17
|
-
300: '#6dceff',
|
|
18
|
-
400: '#20b5ff',
|
|
19
|
-
500: '#009cff',
|
|
20
|
-
600: '#007bdf',
|
|
21
|
-
700: '#0061b4',
|
|
22
|
-
800: '#005395',
|
|
23
|
-
900: '#00447a',
|
|
24
|
-
950: '#002c54',
|
|
25
|
-
},
|
|
26
|
-
red: {
|
|
27
|
-
50: '#fff0f2',
|
|
28
|
-
100: '#ffdde1',
|
|
29
|
-
200: '#ffc1c9',
|
|
30
|
-
300: '#ff95a3',
|
|
31
|
-
400: '#ff596f',
|
|
32
|
-
500: '#ff2643',
|
|
33
|
-
600: '#fc0626',
|
|
34
|
-
700: '#c5001a',
|
|
35
|
-
800: '#af051b',
|
|
36
|
-
900: '#900c1d',
|
|
37
|
-
950: '#50000b',
|
|
38
|
-
},
|
|
39
|
-
};
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This is the main entry point for Block Editor blocks used for the `WordPress admin editor`.
|
|
3
|
-
* This file registers styles and scripts.
|
|
4
|
-
*
|
|
5
|
-
* Usage: `WordPress admin editor`.
|
|
6
|
-
*/
|
|
7
|
-
|
|
8
|
-
// Styles.
|
|
9
|
-
import './styles/tailwind.css';
|
|
10
|
-
import './styles/application-blocks-editor.css';
|
|
11
|
-
import './styles/editor/editor-overrides.css';
|
|
12
|
-
|
|
13
|
-
// Scripts.
|
|
14
|
-
import './scripts/application-blocks-editor';
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This is the main entry point for Block Editor blocks used for the `WordPress frontend screen`.
|
|
3
|
-
* This file registers styles and scripts.
|
|
4
|
-
*
|
|
5
|
-
* Usage: `WordPress frontend screen`.
|
|
6
|
-
*/
|
|
7
|
-
|
|
8
|
-
// Styles.
|
|
9
|
-
import './styles/tailwind.css';
|
|
10
|
-
import './styles/application-blocks-frontend.css';
|
|
11
|
-
|
|
12
|
-
// Scripts.
|
|
13
|
-
import './scripts/application-blocks-frontend';
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This is the main entry point for Block Editor blocks used for the `WordPress frontend screen` and `WordPress admin editor`.
|
|
3
|
-
* This file registers styles and scripts.
|
|
4
|
-
*
|
|
5
|
-
* Usage: `WordPress frontend screen` and `WordPress admin editor`.
|
|
6
|
-
*/
|
|
7
|
-
|
|
8
|
-
// Styles.
|
|
9
|
-
import './styles/application-blocks.css';
|
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This is the main entry point for Block Editor blocks scripts used for the `WordPress admin editor`.
|
|
3
|
-
* This file registers blocks dynamically using `registerBlocks` helper method.
|
|
4
|
-
* File names must follow the naming convention to be able to run dynamically.
|
|
5
|
-
*
|
|
6
|
-
* `src/blocks/custom/block_name/manifest.json`.
|
|
7
|
-
* `src/blocks/custom/block_name/block_name.js`.
|
|
8
|
-
*
|
|
9
|
-
* Usage: `WordPress admin editor`.
|
|
10
|
-
*/
|
|
11
|
-
|
|
12
|
-
import domReady from '@wordpress/dom-ready';
|
|
13
|
-
import { setDefaultBlockName } from '@wordpress/blocks';
|
|
14
|
-
import { select } from '@wordpress/data';
|
|
15
|
-
import { registerBlocks, registerVariations, STORE_NAME } from '@eightshift/frontend-libs-tailwind/scripts/editor';
|
|
16
|
-
import { Wrapper } from '../../wrapper/wrapper';
|
|
17
|
-
import WrapperManifest from '../../wrapper/manifest.json';
|
|
18
|
-
import globalSettingsRaw from '../../manifest.json';
|
|
19
|
-
import { themeColors } from '../../../../assets/scripts/theme-colors';
|
|
20
|
-
import { getColorData } from '@eightshift/frontend-libs-tailwind/scripts/editor/colors';
|
|
21
|
-
import { dynamicImport } from '@eightshift/frontend-libs-tailwind/scripts';
|
|
22
|
-
|
|
23
|
-
const globalSettings = {
|
|
24
|
-
...globalSettingsRaw,
|
|
25
|
-
globalVariables: {
|
|
26
|
-
...globalSettingsRaw.globalVariables,
|
|
27
|
-
colors: getColorData(themeColors),
|
|
28
|
-
},
|
|
29
|
-
};
|
|
30
|
-
|
|
31
|
-
registerBlocks(
|
|
32
|
-
globalSettings,
|
|
33
|
-
Wrapper,
|
|
34
|
-
WrapperManifest,
|
|
35
|
-
require.context('./../../components', true, /manifest\.json$/),
|
|
36
|
-
require.context('./../../custom', true, /manifest\.json$/),
|
|
37
|
-
require.context('./../../custom', true, /-block.js$/),
|
|
38
|
-
require.context('./../../custom', true, /-hooks.js$/),
|
|
39
|
-
require.context('./../../custom', true, /-transforms.js$/),
|
|
40
|
-
require.context('./../../custom', true, /-deprecations.js$/),
|
|
41
|
-
require.context('./../../custom', true, /-overrides.js$/),
|
|
42
|
-
);
|
|
43
|
-
|
|
44
|
-
registerVariations(
|
|
45
|
-
globalSettings,
|
|
46
|
-
require.context('./../../variations', true, /manifest.json$/),
|
|
47
|
-
require.context('./../../custom', true, /manifest.json$/),
|
|
48
|
-
require.context('./../../variations', true, /overrides.json$/),
|
|
49
|
-
);
|
|
50
|
-
|
|
51
|
-
// Import styles.
|
|
52
|
-
dynamicImport(require.context('./../../components', true, /styles.css$/));
|
|
53
|
-
dynamicImport(require.context('./../../custom', true, /styles.css$/));
|
|
54
|
-
dynamicImport(require.context('./../../wrapper', true, /styles.css$/));
|
|
55
|
-
|
|
56
|
-
dynamicImport(require.context('./../../components', true, /styles-editor.css$/));
|
|
57
|
-
dynamicImport(require.context('./../../custom', true, /styles-editor.css$/));
|
|
58
|
-
dynamicImport(require.context('./../../wrapper', true, /styles-editor.css$/));
|
|
59
|
-
|
|
60
|
-
// Change the default block to the custom paragraph.
|
|
61
|
-
// If changing this block update the blocks filter method in Blocks.php.
|
|
62
|
-
domReady(() => {
|
|
63
|
-
const namespace = select(STORE_NAME).getSettingsNamespace();
|
|
64
|
-
setDefaultBlockName(`${namespace}/paragraph`);
|
|
65
|
-
});
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This is the main entry point for Block Editor blocks scripts used for the `WordPress frontend screen`.
|
|
3
|
-
* This file registers all blocks additional scripts dynamically using `dynamicImport` helper method.
|
|
4
|
-
* File names must follow naming convention to be able run dynamically.
|
|
5
|
-
*
|
|
6
|
-
* `src/blocks/custom/block_name/assets/index.js`.
|
|
7
|
-
*
|
|
8
|
-
* Usage: `WordPress frontend screen`.
|
|
9
|
-
*/
|
|
10
|
-
import { dynamicImport } from '@eightshift/frontend-libs-tailwind/scripts/helpers';
|
|
11
|
-
|
|
12
|
-
// Find all blocks and require assets index.js inside it.
|
|
13
|
-
dynamicImport(require.context('./../../components', true, /assets\/index\.js$/));
|
|
14
|
-
dynamicImport(require.context('./../../custom', true, /assets\/index\.js$/));
|
|
15
|
-
|
|
16
|
-
// Output all styles.
|
|
17
|
-
dynamicImport(require.context('./../../components', true, /styles.css$/));
|
|
18
|
-
dynamicImport(require.context('./../../custom', true, /styles.css$/));
|
|
19
|
-
dynamicImport(require.context('./../../wrapper', true, /styles.css$/));
|
|
20
|
-
|
|
21
|
-
// Output all frontend-only styles.
|
|
22
|
-
dynamicImport(require.context('./../../components', true, /styles-frontend.css$/));
|
|
23
|
-
dynamicImport(require.context('./../../custom', true, /styles-frontend.css$/));
|
|
24
|
-
dynamicImport(require.context('./../../wrapper', true, /styles-frontend.css$/));
|