@measured/puck 0.21.0-canary.ec77dd9f → 0.21.0-canary.ece26d91
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/Editor-F2LSS6SE.css +403 -0
- package/dist/Editor-O447AVCX.mjs +204 -0
- package/dist/Render-OFE6QLI2.mjs +55 -0
- package/dist/Render-QEMDIDQC.css +101 -0
- package/dist/{walk-tree-CkSoNBF7.d.mts → actions-ONhOkrvf.d.mts} +208 -33
- package/dist/{walk-tree-CkSoNBF7.d.ts → actions-ONhOkrvf.d.ts} +208 -33
- package/dist/chunk-2Q4PACDA.mjs +111 -0
- package/dist/chunk-62AAYNXG.mjs +63 -0
- package/dist/chunk-BSDEIOEK.mjs +706 -0
- package/dist/chunk-CSSRLPHM.mjs +11 -0
- package/dist/chunk-DAQLMM2T.mjs +1722 -0
- package/dist/chunk-M6W7YEVX.mjs +95 -0
- package/dist/chunk-NLUHDYVR.mjs +416 -0
- package/dist/chunk-PLXSMBAA.mjs +53 -0
- package/dist/chunk-QAWJTCV5.mjs +33 -0
- package/dist/chunk-QBGM4ELA.mjs +528 -0
- package/dist/{chunk-NW2GGRCZ.mjs → chunk-QBJ2LDJB.mjs} +1048 -2778
- package/dist/chunk-T3WX7XJ6.mjs +132 -0
- package/dist/chunk-V5I7CVLT.mjs +103 -0
- package/dist/chunk-Y2EFNT5P.mjs +108 -0
- package/dist/chunk-Y656T6AQ.mjs +419 -0
- package/dist/full-2GJTAAZE.css +301 -0
- package/dist/full-BEMDJKDS.mjs +93 -0
- package/dist/index-BEoNHRI1.d.ts +116 -0
- package/dist/index-DfxZ7tZF.d.mts +116 -0
- package/dist/index.css +278 -22
- package/dist/index.d.mts +94 -111
- package/dist/index.d.ts +94 -111
- package/dist/index.js +5812 -2550
- package/dist/index.mjs +28 -9
- package/dist/internal.d.mts +27 -0
- package/dist/internal.d.ts +27 -0
- package/dist/internal.js +908 -0
- package/dist/internal.mjs +13 -0
- package/dist/loaded-JU3A7Y4L.mjs +57 -0
- package/dist/loaded-N3FYGF2Y.mjs +57 -0
- package/dist/loaded-OBY7OMS6.mjs +60 -0
- package/dist/loaded-RVWBFK7L.css +87 -0
- package/dist/no-external.css +278 -22
- package/dist/no-external.d.mts +19 -2
- package/dist/no-external.d.ts +19 -2
- package/dist/no-external.js +5812 -2550
- package/dist/no-external.mjs +28 -9
- package/dist/rsc.css +101 -0
- package/dist/rsc.d.mts +17 -2
- package/dist/rsc.d.ts +17 -2
- package/dist/rsc.js +409 -22
- package/dist/rsc.mjs +18 -9
- package/dist/walk-tree-CdriEzFJ.d.mts +29 -0
- package/dist/walk-tree-DHbAZ4wF.d.ts +29 -0
- package/package.json +29 -2
- package/dist/chunk-TC25DCTQ.mjs +0 -965
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { C as Config, D as Data, W as WithId, U as UserGenerics, b as Content, c as ComponentData, d as DefaultComponents, e as DefaultComponentProps, f as DefaultRootFieldProps, M as Metadata, R as RootData } from './actions-ONhOkrvf.js';
|
|
2
|
+
|
|
3
|
+
type MigrationOptions<UserConfig extends Config> = {
|
|
4
|
+
migrateDynamicZonesForComponent?: {
|
|
5
|
+
[ComponentName in keyof UserConfig["components"]]: (props: WithId<UserGenerics<UserConfig>["UserProps"][ComponentName]>, zones: Record<string, Content>) => ComponentData["props"];
|
|
6
|
+
};
|
|
7
|
+
};
|
|
8
|
+
declare function migrate<UserConfig extends Config = Config>(data: Data, config?: UserConfig, migrationOptions?: MigrationOptions<UserConfig>): Data;
|
|
9
|
+
|
|
10
|
+
type PropTransform<Components extends DefaultComponents = DefaultComponents, RootProps extends DefaultComponentProps = DefaultRootFieldProps> = Partial<{
|
|
11
|
+
[ComponentName in keyof Components]: (props: Components[ComponentName] & {
|
|
12
|
+
[key: string]: any;
|
|
13
|
+
}) => Components[ComponentName];
|
|
14
|
+
} & {
|
|
15
|
+
root: (props: RootProps & {
|
|
16
|
+
[key: string]: any;
|
|
17
|
+
}) => RootProps;
|
|
18
|
+
}>;
|
|
19
|
+
declare function transformProps<Components extends DefaultComponents = DefaultComponents, RootProps extends DefaultComponentProps = DefaultRootFieldProps>(data: Partial<Data>, propTransforms: PropTransform<Components, RootProps>, config?: Config): Data;
|
|
20
|
+
|
|
21
|
+
declare function resolveAllData<Components extends DefaultComponents = DefaultComponents, RootProps extends Record<string, any> = DefaultRootFieldProps>(data: Partial<Data>, config: Config, metadata?: Metadata, onResolveStart?: (item: ComponentData) => void, onResolveEnd?: (item: ComponentData) => void): Promise<Data<Components, RootProps>>;
|
|
22
|
+
|
|
23
|
+
type WalkTreeOptions = {
|
|
24
|
+
parentId: string;
|
|
25
|
+
propName: string;
|
|
26
|
+
};
|
|
27
|
+
declare function walkTree<T extends ComponentData | RootData | G["UserData"], UserConfig extends Config = Config, G extends UserGenerics<UserConfig> = UserGenerics<UserConfig>>(data: T, config: UserConfig, callbackFn: (data: Content, options: WalkTreeOptions) => Content | null | void): T;
|
|
28
|
+
|
|
29
|
+
export { migrate as m, resolveAllData as r, transformProps as t, walkTree as w };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@measured/puck",
|
|
3
|
-
"version": "0.21.0-canary.
|
|
3
|
+
"version": "0.21.0-canary.ece26d91",
|
|
4
4
|
"description": "The open-source visual editor for React",
|
|
5
5
|
"author": "Chris Villa <chris@puckeditor.com>",
|
|
6
6
|
"repository": "measuredco/puck",
|
|
@@ -45,6 +45,11 @@
|
|
|
45
45
|
"import": "./dist/rsc.mjs",
|
|
46
46
|
"require": "./dist/rsc.js"
|
|
47
47
|
},
|
|
48
|
+
"./internal": {
|
|
49
|
+
"types": "./dist/internal.d.ts",
|
|
50
|
+
"import": "./dist/internal.mjs",
|
|
51
|
+
"require": "./dist/internal.js"
|
|
52
|
+
},
|
|
48
53
|
"./puck.css": "./dist/index.css",
|
|
49
54
|
"./no-external.css": "./dist/no-external.css",
|
|
50
55
|
"./dist/index.css": "./dist/index.css",
|
|
@@ -60,7 +65,7 @@
|
|
|
60
65
|
"license": "MIT",
|
|
61
66
|
"scripts": {
|
|
62
67
|
"lint": "eslint \"**/*.ts*\"",
|
|
63
|
-
"build": "rm -rf dist && tsup bundle/index.ts bundle/rsc.tsx bundle/no-external.ts",
|
|
68
|
+
"build": "rm -rf dist && tsup bundle/index.ts bundle/rsc.tsx bundle/no-external.ts bundle/internal.ts",
|
|
64
69
|
"test": "jest",
|
|
65
70
|
"prepare": "cp ../../README.md . && yarn build",
|
|
66
71
|
"postpublish": "rm README.md"
|
|
@@ -95,9 +100,31 @@
|
|
|
95
100
|
"dependencies": {
|
|
96
101
|
"@dnd-kit/helpers": "0.1.18",
|
|
97
102
|
"@dnd-kit/react": "0.1.18",
|
|
103
|
+
"@radix-ui/react-popover": "^1.1.15",
|
|
104
|
+
"@tiptap/core": "^3.11.1",
|
|
105
|
+
"@tiptap/extension-blockquote": "^3.11.1",
|
|
106
|
+
"@tiptap/extension-bold": "^3.11.1",
|
|
107
|
+
"@tiptap/extension-code": "^3.11.1",
|
|
108
|
+
"@tiptap/extension-code-block": "^3.11.1",
|
|
109
|
+
"@tiptap/extension-document": "^3.11.1",
|
|
110
|
+
"@tiptap/extension-hard-break": "^3.11.1",
|
|
111
|
+
"@tiptap/extension-heading": "^3.11.1",
|
|
112
|
+
"@tiptap/extension-horizontal-rule": "^3.11.1",
|
|
113
|
+
"@tiptap/extension-italic": "^3.11.1",
|
|
114
|
+
"@tiptap/extension-link": "^3.11.1",
|
|
115
|
+
"@tiptap/extension-list": "^3.11.1",
|
|
116
|
+
"@tiptap/extension-paragraph": "^3.11.1",
|
|
117
|
+
"@tiptap/extension-strike": "^3.11.1",
|
|
118
|
+
"@tiptap/extension-text": "^3.11.1",
|
|
119
|
+
"@tiptap/extension-text-align": "^3.11.1",
|
|
120
|
+
"@tiptap/extension-underline": "^3.11.1",
|
|
121
|
+
"@tiptap/html": "^3.11.1",
|
|
122
|
+
"@tiptap/pm": "^3.11.1",
|
|
123
|
+
"@tiptap/react": "^3.11.1",
|
|
98
124
|
"deep-diff": "^1.0.2",
|
|
99
125
|
"fast-equals": "5.2.2",
|
|
100
126
|
"flat": "^5.0.2",
|
|
127
|
+
"happy-dom": "^20.0.10",
|
|
101
128
|
"object-hash": "^3.0.0",
|
|
102
129
|
"react-hotkeys-hook": "^4.6.1",
|
|
103
130
|
"use-debounce": "^9.0.4",
|