@puckeditor/plugin-heading-analyzer 0.21.3-canary.d7750318 → 0.21.3
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 -12
- package/dist/index.mjs +2 -12
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -550,20 +550,10 @@ var walkField = ({
|
|
|
550
550
|
if (map && fieldType === "slot") {
|
|
551
551
|
const content = value || [];
|
|
552
552
|
const mappedContent = recurseSlots ? content.map((el) => {
|
|
553
|
-
|
|
554
|
-
const componentConfig = config.components[el.type];
|
|
555
|
-
if (!componentConfig) {
|
|
553
|
+
if (!config.components[el.type]) {
|
|
556
554
|
throw new Error(`Could not find component config for ${el.type}`);
|
|
557
555
|
}
|
|
558
|
-
|
|
559
|
-
return walkField({
|
|
560
|
-
value: __spreadProps(__spreadValues({}, el), { props: defaultSlots(el.props, fields2) }),
|
|
561
|
-
fields: fields2,
|
|
562
|
-
mappers,
|
|
563
|
-
id: el.props.id,
|
|
564
|
-
config,
|
|
565
|
-
recurseSlots
|
|
566
|
-
});
|
|
556
|
+
return mapFields(el, mappers, config, recurseSlots);
|
|
567
557
|
}) : content;
|
|
568
558
|
if (containsPromise(mappedContent)) {
|
|
569
559
|
return Promise.all(mappedContent);
|
package/dist/index.mjs
CHANGED
|
@@ -538,20 +538,10 @@ var walkField = ({
|
|
|
538
538
|
if (map && fieldType === "slot") {
|
|
539
539
|
const content = value || [];
|
|
540
540
|
const mappedContent = recurseSlots ? content.map((el) => {
|
|
541
|
-
|
|
542
|
-
const componentConfig = config.components[el.type];
|
|
543
|
-
if (!componentConfig) {
|
|
541
|
+
if (!config.components[el.type]) {
|
|
544
542
|
throw new Error(`Could not find component config for ${el.type}`);
|
|
545
543
|
}
|
|
546
|
-
|
|
547
|
-
return walkField({
|
|
548
|
-
value: __spreadProps(__spreadValues({}, el), { props: defaultSlots(el.props, fields2) }),
|
|
549
|
-
fields: fields2,
|
|
550
|
-
mappers,
|
|
551
|
-
id: el.props.id,
|
|
552
|
-
config,
|
|
553
|
-
recurseSlots
|
|
554
|
-
});
|
|
544
|
+
return mapFields(el, mappers, config, recurseSlots);
|
|
555
545
|
}) : content;
|
|
556
546
|
if (containsPromise(mappedContent)) {
|
|
557
547
|
return Promise.all(mappedContent);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@puckeditor/plugin-heading-analyzer",
|
|
3
|
-
"version": "0.21.3
|
|
3
|
+
"version": "0.21.3",
|
|
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.21.3
|
|
28
|
+
"@puckeditor/core": "^0.21.3",
|
|
29
29
|
"@types/minimatch": "3.0.5",
|
|
30
30
|
"@types/react": "^19.0.1",
|
|
31
31
|
"@types/react-dom": "^19.0.2",
|