@puckeditor/plugin-emotion-cache 0.22.0-canary.d4985bc0 → 0.22.0-canary.db71cea7
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 -1
- package/dist/index.d.ts +2 -1
- package/package.json +3 -3
package/dist/index.d.mts
CHANGED
|
@@ -308,7 +308,7 @@ type CustomFieldRender<Value extends any> = (props: {
|
|
|
308
308
|
name: string;
|
|
309
309
|
id: string;
|
|
310
310
|
value: Value;
|
|
311
|
-
onChange: (value: Value) => void;
|
|
311
|
+
onChange: (value: Value, uiState?: Partial<UiState>) => void;
|
|
312
312
|
readOnly?: boolean;
|
|
313
313
|
}) => ReactElement;
|
|
314
314
|
interface CustomField<Value extends any> extends BaseField {
|
|
@@ -428,6 +428,7 @@ UserField extends BaseField = {}> = {
|
|
|
428
428
|
metadata: ComponentMetadata;
|
|
429
429
|
trigger: ResolveDataTrigger;
|
|
430
430
|
parent: ComponentData | null;
|
|
431
|
+
root: RootData;
|
|
431
432
|
}) => Promise<WithPartialProps<DataShape, FieldProps>> | WithPartialProps<DataShape, FieldProps>;
|
|
432
433
|
resolvePermissions?: (data: DataShape, params: {
|
|
433
434
|
changed: Partial<Record<keyof FieldProps, boolean> & {
|
package/dist/index.d.ts
CHANGED
|
@@ -308,7 +308,7 @@ type CustomFieldRender<Value extends any> = (props: {
|
|
|
308
308
|
name: string;
|
|
309
309
|
id: string;
|
|
310
310
|
value: Value;
|
|
311
|
-
onChange: (value: Value) => void;
|
|
311
|
+
onChange: (value: Value, uiState?: Partial<UiState>) => void;
|
|
312
312
|
readOnly?: boolean;
|
|
313
313
|
}) => ReactElement;
|
|
314
314
|
interface CustomField<Value extends any> extends BaseField {
|
|
@@ -428,6 +428,7 @@ UserField extends BaseField = {}> = {
|
|
|
428
428
|
metadata: ComponentMetadata;
|
|
429
429
|
trigger: ResolveDataTrigger;
|
|
430
430
|
parent: ComponentData | null;
|
|
431
|
+
root: RootData;
|
|
431
432
|
}) => Promise<WithPartialProps<DataShape, FieldProps>> | WithPartialProps<DataShape, FieldProps>;
|
|
432
433
|
resolvePermissions?: (data: DataShape, params: {
|
|
433
434
|
changed: Partial<Record<keyof FieldProps, boolean> & {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@puckeditor/plugin-emotion-cache",
|
|
3
|
-
"version": "0.22.0-canary.
|
|
3
|
+
"version": "0.22.0-canary.db71cea7",
|
|
4
4
|
"author": "Chris Villa <chris@puckeditor.com>",
|
|
5
5
|
"repository": "puckeditor/puck",
|
|
6
6
|
"bugs": "https://github.com/puckeditor/puck/issues",
|
|
@@ -24,11 +24,11 @@
|
|
|
24
24
|
],
|
|
25
25
|
"devDependencies": {
|
|
26
26
|
"@emotion/react": "^11.13.3",
|
|
27
|
-
"@puckeditor/core": "^0.22.0-canary.
|
|
27
|
+
"@puckeditor/core": "^0.22.0-canary.db71cea7",
|
|
28
28
|
"@types/minimatch": "3.0.5",
|
|
29
29
|
"@types/react": "^19.2.7",
|
|
30
30
|
"@types/react-dom": "^19.0.2",
|
|
31
|
-
"eslint": "^
|
|
31
|
+
"eslint": "^9.0.0",
|
|
32
32
|
"eslint-config-custom": "*",
|
|
33
33
|
"tsconfig": "*",
|
|
34
34
|
"tsup": "^8.2.4",
|