@eightshift/frontend-libs-tailwind 3.1.2 → 3.3.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.
@@ -0,0 +1,7 @@
1
+ {
2
+ "permissions": {
3
+ "allow": [
4
+ "Bash(npm --version)"
5
+ ]
6
+ }
7
+ }
@@ -22,11 +22,12 @@ jobs:
22
22
  strategy:
23
23
  fail-fast: false
24
24
  matrix:
25
- node: [ 'latest' ]
25
+ node: ['latest']
26
26
  steps:
27
27
  - name: Lint assets
28
28
  uses: infinum/eightshift-deploy-actions-public/.github/actions/lint/assets@main
29
29
  with:
30
30
  NODE_VERSION: ${{ matrix.node }}
31
- PROJECT_PATH: '/'
32
- USE_BUN: 'true'
31
+ PROJECT_PATH: '.'
32
+ USE_BUILD: false
33
+ USE_LINT_STYLE: false
package/.husky/pre-commit CHANGED
@@ -1 +1,3 @@
1
- npx lint-staged
1
+ #!/bin/sh
2
+
3
+ bun lint-staged --quiet
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": 120,
7
+ "printWidth": 300,
10
8
  "arrowParens": "always",
11
9
  "bracketSpacing": true,
12
10
  "semi": true,
package/CHANGELOG.md CHANGED
@@ -6,6 +6,38 @@ This projects adheres to [Semantic Versioning](https://semver.org/) and [Keep a
6
6
 
7
7
  ---
8
8
 
9
+ ## [3.3.0]
10
+
11
+ ### Changed
12
+
13
+ - Updated dependencies (`eslint`, `@swc/core`, `@tailwindcss/webpack`, `@wordpress/dependency-extraction-webpack-plugin`, `stylelint`, `terser-webpack-plugin`, `prettier-plugin-tailwindcss`, `@wordpress/api-fetch`, `globals`).
14
+ - Updated Prettier `printWidth` to 300 and reformatted source files accordingly.
15
+ - Updated `lintJs` script to call `eslint` directly and removed the redundant `lint` alias.
16
+ - Updated Husky `pre-commit` hook to run `bun lint-staged --quiet` directly.
17
+
18
+ ### Removed
19
+
20
+ - Removed `*.php` entry from `lint-staged` config.
21
+
22
+ ### Fixed
23
+
24
+ - Fixed `no-param-reassign` ESLint warnings in block/variation registration and the Tailwind responsive key extractor.
25
+
26
+ ## [3.2.0]
27
+
28
+ ### Added
29
+
30
+ - Built-in Tailwind responsive class compiler: scans every `manifest.json`, extracts classes from `twClasses`, `twClassesEditor` and `twClassesEditorOnly`, expands `responsive: true` blocks across all configured breakpoints, and writes `es-tw-frontend-classes.txt` and `es-tw-editor-classes.txt` at the project root. Runs before each build and on manifest changes in watch mode.
31
+ - New `tailwindBreakpoints` option on `eightshiftConfig` (defaults to `['sm', 'md']`).
32
+
33
+ ### Changed
34
+
35
+ - **Breaking:** default CSS rule now uses `@tailwindcss/webpack` instead of `postcss-loader`. Projects that previously set `overrides: ['css']` and re-declared their own CSS rule and `esTwResponsiveCompiler` plugin should remove that boilerplate and rely on the libs defaults.
36
+
37
+ ### Removed
38
+
39
+ - `postcss` and `postcss-loader` dependencies.
40
+
9
41
  ## [3.1.2]
10
42
 
11
43
  ### Fixed
@@ -74,7 +106,6 @@ This projects adheres to [Semantic Versioning](https://semver.org/) and [Keep a
74
106
 
75
107
  - Updated dependencies.
76
108
 
77
-
78
109
  ## [2.1.1]
79
110
 
80
111
  ### Changed
@@ -92,23 +123,27 @@ This projects adheres to [Semantic Versioning](https://semver.org/) and [Keep a
92
123
  ## [2.0.7]
93
124
 
94
125
  ### Added
95
- - Output block/component title in `tailwindClasses` if WP_DEBUG is true. Depends on Eightshift Libs v10.11.2 `addEditorBodyDebugClass` method.
126
+
127
+ - Output block/component title in `tailwindClasses` if WP_DEBUG is true. Depends on Eightshift Libs v10.11.2 `addEditorBodyDebugClass` method.
96
128
 
97
129
  ## [2.0.6]
98
130
 
99
131
  ### Changed
132
+
100
133
  - Updated dependencies.
101
134
  - 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.
102
135
 
103
136
  ## [2.0.5]
104
137
 
105
138
  ### Changed
139
+
106
140
  - Updated dependencies.
107
141
  - `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.
108
142
 
109
143
  ## [2.0.4]
110
144
 
111
145
  ### Changed
146
+
112
147
  - Updated dependencies.
113
148
 
114
149
  ## [2.0.3]
@@ -116,9 +151,11 @@ This projects adheres to [Semantic Versioning](https://semver.org/) and [Keep a
116
151
  Co-authored with @piqusy
117
152
 
118
153
  ### Changed
154
+
119
155
  - Updated dependencies.
120
156
 
121
157
  ### Fixed
158
+
122
159
  - Prop not being passed in Media picker causing 'Replace' to not highlight existing selection.
123
160
 
124
161
  ## [2.0.2]
@@ -331,6 +368,8 @@ Co-authored with @piqusy
331
368
  - Initial release.
332
369
 
333
370
  [Unreleased]: https://github.com/infinum/eightshift-frontend-libs-tailwind/compare/master...HEAD
371
+ [3.3.0]: https://github.com/infinum/eightshift-frontend-libs-tailwind/compare/3.2.0...3.3.0
372
+ [3.2.0]: https://github.com/infinum/eightshift-frontend-libs-tailwind/compare/3.1.2...3.2.0
334
373
  [3.1.2]: https://github.com/infinum/eightshift-frontend-libs-tailwind/compare/3.1.1...3.1.2
335
374
  [3.1.1]: https://github.com/infinum/eightshift-frontend-libs-tailwind/compare/3.1.0...3.1.1
336
375
  [3.1.0]: https://github.com/infinum/eightshift-frontend-libs-tailwind/compare/3.0.0...3.1.0