@measured/puck-plugin-emotion-cache 0.21.0-canary.15fe8d60 → 0.21.0-canary.1b69a8f3
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 +4 -1
- package/dist/index.d.ts +4 -1
- package/package.json +2 -2
package/dist/index.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ReactElement, CSSProperties, ReactNode, JSX } from 'react';
|
|
1
|
+
import { ReactElement, CSSProperties, ElementType, ReactNode, JSX } from 'react';
|
|
2
2
|
|
|
3
3
|
type ItemSelector = {
|
|
4
4
|
index: number;
|
|
@@ -118,6 +118,7 @@ interface CustomField<Value extends any> extends BaseField {
|
|
|
118
118
|
type: "custom";
|
|
119
119
|
render: CustomFieldRender<Value>;
|
|
120
120
|
contentEditable?: boolean;
|
|
121
|
+
key?: string;
|
|
121
122
|
}
|
|
122
123
|
interface SlotField extends BaseField {
|
|
123
124
|
type: "slot";
|
|
@@ -148,6 +149,7 @@ type DropZoneProps = {
|
|
|
148
149
|
minEmptyHeight?: number;
|
|
149
150
|
className?: string;
|
|
150
151
|
collisionAxis?: DragAxis;
|
|
152
|
+
as?: ElementType;
|
|
151
153
|
};
|
|
152
154
|
|
|
153
155
|
type PuckContext = {
|
|
@@ -236,6 +238,7 @@ UserField extends BaseField = {}> = {
|
|
|
236
238
|
permissions: Partial<Permissions>;
|
|
237
239
|
appState: AppState;
|
|
238
240
|
lastData: DataShape | null;
|
|
241
|
+
parent: ComponentData | null;
|
|
239
242
|
}) => Promise<Partial<Permissions>> | Partial<Permissions>;
|
|
240
243
|
metadata?: ComponentMetadata;
|
|
241
244
|
} & ComponentConfigExtensions;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ReactElement, CSSProperties, ReactNode, JSX } from 'react';
|
|
1
|
+
import { ReactElement, CSSProperties, ElementType, ReactNode, JSX } from 'react';
|
|
2
2
|
|
|
3
3
|
type ItemSelector = {
|
|
4
4
|
index: number;
|
|
@@ -118,6 +118,7 @@ interface CustomField<Value extends any> extends BaseField {
|
|
|
118
118
|
type: "custom";
|
|
119
119
|
render: CustomFieldRender<Value>;
|
|
120
120
|
contentEditable?: boolean;
|
|
121
|
+
key?: string;
|
|
121
122
|
}
|
|
122
123
|
interface SlotField extends BaseField {
|
|
123
124
|
type: "slot";
|
|
@@ -148,6 +149,7 @@ type DropZoneProps = {
|
|
|
148
149
|
minEmptyHeight?: number;
|
|
149
150
|
className?: string;
|
|
150
151
|
collisionAxis?: DragAxis;
|
|
152
|
+
as?: ElementType;
|
|
151
153
|
};
|
|
152
154
|
|
|
153
155
|
type PuckContext = {
|
|
@@ -236,6 +238,7 @@ UserField extends BaseField = {}> = {
|
|
|
236
238
|
permissions: Partial<Permissions>;
|
|
237
239
|
appState: AppState;
|
|
238
240
|
lastData: DataShape | null;
|
|
241
|
+
parent: ComponentData | null;
|
|
239
242
|
}) => Promise<Partial<Permissions>> | Partial<Permissions>;
|
|
240
243
|
metadata?: ComponentMetadata;
|
|
241
244
|
} & ComponentConfigExtensions;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@measured/puck-plugin-emotion-cache",
|
|
3
|
-
"version": "0.21.0-canary.
|
|
3
|
+
"version": "0.21.0-canary.1b69a8f3",
|
|
4
4
|
"author": "Chris Villa <chris@puckeditor.com>",
|
|
5
5
|
"repository": "measuredco/puck",
|
|
6
6
|
"bugs": "https://github.com/measuredco/puck/issues",
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
],
|
|
25
25
|
"devDependencies": {
|
|
26
26
|
"@emotion/react": "^11.13.3",
|
|
27
|
-
"@measured/puck": "^0.21.0-canary.
|
|
27
|
+
"@measured/puck": "^0.21.0-canary.1b69a8f3",
|
|
28
28
|
"@types/minimatch": "3.0.5",
|
|
29
29
|
"@types/react": "^19.0.1",
|
|
30
30
|
"@types/react-dom": "^19.0.2",
|