@measured/puck 0.20.0-canary.def0ecb5 → 0.20.0-canary.e25949a6

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.mjs CHANGED
@@ -13,17 +13,19 @@ import {
13
13
  Render,
14
14
  createUsePuck,
15
15
  overrideKeys,
16
+ registerOverlayPortal,
16
17
  renderContext,
18
+ setDeep,
17
19
  useGetPuck,
18
20
  usePuck
19
- } from "./chunk-VATSTM62.mjs";
21
+ } from "./chunk-FYXJ5FPS.mjs";
20
22
  import {
21
23
  init_react_import,
22
24
  migrate,
23
25
  resolveAllData,
24
26
  transformProps,
25
27
  walkTree
26
- } from "./chunk-32MJ3X3H.mjs";
28
+ } from "./chunk-HUKJ36SA.mjs";
27
29
 
28
30
  // bundle/index.ts
29
31
  init_react_import();
@@ -43,8 +45,10 @@ export {
43
45
  createUsePuck,
44
46
  migrate,
45
47
  overrideKeys,
48
+ registerOverlayPortal,
46
49
  renderContext,
47
50
  resolveAllData,
51
+ setDeep,
48
52
  transformProps,
49
53
  useGetPuck,
50
54
  usePuck,
@@ -229,10 +229,10 @@
229
229
  }
230
230
 
231
231
  /* css-module:/home/runner/work/puck/puck/packages/core/components/AutoField/styles.module.css/#css-module-data */
