@measured/puck 0.21.0-canary.3aa27d1d → 0.21.0-canary.501341c5

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.
Files changed (52) hide show
  1. package/dist/Editor-F2LSS6SE.css +403 -0
  2. package/dist/Editor-O447AVCX.mjs +204 -0
  3. package/dist/Render-OFE6QLI2.mjs +55 -0
  4. package/dist/Render-QEMDIDQC.css +101 -0
  5. package/dist/{walk-tree-16XYcbNo.d.mts → actions-CJibIB0m.d.mts} +8 -33
  6. package/dist/{walk-tree-16XYcbNo.d.ts → actions-CJibIB0m.d.ts} +8 -33
  7. package/dist/chunk-2Q4PACDA.mjs +111 -0
  8. package/dist/chunk-62AAYNXG.mjs +63 -0
  9. package/dist/chunk-BSDEIOEK.mjs +706 -0
  10. package/dist/chunk-CSSRLPHM.mjs +11 -0
  11. package/dist/chunk-DAQLMM2T.mjs +1722 -0
  12. package/dist/chunk-M6W7YEVX.mjs +95 -0
  13. package/dist/chunk-NLUHDYVR.mjs +416 -0
  14. package/dist/chunk-PLXSMBAA.mjs +53 -0
  15. package/dist/chunk-QAWJTCV5.mjs +33 -0
  16. package/dist/chunk-QBGM4ELA.mjs +528 -0
  17. package/dist/chunk-T3WX7XJ6.mjs +132 -0
  18. package/dist/chunk-V5I7CVLT.mjs +103 -0
  19. package/dist/chunk-Y2EFNT5P.mjs +108 -0
  20. package/dist/chunk-Y656T6AQ.mjs +419 -0
  21. package/dist/{chunk-GFIVKP2H.mjs → chunk-Z476VA6G.mjs} +1164 -4159
  22. package/dist/full-2GJTAAZE.css +301 -0
  23. package/dist/full-BEMDJKDS.mjs +93 -0
  24. package/dist/index-Bss1jupB.d.ts +116 -0
  25. package/dist/index-DOcD_H3b.d.mts +116 -0
  26. package/dist/index.css +102 -94
  27. package/dist/index.d.mts +10 -126
  28. package/dist/index.d.ts +10 -126
  29. package/dist/index.js +6864 -5123
  30. package/dist/index.mjs +26 -11
  31. package/dist/internal.d.mts +27 -0
  32. package/dist/internal.d.ts +27 -0
  33. package/dist/internal.js +908 -0
  34. package/dist/internal.mjs +13 -0
  35. package/dist/loaded-JU3A7Y4L.mjs +57 -0
  36. package/dist/loaded-N3FYGF2Y.mjs +57 -0
  37. package/dist/loaded-OBY7OMS6.mjs +60 -0
  38. package/dist/loaded-RVWBFK7L.css +87 -0
  39. package/dist/no-external.css +102 -94
  40. package/dist/no-external.d.mts +3 -1
  41. package/dist/no-external.d.ts +3 -1
  42. package/dist/no-external.js +6864 -5123
  43. package/dist/no-external.mjs +26 -11
  44. package/dist/rsc.css +34 -26
  45. package/dist/rsc.d.mts +2 -2
  46. package/dist/rsc.d.ts +2 -2
  47. package/dist/rsc.js +245 -187
  48. package/dist/rsc.mjs +18 -9
  49. package/dist/walk-tree-BL55zQ9b.d.ts +29 -0
  50. package/dist/walk-tree-BYuI81Ik.d.mts +29 -0
  51. package/package.json +9 -4
  52. package/dist/chunk-SRDLYODX.mjs +0 -1245
