@measured/puck 0.14.2-canary.25a7c4b → 0.14.2-canary.2743a73
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.ts +4 -1
- package/dist/index.js +4 -2
- package/package.json +3 -3
package/dist/index.d.ts
CHANGED
@@ -229,7 +229,7 @@ type IframeConfig = {
|
|
229
229
|
enabled?: boolean;
|
230
230
|
};
|
231
231
|
|
232
|
-
declare function Puck<UserConfig extends Config = Config>({ children, config, data: initialData, ui: initialUi, onChange, onPublish, plugins, overrides, renderHeader, renderHeaderActions, headerTitle, headerPath, viewports, iframe, }: {
|
232
|
+
declare function Puck<UserConfig extends Config = Config>({ children, config, data: initialData, ui: initialUi, onChange, onPublish, plugins, overrides, renderHeader, renderHeaderActions, headerTitle, headerPath, viewports, iframe, dnd, }: {
|
233
233
|
children?: ReactNode;
|
234
234
|
config: UserConfig;
|
235
235
|
data: Data;
|
@@ -251,6 +251,9 @@ declare function Puck<UserConfig extends Config = Config>({ children, config, da
|
|
251
251
|
headerPath?: string;
|
252
252
|
viewports?: Viewports;
|
253
253
|
iframe?: IframeConfig;
|
254
|
+
dnd?: {
|
255
|
+
disableAutoScroll?: boolean;
|
256
|
+
};
|
254
257
|
}): react_jsx_runtime.JSX.Element;
|
255
258
|
declare namespace Puck {
|
256
259
|
var Components: () => react_jsx_runtime.JSX.Element;
|
package/dist/index.js
CHANGED
@@ -32061,7 +32061,7 @@ var RadioField = ({
|
|
32061
32061
|
onChange(e.currentTarget.value);
|
32062
32062
|
},
|
32063
32063
|
disabled: readOnly,
|
32064
|
-
|
32064
|
+
checked: value === option.value
|
32065
32065
|
}
|
32066
32066
|
),
|
32067
32067
|
/* @__PURE__ */ (0, import_jsx_runtime20.jsx)("div", { className: getClassName14("radioInner"), children: option.label || option.value })
|
@@ -33446,7 +33446,8 @@ function Puck({
|
|
33446
33446
|
viewports = defaultViewports,
|
33447
33447
|
iframe = {
|
33448
33448
|
enabled: true
|
33449
|
-
}
|
33449
|
+
},
|
33450
|
+
dnd
|
33450
33451
|
}) {
|
33451
33452
|
var _a;
|
33452
33453
|
const historyStore = useHistoryStore();
|
@@ -33646,6 +33647,7 @@ function Puck({
|
|
33646
33647
|
children: /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
|
33647
33648
|
DragDropContext,
|
33648
33649
|
{
|
33650
|
+
autoScrollerOptions: { disabled: dnd == null ? void 0 : dnd.disableAutoScroll },
|
33649
33651
|
onDragUpdate: (update) => {
|
33650
33652
|
setDraggedItem(__spreadValues(__spreadValues({}, draggedItem), update));
|
33651
33653
|
onDragStartOrUpdate(update);
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@measured/puck",
|
3
|
-
"version": "0.14.2-canary.
|
3
|
+
"version": "0.14.2-canary.2743a73",
|
4
4
|
"author": "Measured Corporation Ltd <hello@measured.co>",
|
5
5
|
"repository": "measuredco/puck",
|
6
6
|
"bugs": "https://github.com/measuredco/puck/issues",
|
@@ -60,8 +60,8 @@
|
|
60
60
|
"typescript": "^4.5.2"
|
61
61
|
},
|
62
62
|
"dependencies": {
|
63
|
-
"@measured/auto-frame-component": "0.1.
|
64
|
-
"@measured/dnd": "16.6.0-canary.
|
63
|
+
"@measured/auto-frame-component": "0.1.7",
|
64
|
+
"@measured/dnd": "16.6.0-canary.4cba1d1",
|
65
65
|
"deep-diff": "^1.0.2",
|
66
66
|
"react-hotkeys-hook": "^4.4.1",
|
67
67
|
"react-spinners": "^0.13.8",
|