@puckeditor/plugin-ai 0.1.0-canary.1cf333a0 → 0.1.0-canary.1f80a3d2
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.css +60 -41
- package/dist/index.js +29 -24
- package/dist/index.mjs +29 -24
- package/package.json +1 -1
package/dist/index.css
CHANGED
|
@@ -234,7 +234,7 @@ p {
|
|
|
234
234
|
}
|
|
235
235
|
|
|
236
236
|
/* css-module:/home/runner/work/puck-platform/puck-platform/packages/platform-client/components/Modal/Modal.module.css/#css-module-data */
|
|
237
|
-
._Modal-
|
|
237
|
+
._Modal-background_1bedq_1 {
|
|
238
238
|
align-items: center;
|
|
239
239
|
display: flex;
|
|
240
240
|
justify-content: center;
|
|
@@ -248,24 +248,26 @@ p {
|
|
|
248
248
|
opacity: 0;
|
|
249
249
|
pointer-events: none;
|
|
250
250
|
}
|
|
251
|
-
._Modal--
|
|
251
|
+
._Modal--visible_1bedq_16 ._Modal-background_1bedq_1 {
|
|
252
252
|
opacity: 1;
|
|
253
253
|
transition: opacity ease 100ms;
|
|
254
254
|
pointer-events: auto;
|
|
255
255
|
}
|
|
256
|
-
._Modal-
|
|
256
|
+
._Modal-modal_1bedq_22 {
|
|
257
257
|
background: white;
|
|
258
|
-
border-radius:
|
|
258
|
+
border-radius: 16px;
|
|
259
259
|
display: block;
|
|
260
|
-
|
|
260
|
+
max-height: calc(100vh - 24px);
|
|
261
|
+
margin-inline: 24px;
|
|
262
|
+
overflow: auto;
|
|
261
263
|
}
|
|
262
264
|
|
|
263
265
|
/* css-module:/home/runner/work/puck-platform/puck-platform/packages/platform-client/components/Button/Button.module.css/#css-module-data */
|
|
264
|
-
.
|
|
266
|
+
._Button_1wyvm_1 {
|
|
265
267
|
appearance: none;
|
|
266
268
|
background: none;
|
|
267
269
|
border: 1px solid transparent;
|
|
268
|
-
border-radius:
|
|
270
|
+
border-radius: 8px;
|
|
269
271
|
color: var(--puck-color-white);
|
|
270
272
|
display: inline-flex;
|
|
271
273
|
align-items: center;
|
|
@@ -283,69 +285,80 @@ p {
|
|
|
283
285
|
white-space: nowrap;
|
|
284
286
|
margin: 0;
|
|
285
287
|
}
|
|
286
|
-
.
|
|
287
|
-
.
|
|
288
|
+
._Button_1wyvm_1:hover,
|
|
289
|
+
._Button_1wyvm_1:active {
|
|
288
290
|
transition: none;
|
|
289
291
|
}
|
|
290
|
-
._Button--
|
|
292
|
+
._Button--medium_1wyvm_29 {
|
|
291
293
|
min-height: 34px;
|
|
292
294
|
padding-bottom: 7px;
|
|
293
295
|
padding-left: 19px;
|
|
294
296
|
padding-right: 19px;
|
|
295
297
|
padding-top: 7px;
|
|
296
298
|
}
|
|
297
|
-
._Button--
|
|
299
|
+
._Button--large_1wyvm_37 {
|
|
298
300
|
padding-bottom: 11px;
|
|
299
301
|
padding-left: 19px;
|
|
300
302
|
padding-right: 19px;
|
|
301
303
|
padding-top: 11px;
|
|
302
304
|
}
|
|
303
|
-
._Button-
|
|
305
|
+
._Button-icon_1wyvm_44 {
|
|
304
306
|
margin-top: 2px;
|
|
305
307
|
}
|
|
306
|
-
._Button--
|
|
308
|
+
._Button--primary_1wyvm_48 {
|
|
307
309
|
background: var(--puck-color-azure-04);
|
|
308
310
|
}
|
|
309
|
-
.
|
|
311
|
+
._Button_1wyvm_1:focus-visible {
|
|
310
312
|
outline: 2px solid var(--puck-color-azure-05);
|
|
311
313
|
outline-offset: 2px;
|
|
312
314
|
}
|
|
313
315
|
@media (hover: hover) and (pointer: fine) {
|
|
314
|
-
._Button--
|
|
316
|
+
._Button--primary_1wyvm_48:hover {
|
|
315
317
|
background-color: var(--puck-color-azure-03);
|
|
316
318
|
}
|
|
317
319
|
}
|
|
318
|
-
._Button--
|
|
320
|
+
._Button--primary_1wyvm_48:active {
|
|
319
321
|
background-color: var(--puck-color-azure-02);
|
|
320
322
|
}
|
|
321
|
-
._Button--
|
|
323
|
+
._Button--secondary_1wyvm_67 {
|
|
322
324
|
border: 1px solid currentColor;
|
|
323
325
|
color: currentColor;
|
|
324
326
|
}
|
|
325
327
|
@media (hover: hover) and (pointer: fine) {
|
|
326
|
-
._Button--
|
|
328
|
+
._Button--secondary_1wyvm_67:hover {
|
|
327
329
|
background-color: var(--puck-color-azure-12);
|
|
328
330
|
color: var(--puck-color-black);
|
|
329
331
|
}
|
|
330
332
|
}
|
|
331
|
-
._Button--
|
|
333
|
+
._Button--secondary_1wyvm_67:active {
|
|
332
334
|
background-color: var(--puck-color-azure-11);
|
|
333
335
|
color: var(--puck-color-black);
|
|
334
336
|
}
|
|
335
|
-
._Button--
|
|
337
|
+
._Button--danger_1wyvm_84 {
|
|
338
|
+
background: var(--puck-color-red-04);
|
|
339
|
+
}
|
|
340
|
+
@media (hover: hover) and (pointer: fine) {
|
|
341
|
+
._Button--danger_1wyvm_84:hover {
|
|
342
|
+
background-color: var(--puck-color-red-03);
|
|
343
|
+
}
|
|
344
|
+
}
|
|
345
|
+
._Button--danger_1wyvm_84:active {
|
|
346
|
+
background-color: var(--puck-color-red-02);
|
|
347
|
+
}
|
|
348
|
+
._Button--flush_1wyvm_98 {
|
|
336
349
|
border-radius: 0;
|
|
337
350
|
}
|
|
338
|
-
._Button--
|
|
339
|
-
._Button--
|
|
351
|
+
._Button--disabled_1wyvm_102,
|
|
352
|
+
._Button--disabled_1wyvm_102:hover {
|
|
340
353
|
background-color: var(--puck-color-grey-09);
|
|
341
354
|
color: var(--puck-color-grey-03);
|
|
342
355
|
cursor: not-allowed;
|
|
343
356
|
}
|
|
344
|
-
._Button--
|
|
357
|
+
._Button--fullWidth_1wyvm_109 {
|
|
345
358
|
justify-content: center;
|
|
346
359
|
width: 100%;
|
|
347
360
|
}
|
|
348
|
-
._Button-
|
|
361
|
+
._Button-spinner_1wyvm_114 {
|
|
349
362
|
padding-left: 8px;
|
|
350
363
|
}
|
|
351
364
|
|
|
@@ -800,26 +813,26 @@ p {
|
|
|
800
813
|
}
|
|
801
814
|
|
|
802
815
|
/* css-module:/home/runner/work/puck-platform/puck-platform/packages/platform-client/components/Table/Table.module.css/#css-module-data */
|
|
803
|
-
.
|
|
816
|
+
._Table_1bbu5_1 {
|
|
804
817
|
color: black;
|
|
805
818
|
display: flex;
|
|
806
819
|
flex-direction: column;
|
|
807
820
|
flex-grow: 1;
|
|
808
821
|
overflow-y: auto;
|
|
809
822
|
}
|
|
810
|
-
._Table-
|
|
823
|
+
._Table-filters_1bbu5_9 {
|
|
811
824
|
margin: 16px;
|
|
812
825
|
}
|
|
813
|
-
._Table-
|
|
826
|
+
._Table-inner_1bbu5_13 {
|
|
814
827
|
text-align: left;
|
|
815
828
|
}
|
|
816
|
-
._Table-
|
|
829
|
+
._Table-table_1bbu5_17 {
|
|
817
830
|
color: var(--puck-color-grey-02);
|
|
818
831
|
font-size: var(--puck-font-size-xxs);
|
|
819
832
|
position: relative;
|
|
820
833
|
width: 100%;
|
|
821
834
|
}
|
|
822
|
-
.
|
|
835
|
+
._Table_1bbu5_1 thead {
|
|
823
836
|
background: white;
|
|
824
837
|
font-size: var(--puck-font-size-xxs);
|
|
825
838
|
position: sticky;
|
|
@@ -827,17 +840,20 @@ p {
|
|
|
827
840
|
white-space: nowrap;
|
|
828
841
|
z-index: 1;
|
|
829
842
|
}
|
|
830
|
-
.
|
|
843
|
+
._Table_1bbu5_1 thead::after {
|
|
831
844
|
content: "";
|
|
832
845
|
position: absolute;
|
|
833
846
|
height: 1px;
|
|
834
847
|
width: 100%;
|
|
835
848
|
background-color: var(--puck-color-grey-10);
|
|
836
849
|
}
|
|
837
|
-
.
|
|
850
|
+
._Table--hideHeader_1bbu5_41 thead {
|
|
851
|
+
display: none;
|
|
852
|
+
}
|
|
853
|
+
._Table_1bbu5_1 tbody tr {
|
|
838
854
|
z-index: 0;
|
|
839
855
|
}
|
|
840
|
-
.
|
|
856
|
+
._Table_1bbu5_1 th {
|
|
841
857
|
background: var(--puck-color-grey-12);
|
|
842
858
|
font-weight: 400;
|
|
843
859
|
padding-left: 24px;
|
|
@@ -846,12 +862,12 @@ p {
|
|
|
846
862
|
padding-top: 12px;
|
|
847
863
|
}
|
|
848
864
|
@media (--standard-viewport) {
|
|
849
|
-
.
|
|
865
|
+
._Table_1bbu5_1 th {
|
|
850
866
|
padding-left: 32px;
|
|
851
867
|
padding-right: 32px;
|
|
852
868
|
}
|
|
853
869
|
}
|
|
854
|
-
.
|
|
870
|
+
._Table_1bbu5_1 td {
|
|
855
871
|
border-bottom: 1px solid var(--puck-color-grey-10);
|
|
856
872
|
padding-left: 24px;
|
|
857
873
|
padding-right: 24px;
|
|
@@ -859,26 +875,26 @@ p {
|
|
|
859
875
|
padding-top: 16px;
|
|
860
876
|
white-space: nowrap;
|
|
861
877
|
}
|
|
862
|
-
.
|
|
878
|
+
._Table_1bbu5_1 td:not(:first-of-type) {
|
|
863
879
|
color: var(--puck-color-grey-05);
|
|
864
880
|
}
|
|
865
|
-
.
|
|
881
|
+
._Table_1bbu5_1 tbody tr:last-of-type td {
|
|
866
882
|
border-bottom: none;
|
|
867
883
|
}
|
|
868
884
|
@media (--standard-viewport) {
|
|
869
|
-
.
|
|
885
|
+
._Table_1bbu5_1 td {
|
|
870
886
|
padding-left: 32px;
|
|
871
887
|
padding-right: 32px;
|
|
872
888
|
}
|
|
873
889
|
}
|
|
874
|
-
._Table-
|
|
890
|
+
._Table-footer_1bbu5_89 {
|
|
875
891
|
border-top: 1px solid var(--puck-color-grey-09);
|
|
876
892
|
}
|
|
877
|
-
._Table--
|
|
893
|
+
._Table--clickableRows_1bbu5_93 tbody tr:hover {
|
|
878
894
|
background: var(--puck-color-azure-12);
|
|
879
895
|
cursor: pointer;
|
|
880
896
|
}
|
|
881
|
-
._Table-
|
|
897
|
+
._Table-placeholder_1bbu5_98 {
|
|
882
898
|
align-items: center;
|
|
883
899
|
color: var(--puck-color-grey-06);
|
|
884
900
|
justify-content: center;
|
|
@@ -888,9 +904,12 @@ p {
|
|
|
888
904
|
width: 100%;
|
|
889
905
|
height: 100%;
|
|
890
906
|
}
|
|
891
|
-
._Table-
|
|
907
|
+
._Table-loader_1bbu5_109 {
|
|
892
908
|
padding: 16px 24px;
|
|
893
909
|
}
|
|
910
|
+
._TableRow--highlightRow_1bbu5_113 {
|
|
911
|
+
background-color: var(--puck-color-grey-12);
|
|
912
|
+
}
|
|
894
913
|
|
|
895
914
|
/* css-module:/home/runner/work/puck-platform/puck-platform/packages/platform-client/components/VerticalSpace/VerticalSpace.module.css/#css-module-data */
|
|
896
915
|
._VerticalSpace_1tjaw_1 {
|
package/dist/index.js
CHANGED
|
@@ -340,11 +340,14 @@ var TriangleAlert = createLucideIcon("TriangleAlert", [
|
|
|
340
340
|
// src/components/Chat/index.tsx
|
|
341
341
|
init_react_import();
|
|
342
342
|
|
|
343
|
-
// ../../node_modules/.pnpm/@ai-sdk+react@2.0.
|
|
343
|
+
// ../../node_modules/.pnpm/@ai-sdk+react@2.0.29_react@19.1.1_zod@4.1.12/node_modules/@ai-sdk/react/dist/index.mjs
|
|
344
344
|
init_react_import();
|
|
345
345
|
var import_react4 = require("react");
|
|
346
346
|
|
|
347
|
-
// ../../node_modules/.pnpm/ai@5.0.
|
|
347
|
+
// ../../node_modules/.pnpm/ai@5.0.29_zod@4.1.12/node_modules/ai/dist/index.mjs
|
|
348
|
+
init_react_import();
|
|
349
|
+
|
|
350
|
+
// ../../node_modules/.pnpm/@ai-sdk+provider-utils@3.0.7_zod@4.1.12/node_modules/@ai-sdk/provider-utils/dist/index.mjs
|
|
348
351
|
init_react_import();
|
|
349
352
|
|
|
350
353
|
// ../../node_modules/.pnpm/@ai-sdk+provider@2.0.0/node_modules/@ai-sdk/provider/dist/index.mjs
|
|
@@ -525,9 +528,6 @@ var symbol14 = Symbol.for(marker14);
|
|
|
525
528
|
var _a14;
|
|
526
529
|
_a14 = symbol14;
|
|
527
530
|
|
|
528
|
-
// ../../node_modules/.pnpm/@ai-sdk+provider-utils@3.0.9_zod@4.1.12/node_modules/@ai-sdk/provider-utils/dist/index.mjs
|
|
529
|
-
init_react_import();
|
|
530
|
-
|
|
531
531
|
// ../../node_modules/.pnpm/eventsource-parser@3.0.5/node_modules/eventsource-parser/dist/stream.js
|
|
532
532
|
init_react_import();
|
|
533
533
|
|
|
@@ -17192,7 +17192,7 @@ var nullableType = ZodNullable2.create;
|
|
|
17192
17192
|
var preprocessType = ZodEffects.createWithPreprocess;
|
|
17193
17193
|
var pipelineType = ZodPipeline.create;
|
|
17194
17194
|
|
|
17195
|
-
// ../../node_modules/.pnpm/@ai-sdk+provider-utils@3.0.
|
|
17195
|
+
// ../../node_modules/.pnpm/@ai-sdk+provider-utils@3.0.7_zod@4.1.12/node_modules/@ai-sdk/provider-utils/dist/index.mjs
|
|
17196
17196
|
var createIdGenerator = ({
|
|
17197
17197
|
prefix,
|
|
17198
17198
|
size = 16,
|
|
@@ -18505,7 +18505,7 @@ function asSchema(schema) {
|
|
|
18505
18505
|
}
|
|
18506
18506
|
var { btoa: btoa2, atob: atob2 } = globalThis;
|
|
18507
18507
|
|
|
18508
|
-
// ../../node_modules/.pnpm/ai@5.0.
|
|
18508
|
+
// ../../node_modules/.pnpm/ai@5.0.29_zod@4.1.12/node_modules/ai/dist/index.mjs
|
|
18509
18509
|
var __defProp2 = Object.defineProperty;
|
|
18510
18510
|
var __export2 = (target, all) => {
|
|
18511
18511
|
for (var name17 in all)
|
|
@@ -20558,7 +20558,6 @@ var toolUIPartSchemas = [
|
|
|
20558
20558
|
type: external_exports.string().startsWith("tool-"),
|
|
20559
20559
|
toolCallId: external_exports.string(),
|
|
20560
20560
|
state: external_exports.literal("input-streaming"),
|
|
20561
|
-
providerExecuted: external_exports.boolean().optional(),
|
|
20562
20561
|
input: external_exports.unknown().optional(),
|
|
20563
20562
|
output: external_exports.never().optional(),
|
|
20564
20563
|
errorText: external_exports.never().optional()
|
|
@@ -20567,7 +20566,6 @@ var toolUIPartSchemas = [
|
|
|
20567
20566
|
type: external_exports.string().startsWith("tool-"),
|
|
20568
20567
|
toolCallId: external_exports.string(),
|
|
20569
20568
|
state: external_exports.literal("input-available"),
|
|
20570
|
-
providerExecuted: external_exports.boolean().optional(),
|
|
20571
20569
|
input: external_exports.unknown(),
|
|
20572
20570
|
output: external_exports.never().optional(),
|
|
20573
20571
|
errorText: external_exports.never().optional(),
|
|
@@ -20577,7 +20575,6 @@ var toolUIPartSchemas = [
|
|
|
20577
20575
|
type: external_exports.string().startsWith("tool-"),
|
|
20578
20576
|
toolCallId: external_exports.string(),
|
|
20579
20577
|
state: external_exports.literal("output-available"),
|
|
20580
|
-
providerExecuted: external_exports.boolean().optional(),
|
|
20581
20578
|
input: external_exports.unknown(),
|
|
20582
20579
|
output: external_exports.unknown(),
|
|
20583
20580
|
errorText: external_exports.never().optional(),
|
|
@@ -20588,7 +20585,6 @@ var toolUIPartSchemas = [
|
|
|
20588
20585
|
type: external_exports.string().startsWith("tool-"),
|
|
20589
20586
|
toolCallId: external_exports.string(),
|
|
20590
20587
|
state: external_exports.literal("output-error"),
|
|
20591
|
-
providerExecuted: external_exports.boolean().optional(),
|
|
20592
20588
|
input: external_exports.unknown(),
|
|
20593
20589
|
output: external_exports.never().optional(),
|
|
20594
20590
|
errorText: external_exports.string(),
|
|
@@ -20614,7 +20610,7 @@ var uiMessageSchema = external_exports.object({
|
|
|
20614
20610
|
)
|
|
20615
20611
|
});
|
|
20616
20612
|
|
|
20617
|
-
// ../../node_modules/.pnpm/@ai-sdk+react@2.0.
|
|
20613
|
+
// ../../node_modules/.pnpm/@ai-sdk+react@2.0.29_react@19.1.1_zod@4.1.12/node_modules/@ai-sdk/react/dist/index.mjs
|
|
20618
20614
|
var import_throttleit = __toESM(require_throttleit(), 1);
|
|
20619
20615
|
var import_react5 = require("react");
|
|
20620
20616
|
var import_react6 = require("react");
|
|
@@ -20914,7 +20910,7 @@ init_react_import();
|
|
|
20914
20910
|
|
|
20915
20911
|
// css-module:/home/runner/work/puck-platform/puck-platform/packages/platform-client/components/Modal/Modal.module.css#css-module
|
|
20916
20912
|
init_react_import();
|
|
20917
|
-
var Modal_module_default = { "Modal-background": "_Modal-
|
|
20913
|
+
var Modal_module_default = { "Modal-background": "_Modal-background_1bedq_1", "Modal--visible": "_Modal--visible_1bedq_16", "Modal-modal": "_Modal-modal_1bedq_22" };
|
|
20918
20914
|
|
|
20919
20915
|
// ../platform-client/components/Modal/Modal.tsx
|
|
20920
20916
|
var import_react9 = require("react");
|
|
@@ -20932,7 +20928,7 @@ var import_react8 = require("react");
|
|
|
20932
20928
|
|
|
20933
20929
|
// css-module:/home/runner/work/puck-platform/puck-platform/packages/platform-client/components/Button/Button.module.css#css-module
|
|
20934
20930
|
init_react_import();
|
|
20935
|
-
var Button_module_default = { "Button": "
|
|
20931
|
+
var Button_module_default = { "Button": "_Button_1wyvm_1", "Button--medium": "_Button--medium_1wyvm_29", "Button--large": "_Button--large_1wyvm_37", "Button-icon": "_Button-icon_1wyvm_44", "Button--primary": "_Button--primary_1wyvm_48", "Button--secondary": "_Button--secondary_1wyvm_67", "Button--danger": "_Button--danger_1wyvm_84", "Button--flush": "_Button--flush_1wyvm_98", "Button--disabled": "_Button--disabled_1wyvm_102", "Button--fullWidth": "_Button--fullWidth_1wyvm_109", "Button-spinner": "_Button-spinner_1wyvm_114" };
|
|
20936
20932
|
|
|
20937
20933
|
// ../platform-client/components/Loader/index.tsx
|
|
20938
20934
|
init_react_import();
|
|
@@ -20992,6 +20988,7 @@ var Button = ({
|
|
|
20992
20988
|
className: getClassName2({
|
|
20993
20989
|
primary: variant === "primary",
|
|
20994
20990
|
secondary: variant === "secondary",
|
|
20991
|
+
danger: variant === "danger",
|
|
20995
20992
|
disabled,
|
|
20996
20993
|
fullWidth,
|
|
20997
20994
|
[size]: true
|
|
@@ -21013,7 +21010,7 @@ var Button = ({
|
|
|
21013
21010
|
children: [
|
|
21014
21011
|
icon && /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("div", { className: getClassName2("icon"), children: icon }),
|
|
21015
21012
|
children,
|
|
21016
|
-
loading && /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("div", { className: getClassName2("spinner"), children: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(Loader, { size:
|
|
21013
|
+
loading && /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("div", { className: getClassName2("spinner"), children: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(Loader, { size: 12 }) })
|
|
21017
21014
|
]
|
|
21018
21015
|
}
|
|
21019
21016
|
);
|
|
@@ -21023,18 +21020,24 @@ var Button = ({
|
|
|
21023
21020
|
// ../platform-client/components/Modal/Modal.tsx
|
|
21024
21021
|
var import_jsx_runtime3 = require("react/jsx-runtime");
|
|
21025
21022
|
var getClassName3 = getClassNameFactory2("Modal", Modal_module_default);
|
|
21026
|
-
var modalContext = (0, import_react9.createContext)({
|
|
21027
|
-
|
|
21023
|
+
var modalContext = (0, import_react9.createContext)({
|
|
21024
|
+
buttonVariant: "primary",
|
|
21025
|
+
visible: false,
|
|
21026
|
+
setVisible: () => {
|
|
21027
|
+
},
|
|
21028
|
+
ref: null
|
|
21029
|
+
});
|
|
21028
21030
|
var Modal = ({
|
|
21029
21031
|
actionLabel = "Open",
|
|
21030
|
-
children
|
|
21032
|
+
children,
|
|
21033
|
+
hideButton = false
|
|
21031
21034
|
}) => {
|
|
21032
|
-
const { visible, setVisible, ref } = (0, import_react9.useContext)(modalContext);
|
|
21035
|
+
const { visible, setVisible, buttonVariant, ref } = (0, import_react9.useContext)(modalContext);
|
|
21033
21036
|
return /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("div", { className: getClassName3({ visible }), children: [
|
|
21034
|
-
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)("div", { className: getClassName3("button"), children: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
|
|
21037
|
+
!hideButton && /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("div", { className: getClassName3("button"), children: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
|
|
21035
21038
|
Button,
|
|
21036
21039
|
{
|
|
21037
|
-
variant:
|
|
21040
|
+
variant: buttonVariant,
|
|
21038
21041
|
onClick: () => {
|
|
21039
21042
|
setVisible(!visible);
|
|
21040
21043
|
},
|
|
@@ -21080,9 +21083,10 @@ var ActionModal = ({
|
|
|
21080
21083
|
children,
|
|
21081
21084
|
title,
|
|
21082
21085
|
description,
|
|
21083
|
-
actions
|
|
21086
|
+
actions,
|
|
21087
|
+
hideButton
|
|
21084
21088
|
}) => {
|
|
21085
|
-
return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(Modal, { actionLabel, children: /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)("div", { className: getClassName5(), children: [
|
|
21089
|
+
return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(Modal, { actionLabel, hideButton, children: /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)("div", { className: getClassName5(), children: [
|
|
21086
21090
|
/* @__PURE__ */ (0, import_jsx_runtime5.jsxs)("div", { className: getClassName5("header"), children: [
|
|
21087
21091
|
/* @__PURE__ */ (0, import_jsx_runtime5.jsx)(Heading, { size: "s", children: title }),
|
|
21088
21092
|
description && /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("small", { children: description })
|
|
@@ -21386,11 +21390,12 @@ var import_react14 = require("react");
|
|
|
21386
21390
|
|
|
21387
21391
|
// css-module:/home/runner/work/puck-platform/puck-platform/packages/platform-client/components/Table/Table.module.css#css-module
|
|
21388
21392
|
init_react_import();
|
|
21389
|
-
var Table_module_default = { "Table": "
|
|
21393
|
+
var Table_module_default = { "Table": "_Table_1bbu5_1", "Table-filters": "_Table-filters_1bbu5_9", "Table-inner": "_Table-inner_1bbu5_13", "Table-table": "_Table-table_1bbu5_17", "Table--hideHeader": "_Table--hideHeader_1bbu5_41", "Table-footer": "_Table-footer_1bbu5_89", "Table--clickableRows": "_Table--clickableRows_1bbu5_93", "Table-placeholder": "_Table-placeholder_1bbu5_98", "Table-loader": "_Table-loader_1bbu5_109", "TableRow--highlightRow": "_TableRow--highlightRow_1bbu5_113" };
|
|
21390
21394
|
|
|
21391
21395
|
// ../platform-client/components/Table/Table.tsx
|
|
21392
21396
|
var import_jsx_runtime19 = require("react/jsx-runtime");
|
|
21393
21397
|
var getClassName14 = get_class_name_factory_default("Table", Table_module_default);
|
|
21398
|
+
var getRowClassName = get_class_name_factory_default("TableRow", Table_module_default);
|
|
21394
21399
|
|
|
21395
21400
|
// ../platform-client/components/Textarea/index.tsx
|
|
21396
21401
|
init_react_import();
|
package/dist/index.mjs
CHANGED
|
@@ -332,11 +332,14 @@ var TriangleAlert = createLucideIcon("TriangleAlert", [
|
|
|
332
332
|
// src/components/Chat/index.tsx
|
|
333
333
|
init_react_import();
|
|
334
334
|
|
|
335
|
-
// ../../node_modules/.pnpm/@ai-sdk+react@2.0.
|
|
335
|
+
// ../../node_modules/.pnpm/@ai-sdk+react@2.0.29_react@19.1.1_zod@4.1.12/node_modules/@ai-sdk/react/dist/index.mjs
|
|
336
336
|
init_react_import();
|
|
337
337
|
import { useCallback, useEffect, useRef, useSyncExternalStore } from "react";
|
|
338
338
|
|
|
339
|
-
// ../../node_modules/.pnpm/ai@5.0.
|
|
339
|
+
// ../../node_modules/.pnpm/ai@5.0.29_zod@4.1.12/node_modules/ai/dist/index.mjs
|
|
340
|
+
init_react_import();
|
|
341
|
+
|
|
342
|
+
// ../../node_modules/.pnpm/@ai-sdk+provider-utils@3.0.7_zod@4.1.12/node_modules/@ai-sdk/provider-utils/dist/index.mjs
|
|
340
343
|
init_react_import();
|
|
341
344
|
|
|
342
345
|
// ../../node_modules/.pnpm/@ai-sdk+provider@2.0.0/node_modules/@ai-sdk/provider/dist/index.mjs
|
|
@@ -517,9 +520,6 @@ var symbol14 = Symbol.for(marker14);
|
|
|
517
520
|
var _a14;
|
|
518
521
|
_a14 = symbol14;
|
|
519
522
|
|
|
520
|
-
// ../../node_modules/.pnpm/@ai-sdk+provider-utils@3.0.9_zod@4.1.12/node_modules/@ai-sdk/provider-utils/dist/index.mjs
|
|
521
|
-
init_react_import();
|
|
522
|
-
|
|
523
523
|
// ../../node_modules/.pnpm/eventsource-parser@3.0.5/node_modules/eventsource-parser/dist/stream.js
|
|
524
524
|
init_react_import();
|
|
525
525
|
|
|
@@ -17184,7 +17184,7 @@ var nullableType = ZodNullable2.create;
|
|
|
17184
17184
|
var preprocessType = ZodEffects.createWithPreprocess;
|
|
17185
17185
|
var pipelineType = ZodPipeline.create;
|
|
17186
17186
|
|
|
17187
|
-
// ../../node_modules/.pnpm/@ai-sdk+provider-utils@3.0.
|
|
17187
|
+
// ../../node_modules/.pnpm/@ai-sdk+provider-utils@3.0.7_zod@4.1.12/node_modules/@ai-sdk/provider-utils/dist/index.mjs
|
|
17188
17188
|
var createIdGenerator = ({
|
|
17189
17189
|
prefix,
|
|
17190
17190
|
size = 16,
|
|
@@ -18497,7 +18497,7 @@ function asSchema(schema) {
|
|
|
18497
18497
|
}
|
|
18498
18498
|
var { btoa: btoa2, atob: atob2 } = globalThis;
|
|
18499
18499
|
|
|
18500
|
-
// ../../node_modules/.pnpm/ai@5.0.
|
|
18500
|
+
// ../../node_modules/.pnpm/ai@5.0.29_zod@4.1.12/node_modules/ai/dist/index.mjs
|
|
18501
18501
|
var __defProp2 = Object.defineProperty;
|
|
18502
18502
|
var __export2 = (target, all) => {
|
|
18503
18503
|
for (var name17 in all)
|
|
@@ -20550,7 +20550,6 @@ var toolUIPartSchemas = [
|
|
|
20550
20550
|
type: external_exports.string().startsWith("tool-"),
|
|
20551
20551
|
toolCallId: external_exports.string(),
|
|
20552
20552
|
state: external_exports.literal("input-streaming"),
|
|
20553
|
-
providerExecuted: external_exports.boolean().optional(),
|
|
20554
20553
|
input: external_exports.unknown().optional(),
|
|
20555
20554
|
output: external_exports.never().optional(),
|
|
20556
20555
|
errorText: external_exports.never().optional()
|
|
@@ -20559,7 +20558,6 @@ var toolUIPartSchemas = [
|
|
|
20559
20558
|
type: external_exports.string().startsWith("tool-"),
|
|
20560
20559
|
toolCallId: external_exports.string(),
|
|
20561
20560
|
state: external_exports.literal("input-available"),
|
|
20562
|
-
providerExecuted: external_exports.boolean().optional(),
|
|
20563
20561
|
input: external_exports.unknown(),
|
|
20564
20562
|
output: external_exports.never().optional(),
|
|
20565
20563
|
errorText: external_exports.never().optional(),
|
|
@@ -20569,7 +20567,6 @@ var toolUIPartSchemas = [
|
|
|
20569
20567
|
type: external_exports.string().startsWith("tool-"),
|
|
20570
20568
|
toolCallId: external_exports.string(),
|
|
20571
20569
|
state: external_exports.literal("output-available"),
|
|
20572
|
-
providerExecuted: external_exports.boolean().optional(),
|
|
20573
20570
|
input: external_exports.unknown(),
|
|
20574
20571
|
output: external_exports.unknown(),
|
|
20575
20572
|
errorText: external_exports.never().optional(),
|
|
@@ -20580,7 +20577,6 @@ var toolUIPartSchemas = [
|
|
|
20580
20577
|
type: external_exports.string().startsWith("tool-"),
|
|
20581
20578
|
toolCallId: external_exports.string(),
|
|
20582
20579
|
state: external_exports.literal("output-error"),
|
|
20583
|
-
providerExecuted: external_exports.boolean().optional(),
|
|
20584
20580
|
input: external_exports.unknown(),
|
|
20585
20581
|
output: external_exports.never().optional(),
|
|
20586
20582
|
errorText: external_exports.string(),
|
|
@@ -20606,7 +20602,7 @@ var uiMessageSchema = external_exports.object({
|
|
|
20606
20602
|
)
|
|
20607
20603
|
});
|
|
20608
20604
|
|
|
20609
|
-
// ../../node_modules/.pnpm/@ai-sdk+react@2.0.
|
|
20605
|
+
// ../../node_modules/.pnpm/@ai-sdk+react@2.0.29_react@19.1.1_zod@4.1.12/node_modules/@ai-sdk/react/dist/index.mjs
|
|
20610
20606
|
var import_throttleit = __toESM(require_throttleit(), 1);
|
|
20611
20607
|
import { useCallback as useCallback2, useEffect as useEffect2, useId, useRef as useRef2, useState } from "react";
|
|
20612
20608
|
import { useCallback as useCallback3, useId as useId2, useRef as useRef3, useState as useState2 } from "react";
|
|
@@ -20906,7 +20902,7 @@ init_react_import();
|
|
|
20906
20902
|
|
|
20907
20903
|
// css-module:/home/runner/work/puck-platform/puck-platform/packages/platform-client/components/Modal/Modal.module.css#css-module
|
|
20908
20904
|
init_react_import();
|
|
20909
|
-
var Modal_module_default = { "Modal-background": "_Modal-
|
|
20905
|
+
var Modal_module_default = { "Modal-background": "_Modal-background_1bedq_1", "Modal--visible": "_Modal--visible_1bedq_16", "Modal-modal": "_Modal-modal_1bedq_22" };
|
|
20910
20906
|
|
|
20911
20907
|
// ../platform-client/components/Modal/Modal.tsx
|
|
20912
20908
|
import { createContext, useContext } from "react";
|
|
@@ -20924,7 +20920,7 @@ import { useEffect as useEffect4, useState as useState4 } from "react";
|
|
|
20924
20920
|
|
|
20925
20921
|
// css-module:/home/runner/work/puck-platform/puck-platform/packages/platform-client/components/Button/Button.module.css#css-module
|
|
20926
20922
|
init_react_import();
|
|
20927
|
-
var Button_module_default = { "Button": "
|
|
20923
|
+
var Button_module_default = { "Button": "_Button_1wyvm_1", "Button--medium": "_Button--medium_1wyvm_29", "Button--large": "_Button--large_1wyvm_37", "Button-icon": "_Button-icon_1wyvm_44", "Button--primary": "_Button--primary_1wyvm_48", "Button--secondary": "_Button--secondary_1wyvm_67", "Button--danger": "_Button--danger_1wyvm_84", "Button--flush": "_Button--flush_1wyvm_98", "Button--disabled": "_Button--disabled_1wyvm_102", "Button--fullWidth": "_Button--fullWidth_1wyvm_109", "Button-spinner": "_Button-spinner_1wyvm_114" };
|
|
20928
20924
|
|
|
20929
20925
|
// ../platform-client/components/Loader/index.tsx
|
|
20930
20926
|
init_react_import();
|
|
@@ -20984,6 +20980,7 @@ var Button = ({
|
|
|
20984
20980
|
className: getClassName2({
|
|
20985
20981
|
primary: variant === "primary",
|
|
20986
20982
|
secondary: variant === "secondary",
|
|
20983
|
+
danger: variant === "danger",
|
|
20987
20984
|
disabled,
|
|
20988
20985
|
fullWidth,
|
|
20989
20986
|
[size]: true
|
|
@@ -21005,7 +21002,7 @@ var Button = ({
|
|
|
21005
21002
|
children: [
|
|
21006
21003
|
icon && /* @__PURE__ */ jsx2("div", { className: getClassName2("icon"), children: icon }),
|
|
21007
21004
|
children,
|
|
21008
|
-
loading && /* @__PURE__ */ jsx2("div", { className: getClassName2("spinner"), children: /* @__PURE__ */ jsx2(Loader, { size:
|
|
21005
|
+
loading && /* @__PURE__ */ jsx2("div", { className: getClassName2("spinner"), children: /* @__PURE__ */ jsx2(Loader, { size: 12 }) })
|
|
21009
21006
|
]
|
|
21010
21007
|
}
|
|
21011
21008
|
);
|
|
@@ -21015,18 +21012,24 @@ var Button = ({
|
|
|
21015
21012
|
// ../platform-client/components/Modal/Modal.tsx
|
|
21016
21013
|
import { jsx as jsx3, jsxs as jsxs2 } from "react/jsx-runtime";
|
|
21017
21014
|
var getClassName3 = getClassNameFactory2("Modal", Modal_module_default);
|
|
21018
|
-
var modalContext = createContext({
|
|
21019
|
-
|
|
21015
|
+
var modalContext = createContext({
|
|
21016
|
+
buttonVariant: "primary",
|
|
21017
|
+
visible: false,
|
|
21018
|
+
setVisible: () => {
|
|
21019
|
+
},
|
|
21020
|
+
ref: null
|
|
21021
|
+
});
|
|
21020
21022
|
var Modal = ({
|
|
21021
21023
|
actionLabel = "Open",
|
|
21022
|
-
children
|
|
21024
|
+
children,
|
|
21025
|
+
hideButton = false
|
|
21023
21026
|
}) => {
|
|
21024
|
-
const { visible, setVisible, ref } = useContext(modalContext);
|
|
21027
|
+
const { visible, setVisible, buttonVariant, ref } = useContext(modalContext);
|
|
21025
21028
|
return /* @__PURE__ */ jsxs2("div", { className: getClassName3({ visible }), children: [
|
|
21026
|
-
/* @__PURE__ */ jsx3("div", { className: getClassName3("button"), children: /* @__PURE__ */ jsx3(
|
|
21029
|
+
!hideButton && /* @__PURE__ */ jsx3("div", { className: getClassName3("button"), children: /* @__PURE__ */ jsx3(
|
|
21027
21030
|
Button,
|
|
21028
21031
|
{
|
|
21029
|
-
variant:
|
|
21032
|
+
variant: buttonVariant,
|
|
21030
21033
|
onClick: () => {
|
|
21031
21034
|
setVisible(!visible);
|
|
21032
21035
|
},
|
|
@@ -21072,9 +21075,10 @@ var ActionModal = ({
|
|
|
21072
21075
|
children,
|
|
21073
21076
|
title,
|
|
21074
21077
|
description,
|
|
21075
|
-
actions
|
|
21078
|
+
actions,
|
|
21079
|
+
hideButton
|
|
21076
21080
|
}) => {
|
|
21077
|
-
return /* @__PURE__ */ jsx5(Modal, { actionLabel, children: /* @__PURE__ */ jsxs3("div", { className: getClassName5(), children: [
|
|
21081
|
+
return /* @__PURE__ */ jsx5(Modal, { actionLabel, hideButton, children: /* @__PURE__ */ jsxs3("div", { className: getClassName5(), children: [
|
|
21078
21082
|
/* @__PURE__ */ jsxs3("div", { className: getClassName5("header"), children: [
|
|
21079
21083
|
/* @__PURE__ */ jsx5(Heading, { size: "s", children: title }),
|
|
21080
21084
|
description && /* @__PURE__ */ jsx5("small", { children: description })
|
|
@@ -21378,11 +21382,12 @@ import { useEffect as useEffect6, useMemo as useMemo2, useRef as useRef5, useSta
|
|
|
21378
21382
|
|
|
21379
21383
|
// css-module:/home/runner/work/puck-platform/puck-platform/packages/platform-client/components/Table/Table.module.css#css-module
|
|
21380
21384
|
init_react_import();
|
|
21381
|
-
var Table_module_default = { "Table": "
|
|
21385
|
+
var Table_module_default = { "Table": "_Table_1bbu5_1", "Table-filters": "_Table-filters_1bbu5_9", "Table-inner": "_Table-inner_1bbu5_13", "Table-table": "_Table-table_1bbu5_17", "Table--hideHeader": "_Table--hideHeader_1bbu5_41", "Table-footer": "_Table-footer_1bbu5_89", "Table--clickableRows": "_Table--clickableRows_1bbu5_93", "Table-placeholder": "_Table-placeholder_1bbu5_98", "Table-loader": "_Table-loader_1bbu5_109", "TableRow--highlightRow": "_TableRow--highlightRow_1bbu5_113" };
|
|
21382
21386
|
|
|
21383
21387
|
// ../platform-client/components/Table/Table.tsx
|
|
21384
21388
|
import { jsx as jsx19, jsxs as jsxs10 } from "react/jsx-runtime";
|
|
21385
21389
|
var getClassName14 = get_class_name_factory_default("Table", Table_module_default);
|
|
21390
|
+
var getRowClassName = get_class_name_factory_default("TableRow", Table_module_default);
|
|
21386
21391
|
|
|
21387
21392
|
// ../platform-client/components/Textarea/index.tsx
|
|
21388
21393
|
init_react_import();
|
package/package.json
CHANGED