@@ -1,18 +1,11 @@
1
1
  import {
2
- Action,
3
- ActionBar,
4
2
  AutoField,
5
3
  Button,
6
4
  Drawer,
7
5
  DropZone,
8
6
  FieldLabel,
9
- Group,
10
- IconButton,
11
- Label,
12
7
  Puck,
13
8
  Render,
14
- RichTextMenu,
15
- Separator,
16
9
  createUsePuck,
17
10
  overrideKeys,
18
11
  registerOverlayPortal,
@@ -20,14 +13,36 @@ import {
20
13
  setDeep,
21
14
  useGetPuck,
22
15
  usePuck
23
- } from "./chunk-GFIVKP2H.mjs";
16
+ } from "./chunk-Z476VA6G.mjs";
17
+ import "./chunk-2Q4PACDA.mjs";
24
18
  import {
25
- init_react_import,
26
19
  migrate,
27
20
  resolveAllData,
28
- transformProps,
21
+ transformProps
22
+ } from "./chunk-Y656T6AQ.mjs";
23
+ import "./chunk-CSSRLPHM.mjs";
24
+ import {
25
+ Action,
26
+ ActionBar,
27
+ Group,
28
+ IconButton,
29
+ Label,
30
+ RichTextMenu,
31
+ Separator
32
+ } from "./chunk-BSDEIOEK.mjs";
33
+ import "./chunk-PLXSMBAA.mjs";
34
+ import "./chunk-62AAYNXG.mjs";
35
+ import "./chunk-QAWJTCV5.mjs";
36
+ import "./chunk-DAQLMM2T.mjs";
37
+ import "./chunk-QBGM4ELA.mjs";
38
+ import "./chunk-T3WX7XJ6.mjs";
39
+ import "./chunk-Y2EFNT5P.mjs";
40
+ import {
29
41
  walkTree
30
- } from "./chunk-SRDLYODX.mjs";
42
+ } from "./chunk-NLUHDYVR.mjs";
43
+ import {
44
+ init_react_import
45
+ } from "./chunk-M6W7YEVX.mjs";
31
46
 
32
47
  // bundle/no-external.ts
33
48
  init_react_import();
package/dist/rsc.css CHANGED
@@ -1,48 +1,52 @@
1
1
  /* css-module:/home/runner/work/puck/puck/packages/core/components/RichTextEditor/styles.module.css/#css-module-data */
