@measured/puck 0.16.2-canary.cb90f5d → 0.16.3-canary.af421c6
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/{chunk-YNVK2PUD.mjs → chunk-7IH6SUIT.mjs} +1 -1
- package/dist/index.d.mts +5 -26
- package/dist/index.d.ts +5 -26
- package/dist/index.js +8 -7
- package/dist/index.mjs +8 -5
- package/dist/{resolve-all-data-CaDAfEAK.d.mts → resolve-all-data-BoWgijLi.d.mts} +1 -1
- package/dist/{resolve-all-data-CaDAfEAK.d.ts → resolve-all-data-BoWgijLi.d.ts} +1 -1
- package/dist/rsc.d.mts +2 -2
- package/dist/rsc.d.ts +2 -2
- package/dist/rsc.js +1 -1
- package/dist/rsc.mjs +1 -1
- package/package.json +1 -1
@@ -224,7 +224,7 @@ var setupZone = (data, zoneKey) => {
|
|
224
224
|
return data;
|
225
225
|
}
|
226
226
|
const newData = __spreadProps(__spreadValues({}, data), {
|
227
|
-
zones: data.zones
|
227
|
+
zones: data.zones ? __spreadValues({}, data.zones) : {}
|
228
228
|
});
|
229
229
|
newData.zones[zoneKey] = newData.zones[zoneKey] || [];
|
230
230
|
return newData;
|
package/dist/index.d.mts
CHANGED
@@ -1,5 +1,5 @@
|
|
1
|
-
import { F as
|
2
|
-
export { L as Adaptor, J as ArrayField, r as ArrayState, a2 as AsFieldProps, B as BaseData, y as BaseField, t as ComponentConfig, w as ComponentData, x as Content, X as CustomField, $ as DefaultRootProps, _ as DefaultRootRenderProps, W as ExternalField, Q as ExternalFieldWithAdaptor, p as FieldRenderFunctions, Y as Fields, q as ItemWithId, M as MappedItem, N as NumberField, K as ObjectField, n as OverrideKey, s as PuckComponent, Z as PuckContext, G as RadioField, v as RootData, R as RootDataWithProps, u as RootDataWithoutProps, S as SelectField, T as TextField, z as TextareaField, m as Viewport, a3 as WithChildren, a0 as WithId, a1 as WithPuckProps, o as overrideKeys, a4 as resolveAllData } from './resolve-all-data-
|
1
|
+
import { F as FieldProps, a as Field, C as Config, D as Data, I as ItemSelector, P as PuckAction, b as DropZoneProps, U as UserGenerics, c as UiState, O as OnAction, d as Permissions, e as Plugin, f as Overrides, V as Viewports, g as IframeConfig, h as InitialHistory, i as DefaultComponentProps, j as DefaultRootFieldProps, H as History, A as AppState, E as ExtractPropsFromConfig, k as ExtractRootPropsFromConfig, l as ComponentDataMap } from './resolve-all-data-BoWgijLi.mjs';
|
2
|
+
export { L as Adaptor, J as ArrayField, r as ArrayState, a2 as AsFieldProps, B as BaseData, y as BaseField, t as ComponentConfig, w as ComponentData, x as Content, X as CustomField, $ as DefaultRootProps, _ as DefaultRootRenderProps, W as ExternalField, Q as ExternalFieldWithAdaptor, p as FieldRenderFunctions, Y as Fields, q as ItemWithId, M as MappedItem, N as NumberField, K as ObjectField, n as OverrideKey, s as PuckComponent, Z as PuckContext, G as RadioField, v as RootData, R as RootDataWithProps, u as RootDataWithoutProps, S as SelectField, T as TextField, z as TextareaField, m as Viewport, a3 as WithChildren, a0 as WithId, a1 as WithPuckProps, o as overrideKeys, a4 as resolveAllData } from './resolve-all-data-BoWgijLi.mjs';
|
3
3
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
4
4
|
import * as react from 'react';
|
5
5
|
import { ReactNode, SyntheticEvent, ReactElement, CSSProperties } from 'react';
|
@@ -36,29 +36,8 @@ declare const FieldLabel: ({ children, icon, label, el, readOnly, className, }:
|
|
36
36
|
readOnly?: boolean;
|
37
37
|
className?: string;
|
38
38
|
}) => react_jsx_runtime.JSX.Element;
|
39
|
-
type
|
40
|
-
|
41
|
-
icon?: ReactNode;
|
42
|
-
label?: string;
|
43
|
-
el?: "label" | "div";
|
44
|
-
readOnly?: boolean;
|
45
|
-
};
|
46
|
-
declare const FieldLabelInternal: ({ children, icon, label, el, readOnly, }: FieldLabelPropsInternal) => react_jsx_runtime.JSX.Element;
|
47
|
-
type FieldPropsInternalOptional<ValueType = any, F = Field<any>> = FieldProps<ValueType, F> & {
|
48
|
-
Label?: React.FC<FieldLabelPropsInternal>;
|
49
|
-
label?: string;
|
50
|
-
name?: string;
|
51
|
-
};
|
52
|
-
type FieldPropsInternal<ValueType = any, F = Field<any>> = FieldProps<ValueType, F> & {
|
53
|
-
Label: React.FC<FieldLabelPropsInternal>;
|
54
|
-
label?: string;
|
55
|
-
id: string;
|
56
|
-
name?: string;
|
57
|
-
};
|
58
|
-
declare function AutoFieldPrivate<ValueType = any, FieldType extends Field<ValueType> = Field<ValueType>>(props: FieldPropsInternalOptional<ValueType, FieldType> & {
|
59
|
-
Label?: React.FC<FieldLabelPropsInternal>;
|
60
|
-
}): react_jsx_runtime.JSX.Element;
|
61
|
-
declare function AutoField<ValueType = any, FieldType extends Field<ValueType> = Field<ValueType>>(props: FieldProps<ValueType, FieldType>): react_jsx_runtime.JSX.Element;
|
39
|
+
type FieldNoLabel<Props extends any = any> = Omit<Field<Props>, "label">;
|
40
|
+
declare function AutoField<ValueType = any, FieldType extends FieldNoLabel<ValueType> = FieldNoLabel<ValueType>>(props: FieldProps<ValueType, FieldType>): react_jsx_runtime.JSX.Element;
|
62
41
|
|
63
42
|
declare const Button: ({ children, href, onClick, variant, type, disabled, tabIndex, newTab, fullWidth, icon, size, loading: loadingProp, }: {
|
64
43
|
children: ReactNode;
|
@@ -245,4 +224,4 @@ declare const usePuck: <UserConfig extends Config = Config>() => {
|
|
245
224
|
selectedItem: ComponentDataMap<ExtractPropsFromConfig<UserConfig>> | null;
|
246
225
|
};
|
247
226
|
|
248
|
-
export { Action, ActionBar, AppState, AutoField,
|
227
|
+
export { Action, ActionBar, AppState, AutoField, Button, ComponentDataMap, Config, Data, DefaultComponentProps, DefaultRootFieldProps, Drawer, DropZone, DropZoneProvider, ExtractPropsFromConfig, ExtractRootPropsFromConfig, Field, FieldLabel, FieldProps, Group, History, IconButton, IframeConfig, InitialHistory, OnAction, Overrides, Permissions, Plugin, Puck, PuckAction, Render, UiState, UserGenerics, Viewports, dropZoneContext, migrate, transformProps, usePuck };
|
package/dist/index.d.ts
CHANGED
@@ -1,5 +1,5 @@
|
|
1
|
-
import { F as
|
2
|
-
export { L as Adaptor, J as ArrayField, r as ArrayState, a2 as AsFieldProps, B as BaseData, y as BaseField, t as ComponentConfig, w as ComponentData, x as Content, X as CustomField, $ as DefaultRootProps, _ as DefaultRootRenderProps, W as ExternalField, Q as ExternalFieldWithAdaptor, p as FieldRenderFunctions, Y as Fields, q as ItemWithId, M as MappedItem, N as NumberField, K as ObjectField, n as OverrideKey, s as PuckComponent, Z as PuckContext, G as RadioField, v as RootData, R as RootDataWithProps, u as RootDataWithoutProps, S as SelectField, T as TextField, z as TextareaField, m as Viewport, a3 as WithChildren, a0 as WithId, a1 as WithPuckProps, o as overrideKeys, a4 as resolveAllData } from './resolve-all-data-
|
1
|
+
import { F as FieldProps, a as Field, C as Config, D as Data, I as ItemSelector, P as PuckAction, b as DropZoneProps, U as UserGenerics, c as UiState, O as OnAction, d as Permissions, e as Plugin, f as Overrides, V as Viewports, g as IframeConfig, h as InitialHistory, i as DefaultComponentProps, j as DefaultRootFieldProps, H as History, A as AppState, E as ExtractPropsFromConfig, k as ExtractRootPropsFromConfig, l as ComponentDataMap } from './resolve-all-data-BoWgijLi.js';
|
2
|
+
export { L as Adaptor, J as ArrayField, r as ArrayState, a2 as AsFieldProps, B as BaseData, y as BaseField, t as ComponentConfig, w as ComponentData, x as Content, X as CustomField, $ as DefaultRootProps, _ as DefaultRootRenderProps, W as ExternalField, Q as ExternalFieldWithAdaptor, p as FieldRenderFunctions, Y as Fields, q as ItemWithId, M as MappedItem, N as NumberField, K as ObjectField, n as OverrideKey, s as PuckComponent, Z as PuckContext, G as RadioField, v as RootData, R as RootDataWithProps, u as RootDataWithoutProps, S as SelectField, T as TextField, z as TextareaField, m as Viewport, a3 as WithChildren, a0 as WithId, a1 as WithPuckProps, o as overrideKeys, a4 as resolveAllData } from './resolve-all-data-BoWgijLi.js';
|
3
3
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
4
4
|
import * as react from 'react';
|
5
5
|
import { ReactNode, SyntheticEvent, ReactElement, CSSProperties } from 'react';
|
@@ -36,29 +36,8 @@ declare const FieldLabel: ({ children, icon, label, el, readOnly, className, }:
|
|
36
36
|
readOnly?: boolean;
|
37
37
|
className?: string;
|
38
38
|
}) => react_jsx_runtime.JSX.Element;
|
39
|
-
type
|
40
|
-
|
41
|
-
icon?: ReactNode;
|
42
|
-
label?: string;
|
43
|
-
el?: "label" | "div";
|
44
|
-
readOnly?: boolean;
|
45
|
-
};
|
46
|
-
declare const FieldLabelInternal: ({ children, icon, label, el, readOnly, }: FieldLabelPropsInternal) => react_jsx_runtime.JSX.Element;
|
47
|
-
type FieldPropsInternalOptional<ValueType = any, F = Field<any>> = FieldProps<ValueType, F> & {
|
48
|
-
Label?: React.FC<FieldLabelPropsInternal>;
|
49
|
-
label?: string;
|
50
|
-
name?: string;
|
51
|
-
};
|
52
|
-
type FieldPropsInternal<ValueType = any, F = Field<any>> = FieldProps<ValueType, F> & {
|
53
|
-
Label: React.FC<FieldLabelPropsInternal>;
|
54
|
-
label?: string;
|
55
|
-
id: string;
|
56
|
-
name?: string;
|
57
|
-
};
|
58
|
-
declare function AutoFieldPrivate<ValueType = any, FieldType extends Field<ValueType> = Field<ValueType>>(props: FieldPropsInternalOptional<ValueType, FieldType> & {
|
59
|
-
Label?: React.FC<FieldLabelPropsInternal>;
|
60
|
-
}): react_jsx_runtime.JSX.Element;
|
61
|
-
declare function AutoField<ValueType = any, FieldType extends Field<ValueType> = Field<ValueType>>(props: FieldProps<ValueType, FieldType>): react_jsx_runtime.JSX.Element;
|
39
|
+
type FieldNoLabel<Props extends any = any> = Omit<Field<Props>, "label">;
|
40
|
+
declare function AutoField<ValueType = any, FieldType extends FieldNoLabel<ValueType> = FieldNoLabel<ValueType>>(props: FieldProps<ValueType, FieldType>): react_jsx_runtime.JSX.Element;
|
62
41
|
|
63
42
|
declare const Button: ({ children, href, onClick, variant, type, disabled, tabIndex, newTab, fullWidth, icon, size, loading: loadingProp, }: {
|
64
43
|
children: ReactNode;
|
@@ -245,4 +224,4 @@ declare const usePuck: <UserConfig extends Config = Config>() => {
|
|
245
224
|
selectedItem: ComponentDataMap<ExtractPropsFromConfig<UserConfig>> | null;
|
246
225
|
};
|
247
226
|
|
248
|
-
export { Action, ActionBar, AppState, AutoField,
|
227
|
+
export { Action, ActionBar, AppState, AutoField, Button, ComponentDataMap, Config, Data, DefaultComponentProps, DefaultRootFieldProps, Drawer, DropZone, DropZoneProvider, ExtractPropsFromConfig, ExtractRootPropsFromConfig, Field, FieldLabel, FieldProps, Group, History, IconButton, IframeConfig, InitialHistory, OnAction, Overrides, Permissions, Plugin, Puck, PuckAction, Render, UiState, UserGenerics, Viewports, dropZoneContext, migrate, transformProps, usePuck };
|
package/dist/index.js
CHANGED
@@ -149,13 +149,11 @@ __export(core_exports, {
|
|
149
149
|
Action: () => Action,
|
150
150
|
ActionBar: () => ActionBar,
|
151
151
|
AutoField: () => AutoField,
|
152
|
-
AutoFieldPrivate: () => AutoFieldPrivate,
|
153
152
|
Button: () => Button,
|
154
153
|
Drawer: () => Drawer,
|
155
154
|
DropZone: () => DropZone,
|
156
155
|
DropZoneProvider: () => DropZoneProvider,
|
157
156
|
FieldLabel: () => FieldLabel,
|
158
|
-
FieldLabelInternal: () => FieldLabelInternal2,
|
159
157
|
Group: () => Group,
|
160
158
|
IconButton: () => IconButton,
|
161
159
|
Puck: () => Puck,
|
@@ -705,7 +703,7 @@ var setupZone = (data, zoneKey) => {
|
|
705
703
|
return data;
|
706
704
|
}
|
707
705
|
const newData = __spreadProps(__spreadValues({}, data), {
|
708
|
-
zones: data.zones
|
706
|
+
zones: data.zones ? __spreadValues({}, data.zones) : {}
|
709
707
|
});
|
710
708
|
newData.zones[zoneKey] = newData.zones[zoneKey] || [];
|
711
709
|
return newData;
|
@@ -2287,7 +2285,9 @@ var FieldLabelInternal2 = ({
|
|
2287
2285
|
function AutoFieldInternal(props) {
|
2288
2286
|
var _a, _b, _c, _d, _e, _f, _g, _h;
|
2289
2287
|
const { overrides } = useAppContext();
|
2290
|
-
const {
|
2288
|
+
const { id, Label = FieldLabelInternal2 } = props;
|
2289
|
+
const field = props.field;
|
2290
|
+
const label = field.label;
|
2291
2291
|
const defaultId = useSafeId();
|
2292
2292
|
const resolvedId = id || defaultId;
|
2293
2293
|
const defaultFields = {
|
@@ -3699,7 +3699,10 @@ var useResolvedFields = () => {
|
|
3699
3699
|
const { data } = state;
|
3700
3700
|
const rootFields = ((_a = config.root) == null ? void 0 : _a.fields) || defaultPageFields;
|
3701
3701
|
const componentConfig = selectedItem ? config.components[selectedItem.type] : null;
|
3702
|
-
const defaultFields = (
|
3702
|
+
const defaultFields = (0, import_react21.useMemo)(
|
3703
|
+
() => (selectedItem ? componentConfig == null ? void 0 : componentConfig.fields : rootFields) || {},
|
3704
|
+
[selectedItem, rootFields, componentConfig == null ? void 0 : componentConfig.fields]
|
3705
|
+
);
|
3703
3706
|
const rootProps = data.root.props || data.root;
|
3704
3707
|
const [lastSelectedData, setLastSelectedData] = (0, import_react21.useState)({});
|
3705
3708
|
const [resolvedFields, setResolvedFields] = (0, import_react21.useState)(defaultFields);
|
@@ -5869,13 +5872,11 @@ var usePuck = () => {
|
|
5869
5872
|
Action,
|
5870
5873
|
ActionBar,
|
5871
5874
|
AutoField,
|
5872
|
-
AutoFieldPrivate,
|
5873
5875
|
Button,
|
5874
5876
|
Drawer,
|
5875
5877
|
DropZone,
|
5876
5878
|
DropZoneProvider,
|
5877
5879
|
FieldLabel,
|
5878
|
-
FieldLabelInternal,
|
5879
5880
|
Group,
|
5880
5881
|
IconButton,
|
5881
5882
|
Puck,
|
package/dist/index.mjs
CHANGED
@@ -13,7 +13,7 @@ import {
|
|
13
13
|
resolveRootData,
|
14
14
|
rootDroppableId,
|
15
15
|
setupZone
|
16
|
-
} from "./chunk-
|
16
|
+
} from "./chunk-7IH6SUIT.mjs";
|
17
17
|
|
18
18
|
// ../../node_modules/classnames/index.js
|
19
19
|
var require_classnames = __commonJS({
|
@@ -2098,7 +2098,9 @@ var FieldLabelInternal2 = ({
|
|
2098
2098
|
function AutoFieldInternal(props) {
|
2099
2099
|
var _a, _b, _c, _d, _e, _f, _g, _h;
|
2100
2100
|
const { overrides } = useAppContext();
|
2101
|
-
const {
|
2101
|
+
const { id, Label = FieldLabelInternal2 } = props;
|
2102
|
+
const field = props.field;
|
2103
|
+
const label = field.label;
|
2102
2104
|
const defaultId = useSafeId();
|
2103
2105
|
const resolvedId = id || defaultId;
|
2104
2106
|
const defaultFields = {
|
@@ -3528,7 +3530,10 @@ var useResolvedFields = () => {
|
|
3528
3530
|
const { data } = state;
|
3529
3531
|
const rootFields = ((_a = config.root) == null ? void 0 : _a.fields) || defaultPageFields;
|
3530
3532
|
const componentConfig = selectedItem ? config.components[selectedItem.type] : null;
|
3531
|
-
const defaultFields = (
|
3533
|
+
const defaultFields = useMemo6(
|
3534
|
+
() => (selectedItem ? componentConfig == null ? void 0 : componentConfig.fields : rootFields) || {},
|
3535
|
+
[selectedItem, rootFields, componentConfig == null ? void 0 : componentConfig.fields]
|
3536
|
+
);
|
3532
3537
|
const rootProps = data.root.props || data.root;
|
3533
3538
|
const [lastSelectedData, setLastSelectedData] = useState15({});
|
3534
3539
|
const [resolvedFields, setResolvedFields] = useState15(defaultFields);
|
@@ -5669,13 +5674,11 @@ export {
|
|
5669
5674
|
Action,
|
5670
5675
|
ActionBar,
|
5671
5676
|
AutoField,
|
5672
|
-
AutoFieldPrivate,
|
5673
5677
|
Button,
|
5674
5678
|
Drawer,
|
5675
5679
|
DropZone,
|
5676
5680
|
DropZoneProvider,
|
5677
5681
|
FieldLabel,
|
5678
|
-
FieldLabelInternal2 as FieldLabelInternal,
|
5679
5682
|
Group,
|
5680
5683
|
IconButton,
|
5681
5684
|
Puck,
|
@@ -442,4 +442,4 @@ type PuckAction = {
|
|
442
442
|
|
443
443
|
declare function resolveAllData<Props extends DefaultComponentProps = DefaultComponentProps, RootProps extends Record<string, any> = DefaultRootFieldProps>(data: Partial<Data>, config: Config, onResolveStart?: (item: ComponentData) => void, onResolveEnd?: (item: ComponentData) => void): Promise<Data<Props, RootProps>>;
|
444
444
|
|
445
|
-
export { type DefaultRootProps as $, type AppState as A, type BaseData as B, type Config as C, type Data as D, type ExtractPropsFromConfig as E, type
|
445
|
+
export { type DefaultRootProps as $, type AppState as A, type BaseData as B, type Config as C, type Data as D, type ExtractPropsFromConfig as E, type FieldProps as F, type RadioField as G, type History as H, type ItemSelector as I, type ArrayField as J, type ObjectField as K, type Adaptor as L, type MappedItem as M, type NumberField as N, type OnAction as O, type PuckAction as P, type ExternalFieldWithAdaptor as Q, type RootDataWithProps as R, type SelectField as S, type TextField as T, type UserGenerics as U, type Viewports as V, type ExternalField as W, type CustomField as X, type Fields as Y, type PuckContext as Z, type DefaultRootRenderProps as _, type Field as a, type WithId as a0, type WithPuckProps as a1, type AsFieldProps as a2, type WithChildren as a3, resolveAllData as a4, type DropZoneProps as b, type UiState as c, type Permissions as d, type Plugin as e, type Overrides as f, type IframeConfig as g, type InitialHistory as h, type DefaultComponentProps as i, type DefaultRootFieldProps as j, type ExtractRootPropsFromConfig as k, type ComponentDataMap as l, type Viewport as m, type OverrideKey as n, overrideKeys as o, type FieldRenderFunctions as p, type ItemWithId as q, type ArrayState as r, type PuckComponent as s, type ComponentConfig as t, type RootDataWithoutProps as u, type RootData as v, type ComponentData as w, type Content as x, type BaseField as y, type TextareaField as z };
|
@@ -442,4 +442,4 @@ type PuckAction = {
|
|
442
442
|
|
443
443
|
declare function resolveAllData<Props extends DefaultComponentProps = DefaultComponentProps, RootProps extends Record<string, any> = DefaultRootFieldProps>(data: Partial<Data>, config: Config, onResolveStart?: (item: ComponentData) => void, onResolveEnd?: (item: ComponentData) => void): Promise<Data<Props, RootProps>>;
|
444
444
|
|
445
|
-
export { type DefaultRootProps as $, type AppState as A, type BaseData as B, type Config as C, type Data as D, type ExtractPropsFromConfig as E, type
|
445
|
+
export { type DefaultRootProps as $, type AppState as A, type BaseData as B, type Config as C, type Data as D, type ExtractPropsFromConfig as E, type FieldProps as F, type RadioField as G, type History as H, type ItemSelector as I, type ArrayField as J, type ObjectField as K, type Adaptor as L, type MappedItem as M, type NumberField as N, type OnAction as O, type PuckAction as P, type ExternalFieldWithAdaptor as Q, type RootDataWithProps as R, type SelectField as S, type TextField as T, type UserGenerics as U, type Viewports as V, type ExternalField as W, type CustomField as X, type Fields as Y, type PuckContext as Z, type DefaultRootRenderProps as _, type Field as a, type WithId as a0, type WithPuckProps as a1, type AsFieldProps as a2, type WithChildren as a3, resolveAllData as a4, type DropZoneProps as b, type UiState as c, type Permissions as d, type Plugin as e, type Overrides as f, type IframeConfig as g, type InitialHistory as h, type DefaultComponentProps as i, type DefaultRootFieldProps as j, type ExtractRootPropsFromConfig as k, type ComponentDataMap as l, type Viewport as m, type OverrideKey as n, overrideKeys as o, type FieldRenderFunctions as p, type ItemWithId as q, type ArrayState as r, type PuckComponent as s, type ComponentConfig as t, type RootDataWithoutProps as u, type RootData as v, type ComponentData as w, type Content as x, type BaseField as y, type TextareaField as z };
|
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-BoWgijLi.mjs';
|
3
|
+
export { a4 as resolveAllData } from './resolve-all-data-BoWgijLi.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-BoWgijLi.js';
|
3
|
+
export { a4 as resolveAllData } from './resolve-all-data-BoWgijLi.js';
|
4
4
|
import 'react';
|
5
5
|
|
6
6
|
declare function Render<UserConfig extends Config = Config>({ config, data, }: {
|
package/dist/rsc.js
CHANGED
@@ -84,7 +84,7 @@ var setupZone = (data, zoneKey) => {
|
|
84
84
|
return data;
|
85
85
|
}
|
86
86
|
const newData = __spreadProps(__spreadValues({}, data), {
|
87
|
-
zones: data.zones
|
87
|
+
zones: data.zones ? __spreadValues({}, data.zones) : {}
|
88
88
|
});
|
89
89
|
newData.zones[zoneKey] = newData.zones[zoneKey] || [];
|
90
90
|
return newData;
|
package/dist/rsc.mjs
CHANGED
package/package.json
CHANGED