@measured/puck 0.17.0-canary.35170f8 → 0.17.0-canary.361e5f9
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.d.mts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +453 -313
- package/dist/index.mjs +318 -178
- package/dist/{resolve-all-data-Ch-Pcasj.d.mts → resolve-all-data-zN5E6nBu.d.mts} +2 -1
- package/dist/{resolve-all-data-Ch-Pcasj.d.ts → resolve-all-data-zN5E6nBu.d.ts} +2 -1
- package/dist/rsc.d.mts +2 -2
- package/dist/rsc.d.ts +2 -2
- package/package.json +12 -12
@@ -1,4 +1,4 @@
|
|
1
|
-
import { CSSProperties, ReactElement, ReactNode } from 'react';
|
1
|
+
import { CSSProperties, ReactElement, JSX, ReactNode } from 'react';
|
2
2
|
|
3
3
|
type ItemSelector = {
|
4
4
|
index: number;
|
@@ -145,6 +145,7 @@ type ComponentConfig<RenderProps extends DefaultComponentProps = DefaultComponen
|
|
145
145
|
lastFields: Fields<FieldProps>;
|
146
146
|
lastData: DataShape | null;
|
147
147
|
appState: AppState;
|
148
|
+
parent: ComponentData | null;
|
148
149
|
}) => Promise<Fields<FieldProps>> | Fields<FieldProps>;
|
149
150
|
resolveData?: (data: DataShape, params: {
|
150
151
|
changed: Partial<Record<keyof FieldProps, boolean>>;
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { CSSProperties, ReactElement, ReactNode } from 'react';
|
1
|
+
import { CSSProperties, ReactElement, JSX, ReactNode } from 'react';
|
2
2
|
|
3
3
|
type ItemSelector = {
|
4
4
|
index: number;
|
@@ -145,6 +145,7 @@ type ComponentConfig<RenderProps extends DefaultComponentProps = DefaultComponen
|
|
145
145
|
lastFields: Fields<FieldProps>;
|
146
146
|
lastData: DataShape | null;
|
147
147
|
appState: AppState;
|
148
|
+
parent: ComponentData | null;
|
148
149
|
}) => Promise<Fields<FieldProps>> | Fields<FieldProps>;
|
149
150
|
resolveData?: (data: DataShape, params: {
|
150
151
|
changed: Partial<Record<keyof FieldProps, boolean>>;
|
package/dist/rsc.d.mts
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
2
|
-
import { C as Config, D as Data } from './resolve-all-data-
|
3
|
-
export { a4 as resolveAllData } from './resolve-all-data-
|
2
|
+
import { C as Config, D as Data } from './resolve-all-data-zN5E6nBu.mjs';
|
3
|
+
export { a4 as resolveAllData } from './resolve-all-data-zN5E6nBu.mjs';
|
4
4
|
import 'react';
|
5
5
|
|
6
6
|
declare function Render<UserConfig extends Config = Config>({ config, data, }: {
|
package/dist/rsc.d.ts
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
2
|
-
import { C as Config, D as Data } from './resolve-all-data-
|
3
|
-
export { a4 as resolveAllData } from './resolve-all-data-
|
2
|
+
import { C as Config, D as Data } from './resolve-all-data-zN5E6nBu.js';
|
3
|
+
export { a4 as resolveAllData } from './resolve-all-data-zN5E6nBu.js';
|
4
4
|
import 'react';
|
5
5
|
|
6
6
|
declare function Render<UserConfig extends Config = Config>({ config, data, }: {
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@measured/puck",
|
3
|
-
"version": "0.17.0-canary.
|
3
|
+
"version": "0.17.0-canary.361e5f9",
|
4
4
|
"author": "Measured Corporation Ltd <hello@measured.co>",
|
5
5
|
"repository": "measuredco/puck",
|
6
6
|
"bugs": "https://github.com/measuredco/puck/issues",
|
@@ -11,20 +11,20 @@
|
|
11
11
|
"exports": {
|
12
12
|
".": {
|
13
13
|
"react-server": {
|
14
|
+
"types": "./dist/rsc.d.ts",
|
14
15
|
"import": "./dist/rsc.mjs",
|
15
|
-
"require": "./dist/rsc.js"
|
16
|
-
"types": "./dist/rsc.d.ts"
|
16
|
+
"require": "./dist/rsc.js"
|
17
17
|
},
|
18
18
|
"default": {
|
19
|
+
"types": "./dist/index.d.ts",
|
19
20
|
"import": "./dist/index.mjs",
|
20
|
-
"require": "./dist/index.js"
|
21
|
-
"types": "./dist/index.d.ts"
|
21
|
+
"require": "./dist/index.js"
|
22
22
|
}
|
23
23
|
},
|
24
24
|
"./rsc": {
|
25
|
+
"types": "./dist/rsc.d.ts",
|
25
26
|
"import": "./dist/rsc.mjs",
|
26
|
-
"require": "./dist/rsc.js"
|
27
|
-
"types": "./dist/rsc.d.ts"
|
27
|
+
"require": "./dist/rsc.js"
|
28
28
|
},
|
29
29
|
"./puck.css": "./dist/index.css",
|
30
30
|
"./dist/index.css": "./dist/index.css"
|
@@ -48,12 +48,12 @@
|
|
48
48
|
"dist"
|
49
49
|
],
|
50
50
|
"devDependencies": {
|
51
|
-
"@testing-library/react": "^
|
51
|
+
"@testing-library/react": "^16.1.0",
|
52
52
|
"@types/deep-diff": "^1.0.3",
|
53
53
|
"@types/jest": "^29.5.4",
|
54
54
|
"@types/object-hash": "^3.0.6",
|
55
|
-
"@types/react": "^
|
56
|
-
"@types/react-dom": "^
|
55
|
+
"@types/react": "^19.0.1",
|
56
|
+
"@types/react-dom": "^19.0.2",
|
57
57
|
"@types/ua-parser-js": "^0.7.39",
|
58
58
|
"@types/uuid": "^10.0.0",
|
59
59
|
"css-box-model": "^1.2.1",
|
@@ -61,7 +61,7 @@
|
|
61
61
|
"eslint-config-custom": "*",
|
62
62
|
"jest": "^29.6.4",
|
63
63
|
"jest-environment-jsdom": "^29.6.4",
|
64
|
-
"lucide-react": "^0.
|
64
|
+
"lucide-react": "^0.468.0",
|
65
65
|
"ts-jest": "^29.2.4",
|
66
66
|
"tsconfig": "*",
|
67
67
|
"tsup": "^8.2.4",
|
@@ -78,6 +78,6 @@
|
|
78
78
|
"uuid": "^9.0.1"
|
79
79
|
},
|
80
80
|
"peerDependencies": {
|
81
|
-
"react": "^17.0.0 || ^18.0.0"
|
81
|
+
"react": "^17.0.0 || ^18.0.0 || ^19.0.0"
|
82
82
|
}
|
83
83
|
}
|