2
- ._RichTextEditor_1819a_1 .ProseMirror {
2
+ ._RichTextEditor_1elol_1 .ProseMirror {
3
3
  white-space: pre-wrap;
4
4
  word-wrap: break-word;
5
5
  cursor: text;
6
6
  outline: none;
7
7
  position: relative;
8
8
  }
9
- ._RichTextEditor_1819a_1 .rich-text * {
9
+ ._RichTextEditor_1elol_1 .rich-text * {
10
10
  white-space: pre-wrap;
11
+ user-select: auto;
12
+ -webkit-user-select: auto;
11
13
  }
12
- ._RichTextEditor_1819a_1 .rich-text blockquote {
14
+ ._RichTextEditor_1elol_1 .rich-text blockquote {
13
15
  margin: 1em 0;
14
16
  padding: 0 1em;
15
17
  border-left: 4px solid var(--puck-color-grey-09);
16
18
  }
17
- ._RichTextEditor_1819a_1 .rich-text code {
19
+ ._RichTextEditor_1elol_1 .rich-text code {
18
20
  background-color: var(--puck-color-grey-11);
19
21
  padding: 4px 8px;
20
22
  border-radius: 4px;
21
23
  }
22
- ._RichTextEditor_1819a_1 .rich-text p:empty::before {
24
+ ._RichTextEditor_1elol_1 .rich-text p:empty::before {
23
25
  content: "\a0";
24
26
  }
25
- ._RichTextEditor_1819a_1 .rich-text pre code {
27
+ ._RichTextEditor_1elol_1 .rich-text pre code {
26
28
  display: block;
27
29
  padding: 8px 12px;
28
30
  }
29
- ._RichTextEditor_1819a_1 .rich-text > *:first-child,
30
- ._RichTextEditor_1819a_1 .ProseMirror > *:first-child,
31
- ._RichTextEditor_1819a_1 .rich-text * p:first-of-type {
31
+ ._RichTextEditor_1elol_1 .rich-text > *:first-child,
32
+ ._RichTextEditor_1elol_1 .ProseMirror > *:first-child,
33
+ ._RichTextEditor_1elol_1 .rich-text * p:first-of-type {
32
34
  margin-top: 0;
33
35
  }
34
- ._RichTextEditor_1819a_1 .rich-text > *:last-child,
35
- ._RichTextEditor_1819a_1 .ProseMirror > *:last-child,
36
- ._RichTextEditor_1819a_1 .rich-text * p:last-of-type {
36
+ ._RichTextEditor_1elol_1 .rich-text > *:last-child,
37
+ ._RichTextEditor_1elol_1 .ProseMirror > *:last-child,
38
+ ._RichTextEditor_1elol_1 .rich-text * p:last-of-type {
37
39
  margin-bottom: 0;
38
40
  }
39
- ._RichTextEditor--editor_1819a_46 {
41
+ ._RichTextEditor--editor_1elol_50 {
40
42
  background: var(--puck-color-white);
41
43
  border-width: 1px;
42
44
  border-style: solid;
43
45
  border-color: var(--puck-color-grey-09);
44
46
  border-radius: 4px;
45
47
  box-sizing: border-box;
48
+ display: flex;
49
+ flex-direction: column;
46
50
  font-family: inherit;
47
51
  font-size: var(--puck-font-size-xxs);
48
52
  resize: vertical;
@@ -51,43 +55,47 @@
51
55
  max-width: 100%;
52
56
  min-height: 128px;
53
57
  }
54
- ._RichTextEditor--editor_1819a_46 .rich-text:not(:has(.ProseMirror)),
55
- ._RichTextEditor--editor_1819a_46 .rich-text .ProseMirror {
58
+ ._RichTextEditor--editor_1elol_50 .rich-text {
59
+ flex-grow: 1;
60
+ }
61
+ ._RichTextEditor--editor_1elol_50 .rich-text:not(:has(.ProseMirror)),
62
+ ._RichTextEditor--editor_1elol_50 .rich-text .ProseMirror {
63
+ height: 100%;
56
64
  padding: 12px 15px;
57
65
  }
58
- ._RichTextEditor--editor_1819a_46 .rich-text ul,
59
- ._RichTextEditor--editor_1819a_46 .rich-text ol {
66
+ ._RichTextEditor--editor_1elol_50 .rich-text ul,
67
+ ._RichTextEditor--editor_1elol_50 .rich-text ol {
60
68
  padding-left: 24px;
61
69
  }
62
- ._RichTextEditor--editor_1819a_46 .rich-text li {
70
+ ._RichTextEditor--editor_1elol_50 .rich-text li {
63
71
  line-height: 1.5;
64
72
  }
65
- ._RichTextEditor--editor_1819a_46 .rich-text p {
73
+ ._RichTextEditor--editor_1elol_50 .rich-text p {
66
74
  margin-block: 12px;
67
75
  }
68
- ._RichTextEditor--editor_1819a_46 .rich-text ul {
76
+ ._RichTextEditor--editor_1elol_50 .rich-text ul {
69
77
  list-style: disc;
70
78
  }
71
- ._RichTextEditor--editor_1819a_46 .rich-text ol {
79
+ ._RichTextEditor--editor_1elol_50 .rich-text ol {
72
80
  list-style: decimal;
73
81
  }
74
- ._RichTextEditor--editor_1819a_46:focus-within {
82
+ ._RichTextEditor--editor_1elol_50:focus-within {
75
83
  border-color: var(--puck-color-grey-05);
76
84
  outline: 2px solid var(--puck-color-azure-05);
77
85
  transition: none;
78
86
  }
79
- ._RichTextEditor--editor_1819a_46._RichTextEditor--disabled_1819a_95 {
87
+ ._RichTextEditor--editor_1elol_50._RichTextEditor--disabled_1elol_106 {
80
88
  background: var(--puck-color-grey-11);
81
89
  }
82
- ._RichTextEditor_1819a_1:not(:focus-within):not(._RichTextEditor--isActive_1819a_99) .ProseMirror ::selection {
90
+ ._RichTextEditor_1elol_1:not(:focus-within):not(._RichTextEditor--isActive_1elol_110) .ProseMirror ::selection {
83
91
  background-color: transparent;
84
92
  }
85
- ._RichTextEditor-menu_1819a_105 {
93
+ ._RichTextEditor-menu_1elol_116 {
86
94
  border-bottom: 1px solid var(--puck-color-grey-10);
87
95
  position: sticky;
88
96
  top: 0;
89
97
  z-index: 1;
90
98
  }
91
- ._RichTextEditor--disabled_1819a_95 ._RichTextEditor-menu_1819a_105 {
99
+ ._RichTextEditor--disabled_1elol_106 ._RichTextEditor-menu_1elol_116 {
92
100
  border-bottom: 1px solid var(--puck-color-grey-09);
93
101
  }
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, U as UserGenerics, M as Metadata } from './walk-tree-16XYcbNo.mjs';
3
- export { m as migrate, r as resolveAllData, t as transformProps, w as walkTree } from './walk-tree-16XYcbNo.mjs';
2
+ import { C as Config, U as UserGenerics, M as Metadata } from './actions-CJibIB0m.mjs';
3
+ export { m as migrate, r as resolveAllData, t as transformProps, w as walkTree } from './walk-tree-BYuI81Ik.mjs';
4
4
  import 'react';
5
5
  import '@tiptap/react';
6
6
  import '@tiptap/extension-blockquote';
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, U as UserGenerics, M as Metadata } from './walk-tree-16XYcbNo.js';
3
- export { m as migrate, r as resolveAllData, t as transformProps, w as walkTree } from './walk-tree-16XYcbNo.js';
2
+ import { C as Config, U as UserGenerics, M as Metadata } from './actions-CJibIB0m.js';
3
+ export { m as migrate, r as resolveAllData, t as transformProps, w as walkTree } from './walk-tree-BL55zQ9b.js';
4
4
  import 'react';
5
5
  import '@tiptap/react';
6
6
  import '@tiptap/extension-blockquote';