@puckeditor/core 0.24.0-canary.fcfd4b94 → 0.24.0
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/CHANGELOG.md +1244 -0
- package/LICENSE +21 -0
- package/dist/{Editor-T7TKW6NT.css → Editor-CSDMK75G.css} +24 -16
- package/dist/{Editor-7HVJABBS.mjs → Editor-LJSLIQQP.mjs} +9 -9
- package/dist/{Render-DQXAYUBI.mjs → Render-H3USS5FU.mjs} +2 -2
- package/dist/{actions-DzP_zhsF.d.ts → actions-Dgllwd-W.d.mts} +24 -4
- package/dist/{actions-DzP_zhsF.d.mts → actions-Dgllwd-W.d.ts} +24 -4
- package/dist/{chunk-DWQZNG26.mjs → chunk-3GJJSXCL.mjs} +85 -52
- package/dist/{chunk-FHGOTDB5.mjs → chunk-5L3MP6BU.mjs} +8 -8
- package/dist/{chunk-PI2N6YRG.mjs → chunk-DQXMVPVM.mjs} +2536 -1426
- package/dist/{chunk-OOTCJDR3.mjs → chunk-FWBFOZBF.mjs} +189 -139
- package/dist/{chunk-75VT4L37.mjs → chunk-M6VGZJMS.mjs} +1 -1
- package/dist/{chunk-YBKRDXOL.mjs → chunk-OGTX6PQW.mjs} +1 -1
- package/dist/{chunk-Y2EFNT5P.mjs → chunk-OT7NKYY4.mjs} +2 -2
- package/dist/{chunk-FVMO3IOJ.mjs → chunk-UIJZMSVU.mjs} +4 -4
- package/dist/{chunk-ZRAERXB4.mjs → chunk-XMN55NON.mjs} +3 -2
- package/dist/{chunk-L24AF7CT.mjs → chunk-ZO7CHPM6.mjs} +1 -1
- package/dist/{chunk-2CNEFIQP.mjs → chunk-ZOLLDKZQ.mjs} +4 -1
- package/dist/{full-AAZK6KLI.css → full-F3CBWTKQ.css} +24 -16
- package/dist/{full-35XZI7ZG.mjs → full-H4FZ3HN3.mjs} +7 -7
- package/dist/{index-Cv-eVWCd.d.ts → index-D0qqZNSQ.d.mts} +2 -1
- package/dist/{index-poi3aTIz.d.mts → index-dKPCNzR1.d.ts} +2 -1
- package/dist/index.css +371 -127
- package/dist/index.d.mts +64 -8
- package/dist/index.d.ts +64 -8
- package/dist/index.js +5731 -4535
- package/dist/index.mjs +16 -10
- package/dist/internal.d.mts +2 -2
- package/dist/internal.d.ts +2 -2
- package/dist/{loaded-ESP3PLMN.mjs → loaded-P5HN7RJY.mjs} +4 -4
- package/dist/{loaded-RS7ITDTL.mjs → loaded-PFIA543C.mjs} +4 -4
- package/dist/{loaded-CA3Q7UHH.css → loaded-UDM5EYPG.css} +24 -16
- package/dist/{loaded-2NYAMF3O.mjs → loaded-WFQRY2XL.mjs} +4 -4
- package/dist/no-external.css +371 -127
- package/dist/no-external.d.mts +4 -4
- package/dist/no-external.d.ts +4 -4
- package/dist/no-external.js +5731 -4535
- package/dist/no-external.mjs +16 -10
- package/dist/rsc.d.mts +4 -3
- package/dist/rsc.d.ts +4 -3
- package/dist/rsc.js +139 -70
- package/dist/rsc.mjs +51 -21
- package/dist/{walk-tree-iWDqHBcM.d.mts → walk-tree-BA4pi921.d.mts} +1 -1
- package/dist/{walk-tree-Bu3IHwm_.d.ts → walk-tree-zKkZGcaE.d.ts} +1 -1
- package/package.json +37 -35
package/dist/index.mjs
CHANGED
|
@@ -3,10 +3,12 @@ import {
|
|
|
3
3
|
Button,
|
|
4
4
|
Drawer,
|
|
5
5
|
DropZone,
|
|
6
|
+
FieldGroup,
|
|
6
7
|
FieldLabel,
|
|
7
8
|
InlineTextField,
|
|
8
9
|
Puck,
|
|
9
10
|
Render,
|
|
11
|
+
Tab,
|
|
10
12
|
blocksPlugin,
|
|
11
13
|
createUsePuck,
|
|
12
14
|
fieldsPlugin,
|
|
@@ -18,31 +20,32 @@ import {
|
|
|
18
20
|
setDeep,
|
|
19
21
|
useGetPuck,
|
|
20
22
|
usePuck
|
|
21
|
-
} from "./chunk-
|
|
22
|
-
import "./chunk-
|
|
23
|
+
} from "./chunk-DQXMVPVM.mjs";
|
|
24
|
+
import "./chunk-UIJZMSVU.mjs";
|
|
23
25
|
import {
|
|
24
26
|
migrate,
|
|
25
27
|
resolveAllData,
|
|
26
28
|
transformProps
|
|
27
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-3GJJSXCL.mjs";
|
|
28
30
|
import "./chunk-H635BA2V.mjs";
|
|
29
31
|
import {
|
|
30
32
|
RichTextMenu
|
|
31
|
-
} from "./chunk-
|
|
32
|
-
import "./chunk-
|
|
33
|
-
import "./chunk-
|
|
34
|
-
import "./chunk-
|
|
33
|
+
} from "./chunk-5L3MP6BU.mjs";
|
|
34
|
+
import "./chunk-OGTX6PQW.mjs";
|
|
35
|
+
import "./chunk-ZO7CHPM6.mjs";
|
|
36
|
+
import "./chunk-M6VGZJMS.mjs";
|
|
35
37
|
import {
|
|
36
38
|
Action,
|
|
37
39
|
ActionBar,
|
|
40
|
+
DragHandle,
|
|
38
41
|
Group,
|
|
39
42
|
IconButton,
|
|
40
43
|
Label,
|
|
41
44
|
Separator
|
|
42
|
-
} from "./chunk-
|
|
45
|
+
} from "./chunk-FWBFOZBF.mjs";
|
|
43
46
|
import "./chunk-Z2MS6UIF.mjs";
|
|
44
|
-
import "./chunk-
|
|
45
|
-
import "./chunk-
|
|
47
|
+
import "./chunk-XMN55NON.mjs";
|
|
48
|
+
import "./chunk-OT7NKYY4.mjs";
|
|
46
49
|
import {
|
|
47
50
|
walkTree
|
|
48
51
|
} from "./chunk-H65MT2JK.mjs";
|
|
@@ -57,9 +60,12 @@ export {
|
|
|
57
60
|
ActionBar,
|
|
58
61
|
AutoField,
|
|
59
62
|
Button,
|
|
63
|
+
DragHandle,
|
|
60
64
|
Drawer,
|
|
61
65
|
DropZone,
|
|
66
|
+
FieldGroup,
|
|
62
67
|
FieldLabel,
|
|
68
|
+
Tab as FieldTab,
|
|
63
69
|
Group,
|
|
64
70
|
IconButton,
|
|
65
71
|
InlineTextField,
|
package/dist/internal.d.mts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Reducer } from 'react';
|
|
2
|
-
import { D as Data, a as AppState,
|
|
3
|
-
import { A as AppStore } from './index-
|
|
2
|
+
import { D as Data, a as AppState, a0 as OnAction, a6 as PrivateAppState, a7 as PuckAction } from './actions-Dgllwd-W.mjs';
|
|
3
|
+
import { A as AppStore } from './index-D0qqZNSQ.mjs';
|
|
4
4
|
import '@tiptap/react';
|
|
5
5
|
import '@tiptap/extension-blockquote';
|
|
6
6
|
import '@tiptap/extension-bold';
|
package/dist/internal.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Reducer } from 'react';
|
|
2
|
-
import { D as Data, a as AppState,
|
|
3
|
-
import { A as AppStore } from './index-
|
|
2
|
+
import { D as Data, a as AppState, a0 as OnAction, a6 as PrivateAppState, a7 as PuckAction } from './actions-Dgllwd-W.js';
|
|
3
|
+
import { A as AppStore } from './index-dKPCNzR1.js';
|
|
4
4
|
import '@tiptap/react';
|
|
5
5
|
import '@tiptap/extension-blockquote';
|
|
6
6
|
import '@tiptap/extension-bold';
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import {
|
|
2
2
|
useHeadingOptions
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-ZO7CHPM6.mjs";
|
|
4
4
|
import {
|
|
5
5
|
Heading,
|
|
6
6
|
SelectControl,
|
|
7
7
|
useControlContext
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-FWBFOZBF.mjs";
|
|
9
9
|
import "./chunk-Z2MS6UIF.mjs";
|
|
10
|
-
import "./chunk-
|
|
11
|
-
import "./chunk-
|
|
10
|
+
import "./chunk-XMN55NON.mjs";
|
|
11
|
+
import "./chunk-OT7NKYY4.mjs";
|
|
12
12
|
import "./chunk-H65MT2JK.mjs";
|
|
13
13
|
import {
|
|
14
14
|
init_react_import
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import {
|
|
2
2
|
useListOptions
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-M6VGZJMS.mjs";
|
|
4
4
|
import {
|
|
5
5
|
List,
|
|
6
6
|
SelectControl,
|
|
7
7
|
useControlContext
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-FWBFOZBF.mjs";
|
|
9
9
|
import "./chunk-Z2MS6UIF.mjs";
|
|
10
|
-
import "./chunk-
|
|
11
|
-
import "./chunk-
|
|
10
|
+
import "./chunk-XMN55NON.mjs";
|
|
11
|
+
import "./chunk-OT7NKYY4.mjs";
|
|
12
12
|
import "./chunk-H65MT2JK.mjs";
|
|
13
13
|
import {
|
|
14
14
|
init_react_import
|
|
@@ -116,7 +116,7 @@
|
|
|
116
116
|
}
|
|
117
117
|
|
|
118
118
|
/* css-module:/home/runner/work/puck/puck/packages/core/components/ActionBar/styles.module.css/#css-module-data */
|
|
119
|
-
.
|
|
119
|
+
._ActionBar_gr1cb_1 {
|
|
120
120
|
align-items: center;
|
|
121
121
|
cursor: default;
|
|
122
122
|
display: flex;
|
|
@@ -131,7 +131,7 @@
|
|
|
131
131
|
font-family: var(--puck-font-family);
|
|
132
132
|
min-height: 26px;
|
|
133
133
|
}
|
|
134
|
-
._ActionBar-
|
|
134
|
+
._ActionBar-label_gr1cb_17 {
|
|
135
135
|
color: var(--puck-actionbar-color-text, var(--puck-color-text-inverse));
|
|
136
136
|
font-size: var(--puck-actionbar-font-size, var(--puck-font-size-xxxs));
|
|
137
137
|
opacity: var(--puck-actionbar-opacity-text, var(--puck-opacity-text-inverse));
|
|
@@ -143,13 +143,13 @@
|
|
|
143
143
|
text-overflow: ellipsis;
|
|
144
144
|
white-space: nowrap;
|
|
145
145
|
}
|
|
146
|
-
.
|
|
146
|
+
._ActionBarAction_gr1cb_30 + ._ActionBar-label_gr1cb_17 {
|
|
147
147
|
padding-inline-start: 0;
|
|
148
148
|
}
|
|
149
|
-
._ActionBar-
|
|
149
|
+
._ActionBar-label_gr1cb_17 + ._ActionBarAction_gr1cb_30 {
|
|
150
150
|
margin-inline-start: calc(var(--puck-space-1) * -1);
|
|
151
151
|
}
|
|
152
|
-
._ActionBar-
|
|
152
|
+
._ActionBar-group_gr1cb_38 {
|
|
153
153
|
align-items: center;
|
|
154
154
|
border-inline-start: var(--puck-border-width-hairline) solid var(--puck-actionbar-color-separator, var(--puck-color-border-inverse));
|
|
155
155
|
display: flex;
|
|
@@ -157,13 +157,13 @@
|
|
|
157
157
|
padding-inline-start: var(--puck-space-1);
|
|
158
158
|
padding-inline-end: var(--puck-space-1);
|
|
159
159
|
}
|
|
160
|
-
._ActionBar-
|
|
160
|
+
._ActionBar-group_gr1cb_38:first-of-type {
|
|
161
161
|
border-inline-start: 0;
|
|
162
162
|
}
|
|
163
|
-
._ActionBar-
|
|
163
|
+
._ActionBar-group_gr1cb_38:empty {
|
|
164
164
|
display: none;
|
|
165
165
|
}
|
|
166
|
-
.
|
|
166
|
+
._ActionBarAction_gr1cb_30 {
|
|
167
167
|
background: transparent;
|
|
168
168
|
border: none;
|
|
169
169
|
color: var(--puck-actionbar-color-text, var(--puck-color-text-inverse));
|
|
@@ -179,35 +179,43 @@
|
|
|
179
179
|
opacity: var(--puck-actionbar-opacity-text, var(--puck-opacity-text-inverse));
|
|
180
180
|
transition: color var(--puck-duration-fast) var(--puck-ease-exit), opacity var(--puck-duration-fast) var(--puck-ease-exit);
|
|
181
181
|
}
|
|
182
|
-
._ActionBarAction--
|
|
182
|
+
._ActionBarAction--disabled_gr1cb_74 {
|
|
183
183
|
cursor: auto;
|
|
184
184
|
color: var( --puck-actionbar-color-action-disabled, var(--puck-color-text-inverse) );
|
|
185
185
|
opacity: var(--puck-actionbar-opacity-action-disabled, 0.54);
|
|
186
186
|
}
|
|
187
|
-
.
|
|
187
|
+
._ActionBarAction--grab_gr1cb_83 {
|
|
188
|
+
cursor: grab;
|
|
189
|
+
touch-action: none;
|
|
190
|
+
}
|
|
191
|
+
._ActionBarAction-icon_gr1cb_88 {
|
|
192
|
+
height: var(--puck-actionbar-action-size, var(--puck-icon-size-s));
|
|
193
|
+
width: var(--puck-actionbar-action-size, var(--puck-icon-size-s));
|
|
194
|
+
}
|
|
195
|
+
._ActionBarAction_gr1cb_30 svg {
|
|
188
196
|
max-width: none !important;
|
|
189
197
|
}
|
|
190
|
-
.
|
|
198
|
+
._ActionBarAction_gr1cb_30:focus-visible {
|
|
191
199
|
outline: var(--puck-border-width-focus) solid var(--puck-color-focus-ring);
|
|
192
200
|
outline-offset: calc(var(--puck-border-width-focus) * -1);
|
|
193
201
|
}
|
|
194
202
|
@media (hover: hover) and (pointer: fine) {
|
|
195
|
-
.
|
|
203
|
+
._ActionBarAction_gr1cb_30:hover:not(._ActionBarAction--disabled_gr1cb_74) {
|
|
196
204
|
color: var( --puck-actionbar-color-action-hover, var(--puck-color-interactive-inverse-hover) );
|
|
197
205
|
opacity: 1;
|
|
198
206
|
transition: none;
|
|
199
207
|
}
|
|
200
208
|
}
|
|
201
|
-
.
|
|
202
|
-
._ActionBarAction--
|
|
209
|
+
._ActionBarAction_gr1cb_30:active:not(._ActionBarAction--disabled_gr1cb_74),
|
|
210
|
+
._ActionBarAction--active_gr1cb_114 {
|
|
203
211
|
color: var( --puck-actionbar-color-action-active, var(--puck-color-interactive-inverse-active) );
|
|
204
212
|
opacity: 1;
|
|
205
213
|
transition: none;
|
|
206
214
|
}
|
|
207
|
-
._ActionBar-
|
|
215
|
+
._ActionBar-group_gr1cb_38 * {
|
|
208
216
|
margin: 0;
|
|
209
217
|
}
|
|
210
|
-
._ActionBar-
|
|
218
|
+
._ActionBar-separator_gr1cb_127 {
|
|
211
219
|
background: var( --puck-actionbar-color-separator, var(--puck-color-border-inverse) );
|
|
212
220
|
margin-inline: var(--puck-space-1);
|
|
213
221
|
width: var( --puck-border-width-hairline );
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import {
|
|
2
2
|
useAlignOptions
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-OGTX6PQW.mjs";
|
|
4
4
|
import {
|
|
5
5
|
AlignLeft,
|
|
6
6
|
SelectControl,
|
|
7
7
|
useControlContext
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-FWBFOZBF.mjs";
|
|
9
9
|
import "./chunk-Z2MS6UIF.mjs";
|
|
10
|
-
import "./chunk-
|
|
11
|
-
import "./chunk-
|
|
10
|
+
import "./chunk-XMN55NON.mjs";
|
|
11
|
+
import "./chunk-OT7NKYY4.mjs";
|
|
12
12
|
import "./chunk-H65MT2JK.mjs";
|
|
13
13
|
import {
|
|
14
14
|
init_react_import
|