@puckeditor/plugin-heading-analyzer 0.24.0-canary.c1ec9773 → 0.24.0-canary.ea71a404
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/LICENSE +21 -0
- package/dist/index.d.mts +62 -15
- package/dist/index.d.ts +62 -15
- package/dist/index.js +15 -15
- package/dist/index.mjs +15 -15
- package/package.json +14 -12
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) The Puck Contributors.
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/dist/index.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ElementType, CSSProperties, Ref, ComponentPropsWithoutRef, ReactElement, ReactNode, JSX } from 'react';
|
|
2
2
|
import { EditorStateSnapshot, Editor, Extensions } from '@tiptap/react';
|
|
3
3
|
import { BlockquoteOptions } from '@tiptap/extension-blockquote';
|
|
4
4
|
import { BoldOptions } from '@tiptap/extension-bold';
|
|
@@ -20,6 +20,62 @@ type ItemSelector = {
|
|
|
20
20
|
zone?: string;
|
|
21
21
|
};
|
|
22
22
|
|
|
23
|
+
/**
|
|
24
|
+
* Props consumed by Puck internally that are shared between DropZones and slots.
|
|
25
|
+
*/
|
|
26
|
+
type DropZoneSharedProps<ComponentType extends ElementType = "div"> = {
|
|
27
|
+
allow?: string[];
|
|
28
|
+
disallow?: string[];
|
|
29
|
+
style?: CSSProperties;
|
|
30
|
+
minEmptyHeight?: CSSProperties["minHeight"] | number;
|
|
31
|
+
className?: string;
|
|
32
|
+
collisionAxis?: DragAxis;
|
|
33
|
+
ref?: Ref<any>;
|
|
34
|
+
as?: ComponentType;
|
|
35
|
+
};
|
|
36
|
+
/**
|
|
37
|
+
* All props consumed by Puck for a DropZone component. `zone` lives here only.
|
|
38
|
+
*
|
|
39
|
+
* On slots `zone` is injected internally, so slots use {@link SlotProps} instead.
|
|
40
|
+
*/
|
|
41
|
+
type DropZoneOwnProps<ComponentType extends ElementType = "div"> = DropZoneSharedProps<ComponentType> & {
|
|
42
|
+
zone: string;
|
|
43
|
+
};
|
|
44
|
+
/**
|
|
45
|
+
* Unsupported additional props that are never forwarded to `as`.
|
|
46
|
+
*
|
|
47
|
+
* Omitted from the public types AND stripped at runtime.
|
|
48
|
+
*/
|
|
49
|
+
type NonForwardableProps = {
|
|
50
|
+
children?: unknown;
|
|
51
|
+
dangerouslySetInnerHTML?: unknown;
|
|
52
|
+
};
|
|
53
|
+
/**
|
|
54
|
+
* Keys internally consumed by Puck and never forwarded to `as`.
|
|
55
|
+
*/
|
|
56
|
+
type ConsumedPropKey = keyof DropZoneOwnProps | "as" | "content" | "config" | "metadata";
|
|
57
|
+
/**
|
|
58
|
+
* Additional props forwarded to the element or component provided via `as`,
|
|
59
|
+
* typed against it.
|
|
60
|
+
*
|
|
61
|
+
* Puck-internal/unsupported props are stripped so they don't leak onto the DOM.
|
|
62
|
+
*/
|
|
63
|
+
type ForwardedProps<ComponentType extends ElementType> = Omit<ComponentPropsWithoutRef<ComponentType>, ConsumedPropKey | keyof NonForwardableProps>;
|
|
64
|
+
/**
|
|
65
|
+
* Props for a `DropZone` component.
|
|
66
|
+
*
|
|
67
|
+
* Any additional props not consumed by Puck are forwarded to the element or
|
|
68
|
+
* component provided via `as` (defaulting to a `div`), typed against it.
|
|
69
|
+
*/
|
|
70
|
+
type DropZoneProps<ComponentType extends ElementType = "div"> = DropZoneOwnProps<ComponentType> & ForwardedProps<ComponentType>;
|
|
71
|
+
/**
|
|
72
|
+
* Props for a `slot` render component.
|
|
73
|
+
*
|
|
74
|
+
* Any additional props not consumed by Puck are forwarded to the element or
|
|
75
|
+
* component provided via `as` (defaulting to a `div`), typed against it.
|
|
76
|
+
*/
|
|
77
|
+
type SlotProps<ComponentType extends ElementType = "div"> = DropZoneSharedProps<ComponentType> & ForwardedProps<ComponentType>;
|
|
78
|
+
|
|
23
79
|
declare const defaultEditorState: (ctx: EditorStateSnapshot, readOnly: boolean) => {
|
|
24
80
|
isAlignLeft?: undefined;
|
|
25
81
|
canAlignLeft?: undefined;
|
|
@@ -338,20 +394,11 @@ type FieldProps<F = Field<any>, ValueType = any> = {
|
|
|
338
394
|
readOnly?: boolean;
|
|
339
395
|
};
|
|
340
396
|
|
|
341
|
-
type DropZoneProps = {
|
|
342
|
-
zone: string;
|
|
343
|
-
allow?: string[];
|
|
344
|
-
disallow?: string[];
|
|
345
|
-
style?: CSSProperties;
|
|
346
|
-
minEmptyHeight?: CSSProperties["minHeight"] | number;
|
|
347
|
-
className?: string;
|
|
348
|
-
collisionAxis?: DragAxis;
|
|
349
|
-
as?: ElementType;
|
|
350
|
-
ref?: Ref<any>;
|
|
351
|
-
};
|
|
352
|
-
|
|
353
397
|
type PuckContext = {
|
|
354
|
-
|
|
398
|
+
/**
|
|
399
|
+
* @deprecated Use {@link https://puckeditor.com/docs/api-reference/fields/slot Slots} instead.
|
|
400
|
+
*/
|
|
401
|
+
renderDropZone: <ComponentType extends ElementType = "div">(props: DropZoneProps<ComponentType>) => React.ReactNode;
|
|
355
402
|
metadata: Metadata;
|
|
356
403
|
isEditing: boolean;
|
|
357
404
|
dragRef: ((element: Element | null) => void) | null;
|
|
@@ -397,7 +444,7 @@ type ExtractField<UserField extends {
|
|
|
397
444
|
type: T;
|
|
398
445
|
}>;
|
|
399
446
|
|
|
400
|
-
type SlotComponent = (props?:
|
|
447
|
+
type SlotComponent = <ComponentType extends ElementType = "div">(props?: SlotProps<ComponentType>) => ReactNode;
|
|
401
448
|
type PuckComponent<Props> = (props: WithId<WithPuckProps<{
|
|
402
449
|
[K in keyof Props]: WithDeepSlots<Props[K], SlotComponent>;
|
|
403
450
|
}>>) => JSX.Element;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ElementType, CSSProperties, Ref, ComponentPropsWithoutRef, ReactElement, ReactNode, JSX } from 'react';
|
|
2
2
|
import { EditorStateSnapshot, Editor, Extensions } from '@tiptap/react';
|
|
3
3
|
import { BlockquoteOptions } from '@tiptap/extension-blockquote';
|
|
4
4
|
import { BoldOptions } from '@tiptap/extension-bold';
|
|
@@ -20,6 +20,62 @@ type ItemSelector = {
|
|
|
20
20
|
zone?: string;
|
|
21
21
|
};
|
|
22
22
|
|
|
23
|
+
/**
|
|
24
|
+
* Props consumed by Puck internally that are shared between DropZones and slots.
|
|
25
|
+
*/
|
|
26
|
+
type DropZoneSharedProps<ComponentType extends ElementType = "div"> = {
|
|
27
|
+
allow?: string[];
|
|
28
|
+
disallow?: string[];
|
|
29
|
+
style?: CSSProperties;
|
|
30
|
+
minEmptyHeight?: CSSProperties["minHeight"] | number;
|
|
31
|
+
className?: string;
|
|
32
|
+
collisionAxis?: DragAxis;
|
|
33
|
+
ref?: Ref<any>;
|
|
34
|
+
as?: ComponentType;
|
|
35
|
+
};
|
|
36
|
+
/**
|
|
37
|
+
* All props consumed by Puck for a DropZone component. `zone` lives here only.
|
|
38
|
+
*
|
|
39
|
+
* On slots `zone` is injected internally, so slots use {@link SlotProps} instead.
|
|
40
|
+
*/
|
|
41
|
+
type DropZoneOwnProps<ComponentType extends ElementType = "div"> = DropZoneSharedProps<ComponentType> & {
|
|
42
|
+
zone: string;
|
|
43
|
+
};
|
|
44
|
+
/**
|
|
45
|
+
* Unsupported additional props that are never forwarded to `as`.
|
|
46
|
+
*
|
|
47
|
+
* Omitted from the public types AND stripped at runtime.
|
|
48
|
+
*/
|
|
49
|
+
type NonForwardableProps = {
|
|
50
|
+
children?: unknown;
|
|
51
|
+
dangerouslySetInnerHTML?: unknown;
|
|
52
|
+
};
|
|
53
|
+
/**
|
|
54
|
+
* Keys internally consumed by Puck and never forwarded to `as`.
|
|
55
|
+
*/
|
|
56
|
+
type ConsumedPropKey = keyof DropZoneOwnProps | "as" | "content" | "config" | "metadata";
|
|
57
|
+
/**
|
|
58
|
+
* Additional props forwarded to the element or component provided via `as`,
|
|
59
|
+
* typed against it.
|
|
60
|
+
*
|
|
61
|
+
* Puck-internal/unsupported props are stripped so they don't leak onto the DOM.
|
|
62
|
+
*/
|
|
63
|
+
type ForwardedProps<ComponentType extends ElementType> = Omit<ComponentPropsWithoutRef<ComponentType>, ConsumedPropKey | keyof NonForwardableProps>;
|
|
64
|
+
/**
|
|
65
|
+
* Props for a `DropZone` component.
|
|
66
|
+
*
|
|
67
|
+
* Any additional props not consumed by Puck are forwarded to the element or
|
|
68
|
+
* component provided via `as` (defaulting to a `div`), typed against it.
|
|
69
|
+
*/
|
|
70
|
+
type DropZoneProps<ComponentType extends ElementType = "div"> = DropZoneOwnProps<ComponentType> & ForwardedProps<ComponentType>;
|
|
71
|
+
/**
|
|
72
|
+
* Props for a `slot` render component.
|
|
73
|
+
*
|
|
74
|
+
* Any additional props not consumed by Puck are forwarded to the element or
|
|
75
|
+
* component provided via `as` (defaulting to a `div`), typed against it.
|
|
76
|
+
*/
|
|
77
|
+
type SlotProps<ComponentType extends ElementType = "div"> = DropZoneSharedProps<ComponentType> & ForwardedProps<ComponentType>;
|
|
78
|
+
|
|
23
79
|
declare const defaultEditorState: (ctx: EditorStateSnapshot, readOnly: boolean) => {
|
|
24
80
|
isAlignLeft?: undefined;
|
|
25
81
|
canAlignLeft?: undefined;
|
|
@@ -338,20 +394,11 @@ type FieldProps<F = Field<any>, ValueType = any> = {
|
|
|
338
394
|
readOnly?: boolean;
|
|
339
395
|
};
|
|
340
396
|
|
|
341
|
-
type DropZoneProps = {
|
|
342
|
-
zone: string;
|
|
343
|
-
allow?: string[];
|
|
344
|
-
disallow?: string[];
|
|
345
|
-
style?: CSSProperties;
|
|
346
|
-
minEmptyHeight?: CSSProperties["minHeight"] | number;
|
|
347
|
-
className?: string;
|
|
348
|
-
collisionAxis?: DragAxis;
|
|
349
|
-
as?: ElementType;
|
|
350
|
-
ref?: Ref<any>;
|
|
351
|
-
};
|
|
352
|
-
|
|
353
397
|
type PuckContext = {
|
|
354
|
-
|
|
398
|
+
/**
|
|
399
|
+
* @deprecated Use {@link https://puckeditor.com/docs/api-reference/fields/slot Slots} instead.
|
|
400
|
+
*/
|
|
401
|
+
renderDropZone: <ComponentType extends ElementType = "div">(props: DropZoneProps<ComponentType>) => React.ReactNode;
|
|
355
402
|
metadata: Metadata;
|
|
356
403
|
isEditing: boolean;
|
|
357
404
|
dragRef: ((element: Element | null) => void) | null;
|
|
@@ -397,7 +444,7 @@ type ExtractField<UserField extends {
|
|
|
397
444
|
type: T;
|
|
398
445
|
}>;
|
|
399
446
|
|
|
400
|
-
type SlotComponent = (props?:
|
|
447
|
+
type SlotComponent = <ComponentType extends ElementType = "div">(props?: SlotProps<ComponentType>) => ReactNode;
|
|
401
448
|
type PuckComponent<Props> = (props: WithId<WithPuckProps<{
|
|
402
449
|
[K in keyof Props]: WithDeepSlots<Props[K], SlotComponent>;
|
|
403
450
|
}>>) => JSX.Element;
|
package/dist/index.js
CHANGED
|
@@ -71,9 +71,9 @@ var init_react_import = __esm({
|
|
|
71
71
|
}
|
|
72
72
|
});
|
|
73
73
|
|
|
74
|
-
// ../../node_modules/classnames/index.js
|
|
74
|
+
// ../../node_modules/.pnpm/classnames@2.5.1/node_modules/classnames/index.js
|
|
75
75
|
var require_classnames = __commonJS({
|
|
76
|
-
"../../node_modules/classnames/index.js"(exports2, module2) {
|
|
76
|
+
"../../node_modules/.pnpm/classnames@2.5.1/node_modules/classnames/index.js"(exports2, module2) {
|
|
77
77
|
"use strict";
|
|
78
78
|
init_react_import();
|
|
79
79
|
(function() {
|
|
@@ -133,9 +133,9 @@ var require_classnames = __commonJS({
|
|
|
133
133
|
}
|
|
134
134
|
});
|
|
135
135
|
|
|
136
|
-
// ../../node_modules/flat/index.js
|
|
136
|
+
// ../../node_modules/.pnpm/flat@5.0.2/node_modules/flat/index.js
|
|
137
137
|
var require_flat = __commonJS({
|
|
138
|
-
"../../node_modules/flat/index.js"(exports2, module2) {
|
|
138
|
+
"../../node_modules/.pnpm/flat@5.0.2/node_modules/flat/index.js"(exports2, module2) {
|
|
139
139
|
"use strict";
|
|
140
140
|
init_react_import();
|
|
141
141
|
module2.exports = flatten2;
|
|
@@ -344,25 +344,25 @@ var getFrame = () => {
|
|
|
344
344
|
return (frameEl == null ? void 0 : frameEl.ownerDocument) || document;
|
|
345
345
|
};
|
|
346
346
|
|
|
347
|
-
// ../../node_modules/lucide-react/dist/esm/lucide-react.js
|
|
347
|
+
// ../../node_modules/.pnpm/lucide-react@0.468.0_react@19.2.6/node_modules/lucide-react/dist/esm/lucide-react.js
|
|
348
348
|
init_react_import();
|
|
349
349
|
|
|
350
|
-
// ../../node_modules/lucide-react/dist/esm/createLucideIcon.js
|
|
350
|
+
// ../../node_modules/.pnpm/lucide-react@0.468.0_react@19.2.6/node_modules/lucide-react/dist/esm/createLucideIcon.js
|
|
351
351
|
init_react_import();
|
|
352
352
|
var import_react3 = require("react");
|
|
353
353
|
|
|
354
|
-
// ../../node_modules/lucide-react/dist/esm/shared/src/utils.js
|
|
354
|
+
// ../../node_modules/.pnpm/lucide-react@0.468.0_react@19.2.6/node_modules/lucide-react/dist/esm/shared/src/utils.js
|
|
355
355
|
init_react_import();
|
|
356
356
|
var toKebabCase = (string) => string.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase();
|
|
357
357
|
var mergeClasses = (...classes) => classes.filter((className, index, array) => {
|
|
358
358
|
return Boolean(className) && className.trim() !== "" && array.indexOf(className) === index;
|
|
359
359
|
}).join(" ").trim();
|
|
360
360
|
|
|
361
|
-
// ../../node_modules/lucide-react/dist/esm/Icon.js
|
|
361
|
+
// ../../node_modules/.pnpm/lucide-react@0.468.0_react@19.2.6/node_modules/lucide-react/dist/esm/Icon.js
|
|
362
362
|
init_react_import();
|
|
363
363
|
var import_react2 = require("react");
|
|
364
364
|
|
|
365
|
-
// ../../node_modules/lucide-react/dist/esm/defaultAttributes.js
|
|
365
|
+
// ../../node_modules/.pnpm/lucide-react@0.468.0_react@19.2.6/node_modules/lucide-react/dist/esm/defaultAttributes.js
|
|
366
366
|
init_react_import();
|
|
367
367
|
var defaultAttributes = {
|
|
368
368
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -376,7 +376,7 @@ var defaultAttributes = {
|
|
|
376
376
|
strokeLinejoin: "round"
|
|
377
377
|
};
|
|
378
378
|
|
|
379
|
-
// ../../node_modules/lucide-react/dist/esm/Icon.js
|
|
379
|
+
// ../../node_modules/.pnpm/lucide-react@0.468.0_react@19.2.6/node_modules/lucide-react/dist/esm/Icon.js
|
|
380
380
|
var Icon = (0, import_react2.forwardRef)(
|
|
381
381
|
(_a, ref) => {
|
|
382
382
|
var _b = _a, {
|
|
@@ -415,7 +415,7 @@ var Icon = (0, import_react2.forwardRef)(
|
|
|
415
415
|
}
|
|
416
416
|
);
|
|
417
417
|
|
|
418
|
-
// ../../node_modules/lucide-react/dist/esm/createLucideIcon.js
|
|
418
|
+
// ../../node_modules/.pnpm/lucide-react@0.468.0_react@19.2.6/node_modules/lucide-react/dist/esm/createLucideIcon.js
|
|
419
419
|
var createLucideIcon = (iconName, iconNode) => {
|
|
420
420
|
const Component = (0, import_react3.forwardRef)(
|
|
421
421
|
(_a, ref) => {
|
|
@@ -431,7 +431,7 @@ var createLucideIcon = (iconName, iconNode) => {
|
|
|
431
431
|
return Component;
|
|
432
432
|
};
|
|
433
433
|
|
|
434
|
-
// ../../node_modules/lucide-react/dist/esm/icons/heading-1.js
|
|
434
|
+
// ../../node_modules/.pnpm/lucide-react@0.468.0_react@19.2.6/node_modules/lucide-react/dist/esm/icons/heading-1.js
|
|
435
435
|
init_react_import();
|
|
436
436
|
var Heading1 = createLucideIcon("Heading1", [
|
|
437
437
|
["path", { d: "M4 12h8", key: "17cfdx" }],
|
|
@@ -581,7 +581,7 @@ var defaultViewports = [
|
|
|
581
581
|
{ width: "100%", height: "auto", icon: "FullWidth", label: "Full-width" }
|
|
582
582
|
];
|
|
583
583
|
|
|
584
|
-
// ../../node_modules/zustand/esm/vanilla.mjs
|
|
584
|
+
// ../../node_modules/.pnpm/zustand@5.0.13_@types+react@19.2.14_react@19.2.6_use-sync-external-store@1.6.0_react@19.2.6_/node_modules/zustand/esm/vanilla.mjs
|
|
585
585
|
init_react_import();
|
|
586
586
|
var createStoreImpl = (createState) => {
|
|
587
587
|
let state;
|
|
@@ -606,7 +606,7 @@ var createStoreImpl = (createState) => {
|
|
|
606
606
|
};
|
|
607
607
|
var createStore = ((createState) => createState ? createStoreImpl(createState) : createStoreImpl);
|
|
608
608
|
|
|
609
|
-
// ../../node_modules/zustand/esm/react.mjs
|
|
609
|
+
// ../../node_modules/.pnpm/zustand@5.0.13_@types+react@19.2.14_react@19.2.6_use-sync-external-store@1.6.0_react@19.2.6_/node_modules/zustand/esm/react.mjs
|
|
610
610
|
init_react_import();
|
|
611
611
|
var import_react4 = __toESM(require("react"), 1);
|
|
612
612
|
var identity = (arg) => arg;
|
|
@@ -627,7 +627,7 @@ var createImpl = (createState) => {
|
|
|
627
627
|
};
|
|
628
628
|
var create = ((createState) => createState ? createImpl(createState) : createImpl);
|
|
629
629
|
|
|
630
|
-
// ../../node_modules/zustand/esm/middleware.mjs
|
|
630
|
+
// ../../node_modules/.pnpm/zustand@5.0.13_@types+react@19.2.14_react@19.2.6_use-sync-external-store@1.6.0_react@19.2.6_/node_modules/zustand/esm/middleware.mjs
|
|
631
631
|
init_react_import();
|
|
632
632
|
var subscribeWithSelectorImpl = (fn) => (set, get, api) => {
|
|
633
633
|
const origSubscribe = api.subscribe;
|
package/dist/index.mjs
CHANGED
|
@@ -64,9 +64,9 @@ var init_react_import = __esm({
|
|
|
64
64
|
}
|
|
65
65
|
});
|
|
66
66
|
|
|
67
|
-
// ../../node_modules/classnames/index.js
|
|
67
|
+
// ../../node_modules/.pnpm/classnames@2.5.1/node_modules/classnames/index.js
|
|
68
68
|
var require_classnames = __commonJS({
|
|
69
|
-
"../../node_modules/classnames/index.js"(exports, module) {
|
|
69
|
+
"../../node_modules/.pnpm/classnames@2.5.1/node_modules/classnames/index.js"(exports, module) {
|
|
70
70
|
"use strict";
|
|
71
71
|
init_react_import();
|
|
72
72
|
(function() {
|
|
@@ -126,9 +126,9 @@ var require_classnames = __commonJS({
|
|
|
126
126
|
}
|
|
127
127
|
});
|
|
128
128
|
|
|
129
|
-
// ../../node_modules/flat/index.js
|
|
129
|
+
// ../../node_modules/.pnpm/flat@5.0.2/node_modules/flat/index.js
|
|
130
130
|
var require_flat = __commonJS({
|
|
131
|
-
"../../node_modules/flat/index.js"(exports, module) {
|
|
131
|
+
"../../node_modules/.pnpm/flat@5.0.2/node_modules/flat/index.js"(exports, module) {
|
|
132
132
|
"use strict";
|
|
133
133
|
init_react_import();
|
|
134
134
|
module.exports = flatten2;
|
|
@@ -332,25 +332,25 @@ var getFrame = () => {
|
|
|
332
332
|
return (frameEl == null ? void 0 : frameEl.ownerDocument) || document;
|
|
333
333
|
};
|
|
334
334
|
|
|
335
|
-
// ../../node_modules/lucide-react/dist/esm/lucide-react.js
|
|
335
|
+
// ../../node_modules/.pnpm/lucide-react@0.468.0_react@19.2.6/node_modules/lucide-react/dist/esm/lucide-react.js
|
|
336
336
|
init_react_import();
|
|
337
337
|
|
|
338
|
-
// ../../node_modules/lucide-react/dist/esm/createLucideIcon.js
|
|
338
|
+
// ../../node_modules/.pnpm/lucide-react@0.468.0_react@19.2.6/node_modules/lucide-react/dist/esm/createLucideIcon.js
|
|
339
339
|
init_react_import();
|
|
340
340
|
import { forwardRef as forwardRef2, createElement as createElement2 } from "react";
|
|
341
341
|
|
|
342
|
-
// ../../node_modules/lucide-react/dist/esm/shared/src/utils.js
|
|
342
|
+
// ../../node_modules/.pnpm/lucide-react@0.468.0_react@19.2.6/node_modules/lucide-react/dist/esm/shared/src/utils.js
|
|
343
343
|
init_react_import();
|
|
344
344
|
var toKebabCase = (string) => string.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase();
|
|
345
345
|
var mergeClasses = (...classes) => classes.filter((className, index, array) => {
|
|
346
346
|
return Boolean(className) && className.trim() !== "" && array.indexOf(className) === index;
|
|
347
347
|
}).join(" ").trim();
|
|
348
348
|
|
|
349
|
-
// ../../node_modules/lucide-react/dist/esm/Icon.js
|
|
349
|
+
// ../../node_modules/.pnpm/lucide-react@0.468.0_react@19.2.6/node_modules/lucide-react/dist/esm/Icon.js
|
|
350
350
|
init_react_import();
|
|
351
351
|
import { forwardRef, createElement } from "react";
|
|
352
352
|
|
|
353
|
-
// ../../node_modules/lucide-react/dist/esm/defaultAttributes.js
|
|
353
|
+
// ../../node_modules/.pnpm/lucide-react@0.468.0_react@19.2.6/node_modules/lucide-react/dist/esm/defaultAttributes.js
|
|
354
354
|
init_react_import();
|
|
355
355
|
var defaultAttributes = {
|
|
356
356
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -364,7 +364,7 @@ var defaultAttributes = {
|
|
|
364
364
|
strokeLinejoin: "round"
|
|
365
365
|
};
|
|
366
366
|
|
|
367
|
-
// ../../node_modules/lucide-react/dist/esm/Icon.js
|
|
367
|
+
// ../../node_modules/.pnpm/lucide-react@0.468.0_react@19.2.6/node_modules/lucide-react/dist/esm/Icon.js
|
|
368
368
|
var Icon = forwardRef(
|
|
369
369
|
(_a, ref) => {
|
|
370
370
|
var _b = _a, {
|
|
@@ -403,7 +403,7 @@ var Icon = forwardRef(
|
|
|
403
403
|
}
|
|
404
404
|
);
|
|
405
405
|
|
|
406
|
-
// ../../node_modules/lucide-react/dist/esm/createLucideIcon.js
|
|
406
|
+
// ../../node_modules/.pnpm/lucide-react@0.468.0_react@19.2.6/node_modules/lucide-react/dist/esm/createLucideIcon.js
|
|
407
407
|
var createLucideIcon = (iconName, iconNode) => {
|
|
408
408
|
const Component = forwardRef2(
|
|
409
409
|
(_a, ref) => {
|
|
@@ -419,7 +419,7 @@ var createLucideIcon = (iconName, iconNode) => {
|
|
|
419
419
|
return Component;
|
|
420
420
|
};
|
|
421
421
|
|
|
422
|
-
// ../../node_modules/lucide-react/dist/esm/icons/heading-1.js
|
|
422
|
+
// ../../node_modules/.pnpm/lucide-react@0.468.0_react@19.2.6/node_modules/lucide-react/dist/esm/icons/heading-1.js
|
|
423
423
|
init_react_import();
|
|
424
424
|
var Heading1 = createLucideIcon("Heading1", [
|
|
425
425
|
["path", { d: "M4 12h8", key: "17cfdx" }],
|
|
@@ -569,7 +569,7 @@ var defaultViewports = [
|
|
|
569
569
|
{ width: "100%", height: "auto", icon: "FullWidth", label: "Full-width" }
|
|
570
570
|
];
|
|
571
571
|
|
|
572
|
-
// ../../node_modules/zustand/esm/vanilla.mjs
|
|
572
|
+
// ../../node_modules/.pnpm/zustand@5.0.13_@types+react@19.2.14_react@19.2.6_use-sync-external-store@1.6.0_react@19.2.6_/node_modules/zustand/esm/vanilla.mjs
|
|
573
573
|
init_react_import();
|
|
574
574
|
var createStoreImpl = (createState) => {
|
|
575
575
|
let state;
|
|
@@ -594,7 +594,7 @@ var createStoreImpl = (createState) => {
|
|
|
594
594
|
};
|
|
595
595
|
var createStore = ((createState) => createState ? createStoreImpl(createState) : createStoreImpl);
|
|
596
596
|
|
|
597
|
-
// ../../node_modules/zustand/esm/react.mjs
|
|
597
|
+
// ../../node_modules/.pnpm/zustand@5.0.13_@types+react@19.2.14_react@19.2.6_use-sync-external-store@1.6.0_react@19.2.6_/node_modules/zustand/esm/react.mjs
|
|
598
598
|
init_react_import();
|
|
599
599
|
import React2 from "react";
|
|
600
600
|
var identity = (arg) => arg;
|
|
@@ -615,7 +615,7 @@ var createImpl = (createState) => {
|
|
|
615
615
|
};
|
|
616
616
|
var create = ((createState) => createState ? createImpl(createState) : createImpl);
|
|
617
617
|
|
|
618
|
-
// ../../node_modules/zustand/esm/middleware.mjs
|
|
618
|
+
// ../../node_modules/.pnpm/zustand@5.0.13_@types+react@19.2.14_react@19.2.6_use-sync-external-store@1.6.0_react@19.2.6_/node_modules/zustand/esm/middleware.mjs
|
|
619
619
|
init_react_import();
|
|
620
620
|
var subscribeWithSelectorImpl = (fn) => (set, get, api) => {
|
|
621
621
|
const origSubscribe = api.subscribe;
|
package/package.json
CHANGED
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@puckeditor/plugin-heading-analyzer",
|
|
3
|
-
"version": "0.24.0-canary.
|
|
3
|
+
"version": "0.24.0-canary.ea71a404",
|
|
4
4
|
"author": "Chris Villa <chris@puckeditor.com>",
|
|
5
|
-
"repository":
|
|
5
|
+
"repository": {
|
|
6
|
+
"type": "git",
|
|
7
|
+
"url": "puckeditor/puck"
|
|
8
|
+
},
|
|
6
9
|
"bugs": "https://github.com/puckeditor/puck/issues",
|
|
7
10
|
"homepage": "https://puckeditor.com",
|
|
8
11
|
"private": false,
|
|
@@ -16,24 +19,19 @@
|
|
|
16
19
|
"./dist/index.css": "./dist/index.css"
|
|
17
20
|
},
|
|
18
21
|
"license": "MIT",
|
|
19
|
-
"scripts": {
|
|
20
|
-
"lint": "eslint \"**/*.ts*\"",
|
|
21
|
-
"build": "rm -rf dist && tsup index.ts",
|
|
22
|
-
"prepare": "yarn build"
|
|
23
|
-
},
|
|
24
22
|
"files": [
|
|
25
23
|
"dist"
|
|
26
24
|
],
|
|
27
25
|
"devDependencies": {
|
|
28
|
-
"@puckeditor/core": "^0.24.0-canary.
|
|
26
|
+
"@puckeditor/core": "^0.24.0-canary.ea71a404",
|
|
29
27
|
"@types/minimatch": "3.0.5",
|
|
30
28
|
"@types/react": "^19.0.1",
|
|
31
29
|
"@types/react-dom": "^19.0.2",
|
|
32
30
|
"eslint": "^9.0.0",
|
|
33
|
-
"eslint-config-custom": "
|
|
34
|
-
"tsconfig": "
|
|
31
|
+
"eslint-config-custom": "0.0.0",
|
|
32
|
+
"tsconfig": "0.0.0",
|
|
35
33
|
"tsup": "^8.2.4",
|
|
36
|
-
"tsup-config": "
|
|
34
|
+
"tsup-config": "0.0.0",
|
|
37
35
|
"typescript": "^5.5.4"
|
|
38
36
|
},
|
|
39
37
|
"dependencies": {
|
|
@@ -41,5 +39,9 @@
|
|
|
41
39
|
},
|
|
42
40
|
"peerDependencies": {
|
|
43
41
|
"react": "^17.0.0 || ^18.0.0 || ^19.0.0"
|
|
42
|
+
},
|
|
43
|
+
"scripts": {
|
|
44
|
+
"lint": "eslint \"**/*.ts*\"",
|
|
45
|
+
"build": "rm -rf dist && tsup index.ts"
|
|
44
46
|
}
|
|
45
|
-
}
|
|
47
|
+
}
|