@measured/puck 0.21.0-canary.304940ae → 0.21.0-canary.3aa27d1d
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/{chunk-QNMNHBNQ.mjs → chunk-GFIVKP2H.mjs} +2181 -853
- package/dist/{chunk-JA7SEUEH.mjs → chunk-SRDLYODX.mjs} +286 -7
- package/dist/index.css +270 -22
- package/dist/index.d.mts +106 -7
- package/dist/index.d.ts +106 -7
- package/dist/index.js +2205 -620
- package/dist/index.mjs +6 -2
- package/dist/no-external.css +270 -22
- package/dist/no-external.d.mts +17 -2
- package/dist/no-external.d.ts +17 -2
- package/dist/no-external.js +2205 -620
- package/dist/no-external.mjs +6 -2
- package/dist/rsc.css +93 -0
- package/dist/rsc.d.mts +17 -2
- package/dist/rsc.d.ts +17 -2
- package/dist/rsc.js +346 -18
- package/dist/rsc.mjs +1 -1
- package/dist/{walk-tree-BqwnaCVe.d.mts → walk-tree-16XYcbNo.d.mts} +207 -7
- package/dist/{walk-tree-BqwnaCVe.d.ts → walk-tree-16XYcbNo.d.ts} +207 -7
- package/package.json +23 -1
package/dist/index.css
CHANGED
|
@@ -147,7 +147,7 @@
|
|
|
147
147
|
/* bundle/index.css */
|
|
148
148
|
|
|
149
149
|
/* css-module:/home/runner/work/puck/puck/packages/core/components/ActionBar/styles.module.css/#css-module-data */
|
|
150
|
-
.
|
|
150
|
+
._ActionBar_1nmyk_1 {
|
|
151
151
|
align-items: center;
|
|
152
152
|
cursor: default;
|
|
153
153
|
display: flex;
|
|
@@ -163,7 +163,7 @@
|
|
|
163
163
|
font-family: var(--puck-font-family);
|
|
164
164
|
min-height: 26px;
|
|
165
165
|
}
|
|
166
|
-
._ActionBar-
|
|
166
|
+
._ActionBar-label_1nmyk_18 {
|
|
167
167
|
color: var(--puck-color-grey-08);
|
|
168
168
|
font-size: var(--puck-font-size-xxxs);
|
|
169
169
|
font-weight: 500;
|
|
@@ -174,13 +174,13 @@
|
|
|
174
174
|
text-overflow: ellipsis;
|
|
175
175
|
white-space: nowrap;
|
|
176
176
|
}
|
|
177
|
-
.
|
|
177
|
+
._ActionBarAction_1nmyk_30 + ._ActionBar-label_1nmyk_18 {
|
|
178
178
|
padding-inline-start: 0;
|
|
179
179
|
}
|
|
180
|
-
._ActionBar-
|
|
180
|
+
._ActionBar-label_1nmyk_18 + ._ActionBarAction_1nmyk_30 {
|
|
181
181
|
margin-inline-start: -4px;
|
|
182
182
|
}
|
|
183
|
-
._ActionBar-
|
|
183
|
+
._ActionBar-group_1nmyk_38 {
|
|
184
184
|
align-items: center;
|
|
185
185
|
border-inline-start: 0.5px solid var(--puck-color-grey-05);
|
|
186
186
|
display: flex;
|
|
@@ -188,18 +188,18 @@
|
|
|
188
188
|
padding-inline-start: 4px;
|
|
189
189
|
padding-inline-end: 4px;
|
|
190
190
|
}
|
|
191
|
-
._ActionBar-
|
|
191
|
+
._ActionBar-group_1nmyk_38:first-of-type {
|
|
192
192
|
border-inline-start: 0;
|
|
193
193
|
}
|
|
194
|
-
._ActionBar-
|
|
194
|
+
._ActionBar-group_1nmyk_38:empty {
|
|
195
195
|
display: none;
|
|
196
196
|
}
|
|
197
|
-
.
|
|
197
|
+
._ActionBarAction_1nmyk_30 {
|
|
198
198
|
background: transparent;
|
|
199
199
|
border: none;
|
|
200
200
|
color: var(--puck-color-grey-08);
|
|
201
201
|
cursor: pointer;
|
|
202
|
-
padding: 6px
|
|
202
|
+
padding: 6px;
|
|
203
203
|
margin-inline-start: 4px;
|
|
204
204
|
margin-inline-end: 4px;
|
|
205
205
|
border-radius: 4px;
|
|
@@ -209,26 +209,37 @@
|
|
|
209
209
|
justify-content: center;
|
|
210
210
|
transition: color 50ms ease-in;
|
|
211
211
|
}
|
|
212
|
-
.
|
|
212
|
+
._ActionBarAction--disabled_1nmyk_71 {
|
|
213
|
+
cursor: auto;
|
|
214
|
+
color: var(--puck-color-grey-06);
|
|
215
|
+
}
|
|
216
|
+
._ActionBarAction_1nmyk_30 svg {
|
|
213
217
|
max-width: none !important;
|
|
214
218
|
}
|
|
215
|
-
.
|
|
219
|
+
._ActionBarAction_1nmyk_30:focus-visible {
|
|
216
220
|
outline: 2px solid var(--puck-color-azure-05);
|
|
217
221
|
outline-offset: -2px;
|
|
218
222
|
}
|
|
219
223
|
@media (hover: hover) and (pointer: fine) {
|
|
220
|
-
.
|
|
224
|
+
._ActionBarAction_1nmyk_30:hover:not(._ActionBarAction--disabled_1nmyk_71) {
|
|
221
225
|
color: var(--puck-color-azure-06);
|
|
222
226
|
transition: none;
|
|
223
227
|
}
|
|
224
228
|
}
|
|
225
|
-
.
|
|
229
|
+
._ActionBarAction_1nmyk_30:active:not(._ActionBarAction--disabled_1nmyk_71),
|
|
230
|
+
._ActionBarAction--active_1nmyk_93 {
|
|
226
231
|
color: var(--puck-color-azure-07);
|
|
227
232
|
transition: none;
|
|
228
233
|
}
|
|
229
|
-
._ActionBar-
|
|
234
|
+
._ActionBar-group_1nmyk_38 * {
|
|
230
235
|
margin: 0;
|
|
231
236
|
}
|
|
237
|
+
._ActionBar-separator_1nmyk_102 {
|
|
238
|
+
background: var(--puck-color-grey-05);
|
|
239
|
+
margin-inline: 4px;
|
|
240
|
+
width: 0.5px;
|
|
241
|
+
height: 100%;
|
|
242
|
+
}
|
|
232
243
|
|
|
233
244
|
/* css-module:/home/runner/work/puck/puck/packages/core/components/AutoField/styles.module.css/#css-module-data */
|
|
234
245
|
._InputWrapper_bsxfo_1 + ._InputWrapper_bsxfo_1 {
|
|
@@ -545,7 +556,7 @@ textarea._Input-input_bsxfo_26 {
|
|
|
545
556
|
}
|
|
546
557
|
|
|
547
558
|
/* css-module:/home/runner/work/puck/puck/packages/core/components/IconButton/IconButton.module.css/#css-module-data */
|
|
548
|
-
.
|
|
559
|
+
._IconButton_ffob9_1 {
|
|
549
560
|
align-items: center;
|
|
550
561
|
background: transparent;
|
|
551
562
|
border: none;
|
|
@@ -557,23 +568,26 @@ textarea._Input-input_bsxfo_26 {
|
|
|
557
568
|
padding: 4px;
|
|
558
569
|
transition: background-color 50ms ease-in, color 50ms ease-in;
|
|
559
570
|
}
|
|
560
|
-
.
|
|
571
|
+
._IconButton--active_ffob9_14 {
|
|
572
|
+
color: var(--puck-color-azure-04);
|
|
573
|
+
}
|
|
574
|
+
._IconButton_ffob9_1:focus-visible {
|
|
561
575
|
outline: 2px solid var(--puck-color-azure-05);
|
|
562
576
|
outline-offset: -2px;
|
|
563
577
|
}
|
|
564
578
|
@media (hover: hover) and (pointer: fine) {
|
|
565
|
-
.
|
|
566
|
-
background: var(--puck-color-
|
|
579
|
+
._IconButton_ffob9_1:hover:not(._IconButton--disabled_ffob9_24) {
|
|
580
|
+
background: var(--puck-color-grey-10);
|
|
567
581
|
color: var(--puck-color-azure-04);
|
|
568
582
|
cursor: pointer;
|
|
569
583
|
transition: none;
|
|
570
584
|
}
|
|
571
585
|
}
|
|
572
|
-
.
|
|
586
|
+
._IconButton_ffob9_1:active {
|
|
573
587
|
background: var(--puck-color-azure-11);
|
|
574
588
|
transition: none;
|
|
575
589
|
}
|
|
576
|
-
._IconButton-
|
|
590
|
+
._IconButton-title_ffob9_37 {
|
|
577
591
|
clip: rect(0 0 0 0);
|
|
578
592
|
clip-path: inset(100%);
|
|
579
593
|
height: 1px;
|
|
@@ -582,7 +596,7 @@ textarea._Input-input_bsxfo_26 {
|
|
|
582
596
|
white-space: nowrap;
|
|
583
597
|
width: 1px;
|
|
584
598
|
}
|
|
585
|
-
._IconButton--
|
|
599
|
+
._IconButton--disabled_ffob9_24 {
|
|
586
600
|
color: var(--puck-color-grey-07);
|
|
587
601
|
}
|
|
588
602
|
|
|
@@ -1084,6 +1098,240 @@ textarea._Input-input_bsxfo_26 {
|
|
|
1084
1098
|
padding-inline-start: 8px;
|
|
1085
1099
|
}
|
|
1086
1100
|
|
|
1101
|
+
/* css-module:/home/runner/work/puck/puck/packages/core/components/RichTextEditor/styles.module.css/#css-module-data */
|
|
1102
|
+
._RichTextEditor_1819a_1 .ProseMirror {
|
|
1103
|
+
white-space: pre-wrap;
|
|
1104
|
+
word-wrap: break-word;
|
|
1105
|
+
cursor: text;
|
|
1106
|
+
outline: none;
|
|
1107
|
+
position: relative;
|
|
1108
|
+
}
|
|
1109
|
+
._RichTextEditor_1819a_1 .rich-text * {
|
|
1110
|
+
white-space: pre-wrap;
|
|
1111
|
+
}
|
|
1112
|
+
._RichTextEditor_1819a_1 .rich-text blockquote {
|
|
1113
|
+
margin: 1em 0;
|
|
1114
|
+
padding: 0 1em;
|
|
1115
|
+
border-left: 4px solid var(--puck-color-grey-09);
|
|
1116
|
+
}
|
|
1117
|
+
._RichTextEditor_1819a_1 .rich-text code {
|
|
1118
|
+
background-color: var(--puck-color-grey-11);
|
|
1119
|
+
padding: 4px 8px;
|
|
1120
|
+
border-radius: 4px;
|
|
1121
|
+
}
|
|
1122
|
+
._RichTextEditor_1819a_1 .rich-text p:empty::before {
|
|
1123
|
+
content: "\a0";
|
|
1124
|
+
}
|
|
1125
|
+
._RichTextEditor_1819a_1 .rich-text pre code {
|
|
1126
|
+
display: block;
|
|
1127
|
+
padding: 8px 12px;
|
|
1128
|
+
}
|
|
1129
|
+
._RichTextEditor_1819a_1 .rich-text > *:first-child,
|
|
1130
|
+
._RichTextEditor_1819a_1 .ProseMirror > *:first-child,
|
|
1131
|
+
._RichTextEditor_1819a_1 .rich-text * p:first-of-type {
|
|
1132
|
+
margin-top: 0;
|
|
1133
|
+
}
|
|
1134
|
+
._RichTextEditor_1819a_1 .rich-text > *:last-child,
|
|
1135
|
+
._RichTextEditor_1819a_1 .ProseMirror > *:last-child,
|
|
1136
|
+
._RichTextEditor_1819a_1 .rich-text * p:last-of-type {
|
|
1137
|
+
margin-bottom: 0;
|
|
1138
|
+
}
|
|
1139
|
+
._RichTextEditor--editor_1819a_46 {
|
|
1140
|
+
background: var(--puck-color-white);
|
|
1141
|
+
border-width: 1px;
|
|
1142
|
+
border-style: solid;
|
|
1143
|
+
border-color: var(--puck-color-grey-09);
|
|
1144
|
+
border-radius: 4px;
|
|
1145
|
+
box-sizing: border-box;
|
|
1146
|
+
font-family: inherit;
|
|
1147
|
+
font-size: var(--puck-font-size-xxs);
|
|
1148
|
+
resize: vertical;
|
|
1149
|
+
transition: border-color 50ms ease-in;
|
|
1150
|
+
width: 100%;
|
|
1151
|
+
max-width: 100%;
|
|
1152
|
+
min-height: 128px;
|
|
1153
|
+
}
|
|
1154
|
+
._RichTextEditor--editor_1819a_46 .rich-text:not(:has(.ProseMirror)),
|
|
1155
|
+
._RichTextEditor--editor_1819a_46 .rich-text .ProseMirror {
|
|
1156
|
+
padding: 12px 15px;
|
|
1157
|
+
}
|
|
1158
|
+
._RichTextEditor--editor_1819a_46 .rich-text ul,
|
|
1159
|
+
._RichTextEditor--editor_1819a_46 .rich-text ol {
|
|
1160
|
+
padding-left: 24px;
|
|
1161
|
+
}
|
|
1162
|
+
._RichTextEditor--editor_1819a_46 .rich-text li {
|
|
1163
|
+
line-height: 1.5;
|
|
1164
|
+
}
|
|
1165
|
+
._RichTextEditor--editor_1819a_46 .rich-text p {
|
|
1166
|
+
margin-block: 12px;
|
|
1167
|
+
}
|
|
1168
|
+
._RichTextEditor--editor_1819a_46 .rich-text ul {
|
|
1169
|
+
list-style: disc;
|
|
1170
|
+
}
|
|
1171
|
+
._RichTextEditor--editor_1819a_46 .rich-text ol {
|
|
1172
|
+
list-style: decimal;
|
|
1173
|
+
}
|
|
1174
|
+
._RichTextEditor--editor_1819a_46:focus-within {
|
|
1175
|
+
border-color: var(--puck-color-grey-05);
|
|
1176
|
+
outline: 2px solid var(--puck-color-azure-05);
|
|
1177
|
+
transition: none;
|
|
1178
|
+
}
|
|
1179
|
+
._RichTextEditor--editor_1819a_46._RichTextEditor--disabled_1819a_95 {
|
|
1180
|
+
background: var(--puck-color-grey-11);
|
|
1181
|
+
}
|
|
1182
|
+
._RichTextEditor_1819a_1:not(:focus-within):not(._RichTextEditor--isActive_1819a_99) .ProseMirror ::selection {
|
|
1183
|
+
background-color: transparent;
|
|
1184
|
+
}
|
|
1185
|
+
._RichTextEditor-menu_1819a_105 {
|
|
1186
|
+
border-bottom: 1px solid var(--puck-color-grey-10);
|
|
1187
|
+
position: sticky;
|
|
1188
|
+
top: 0;
|
|
1189
|
+
z-index: 1;
|
|
1190
|
+
}
|
|
1191
|
+
._RichTextEditor--disabled_1819a_95 ._RichTextEditor-menu_1819a_105 {
|
|
1192
|
+
border-bottom: 1px solid var(--puck-color-grey-09);
|
|
1193
|
+
}
|
|
1194
|
+
|
|
1195
|
+
/* css-module:/home/runner/work/puck/puck/packages/core/components/RichTextMenu/styles.module.css/#css-module-data */
|
|
1196
|
+
._RichTextMenu_k97eh_1 {
|
|
1197
|
+
display: flex;
|
|
1198
|
+
flex-direction: row;
|
|
1199
|
+
flex-wrap: nowrap;
|
|
1200
|
+
}
|
|
1201
|
+
._RichTextMenu--form_k97eh_7 {
|
|
1202
|
+
border-top-left-radius: 4px;
|
|
1203
|
+
border-top-right-radius: 4px;
|
|
1204
|
+
padding: 6px 6px;
|
|
1205
|
+
background-color: var(--puck-color-grey-12);
|
|
1206
|
+
position: relative;
|
|
1207
|
+
scrollbar-width: none;
|
|
1208
|
+
overflow-x: auto;
|
|
1209
|
+
}
|
|
1210
|
+
._RichTextMenu-group_k97eh_17 {
|
|
1211
|
+
display: flex;
|
|
1212
|
+
align-items: space-between;
|
|
1213
|
+
flex-direction: row;
|
|
1214
|
+
flex-wrap: nowrap;
|
|
1215
|
+
padding-inline: 6px;
|
|
1216
|
+
gap: 2px;
|
|
1217
|
+
position: relative;
|
|
1218
|
+
}
|
|
1219
|
+
._RichTextMenu-group_k97eh_17:first-of-type {
|
|
1220
|
+
padding-left: 0;
|
|
1221
|
+
}
|
|
1222
|
+
._RichTextMenu-group_k97eh_17:last-of-type {
|
|
1223
|
+
padding-right: 0;
|
|
1224
|
+
}
|
|
1225
|
+
._RichTextMenu--inline_k97eh_35 ._RichTextMenu-group_k97eh_17 {
|
|
1226
|
+
color: var(--puck-color-grey-08);
|
|
1227
|
+
gap: 0px;
|
|
1228
|
+
flex-wrap: nowrap;
|
|
1229
|
+
}
|
|
1230
|
+
._RichTextMenu-group_k97eh_17 + ._RichTextMenu-group_k97eh_17 {
|
|
1231
|
+
border-left: 1px solid var(--puck-color-grey-10);
|
|
1232
|
+
}
|
|
1233
|
+
._RichTextMenu--inline_k97eh_35 ._RichTextMenu-group_k97eh_17 + ._RichTextMenu-group_k97eh_17 {
|
|
1234
|
+
border-left: 0.5px solid var(--puck-color-grey-05);
|
|
1235
|
+
}
|
|
1236
|
+
|
|
1237
|
+
/* css-module:/home/runner/work/puck/puck/packages/core/components/RichTextMenu/components/Control/styles.module.css/#css-module-data */
|
|
1238
|
+
._Control_1aveu_1 .lucide {
|
|
1239
|
+
height: 18px;
|
|
1240
|
+
width: 18px;
|
|
1241
|
+
}
|
|
1242
|
+
._Control--inline_1aveu_6 .lucide {
|
|
1243
|
+
height: 16px;
|
|
1244
|
+
width: 16px;
|
|
1245
|
+
}
|
|
1246
|
+
|
|
1247
|
+
/* css-module:/home/runner/work/puck/puck/packages/core/components/Select/styles.module.css/#css-module-data */
|
|
1248
|
+
._Select_xjbef_1 {
|
|
1249
|
+
position: relative;
|
|
1250
|
+
z-index: 1;
|
|
1251
|
+
}
|
|
1252
|
+
._Select-button_xjbef_6 {
|
|
1253
|
+
align-items: center;
|
|
1254
|
+
background: transparent;
|
|
1255
|
+
border: none;
|
|
1256
|
+
border-radius: 4px;
|
|
1257
|
+
display: flex;
|
|
1258
|
+
justify-content: center;
|
|
1259
|
+
gap: 0px;
|
|
1260
|
+
height: 100%;
|
|
1261
|
+
padding: 4px;
|
|
1262
|
+
padding-right: 2px;
|
|
1263
|
+
}
|
|
1264
|
+
._Select--hasOptions_xjbef_19 ._Select-button_xjbef_6 {
|
|
1265
|
+
color: currentColor;
|
|
1266
|
+
}
|
|
1267
|
+
._Select--hasOptions_xjbef_19:not(._Select--disabled_xjbef_23) ._Select-button_xjbef_6 {
|
|
1268
|
+
cursor: pointer;
|
|
1269
|
+
}
|
|
1270
|
+
._Select-buttonIcon_xjbef_27 {
|
|
1271
|
+
align-items: center;
|
|
1272
|
+
display: flex;
|
|
1273
|
+
justify-content: center;
|
|
1274
|
+
}
|
|
1275
|
+
._Select--standalone_xjbef_33 ._Select-buttonIcon_xjbef_27 .lucide {
|
|
1276
|
+
height: 18px;
|
|
1277
|
+
width: 18px;
|
|
1278
|
+
}
|
|
1279
|
+
._Select--actionBar_xjbef_38 ._Select-buttonIcon_xjbef_27 .lucide {
|
|
1280
|
+
height: 16px;
|
|
1281
|
+
width: 16px;
|
|
1282
|
+
}
|
|
1283
|
+
._Select--hasOptions_xjbef_19:not(._Select--disabled_xjbef_23) ._Select-button_xjbef_6:hover,
|
|
1284
|
+
._Select--hasValue_xjbef_44 ._Select-button_xjbef_6 {
|
|
1285
|
+
background: var(--puck-color-grey-10);
|
|
1286
|
+
color: var(--puck-color-azure-04);
|
|
1287
|
+
}
|
|
1288
|
+
._Select--disabled_xjbef_23 ._Select-button_xjbef_6 {
|
|
1289
|
+
color: var(--puck-color-grey-07);
|
|
1290
|
+
}
|
|
1291
|
+
._Select--actionBar_xjbef_38 {
|
|
1292
|
+
&._Select--hasOptions_xjbef_19 ._Select-button_xjbef_6:hover,
|
|
1293
|
+
&._Select--hasValue_xjbef_44 ._Select-button_xjbef_6 {
|
|
1294
|
+
background: none;
|
|
1295
|
+
color: var(--puck-color-azure-07);
|
|
1296
|
+
}
|
|
1297
|
+
}
|
|
1298
|
+
._Select-items_xjbef_61 {
|
|
1299
|
+
background: white;
|
|
1300
|
+
border: 1px solid var(--puck-color-grey-09);
|
|
1301
|
+
border-radius: 8px;
|
|
1302
|
+
margin: 10px 8px;
|
|
1303
|
+
margin-left: 0;
|
|
1304
|
+
padding: 4px;
|
|
1305
|
+
z-index: 2;
|
|
1306
|
+
list-style: none;
|
|
1307
|
+
}
|
|
1308
|
+
._SelectItem_xjbef_72 {
|
|
1309
|
+
background: transparent;
|
|
1310
|
+
border-radius: 4px;
|
|
1311
|
+
border: none;
|
|
1312
|
+
color: var(--puck-color-grey-04);
|
|
1313
|
+
cursor: pointer;
|
|
1314
|
+
display: flex;
|
|
1315
|
+
gap: 8px;
|
|
1316
|
+
align-items: center;
|
|
1317
|
+
font-size: var(--puck-font-size-xxs);
|
|
1318
|
+
margin: 0;
|
|
1319
|
+
padding: 8px 12px;
|
|
1320
|
+
width: 100%;
|
|
1321
|
+
}
|
|
1322
|
+
._SelectItem--isSelected_xjbef_87 {
|
|
1323
|
+
background: var(--puck-color-azure-11);
|
|
1324
|
+
color: var(--puck-color-azure-04);
|
|
1325
|
+
font-weight: 500;
|
|
1326
|
+
}
|
|
1327
|
+
._SelectItem--isSelected_xjbef_87 ._SelectItem-icon_xjbef_93 {
|
|
1328
|
+
color: var(--puck-color-azure-04);
|
|
1329
|
+
}
|
|
1330
|
+
._SelectItem_xjbef_72:hover {
|
|
1331
|
+
background: var(--puck-color-azure-11);
|
|
1332
|
+
color: var(--puck-color-azure-04);
|
|
1333
|
+
}
|
|
1334
|
+
|
|
1087
1335
|
/* css-module:/home/runner/work/puck/puck/packages/core/components/AutoField/fields/ObjectField/styles.module.css/#css-module-data */
|
|
1088
1336
|
._ObjectField_1ua3y_5 {
|
|
1089
1337
|
display: flex;
|
|
@@ -1326,7 +1574,7 @@ body:has(._DropZone--isAnimating_1i2sv_68:empty) [data-puck-overlay] {
|
|
|
1326
1574
|
outline-offset: 2px;
|
|
1327
1575
|
}
|
|
1328
1576
|
[data-puck-overlay-portal]:focus-within {
|
|
1329
|
-
outline: 2px var(--puck-color-azure-07)
|
|
1577
|
+
outline: 2px var(--puck-color-azure-07) dashed;
|
|
1330
1578
|
outline-offset: 2px;
|
|
1331
1579
|
}
|
|
1332
1580
|
|
package/dist/index.d.mts
CHANGED
|
@@ -1,8 +1,23 @@
|
|
|
1
|
-
import { H as History, P as Permissions, a as ComponentData, C as Config, U as UserGenerics, F as Fields, b as PuckAction, R as RootDataWithProps, c as ResolveDataTrigger, d as Plugin, O as Overrides, V as Viewports, I as IframeConfig, e as UiState, f as ComponentConfig, A as AppState, M as Metadata, g as FieldTransforms, h as
|
|
2
|
-
export {
|
|
1
|
+
import { H as History, P as Permissions, a as ComponentData, C as Config, U as UserGenerics, F as Fields, b as PuckAction, R as RootDataWithProps, c as ResolveDataTrigger, d as Plugin, O as Overrides, V as Viewports, I as IframeConfig, e as UiState, f as ComponentConfig, A as AppState, M as Metadata, g as FieldTransforms, h as RichtextField, i as Field, j as FieldProps, D as DropZoneProps, k as Data, l as OnAction, n as InitialHistory, o as ItemSelector } from './walk-tree-16XYcbNo.mjs';
|
|
2
|
+
export { af as Adaptor, ad as ArrayField, G as ArrayState, at as AsFieldProps, Z as BaseData, a7 as BaseField, ah as CacheOpts, L as ComponentConfigExtensions, Y as ComponentConfigParams, a2 as ComponentDataMap, a0 as ComponentDataOptionalId, a5 as ComponentMetadata, X as ConfigParams, a3 as Content, ak as CustomField, aj as CustomFieldRender, aq as DefaultComponentProps, Q as DefaultComponents, an as DefaultRootFieldProps, ap as DefaultRootProps, ao as DefaultRootRenderProps, q as Direction, s as DragAxis, ai as ExternalField, ag as ExternalFieldWithAdaptor, T as ExtractConfigParams, av as ExtractField, a6 as FieldMetadata, B as FieldRenderFunctions, x as FieldTransformFn, v as FieldTransformFnParams, E as ItemWithId, a1 as MappedItem, a9 as NumberField, ae as ObjectField, z as OverrideKey, K as PuckComponent, am as PuckContext, a4 as PuckMetadata, ac as RadioField, p as RichText, N as RootConfig, $ as RootData, _ as RootDataWithoutProps, ab as SelectField, S as Slot, J as SlotComponent, al as SlotField, a8 as TextField, aa as TextareaField, u as Viewport, au as WithChildren, ar as WithId, as as WithPuckProps, W as WithSlotProps, m as migrate, y as overrideKeys, r as resolveAllData, t as transformProps, w as walkTree } from './walk-tree-16XYcbNo.mjs';
|
|
3
3
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
4
4
|
import * as react from 'react';
|
|
5
5
|
import react__default, { ReactNode, SyntheticEvent, ReactElement } from 'react';
|
|
6
|
+
import { Editor } from '@tiptap/react';
|
|
7
|
+
import '@tiptap/extension-blockquote';
|
|
8
|
+
import '@tiptap/extension-bold';
|
|
9
|
+
import '@tiptap/extension-code';
|
|
10
|
+
import '@tiptap/extension-code-block';
|
|
11
|
+
import '@tiptap/extension-hard-break';
|
|
12
|
+
import '@tiptap/extension-heading';
|
|
13
|
+
import '@tiptap/extension-horizontal-rule';
|
|
14
|
+
import '@tiptap/extension-italic';
|
|
15
|
+
import '@tiptap/extension-link';
|
|
16
|
+
import '@tiptap/extension-list';
|
|
17
|
+
import '@tiptap/extension-paragraph';
|
|
18
|
+
import '@tiptap/extension-strike';
|
|
19
|
+
import '@tiptap/extension-text-align';
|
|
20
|
+
import '@tiptap/extension-underline';
|
|
6
21
|
|
|
7
22
|
type HistorySlice<D = any> = {
|
|
8
23
|
index: number;
|
|
@@ -47,6 +62,7 @@ type RefreshPermissions<UserConfig extends Config = Config> = (params?: Permissi
|
|
|
47
62
|
type Cache = Record<string, {
|
|
48
63
|
lastPermissions: Partial<Permissions>;
|
|
49
64
|
lastData: ComponentData | null;
|
|
65
|
+
lastParentId: string | null;
|
|
50
66
|
}>;
|
|
51
67
|
type PermissionsSlice = {
|
|
52
68
|
cache: Cache;
|
|
@@ -106,6 +122,13 @@ type AppStore<UserConfig extends Config = Config, G extends UserGenerics<UserCon
|
|
|
106
122
|
nodes: NodesSlice;
|
|
107
123
|
permissions: PermissionsSlice;
|
|
108
124
|
fieldTransforms: FieldTransforms;
|
|
125
|
+
currentRichText?: {
|
|
126
|
+
inlineComponentId?: string;
|
|
127
|
+
inline: boolean;
|
|
128
|
+
field: RichtextField;
|
|
129
|
+
editor: Editor;
|
|
130
|
+
id: string;
|
|
131
|
+
} | null;
|
|
109
132
|
};
|
|
110
133
|
|
|
111
134
|
declare const ActionBar: {
|
|
@@ -113,10 +136,12 @@ declare const ActionBar: {
|
|
|
113
136
|
label?: string;
|
|
114
137
|
children?: ReactNode;
|
|
115
138
|
}): react_jsx_runtime.JSX.Element;
|
|
116
|
-
Action: ({ children, label, onClick, }: {
|
|
139
|
+
Action: ({ children, label, onClick, active, disabled, }: {
|
|
117
140
|
children: ReactNode;
|
|
118
141
|
label?: string;
|
|
119
142
|
onClick: (e: SyntheticEvent) => void;
|
|
143
|
+
active?: boolean;
|
|
144
|
+
disabled?: boolean;
|
|
120
145
|
}) => react_jsx_runtime.JSX.Element;
|
|
121
146
|
Label: ({ label }: {
|
|
122
147
|
label: string;
|
|
@@ -124,11 +149,14 @@ declare const ActionBar: {
|
|
|
124
149
|
Group: ({ children }: {
|
|
125
150
|
children: ReactNode;
|
|
126
151
|
}) => react_jsx_runtime.JSX.Element;
|
|
152
|
+
Separator: () => react_jsx_runtime.JSX.Element;
|
|
127
153
|
};
|
|
128
|
-
declare const Action: ({ children, label, onClick, }: {
|
|
154
|
+
declare const Action: ({ children, label, onClick, active, disabled, }: {
|
|
129
155
|
children: ReactNode;
|
|
130
156
|
label?: string;
|
|
131
157
|
onClick: (e: SyntheticEvent) => void;
|
|
158
|
+
active?: boolean;
|
|
159
|
+
disabled?: boolean;
|
|
132
160
|
}) => react_jsx_runtime.JSX.Element;
|
|
133
161
|
declare const Group: ({ children }: {
|
|
134
162
|
children: ReactNode;
|
|
@@ -136,6 +164,7 @@ declare const Group: ({ children }: {
|
|
|
136
164
|
declare const Label: ({ label }: {
|
|
137
165
|
label: string;
|
|
138
166
|
}) => react_jsx_runtime.JSX.Element;
|
|
167
|
+
declare const Separator: () => react_jsx_runtime.JSX.Element;
|
|
139
168
|
|
|
140
169
|
declare const FieldLabel: ({ children, icon, label, el, readOnly, className, }: {
|
|
141
170
|
children?: ReactNode;
|
|
@@ -184,11 +213,11 @@ declare const Drawer: {
|
|
|
184
213
|
|
|
185
214
|
declare const DropZone: react.ForwardRefExoticComponent<DropZoneProps & react.RefAttributes<HTMLDivElement>>;
|
|
186
215
|
|
|
187
|
-
declare const IconButton: ({ children, href, onClick,
|
|
216
|
+
declare const IconButton: ({ active, children, href, onClick, type, disabled, tabIndex, newTab, fullWidth, title, }: {
|
|
217
|
+
active?: boolean;
|
|
188
218
|
children: ReactNode;
|
|
189
219
|
href?: string;
|
|
190
220
|
onClick?: (e: SyntheticEvent) => void | Promise<void>;
|
|
191
|
-
variant?: "primary" | "secondary";
|
|
192
221
|
type?: "button" | "submit" | "reset";
|
|
193
222
|
disabled?: boolean;
|
|
194
223
|
tabIndex?: number;
|
|
@@ -251,6 +280,75 @@ declare function Render<UserConfig extends Config = Config, G extends UserGeneri
|
|
|
251
280
|
metadata?: Metadata;
|
|
252
281
|
}): react_jsx_runtime.JSX.Element;
|
|
253
282
|
|
|
283
|
+
declare function AlignLeft(): react_jsx_runtime.JSX.Element;
|
|
284
|
+
|
|
285
|
+
declare function AlignCenter(): react_jsx_runtime.JSX.Element;
|
|
286
|
+
|
|
287
|
+
declare function AlignRight(): react_jsx_runtime.JSX.Element;
|
|
288
|
+
|
|
289
|
+
declare function AlignJustify(): react_jsx_runtime.JSX.Element;
|
|
290
|
+
|
|
291
|
+
declare function AlignSelect(): react_jsx_runtime.JSX.Element;
|
|
292
|
+
|
|
293
|
+
declare function Bold(): react_jsx_runtime.JSX.Element;
|
|
294
|
+
|
|
295
|
+
declare function Italic(): react_jsx_runtime.JSX.Element;
|
|
296
|
+
|
|
297
|
+
declare function Underline(): react_jsx_runtime.JSX.Element;
|
|
298
|
+
|
|
299
|
+
declare function Strikethrough(): react_jsx_runtime.JSX.Element;
|
|
300
|
+
|
|
301
|
+
declare function InlineCode(): react_jsx_runtime.JSX.Element;
|
|
302
|
+
|
|
303
|
+
declare function BulletList(): react_jsx_runtime.JSX.Element;
|
|
304
|
+
|
|
305
|
+
declare function OrderedList(): react_jsx_runtime.JSX.Element;
|
|
306
|
+
|
|
307
|
+
declare function CodeBlock(): react_jsx_runtime.JSX.Element;
|
|
308
|
+
|
|
309
|
+
declare function Blockquote(): react_jsx_runtime.JSX.Element;
|
|
310
|
+
|
|
311
|
+
declare function HorizontalRule(): react_jsx_runtime.JSX.Element;
|
|
312
|
+
|
|
313
|
+
declare function HeadingSelect(): react_jsx_runtime.JSX.Element;
|
|
314
|
+
|
|
315
|
+
declare function ListSelect(): react_jsx_runtime.JSX.Element;
|
|
316
|
+
|
|
317
|
+
declare function Control({ icon, disabled, active, onClick, title, }: {
|
|
318
|
+
icon: ReactNode;
|
|
319
|
+
disabled?: boolean;
|
|
320
|
+
active?: boolean;
|
|
321
|
+
onClick: (e: SyntheticEvent) => any;
|
|
322
|
+
title: string;
|
|
323
|
+
}): react_jsx_runtime.JSX.Element;
|
|
324
|
+
|
|
325
|
+
declare const RichTextMenu: {
|
|
326
|
+
({ children }: {
|
|
327
|
+
children: ReactNode;
|
|
328
|
+
}): react_jsx_runtime.JSX.Element;
|
|
329
|
+
Group: ({ children }: {
|
|
330
|
+
children: ReactNode;
|
|
331
|
+
}) => react_jsx_runtime.JSX.Element;
|
|
332
|
+
Control: typeof Control;
|
|
333
|
+
AlignCenter: typeof AlignCenter;
|
|
334
|
+
AlignJustify: typeof AlignJustify;
|
|
335
|
+
AlignLeft: typeof AlignLeft;
|
|
336
|
+
AlignRight: typeof AlignRight;
|
|
337
|
+
AlignSelect: typeof AlignSelect;
|
|
338
|
+
Blockquote: typeof Blockquote;
|
|
339
|
+
Bold: typeof Bold;
|
|
340
|
+
BulletList: typeof BulletList;
|
|
341
|
+
CodeBlock: typeof CodeBlock;
|
|
342
|
+
HeadingSelect: typeof HeadingSelect;
|
|
343
|
+
HorizontalRule: typeof HorizontalRule;
|
|
344
|
+
InlineCode: typeof InlineCode;
|
|
345
|
+
Italic: typeof Italic;
|
|
346
|
+
ListSelect: typeof ListSelect;
|
|
347
|
+
OrderedList: typeof OrderedList;
|
|
348
|
+
Strikethrough: typeof Strikethrough;
|
|
349
|
+
Underline: typeof Underline;
|
|
350
|
+
};
|
|
351
|
+
|
|
254
352
|
declare const registerOverlayPortal: (el: HTMLElement | null | undefined, opts?: {
|
|
255
353
|
disableDrag?: boolean;
|
|
256
354
|
disableDragOnFocus?: boolean;
|
|
@@ -271,6 +369,7 @@ type UsePuckData<UserConfig extends Config = Config, G extends UserGenerics<User
|
|
|
271
369
|
getItemBySelector: (selector: ItemSelector) => G["UserComponentData"] | undefined;
|
|
272
370
|
getItemById: (id: string) => G["UserComponentData"] | undefined;
|
|
273
371
|
getSelectorForId: (id: string) => Required<ItemSelector> | undefined;
|
|
372
|
+
getParentById: (id: string) => ComponentData | undefined;
|
|
274
373
|
history: {
|
|
275
374
|
back: HistorySlice["back"];
|
|
276
375
|
forward: HistorySlice["forward"];
|
|
@@ -302,4 +401,4 @@ declare function usePuck<UserConfig extends Config = Config>(): UsePuckStore<Use
|
|
|
302
401
|
*/
|
|
303
402
|
declare function useGetPuck(): () => UsePuckStore<Config>;
|
|
304
403
|
|
|
305
|
-
export { Action, ActionBar, AppState, AutoField, Button, ComponentConfig, ComponentData, Config, Data, Drawer, DropZone, Field, FieldLabel, FieldProps, FieldTransforms, Fields, Group, History, IconButton, IframeConfig, InitialHistory, Label, Metadata, OnAction, Overrides, Permissions, Plugin, Puck, PuckAction, type PuckApi, Render, ResolveDataTrigger, RootDataWithProps, UiState, type UsePuckData, UserGenerics, Viewports, createUsePuck, registerOverlayPortal, renderContext, setDeep, useGetPuck, usePuck };
|
|
404
|
+
export { Action, ActionBar, AppState, AutoField, Button, ComponentConfig, ComponentData, Config, Data, Drawer, DropZone, Field, FieldLabel, FieldProps, FieldTransforms, Fields, Group, History, IconButton, IframeConfig, InitialHistory, Label, Metadata, OnAction, Overrides, Permissions, Plugin, Puck, PuckAction, type PuckApi, Render, ResolveDataTrigger, RichTextMenu, RichtextField, RootDataWithProps, Separator, UiState, type UsePuckData, UserGenerics, Viewports, createUsePuck, registerOverlayPortal, renderContext, setDeep, useGetPuck, usePuck };
|