@eightshift/frontend-libs-tailwind 2.0.6 → 2.0.7

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 CHANGED
@@ -6,7 +6,13 @@ This projects adheres to [Semantic Versioning](https://semver.org/) and [Keep a
6
6
 
7
7
  ---
8
8
 
9
+ ## [2.0.7]
10
+
11
+ ### Added
12
+ - Output block/component title in `tailwindClasses` if WP_DEBUG is true. Depends on Eightshift Libs v10.11.2 `addEditorBodyDebugClass` method.
13
+
9
14
  ## [2.0.6]
15
+
10
16
  ### Changed
11
17
  - Updated dependencies.
12
18
  - 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.
@@ -242,6 +248,7 @@ Co-authored with @piqusy
242
248
  - Initial release.
243
249
 
244
250
  [Unreleased]: https://github.com/infinum/eightshift-frontend-libs-tailwind/compare/master...HEAD
251
+ [2.0.7]: https://github.com/infinum/eightshift-frontend-libs-tailwind/compare/2.0.6...2.0.7
245
252
  [2.0.6]: https://github.com/infinum/eightshift-frontend-libs-tailwind/compare/2.0.5...2.0.6
246
253
  [2.0.5]: https://github.com/infinum/eightshift-frontend-libs-tailwind/compare/2.0.4...2.0.5
247
254
  [2.0.4]: https://github.com/infinum/eightshift-frontend-libs-tailwind/compare/2.0.3...2.0.4
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eightshift/frontend-libs-tailwind",
3
- "version": "2.0.6",
3
+ "version": "2.0.7",
4
4
  "description": "A framework for creating modern Gutenberg themes with styling provided by Tailwind CSS.",
5
5
  "author": {
6
6
  "name": "Eightshift team",
@@ -547,7 +547,10 @@ export const tailwindClasses = (part, attributes, manifest, ...custom) => {
547
547
  combinationClasses = [...combinationClasses, processCombination(partName, combo, attributes, manifest)];
548
548
  }
549
549
 
550
+ const partPrefix = manifest.title.replace(/[^a-zA-Z]+/g, '-').toLowerCase();
551
+
550
552
  return clsx(
553
+ document.body.classList.contains('es-wp-debug') && `_es__${partPrefix}/${part}`,
551
554
  unifyClasses(baseBaseClasses),
552
555
  unifyClasses(baseEditorClasses),
553
556
  ...optionClasses,