@puckeditor/plugin-heading-analyzer 0.22.0-canary.1a6a10ed → 0.22.0-canary.ea2ac3c2
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/dist/index.js +2 -2
- package/dist/index.mjs +2 -2
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -296,7 +296,7 @@ var styles_module_default = { "OutlineList": "_OutlineList_w4lzv_1", "OutlineLis
|
|
|
296
296
|
// ../core/lib/get-class-name-factory.ts
|
|
297
297
|
init_react_import();
|
|
298
298
|
var import_classnames = __toESM(require_classnames());
|
|
299
|
-
var getClassNameFactory = (rootClass, styles, config = { baseClass: "" }) => (options = {}) => {
|
|
299
|
+
var getClassNameFactory = (rootClass, styles, config = { baseClass: "" }) => (options = {}, params = {}) => {
|
|
300
300
|
if (typeof options === "string") {
|
|
301
301
|
const descendant = options;
|
|
302
302
|
const style = styles[`${rootClass}-${descendant}`];
|
|
@@ -310,7 +310,7 @@ var getClassNameFactory = (rootClass, styles, config = { baseClass: "" }) => (op
|
|
|
310
310
|
for (let modifier in modifiers) {
|
|
311
311
|
prefixedModifiers[styles[`${rootClass}--${modifier}`]] = modifiers[modifier];
|
|
312
312
|
}
|
|
313
|
-
const c = styles[rootClass];
|
|
313
|
+
const c = !params.excludeBase ? styles[rootClass] : "";
|
|
314
314
|
return config.baseClass + (0, import_classnames.default)(__spreadValues({
|
|
315
315
|
[c]: !!c
|
|
316
316
|
}, prefixedModifiers));
|
package/dist/index.mjs
CHANGED
|
@@ -284,7 +284,7 @@ var styles_module_default = { "OutlineList": "_OutlineList_w4lzv_1", "OutlineLis
|
|
|
284
284
|
// ../core/lib/get-class-name-factory.ts
|
|
285
285
|
init_react_import();
|
|
286
286
|
var import_classnames = __toESM(require_classnames());
|
|
287
|
-
var getClassNameFactory = (rootClass, styles, config = { baseClass: "" }) => (options = {}) => {
|
|
287
|
+
var getClassNameFactory = (rootClass, styles, config = { baseClass: "" }) => (options = {}, params = {}) => {
|
|
288
288
|
if (typeof options === "string") {
|
|
289
289
|
const descendant = options;
|
|
290
290
|
const style = styles[`${rootClass}-${descendant}`];
|
|
@@ -298,7 +298,7 @@ var getClassNameFactory = (rootClass, styles, config = { baseClass: "" }) => (op
|
|
|
298
298
|
for (let modifier in modifiers) {
|
|
299
299
|
prefixedModifiers[styles[`${rootClass}--${modifier}`]] = modifiers[modifier];
|
|
300
300
|
}
|
|
301
|
-
const c = styles[rootClass];
|
|
301
|
+
const c = !params.excludeBase ? styles[rootClass] : "";
|
|
302
302
|
return config.baseClass + (0, import_classnames.default)(__spreadValues({
|
|
303
303
|
[c]: !!c
|
|
304
304
|
}, prefixedModifiers));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@puckeditor/plugin-heading-analyzer",
|
|
3
|
-
"version": "0.22.0-canary.
|
|
3
|
+
"version": "0.22.0-canary.ea2ac3c2",
|
|
4
4
|
"author": "Chris Villa <chris@puckeditor.com>",
|
|
5
5
|
"repository": "puckeditor/puck",
|
|
6
6
|
"bugs": "https://github.com/puckeditor/puck/issues",
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
"dist"
|
|
26
26
|
],
|
|
27
27
|
"devDependencies": {
|
|
28
|
-
"@puckeditor/core": "^0.22.0-canary.
|
|
28
|
+
"@puckeditor/core": "^0.22.0-canary.ea2ac3c2",
|
|
29
29
|
"@types/minimatch": "3.0.5",
|
|
30
30
|
"@types/react": "^19.0.1",
|
|
31
31
|
"@types/react-dom": "^19.0.2",
|