232
- ._InputWrapper_py9hf_1 + ._InputWrapper_py9hf_1 {
232
+ ._InputWrapper_bsxfo_1 + ._InputWrapper_bsxfo_1 {
233
233
  margin-top: 12px;
234
234
  }
235
- ._Input-label_py9hf_5 {
235
+ ._Input-label_bsxfo_5 {
236
236
  align-items: center;
237
237
  color: var(--puck-color-grey-04);
238
238
  display: flex;
@@ -240,17 +240,17 @@
240
240
  font-size: var(--puck-font-size-xxs);
241
241
  font-weight: 600;
242
242
  }
243
- ._Input-labelIcon_py9hf_14 {
243
+ ._Input-labelIcon_bsxfo_14 {
244
244
  color: var(--puck-color-grey-07);
245
245
  display: flex;
246
246
  margin-inline-end: 4px;
247
247
  padding-inline-start: 4px;
248
248
  }
249
- ._Input-disabledIcon_py9hf_21 {
249
+ ._Input-disabledIcon_bsxfo_21 {
250
250
  color: var(--puck-color-grey-05);
251
251
  margin-inline-start: auto;
252
252
  }
253
- ._Input-input_py9hf_26 {
253
+ ._Input-input_bsxfo_26 {
254
254
  background: var(--puck-color-white);
255
255
  border-width: 1px;
256
256
  border-style: solid;
@@ -258,13 +258,18 @@
258
258
  border-radius: 4px;
259
259
  box-sizing: border-box;
260
260
  font-family: inherit;
261
- font-size: 14px;
261
+ font-size: 16px;
262
262
  padding: 12px 15px;
263
263
  transition: border-color 50ms ease-in;
264
264
  width: 100%;
265
265
  max-width: 100%;
266
266
  }
267
- select._Input-input_py9hf_26 {
267
+ @media (min-width: 458px) {
268
+ ._Input-input_bsxfo_26 {
269
+ font-size: 14px;
270
+ }
271
+ }
272
+ select._Input-input_bsxfo_26 {
268
273
  appearance: none;
269
274
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='100' height='100' fill='%23c3c3c3'><polygon points='0,0 100,0 50,50'/></svg>") no-repeat;
270
275
  background-size: 12px;
@@ -273,29 +278,29 @@ select._Input-input_py9hf_26 {
273
278
  background-color: var(--puck-color-white);
274
279
  cursor: pointer;
275
280
  }
276
- select._Input-input_py9hf_26:dir(rtl) {
281
+ select._Input-input_bsxfo_26:dir(rtl) {
277
282
  background-position: 12px calc(50% + 3px);
278
283
  }
279
284
  @media (hover: hover) and (pointer: fine) {
280
- ._Input_py9hf_1:has(> input):hover ._Input-input_py9hf_26:not([readonly]),
281
- ._Input_py9hf_1:has(> textarea):hover ._Input-input_py9hf_26:not([readonly]) {
285
+ ._Input_bsxfo_1:has(> input):hover ._Input-input_bsxfo_26:not([readonly]),
286
+ ._Input_bsxfo_1:has(> textarea):hover ._Input-input_bsxfo_26:not([readonly]) {
282
287
  border-color: var(--puck-color-grey-05);
283
288
  transition: none;
284
289
  }
285
- ._Input_py9hf_1:has(> select):hover ._Input-input_py9hf_26:not([disabled]) {
290
+ ._Input_bsxfo_1:has(> select):hover ._Input-input_bsxfo_26:not([disabled]) {
286
291
  background-color: var(--puck-color-azure-12);
287
292
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='100' height='100' fill='%235a5a5a'><polygon points='0,0 100,0 50,50'/></svg>");
288
293
  border-color: var(--puck-color-grey-05);
289
294
  transition: none;
290
295
  }
291
296
  }
292
- ._Input-input_py9hf_26:focus {
297
+ ._Input-input_bsxfo_26:focus {
293
298
  border-color: var(--puck-color-grey-05);
294
299
  outline: 2px solid var(--puck-color-azure-05);
295
300
  transition: none;
296
301
  }
297
- ._Input--readOnly_py9hf_76 > ._Input-input_py9hf_26,
298
- ._Input--readOnly_py9hf_76 > select._Input-input_py9hf_26 {
302
+ ._Input--readOnly_bsxfo_82 > ._Input-input_bsxfo_26,
303
+ ._Input--readOnly_bsxfo_82 > select._Input-input_bsxfo_26 {
299
304
  background-color: var(--puck-color-grey-11);
300
305
  border-color: var(--puck-color-grey-09);
301
306
  color: var(--puck-color-grey-04);
@@ -304,34 +309,34 @@ select._Input-input_py9hf_26:dir(rtl) {
304
309
  outline: 0;
305
310
  transition: none;
306
311
  }
307
- ._Input-radioGroupItems_py9hf_87 {
312
+ ._Input-radioGroupItems_bsxfo_93 {
308
313
  display: flex;
309
314
  border: 1px solid var(--puck-color-grey-09);
310
315
  border-radius: 4px;
311
316
  flex-wrap: wrap;
312
317
  }
313
- ._Input-radio_py9hf_87 {
318
+ ._Input-radio_bsxfo_93 {
314
319
  border-inline-end: 1px solid var(--puck-color-grey-09);
315
320
  flex-grow: 1;
316
321
  }
317
- ._Input-radio_py9hf_87:first-of-type {
322
+ ._Input-radio_bsxfo_93:first-of-type {
318
323
  border-bottom-left-radius: 4px;
319
324
  border-top-left-radius: 4px;
320
325
  }
321
- ._Input-radio_py9hf_87:first-of-type ._Input-radioInner_py9hf_104 {
326
+ ._Input-radio_bsxfo_93:first-of-type ._Input-radioInner_bsxfo_110 {
322
327
  border-bottom-left-radius: 3px;
323
328
  border-top-left-radius: 3px;
324
329
  }
325
- ._Input-radio_py9hf_87:last-of-type {
330
+ ._Input-radio_bsxfo_93:last-of-type {
326
331
  border-bottom-right-radius: 4px;
327
332
  border-inline-end: 0;
328
333
  border-top-right-radius: 4px;
329
334
  }
330
- ._Input-radio_py9hf_87:last-of-type ._Input-radioInner_py9hf_104 {
335
+ ._Input-radio_bsxfo_93:last-of-type ._Input-radioInner_bsxfo_110 {
331
336
  border-bottom-right-radius: 3px;
332
337
  border-top-right-radius: 3px;
333
338
  }
334
- ._Input-radioInner_py9hf_104 {
339
+ ._Input-radioInner_bsxfo_110 {
335
340
  background-color: var(--puck-color-white);
336
341
  color: var(--puck-color-grey-04);
337
342
  cursor: pointer;
@@ -340,32 +345,32 @@ select._Input-input_py9hf_26:dir(rtl) {
340
345
  text-align: center;
341
346
  transition: background-color 50ms ease-in;
342
347
  }
343
- ._Input-radio_py9hf_87:has(:focus-visible) {
348
+ ._Input-radio_bsxfo_93:has(:focus-visible) {
344
349
  outline: 2px solid var(--puck-color-azure-05);
345
350
  outline-offset: 2px;
346
351
  position: relative;
347
352
  }
348
353
  @media (hover: hover) and (pointer: fine) {
349
- ._Input-radioInner_py9hf_104:hover {
354
+ ._Input-radioInner_bsxfo_110:hover {
350
355
  background-color: var(--puck-color-azure-12);
351
356
  transition: none;
352
357
  }
353
358
  }
354
- ._Input--readOnly_py9hf_76 ._Input-radioInner_py9hf_104 {
359
+ ._Input--readOnly_bsxfo_82 ._Input-radioInner_bsxfo_110 {
355
360
  background-color: var(--puck-color-white);
356
361
  color: var(--puck-color-grey-04);
357
362
  cursor: default;
358
363
  }
359
- ._Input-radio_py9hf_87 ._Input-radioInput_py9hf_149:checked ~ ._Input-radioInner_py9hf_104 {
364
+ ._Input-radio_bsxfo_93 ._Input-radioInput_bsxfo_155:checked ~ ._Input-radioInner_bsxfo_110 {
360
365
  background-color: var(--puck-color-azure-11);
361
366
  color: var(--puck-color-azure-04);
362
367
  font-weight: 500;
363
368
  }
364
- ._Input--readOnly_py9hf_76 ._Input-radioInput_py9hf_149:checked ~ ._Input-radioInner_py9hf_104 {
369
+ ._Input--readOnly_bsxfo_82 ._Input-radioInput_bsxfo_155:checked ~ ._Input-radioInner_bsxfo_110 {
365
370
  background-color: var(--puck-color-grey-11);
366
371
  color: var(--puck-color-grey-04);
367
372
  }
368
- ._Input-radio_py9hf_87 ._Input-radioInput_py9hf_149 {
373
+ ._Input-radio_bsxfo_93 ._Input-radioInput_bsxfo_155 {
369
374
  clip: rect(0 0 0 0);
370
375
  clip-path: inset(100%);
371
376
  height: 1px;
@@ -374,7 +379,7 @@ select._Input-input_py9hf_26:dir(rtl) {
374
379
  white-space: nowrap;
375
380
  width: 1px;
376
381
  }
377
- textarea._Input-input_py9hf_26 {
382
+ textarea._Input-input_bsxfo_26 {
378
383
  margin-bottom: -4px;
379
384
  }
380
385
 
@@ -1309,6 +1314,33 @@ body:has(._DropZone--isAnimating_1i2sv_68:empty) [data-puck-overlay] {
1309
1314
  opacity: 0 !important;
1310
1315
  }
1311
1316
 
1317
+ /* lib/overlay-portal/styles.css */
1318
+ [data-puck-overlay-portal],
1319
+ [data-puck-overlay-portal] * {
1320
+ pointer-events: auto !important;
1321
+ }
1322
+ [data-puck-overlay-portal]:hover {
1323
+ outline: 2px var(--puck-color-azure-09) dashed;
1324
+ outline-offset: 2px;
1325
+ }
1326
+ [data-puck-overlay-portal]:focus-within {
1327
+ outline: 2px var(--puck-color-azure-07) solid;
1328
+ outline-offset: 2px;
1329
+ }
1330
+
1331
+ /* css-module:/home/runner/work/puck/puck/packages/core/components/InlineTextField/styles.module.css/#css-module-data */
1332
+ ._InlineTextField_ilw2a_1 {
1333
+ cursor: text;
1334
+ display: inline-block;
1335
+ }
1336
+ [data-dnd-dragging] ._InlineTextField_ilw2a_1 {
1337
+ cursor: none;
1338
+ caret-color: transparent;
1339
+ }
1340
+ [data-dnd-dragging] ._InlineTextField_ilw2a_1::selection {
1341
+ display: none;
1342
+ }
1343
+
1312
1344
  /* css-module:/home/runner/work/puck/puck/packages/core/components/SidebarSection/styles.module.css/#css-module-data */
1313
1345
  ._SidebarSection_8boj8_1 {
1314
1346
  display: flex;
@@ -1881,23 +1913,25 @@ body:has(._DropZone--isAnimating_1i2sv_68:empty) [data-puck-overlay] {
1881
1913
  }
1882
1914
 
1883
1915
  /* css-module:/home/runner/work/puck/puck/packages/core/components/Puck/components/ResizeHandle/styles.module.css/#css-module-data */
1884
- ._ResizeHandle_v7w0r_1 {
1885
- position: absolute;
1886
- width: 5px;
1887
- height: 100%;
1888
- cursor: col-resize;
1889
- z-index: 10;
1890
- background: transparent;
1891
- top: 0;
1892
- }
1893
- ._ResizeHandle_v7w0r_1:hover {
1894
- background: rgba(0, 0, 0, 0.1);
1895
- }
1896
- ._ResizeHandle--left_v7w0r_15 {
1897
- right: -3px;
1898
- }
1899
- ._ResizeHandle--right_v7w0r_19 {
1900
- left: -3px;
1916
+ @media (min-width: 766px) {
1917
+ ._ResizeHandle_144bf_2 {
1918
+ position: absolute;
1919
+ width: 5px;
1920
+ height: 100%;
1921
+ cursor: col-resize;
1922
+ z-index: 10;
1923
+ background: transparent;
1924
+ top: 0;
1925
+ }
1926
+ ._ResizeHandle_144bf_2:hover {
1927
+ background: rgba(0, 0, 0, 0.1);
1928
+ }
1929
+ ._ResizeHandle--left_144bf_16 {
1930
+ right: -3px;
1931
+ }
1932
+ ._ResizeHandle--right_144bf_20 {
1933
+ left: -3px;
1934
+ }
1901
1935
  }
1902
1936
 
1903
1937
  /* components/Puck/components/ResizeHandle/styles.css */
@@ -1,4 +1,4 @@
1
- export { a2 as Adaptor, A as AppState, a0 as ArrayField, x as ArrayState, af as AsFieldProps, E as BaseData, T as BaseField, f as ComponentConfig, a as ComponentData, N as ComponentDataMap, K as ComponentDataOptionalId, C as Config, Q as Content, a6 as CustomField, a5 as CustomFieldRender, i as Data, ac as DefaultComponentProps, a9 as DefaultRootFieldProps, ab as DefaultRootProps, aa as DefaultRootRenderProps, n as Direction, o as DragAxis, a4 as ExternalField, a3 as ExternalFieldWithAdaptor, ah as ExtractPropsFromConfig, ai as ExtractRootPropsFromConfig, g as Field, h as FieldProps, u as FieldRenderFunctions, F as Fields, H as History, I as IframeConfig, k as InitialHistory, v as ItemWithId, L as MappedItem, M as Metadata, Y as NumberField, a1 as ObjectField, j as OnAction, s as OverrideKey, O as Overrides, P as Permissions, d as Plugin, b as PuckAction, z as PuckComponent, a8 as PuckContext, $ as RadioField, c as ResolveDataTrigger, B as RootConfig, J as RootData, R as RootDataWithProps, G as RootDataWithoutProps, _ as SelectField, S as Slot, y as SlotComponent, a7 as SlotField, X as TextField, Z as TextareaField, e as UiState, U as UserGenerics, p as Viewport, V as Viewports, ag as WithChildren, ad as WithId, ae as WithPuckProps, W as WithSlotProps, m as migrate, q as overrideKeys, r as resolveAllData, t as transformProps, w as walkTree } from './walk-tree-mCPqBAls.mjs';
2
- export { Action, ActionBar, AutoField, Button, Drawer, DropZone, FieldLabel, Group, IconButton, Label, Puck, PuckApi, Render, UsePuckData, createUsePuck, renderContext, useGetPuck, usePuck } from './index.mjs';
1
+ export { a5 as Adaptor, A as AppState, a3 as ArrayField, B as ArrayState, ai as AsFieldProps, K as BaseData, Z as BaseField, f as ComponentConfig, a as ComponentData, X as ComponentDataMap, Q as ComponentDataOptionalId, C as Config, Y as Content, a9 as CustomField, a8 as CustomFieldRender, j as Data, af as DefaultComponentProps, ac as DefaultRootFieldProps, ae as DefaultRootProps, ad as DefaultRootRenderProps, o as Direction, p as DragAxis, a7 as ExternalField, a6 as ExternalFieldWithAdaptor, am as ExtractField, ak as ExtractPropsFromConfig, al as ExtractRootPropsFromConfig, h as Field, i as FieldProps, y as FieldRenderFunctions, u as FieldTransformFn, s as FieldTransformFnParams, g as FieldTransforms, F as Fields, H as History, I as IframeConfig, l as InitialHistory, z as ItemWithId, T as MappedItem, M as Metadata, $ as NumberField, a4 as ObjectField, k as OnAction, x as OverrideKey, O as Overrides, P as Permissions, d as Plugin, b as PuckAction, G as PuckComponent, ab as PuckContext, a2 as RadioField, c as ResolveDataTrigger, J as RootConfig, N as RootData, R as RootDataWithProps, L as RootDataWithoutProps, a1 as SelectField, S as Slot, E as SlotComponent, aa as SlotField, _ as TextField, a0 as TextareaField, e as UiState, U as UserGenerics, q as Viewport, V as Viewports, aj as WithChildren, ag as WithId, ah as WithPuckProps, W as WithSlotProps, m as migrate, v as overrideKeys, r as resolveAllData, t as transformProps, w as walkTree } from './walk-tree-B57SgEEc.mjs';
2
+ export { Action, ActionBar, AutoField, Button, Drawer, DropZone, FieldLabel, Group, IconButton, Label, Puck, PuckApi, Render, UsePuckData, createUsePuck, registerOverlayPortal, renderContext, setDeep, useGetPuck, usePuck } from './index.mjs';
3
3
  import 'react';
4
4
  import 'react/jsx-runtime';
@@ -1,4 +1,4 @@
1
- export { a2 as Adaptor, A as AppState, a0 as ArrayField, x as ArrayState, af as AsFieldProps, E as BaseData, T as BaseField, f as ComponentConfig, a as ComponentData, N as ComponentDataMap, K as ComponentDataOptionalId, C as Config, Q as Content, a6 as CustomField, a5 as CustomFieldRender, i as Data, ac as DefaultComponentProps, a9 as DefaultRootFieldProps, ab as DefaultRootProps, aa as DefaultRootRenderProps, n as Direction, o as DragAxis, a4 as ExternalField, a3 as ExternalFieldWithAdaptor, ah as ExtractPropsFromConfig, ai as ExtractRootPropsFromConfig, g as Field, h as FieldProps, u as FieldRenderFunctions, F as Fields, H as History, I as IframeConfig, k as InitialHistory, v as ItemWithId, L as MappedItem, M as Metadata, Y as NumberField, a1 as ObjectField, j as OnAction, s as OverrideKey, O as Overrides, P as Permissions, d as Plugin, b as PuckAction, z as PuckComponent, a8 as PuckContext, $ as RadioField, c as ResolveDataTrigger, B as RootConfig, J as RootData, R as RootDataWithProps, G as RootDataWithoutProps, _ as SelectField, S as Slot, y as SlotComponent, a7 as SlotField, X as TextField, Z as TextareaField, e as UiState, U as UserGenerics, p as Viewport, V as Viewports, ag as WithChildren, ad as WithId, ae as WithPuckProps, W as WithSlotProps, m as migrate, q as overrideKeys, r as resolveAllData, t as transformProps, w as walkTree } from './walk-tree-mCPqBAls.js';
2
- export { Action, ActionBar, AutoField, Button, Drawer, DropZone, FieldLabel, Group, IconButton, Label, Puck, PuckApi, Render, UsePuckData, createUsePuck, renderContext, useGetPuck, usePuck } from './index.js';
1
+ export { a5 as Adaptor, A as AppState, a3 as ArrayField, B as ArrayState, ai as AsFieldProps, K as BaseData, Z as BaseField, f as ComponentConfig, a as ComponentData, X as ComponentDataMap, Q as ComponentDataOptionalId, C as Config, Y as Content, a9 as CustomField, a8 as CustomFieldRender, j as Data, af as DefaultComponentProps, ac as DefaultRootFieldProps, ae as DefaultRootProps, ad as DefaultRootRenderProps, o as Direction, p as DragAxis, a7 as ExternalField, a6 as ExternalFieldWithAdaptor, am as ExtractField, ak as ExtractPropsFromConfig, al as ExtractRootPropsFromConfig, h as Field, i as FieldProps, y as FieldRenderFunctions, u as FieldTransformFn, s as FieldTransformFnParams, g as FieldTransforms, F as Fields, H as History, I as IframeConfig, l as InitialHistory, z as ItemWithId, T as MappedItem, M as Metadata, $ as NumberField, a4 as ObjectField, k as OnAction, x as OverrideKey, O as Overrides, P as Permissions, d as Plugin, b as PuckAction, G as PuckComponent, ab as PuckContext, a2 as RadioField, c as ResolveDataTrigger, J as RootConfig, N as RootData, R as RootDataWithProps, L as RootDataWithoutProps, a1 as SelectField, S as Slot, E as SlotComponent, aa as SlotField, _ as TextField, a0 as TextareaField, e as UiState, U as UserGenerics, q as Viewport, V as Viewports, aj as WithChildren, ag as WithId, ah as WithPuckProps, W as WithSlotProps, m as migrate, v as overrideKeys, r as resolveAllData, t as transformProps, w as walkTree } from './walk-tree-B57SgEEc.js';
2
+ export { Action, ActionBar, AutoField, Button, Drawer, DropZone, FieldLabel, Group, IconButton, Label, Puck, PuckApi, Render, UsePuckData, createUsePuck, registerOverlayPortal, renderContext, setDeep, useGetPuck, usePuck } from './index.js';
3
3
  import 'react';
4
4
  import 'react/jsx-runtime';