@eightshift/frontend-libs-tailwind 3.2.0 → 3.4.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/.husky/pre-commit +3 -1
- package/.prettierrc +2 -4
- package/CHANGELOG.md +42 -2
- package/bun.lock +112 -172
- package/linters/stylelint.config.js +1 -1
- package/package.json +19 -23
- package/schemas/globalManifest.json +6 -14
- package/scripts/components/block-inserter.js +2 -13
- package/scripts/components/file-picker.js +2 -21
- package/scripts/components/link-section-editor.js +1 -5
- package/scripts/components/picker-placeholder.js +2 -14
- package/scripts/components/server-side-render.js +1 -4
- package/scripts/components/settings/settings.js +2 -8
- package/scripts/editor/attributes.js +4 -23
- package/scripts/editor/editor.js +2 -4
- package/scripts/editor/fetch.js +3 -23
- package/scripts/editor/index.js +1 -8
- package/scripts/editor/options.js +1 -3
- package/scripts/editor/registration.js +22 -98
- package/scripts/editor/store.js +0 -19
- package/scripts/editor/tailwindcss.js +68 -273
- package/scripts/helpers/index.js +1 -7
- package/scripts/index.js +2 -15
- package/scripts/plugins/yoast-seo.js +1 -5
- package/webpack/base.mjs +1 -3
- package/webpack/helpers.mjs +5 -23
- package/webpack/index.mjs +1 -7
- package/webpack/project.mjs +2 -8
- package/webpack/responsive-compiler.mjs +2 -8
- package/.claude/settings.local.json +0 -7
package/.husky/pre-commit
CHANGED
package/.prettierrc
CHANGED
|
@@ -1,12 +1,10 @@
|
|
|
1
1
|
{
|
|
2
|
-
"plugins": [
|
|
3
|
-
"prettier-plugin-tailwindcss"
|
|
4
|
-
],
|
|
2
|
+
"plugins": ["prettier-plugin-tailwindcss"],
|
|
5
3
|
"useTabs": true,
|
|
6
4
|
"jsxSingleQuote": true,
|
|
7
5
|
"singleQuote": true,
|
|
8
6
|
"singleAttributePerLine": true,
|
|
9
|
-
"printWidth":
|
|
7
|
+
"printWidth": 300,
|
|
10
8
|
"arrowParens": "always",
|
|
11
9
|
"bracketSpacing": true,
|
|
12
10
|
"semi": true,
|
package/CHANGELOG.md
CHANGED
|
@@ -6,6 +6,39 @@ This projects adheres to [Semantic Versioning](https://semver.org/) and [Keep a
|
|
|
6
6
|
|
|
7
7
|
---
|
|
8
8
|
|
|
9
|
+
## [3.4.0]
|
|
10
|
+
|
|
11
|
+
### Added
|
|
12
|
+
- Added `_twcOptions` to `tailwindClasses` function to allow for more flexible behavior (e.g., ignoring editor classes, disabling part debug classes, and indicating server-side rendering).
|
|
13
|
+
|
|
14
|
+
### Fixed
|
|
15
|
+
- SSR compatibility for `tailwindClasses` function, ensuring it works correctly in server-side rendering contexts.
|
|
16
|
+
|
|
17
|
+
### Removed
|
|
18
|
+
|
|
19
|
+
- Legacy `getTwPart`, `getTwDynamicPart`, `getTwClasses` functions (deprecated since 1.4.0).
|
|
20
|
+
|
|
21
|
+
### Updated
|
|
22
|
+
|
|
23
|
+
- Updated dependencies.
|
|
24
|
+
|
|
25
|
+
## [3.3.0]
|
|
26
|
+
|
|
27
|
+
### Changed
|
|
28
|
+
|
|
29
|
+
- Updated dependencies (`eslint`, `@swc/core`, `@tailwindcss/webpack`, `@wordpress/dependency-extraction-webpack-plugin`, `stylelint`, `terser-webpack-plugin`, `prettier-plugin-tailwindcss`, `@wordpress/api-fetch`, `globals`).
|
|
30
|
+
- Updated Prettier `printWidth` to 300 and reformatted source files accordingly.
|
|
31
|
+
- Updated `lintJs` script to call `eslint` directly and removed the redundant `lint` alias.
|
|
32
|
+
- Updated Husky `pre-commit` hook to run `bun lint-staged --quiet` directly.
|
|
33
|
+
|
|
34
|
+
### Removed
|
|
35
|
+
|
|
36
|
+
- Removed `*.php` entry from `lint-staged` config.
|
|
37
|
+
|
|
38
|
+
### Fixed
|
|
39
|
+
|
|
40
|
+
- Fixed `no-param-reassign` ESLint warnings in block/variation registration and the Tailwind responsive key extractor.
|
|
41
|
+
|
|
9
42
|
## [3.2.0]
|
|
10
43
|
|
|
11
44
|
### Added
|
|
@@ -89,7 +122,6 @@ This projects adheres to [Semantic Versioning](https://semver.org/) and [Keep a
|
|
|
89
122
|
|
|
90
123
|
- Updated dependencies.
|
|
91
124
|
|
|
92
|
-
|
|
93
125
|
## [2.1.1]
|
|
94
126
|
|
|
95
127
|
### Changed
|
|
@@ -107,23 +139,27 @@ This projects adheres to [Semantic Versioning](https://semver.org/) and [Keep a
|
|
|
107
139
|
## [2.0.7]
|
|
108
140
|
|
|
109
141
|
### Added
|
|
110
|
-
|
|
142
|
+
|
|
143
|
+
- Output block/component title in `tailwindClasses` if WP_DEBUG is true. Depends on Eightshift Libs v10.11.2 `addEditorBodyDebugClass` method.
|
|
111
144
|
|
|
112
145
|
## [2.0.6]
|
|
113
146
|
|
|
114
147
|
### Changed
|
|
148
|
+
|
|
115
149
|
- Updated dependencies.
|
|
116
150
|
- Package will now use your project's version of ES UI components, instead of bundling one. `peerDependencies` should automatically install it, if not please install `@eightshift/ui-components` yourself.
|
|
117
151
|
|
|
118
152
|
## [2.0.5]
|
|
119
153
|
|
|
120
154
|
### Changed
|
|
155
|
+
|
|
121
156
|
- Updated dependencies.
|
|
122
157
|
- `GutenbergBlock` now overrides the ES UI components portal, after Core changed editor to be iframed. This can be disabled by passing `toolbarPortalElement={false}` and `editorPortalElement={false}`. Override only happens if the editor is iframed.
|
|
123
158
|
|
|
124
159
|
## [2.0.4]
|
|
125
160
|
|
|
126
161
|
### Changed
|
|
162
|
+
|
|
127
163
|
- Updated dependencies.
|
|
128
164
|
|
|
129
165
|
## [2.0.3]
|
|
@@ -131,9 +167,11 @@ This projects adheres to [Semantic Versioning](https://semver.org/) and [Keep a
|
|
|
131
167
|
Co-authored with @piqusy
|
|
132
168
|
|
|
133
169
|
### Changed
|
|
170
|
+
|
|
134
171
|
- Updated dependencies.
|
|
135
172
|
|
|
136
173
|
### Fixed
|
|
174
|
+
|
|
137
175
|
- Prop not being passed in Media picker causing 'Replace' to not highlight existing selection.
|
|
138
176
|
|
|
139
177
|
## [2.0.2]
|
|
@@ -346,6 +384,8 @@ Co-authored with @piqusy
|
|
|
346
384
|
- Initial release.
|
|
347
385
|
|
|
348
386
|
[Unreleased]: https://github.com/infinum/eightshift-frontend-libs-tailwind/compare/master...HEAD
|
|
387
|
+
[3.4.0]: https://github.com/infinum/eightshift-frontend-libs-tailwind/compare/3.4.0...3.4.0
|
|
388
|
+
[3.3.0]: https://github.com/infinum/eightshift-frontend-libs-tailwind/compare/3.2.0...3.3.0
|
|
349
389
|
[3.2.0]: https://github.com/infinum/eightshift-frontend-libs-tailwind/compare/3.1.2...3.2.0
|
|
350
390
|
[3.1.2]: https://github.com/infinum/eightshift-frontend-libs-tailwind/compare/3.1.1...3.1.2
|
|
351
391
|
[3.1.1]: https://github.com/infinum/eightshift-frontend-libs-tailwind/compare/3.1.0...3.1.1
|