@puckeditor/plugin-ai 0.6.1-canary.e4418837 → 0.6.1-canary.f1d4df0c
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 +27 -27
- package/dist/index.js +66 -60
- package/dist/index.mjs +79 -73
- package/package.json +1 -1
package/dist/index.css
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* css-module:/home/runner/work/
|
|
1
|
+
/* css-module:/home/runner/work/platform/platform/packages/plugin-ai/src/components/Chat/styles.module.css/#css-module-data */
|
|
2
2
|
._Chat_3s08c_1 {
|
|
3
3
|
background: white;
|
|
4
4
|
height: 100%;
|
|
@@ -208,7 +208,7 @@ p {
|
|
|
208
208
|
margin: 0;
|
|
209
209
|
}
|
|
210
210
|
|
|
211
|
-
/* css-module:/home/runner/work/
|
|
211
|
+
/* css-module:/home/runner/work/platform/platform/packages/platform-client/components/ActionModal/ActionModal.module.css/#css-module-data */
|
|
212
212
|
._ActionModal_r3pvy_1 {
|
|
213
213
|
display: block;
|
|
214
214
|
min-width: 356px;
|
|
@@ -235,7 +235,7 @@ p {
|
|
|
235
235
|
padding: 16px 24px;
|
|
236
236
|
}
|
|
237
237
|
|
|
238
|
-
/* css-module:/home/runner/work/
|
|
238
|
+
/* css-module:/home/runner/work/platform/platform/packages/platform-client/components/Modal/Modal.module.css/#css-module-data */
|
|
239
239
|
._Modal-background_1bedq_1 {
|
|
240
240
|
align-items: center;
|
|
241
241
|
display: flex;
|
|
@@ -264,7 +264,7 @@ p {
|
|
|
264
264
|
overflow: auto;
|
|
265
265
|
}
|
|
266
266
|
|
|
267
|
-
/* css-module:/home/runner/work/
|
|
267
|
+
/* css-module:/home/runner/work/platform/platform/packages/platform-client/components/Button/Button.module.css/#css-module-data */
|
|
268
268
|
._Button_1sk6w_1 {
|
|
269
269
|
appearance: none;
|
|
270
270
|
background: none;
|
|
@@ -397,7 +397,7 @@ p {
|
|
|
397
397
|
padding-left: 8px;
|
|
398
398
|
}
|
|
399
399
|
|
|
400
|
-
/* css-module:/home/runner/work/
|
|
400
|
+
/* css-module:/home/runner/work/platform/platform/packages/platform-client/components/Loader/styles.module.css/#css-module-data */
|
|
401
401
|
@keyframes _loader-animation_nacdm_1 {
|
|
402
402
|
0% {
|
|
403
403
|
transform: rotate(0deg) scale(1);
|
|
@@ -419,7 +419,7 @@ p {
|
|
|
419
419
|
animation-fill-mode: both;
|
|
420
420
|
}
|
|
421
421
|
|
|
422
|
-
/* css-module:/home/runner/work/
|
|
422
|
+
/* css-module:/home/runner/work/platform/platform/packages/platform-client/components/Heading/Heading.module.css/#css-module-data */
|
|
423
423
|
._Heading_qkzg9_1 {
|
|
424
424
|
display: block;
|
|
425
425
|
font-weight: 700;
|
|
@@ -487,7 +487,7 @@ p {
|
|
|
487
487
|
}
|
|
488
488
|
}
|
|
489
489
|
|
|
490
|
-
/* css-module:/home/runner/work/
|
|
490
|
+
/* css-module:/home/runner/work/platform/platform/packages/platform-client/components/Align/Align.module.css/#css-module-data */
|
|
491
491
|
._Align_oewlu_1 {
|
|
492
492
|
align-items: flex-start;
|
|
493
493
|
display: flex;
|
|
@@ -511,7 +511,7 @@ p {
|
|
|
511
511
|
position: relative;
|
|
512
512
|
}
|
|
513
513
|
|
|
514
|
-
/* css-module:/home/runner/work/
|
|
514
|
+
/* css-module:/home/runner/work/platform/platform/packages/platform-client/components/AutoForm/AutoForm.module.css/#css-module-data */
|
|
515
515
|
._AutoForm_1vmh9_1 {
|
|
516
516
|
display: flex;
|
|
517
517
|
gap: 16px;
|
|
@@ -522,7 +522,7 @@ p {
|
|
|
522
522
|
padding: 0px !important;
|
|
523
523
|
}
|
|
524
524
|
|
|
525
|
-
/* css-module:/home/runner/work/
|
|
525
|
+
/* css-module:/home/runner/work/platform/platform/packages/platform-client/components/Card/Card.module.css/#css-module-data */
|
|
526
526
|
._Card_rpnal_1 {
|
|
527
527
|
background-color: white;
|
|
528
528
|
border: 1px solid var(--puck-color-grey-08);
|
|
@@ -562,7 +562,7 @@ p {
|
|
|
562
562
|
color: var(--puck-color-azure-04);
|
|
563
563
|
}
|
|
564
564
|
|
|
565
|
-
/* css-module:/home/runner/work/
|
|
565
|
+
/* css-module:/home/runner/work/platform/platform/packages/platform-client/components/CardSelector/styles.module.css/#css-module-data */
|
|
566
566
|
._CardSelector_1ogry_1 {
|
|
567
567
|
display: grid;
|
|
568
568
|
gap: 16px;
|
|
@@ -600,7 +600,7 @@ p {
|
|
|
600
600
|
cursor: pointer;
|
|
601
601
|
}
|
|
602
602
|
|
|
603
|
-
/* css-module:/home/runner/work/
|
|
603
|
+
/* css-module:/home/runner/work/platform/platform/packages/platform-client/components/Code/Code.module.css/#css-module-data */
|
|
604
604
|
._Code_d4378_1 {
|
|
605
605
|
border-radius: 8px;
|
|
606
606
|
position: relative;
|
|
@@ -720,7 +720,7 @@ p {
|
|
|
720
720
|
background: var(--puck-color-grey-11);
|
|
721
721
|
}
|
|
722
722
|
|
|
723
|
-
/* css-module:/home/runner/work/
|
|
723
|
+
/* css-module:/home/runner/work/platform/platform/packages/platform-client/components/IconButton/IconButton.module.css/#css-module-data */
|
|
724
724
|
._IconButton_thegm_1 {
|
|
725
725
|
align-items: center;
|
|
726
726
|
background: transparent;
|
|
@@ -765,7 +765,7 @@ p {
|
|
|
765
765
|
color: var(--puck-color-grey-07);
|
|
766
766
|
}
|
|
767
767
|
|
|
768
|
-
/* css-module:/home/runner/work/
|
|
768
|
+
/* css-module:/home/runner/work/platform/platform/packages/platform-client/components/InfoBar/InfoBar.module.css/#css-module-data */
|
|
769
769
|
._InfoBar_kchdj_1 {
|
|
770
770
|
border: 1px solid var(--puck-color-grey-10);
|
|
771
771
|
border-radius: 8px;
|
|
@@ -788,7 +788,7 @@ p {
|
|
|
788
788
|
font-weight: 600;
|
|
789
789
|
}
|
|
790
790
|
|
|
791
|
-
/* css-module:/home/runner/work/
|
|
791
|
+
/* css-module:/home/runner/work/platform/platform/packages/platform-client/components/Inline/Inline.module.css/#css-module-data */
|
|
792
792
|
._Inline_6o5on_3 {
|
|
793
793
|
display: block;
|
|
794
794
|
}
|
|
@@ -828,7 +828,7 @@ p {
|
|
|
828
828
|
flex-grow: 1;
|
|
829
829
|
}
|
|
830
830
|
|
|
831
|
-
/* css-module:/home/runner/work/
|
|
831
|
+
/* css-module:/home/runner/work/platform/platform/packages/platform-client/components/Link/Link.module.css/#css-module-data */
|
|
832
832
|
._Link_1j70m_1 {
|
|
833
833
|
color: var(--puck-color-azure-04);
|
|
834
834
|
text-decoration: none;
|
|
@@ -837,7 +837,7 @@ p {
|
|
|
837
837
|
color: var(--puck-color-azure-05);
|
|
838
838
|
}
|
|
839
839
|
|
|
840
|
-
/* css-module:/home/runner/work/
|
|
840
|
+
/* css-module:/home/runner/work/platform/platform/packages/platform-client/components/Menu/styles.module.css/#css-module-data */
|
|
841
841
|
._Menu_1tu16_1 {
|
|
842
842
|
display: flex;
|
|
843
843
|
position: relative;
|
|
@@ -913,7 +913,7 @@ button._Menu-item_1tu16_55:hover {
|
|
|
913
913
|
opacity: 0.5;
|
|
914
914
|
}
|
|
915
915
|
|
|
916
|
-
/* css-module:/home/runner/work/
|
|
916
|
+
/* css-module:/home/runner/work/platform/platform/packages/platform-client/components/Page/Page.module.css/#css-module-data */
|
|
917
917
|
._Page_nkzj9_1 {
|
|
918
918
|
display: flex;
|
|
919
919
|
flex-direction: column;
|
|
@@ -972,7 +972,7 @@ button._Menu-item_1tu16_55:hover {
|
|
|
972
972
|
padding: 16px 24px;
|
|
973
973
|
}
|
|
974
974
|
|
|
975
|
-
/* css-module:/home/runner/work/
|
|
975
|
+
/* css-module:/home/runner/work/platform/platform/packages/platform-client/components/Pagination/Pagination.module.css/#css-module-data */
|
|
976
976
|
._Pagination_1okv2_1 {
|
|
977
977
|
align-items: baseline;
|
|
978
978
|
display: flex;
|
|
@@ -1000,7 +1000,7 @@ button._Menu-item_1tu16_55:hover {
|
|
|
1000
1000
|
color: var(--puck-color-grey-05);
|
|
1001
1001
|
}
|
|
1002
1002
|
|
|
1003
|
-
/* css-module:/home/runner/work/
|
|
1003
|
+
/* css-module:/home/runner/work/platform/platform/packages/platform-client/components/PlanGrid/styles.module.css/#css-module-data */
|
|
1004
1004
|
._PlanGrid--loading_97rn7_1 {
|
|
1005
1005
|
opacity: 0;
|
|
1006
1006
|
}
|
|
@@ -1028,7 +1028,7 @@ button._Menu-item_1tu16_55:hover {
|
|
|
1028
1028
|
font-weight: 500;
|
|
1029
1029
|
}
|
|
1030
1030
|
|
|
1031
|
-
/* css-module:/home/runner/work/
|
|
1031
|
+
/* css-module:/home/runner/work/platform/platform/packages/platform-client/components/PlanCard/styles.module.css/#css-module-data */
|
|
1032
1032
|
._PlanCard_16zmu_1 {
|
|
1033
1033
|
border: 1px solid var(--puck-color-grey-09);
|
|
1034
1034
|
border-radius: 16px;
|
|
@@ -1212,7 +1212,7 @@ button._Menu-item_1tu16_55:hover {
|
|
|
1212
1212
|
grid-auto-flow: column;
|
|
1213
1213
|
}
|
|
1214
1214
|
|
|
1215
|
-
/* css-module:/home/runner/work/
|
|
1215
|
+
/* css-module:/home/runner/work/platform/platform/packages/platform-client/components/Section/Section.module.css/#css-module-data */
|
|
1216
1216
|
._Section-inner_1uwo0_1 {
|
|
1217
1217
|
margin-left: auto;
|
|
1218
1218
|
margin-right: auto;
|
|
@@ -1230,7 +1230,7 @@ button._Menu-item_1tu16_55:hover {
|
|
|
1230
1230
|
max-width: unset;
|
|
1231
1231
|
}
|
|
1232
1232
|
|
|
1233
|
-
/* css-module:/home/runner/work/
|
|
1233
|
+
/* css-module:/home/runner/work/platform/platform/packages/platform-client/components/Tag/Tag.module.css/#css-module-data */
|
|
1234
1234
|
._Tag_s2h0n_1 {
|
|
1235
1235
|
align-items: center;
|
|
1236
1236
|
display: flex;
|
|
@@ -1301,7 +1301,7 @@ button._Menu-item_1tu16_55:hover {
|
|
|
1301
1301
|
margin-top: 1px;
|
|
1302
1302
|
}
|
|
1303
1303
|
|
|
1304
|
-
/* css-module:/home/runner/work/
|
|
1304
|
+
/* css-module:/home/runner/work/platform/platform/packages/platform-client/components/Table/Table.module.css/#css-module-data */
|
|
1305
1305
|
._Table_o345u_1 {
|
|
1306
1306
|
color: black;
|
|
1307
1307
|
display: flex;
|
|
@@ -1401,7 +1401,7 @@ button._Menu-item_1tu16_55:hover {
|
|
|
1401
1401
|
background-color: var(--puck-color-grey-12);
|
|
1402
1402
|
}
|
|
1403
1403
|
|
|
1404
|
-
/* css-module:/home/runner/work/
|
|
1404
|
+
/* css-module:/home/runner/work/platform/platform/packages/platform-client/components/VerticalSpace/VerticalSpace.module.css/#css-module-data */
|
|
1405
1405
|
._VerticalSpace_1tjaw_1 {
|
|
1406
1406
|
padding-top: 16px;
|
|
1407
1407
|
}
|
|
@@ -1433,7 +1433,7 @@ button._Menu-item_1tu16_55:hover {
|
|
|
1433
1433
|
padding-top: 128px;
|
|
1434
1434
|
}
|
|
1435
1435
|
|
|
1436
|
-
/* css-module:/home/runner/work/
|
|
1436
|
+
/* css-module:/home/runner/work/platform/platform/packages/platform-client/components/Viewport/styles.module.css/#css-module-data */
|
|
1437
1437
|
._Viewport_1vvhm_3 {
|
|
1438
1438
|
}
|
|
1439
1439
|
._Viewport--standard_1vvhm_6,
|
|
@@ -1468,7 +1468,7 @@ button._Menu-item_1tu16_55:hover {
|
|
|
1468
1468
|
}
|
|
1469
1469
|
}
|
|
1470
1470
|
|
|
1471
|
-
/* css-module:/home/runner/work/
|
|
1471
|
+
/* css-module:/home/runner/work/platform/platform/packages/plugin-ai/src/components/ChatBody/styles.module.css/#css-module-data */
|
|
1472
1472
|
._Chat_1njo2_1 {
|
|
1473
1473
|
--fade-size: 32px;
|
|
1474
1474
|
--chat-background-color: white;
|
|
@@ -1699,7 +1699,7 @@ button._Menu-item_1tu16_55:hover {
|
|
|
1699
1699
|
margin-left: auto;
|
|
1700
1700
|
}
|
|
1701
1701
|
|
|
1702
|
-
/* css-module:/home/runner/work/
|
|
1702
|
+
/* css-module:/home/runner/work/platform/platform/packages/plugin-ai/src/components/PromptForm/styles.module.css/#css-module-data */
|
|
1703
1703
|
._PromptForm_1r4kq_1 {
|
|
1704
1704
|
--radius: 9px;
|
|
1705
1705
|
background-color: var(--puck-color-grey-09);
|
package/dist/index.js
CHANGED
|
@@ -564,7 +564,7 @@ var getClassNameFactory = (rootClass, styles, { baseClass = "" } = {}) => (optio
|
|
|
564
564
|
};
|
|
565
565
|
var get_class_name_factory_default = getClassNameFactory;
|
|
566
566
|
|
|
567
|
-
// css-module:/home/runner/work/
|
|
567
|
+
// css-module:/home/runner/work/platform/platform/packages/plugin-ai/src/components/Chat/styles.module.css#css-module
|
|
568
568
|
init_react_import();
|
|
569
569
|
var styles_module_default = { "Chat": "_Chat_3s08c_1", "Chat-header": "_Chat-header_3s08c_9", "Chat-placeholder": "_Chat-placeholder_3s08c_23", "Chat-actions": "_Chat-actions_3s08c_42", "Chat-action": "_Chat-action_3s08c_42", "Chat-actionOutlined": "_Chat-actionOutlined_3s08c_51" };
|
|
570
570
|
|
|
@@ -583,7 +583,7 @@ init_react_import();
|
|
|
583
583
|
// ../platform-client/components/ActionModal/ActionModal.tsx
|
|
584
584
|
init_react_import();
|
|
585
585
|
|
|
586
|
-
// css-module:/home/runner/work/
|
|
586
|
+
// css-module:/home/runner/work/platform/platform/packages/platform-client/components/ActionModal/ActionModal.module.css#css-module
|
|
587
587
|
init_react_import();
|
|
588
588
|
var ActionModal_module_default = { "ActionModal": "_ActionModal_r3pvy_1", "ActionModal-header": "_ActionModal-header_r3pvy_6", "ActionModal-body": "_ActionModal-body_r3pvy_17", "ActionModal-footer": "_ActionModal-footer_r3pvy_22" };
|
|
589
589
|
|
|
@@ -627,7 +627,7 @@ var get_class_name_factory_default2 = getClassNameFactory2;
|
|
|
627
627
|
// ../platform-client/components/Modal/Modal.tsx
|
|
628
628
|
init_react_import();
|
|
629
629
|
|
|
630
|
-
// css-module:/home/runner/work/
|
|
630
|
+
// css-module:/home/runner/work/platform/platform/packages/platform-client/components/Modal/Modal.module.css#css-module
|
|
631
631
|
init_react_import();
|
|
632
632
|
var Modal_module_default = { "Modal-background": "_Modal-background_1bedq_1", "Modal--visible": "_Modal--visible_1bedq_16", "Modal-modal": "_Modal-modal_1bedq_22" };
|
|
633
633
|
|
|
@@ -645,14 +645,14 @@ init_react_import();
|
|
|
645
645
|
init_react_import();
|
|
646
646
|
var import_react8 = require("react");
|
|
647
647
|
|
|
648
|
-
// css-module:/home/runner/work/
|
|
648
|
+
// css-module:/home/runner/work/platform/platform/packages/platform-client/components/Button/Button.module.css#css-module
|
|
649
649
|
init_react_import();
|
|
650
650
|
var Button_module_default = { "Button": "_Button_1sk6w_1", "Button--medium": "_Button--medium_1sk6w_34", "Button--large": "_Button--large_1sk6w_42", "Button--brand": "_Button--brand_1sk6w_49", "Button--primary": "_Button--primary_1sk6w_70", "Button--secondary": "_Button--secondary_1sk6w_84", "Button--danger": "_Button--danger_1sk6w_101", "Button--flush": "_Button--flush_1sk6w_115", "Button--ghost": "_Button--ghost_1sk6w_119", "Button--disabled": "_Button--disabled_1sk6w_136", "Button--fullWidth": "_Button--fullWidth_1sk6w_146", "Button-spinner": "_Button-spinner_1sk6w_151" };
|
|
651
651
|
|
|
652
652
|
// ../platform-client/components/Loader/index.tsx
|
|
653
653
|
init_react_import();
|
|
654
654
|
|
|
655
|
-
// css-module:/home/runner/work/
|
|
655
|
+
// css-module:/home/runner/work/platform/platform/packages/platform-client/components/Loader/styles.module.css#css-module
|
|
656
656
|
init_react_import();
|
|
657
657
|
var styles_module_default2 = { "Loader": "_Loader_nacdm_13", "loader-animation": "_loader-animation_nacdm_1" };
|
|
658
658
|
|
|
@@ -759,8 +759,10 @@ var Modal = ({
|
|
|
759
759
|
!hideButton && /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("div", { className: getClassName3("button"), children: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
|
|
760
760
|
Button,
|
|
761
761
|
{
|
|
762
|
+
type: "button",
|
|
762
763
|
variant: buttonVariant,
|
|
763
|
-
onClick: () => {
|
|
764
|
+
onClick: (e2) => {
|
|
765
|
+
e2.stopPropagation();
|
|
764
766
|
setVisible(!visible);
|
|
765
767
|
},
|
|
766
768
|
children: actionLabel
|
|
@@ -776,7 +778,7 @@ init_react_import();
|
|
|
776
778
|
// ../platform-client/components/Heading/Heading.tsx
|
|
777
779
|
init_react_import();
|
|
778
780
|
|
|
779
|
-
// css-module:/home/runner/work/
|
|
781
|
+
// css-module:/home/runner/work/platform/platform/packages/platform-client/components/Heading/Heading.module.css#css-module
|
|
780
782
|
init_react_import();
|
|
781
783
|
var Heading_module_default = { "Heading": "_Heading_qkzg9_1", "Heading--xxxxl": "_Heading--xxxxl_qkzg9_11", "Heading--xxxl": "_Heading--xxxl_qkzg9_15", "Heading--xxl": "_Heading--xxl_qkzg9_19", "Heading--xl": "_Heading--xl_qkzg9_23", "Heading--l": "_Heading--l_qkzg9_27", "Heading--m": "_Heading--m_qkzg9_31", "Heading--s": "_Heading--s_qkzg9_35", "Heading--xs": "_Heading--xs_qkzg9_39", "Heading--xxs": "_Heading--xxs_qkzg9_43" };
|
|
782
784
|
|
|
@@ -830,7 +832,7 @@ init_react_import();
|
|
|
830
832
|
init_react_import();
|
|
831
833
|
var import_react10 = __toESM(require("react"));
|
|
832
834
|
|
|
833
|
-
// css-module:/home/runner/work/
|
|
835
|
+
// css-module:/home/runner/work/platform/platform/packages/platform-client/components/Align/Align.module.css#css-module
|
|
834
836
|
init_react_import();
|
|
835
837
|
var Align_module_default = { "Align": "_Align_oewlu_1", "Align--horizontalCenter": "_Align--horizontalCenter_oewlu_7", "Align--horizontalRight": "_Align--horizontalRight_oewlu_11", "Align--verticalBottom": "_Align--verticalBottom_oewlu_15", "Align--verticalCenter": "_Align--verticalCenter_oewlu_20", "Align-item": "_Align-item_oewlu_25" };
|
|
836
838
|
|
|
@@ -854,7 +856,7 @@ init_react_import();
|
|
|
854
856
|
var import_core = require("@puckeditor/core");
|
|
855
857
|
var import_react11 = require("react");
|
|
856
858
|
|
|
857
|
-
// css-module:/home/runner/work/
|
|
859
|
+
// css-module:/home/runner/work/platform/platform/packages/platform-client/components/AutoForm/AutoForm.module.css#css-module
|
|
858
860
|
init_react_import();
|
|
859
861
|
var AutoForm_module_default = { "AutoForm": "_AutoForm_1vmh9_1" };
|
|
860
862
|
|
|
@@ -868,7 +870,7 @@ init_react_import();
|
|
|
868
870
|
// ../platform-client/components/Card/Card.tsx
|
|
869
871
|
init_react_import();
|
|
870
872
|
|
|
871
|
-
// css-module:/home/runner/work/
|
|
873
|
+
// css-module:/home/runner/work/platform/platform/packages/platform-client/components/Card/Card.module.css#css-module
|
|
872
874
|
init_react_import();
|
|
873
875
|
var Card_module_default = { "Card": "_Card_rpnal_1", "Card-body": "_Card-body_rpnal_17", "Card-title": "_Card-title_rpnal_23", "Card-subtitle": "_Card-subtitle_rpnal_27", "Card-chevron": "_Card-chevron_rpnal_32", "Card--showChevron": "_Card--showChevron_rpnal_38", "Card--isActive": "_Card--isActive_rpnal_42" };
|
|
874
876
|
|
|
@@ -879,7 +881,7 @@ var getClassName8 = get_class_name_factory_default2("Card", Card_module_default)
|
|
|
879
881
|
// ../platform-client/components/CardSelector/index.tsx
|
|
880
882
|
init_react_import();
|
|
881
883
|
|
|
882
|
-
// css-module:/home/runner/work/
|
|
884
|
+
// css-module:/home/runner/work/platform/platform/packages/platform-client/components/CardSelector/styles.module.css#css-module
|
|
883
885
|
init_react_import();
|
|
884
886
|
var styles_module_default3 = { "CardSelector": "_CardSelector_1ogry_1", "CardSelectorOption": "_CardSelectorOption_1ogry_12", "CardSelectorOption--isSelected": "_CardSelectorOption--isSelected_1ogry_23", "CardSelectorOption--disabled": "_CardSelectorOption--disabled_1ogry_27", "CardSelectorOption-description": "_CardSelectorOption-description_1ogry_31", "CardSelectorOption-body": "_CardSelectorOption-body_1ogry_35" };
|
|
885
887
|
|
|
@@ -894,7 +896,7 @@ init_react_import();
|
|
|
894
896
|
// ../platform-client/components/Code/Code.tsx
|
|
895
897
|
init_react_import();
|
|
896
898
|
|
|
897
|
-
// css-module:/home/runner/work/
|
|
899
|
+
// css-module:/home/runner/work/platform/platform/packages/platform-client/components/Code/Code.module.css#css-module
|
|
898
900
|
init_react_import();
|
|
899
901
|
var Code_module_default = { "Code": "_Code_d4378_1", "Code-body": "_Code-body_d4378_8", "Code--light": "_Code--light_d4378_19", "Code-header": "_Code-header_d4378_34", "Code-corner": "_Code-corner_d4378_51", "Code-actions": "_Code-actions_d4378_71", "Code--lineNumbers": "_Code--lineNumbers_d4378_76", "Code-tabs": "_Code-tabs_d4378_91", "Tab": "_Tab_d4378_99", "Tab--isActive": "_Tab--isActive_d4378_104", "Tab--light": "_Tab--light_d4378_108", "Tab-button": "_Tab-button_d4378_112" };
|
|
900
902
|
|
|
@@ -916,7 +918,7 @@ init_react_import();
|
|
|
916
918
|
init_react_import();
|
|
917
919
|
var import_react14 = require("react");
|
|
918
920
|
|
|
919
|
-
// css-module:/home/runner/work/
|
|
921
|
+
// css-module:/home/runner/work/platform/platform/packages/platform-client/components/IconButton/IconButton.module.css#css-module
|
|
920
922
|
init_react_import();
|
|
921
923
|
var IconButton_module_default = { "IconButton": "_IconButton_thegm_1", "IconButton--disabled": "_IconButton--disabled_thegm_20", "IconButton--dark": "_IconButton--dark_thegm_26", "IconButton-title": "_IconButton-title_thegm_37" };
|
|
922
924
|
|
|
@@ -981,7 +983,7 @@ init_react_import();
|
|
|
981
983
|
// ../platform-client/components/InfoBar/InfoBar.tsx
|
|
982
984
|
init_react_import();
|
|
983
985
|
|
|
984
|
-
// css-module:/home/runner/work/
|
|
986
|
+
// css-module:/home/runner/work/platform/platform/packages/platform-client/components/InfoBar/InfoBar.module.css#css-module
|
|
985
987
|
init_react_import();
|
|
986
988
|
var InfoBar_module_default = { "InfoBar": "_InfoBar_kchdj_1", "Info": "_Info_kchdj_1", "Info-title": "_Info-title_kchdj_21" };
|
|
987
989
|
|
|
@@ -1006,7 +1008,7 @@ init_react_import();
|
|
|
1006
1008
|
// ../platform-client/components/Inline/Inline.tsx
|
|
1007
1009
|
init_react_import();
|
|
1008
1010
|
|
|
1009
|
-
// css-module:/home/runner/work/
|
|
1011
|
+
// css-module:/home/runner/work/platform/platform/packages/platform-client/components/Inline/Inline.module.css#css-module
|
|
1010
1012
|
init_react_import();
|
|
1011
1013
|
var Inline_module_default = { "Inline": "_Inline_6o5on_3", "Inline-inner": "_Inline-inner_6o5on_7", "Inline--noWrap": "_Inline--noWrap_6o5on_12", "Inline--sizeNONE": "_Inline--sizeNONE_6o5on_16", "Inline--sizeXXS": "_Inline--sizeXXS_6o5on_20", "Inline--sizeXS": "_Inline--sizeXS_6o5on_24", "Inline--sizeS": "_Inline--sizeS_6o5on_28", "Inline--sizeM": "_Inline--sizeM_6o5on_32", "Inline--sizeL": "_Inline--sizeL_6o5on_36", "Inline--center": "_Inline--center_6o5on_40", "Inline--centerH": "_Inline--centerH_6o5on_44", "Inline--grow": "_Inline--grow_6o5on_48" };
|
|
1012
1014
|
|
|
@@ -1058,7 +1060,7 @@ init_react_import();
|
|
|
1058
1060
|
// ../platform-client/components/Link/Link.tsx
|
|
1059
1061
|
init_react_import();
|
|
1060
1062
|
|
|
1061
|
-
// css-module:/home/runner/work/
|
|
1063
|
+
// css-module:/home/runner/work/platform/platform/packages/platform-client/components/Link/Link.module.css#css-module
|
|
1062
1064
|
init_react_import();
|
|
1063
1065
|
var Link_module_default = { "Link": "_Link_1j70m_1" };
|
|
1064
1066
|
|
|
@@ -1070,7 +1072,7 @@ var getClassName12 = get_class_name_factory_default2("Link", Link_module_default
|
|
|
1070
1072
|
init_react_import();
|
|
1071
1073
|
var import_react15 = require("react");
|
|
1072
1074
|
|
|
1073
|
-
// css-module:/home/runner/work/
|
|
1075
|
+
// css-module:/home/runner/work/platform/platform/packages/platform-client/components/Menu/styles.module.css#css-module
|
|
1074
1076
|
init_react_import();
|
|
1075
1077
|
var styles_module_default4 = { "Menu": "_Menu_1tu16_1", "Menu-content": "_Menu-content_1tu16_6", "Menu-sections": "_Menu-sections_1tu16_11", "Menu-action": "_Menu-action_1tu16_22", "Menu-list": "_Menu-list_1tu16_44", "Menu-item": "_Menu-item_1tu16_55", "Menu-item--disabled": "_Menu-item--disabled_1tu16_83" };
|
|
1076
1078
|
|
|
@@ -1088,7 +1090,7 @@ init_react_import();
|
|
|
1088
1090
|
// ../platform-client/components/Page/Page.tsx
|
|
1089
1091
|
init_react_import();
|
|
1090
1092
|
|
|
1091
|
-
// css-module:/home/runner/work/
|
|
1093
|
+
// css-module:/home/runner/work/platform/platform/packages/platform-client/components/Page/Page.module.css#css-module
|
|
1092
1094
|
init_react_import();
|
|
1093
1095
|
var Page_module_default = { "Page": "_Page_nkzj9_1", "Page-masthead": "_Page-masthead_nkzj9_8", "Page-crumbs": "_Page-crumbs_nkzj9_18", "Page-crumb": "_Page-crumb_nkzj9_18", "Page-crumbLink": "_Page-crumbLink_nkzj9_29", "Page-actions": "_Page-actions_nkzj9_61", "Page-footer": "_Page-footer_nkzj9_65" };
|
|
1094
1096
|
|
|
@@ -1103,7 +1105,7 @@ init_react_import();
|
|
|
1103
1105
|
init_react_import();
|
|
1104
1106
|
var import_react16 = require("react");
|
|
1105
1107
|
|
|
1106
|
-
// css-module:/home/runner/work/
|
|
1108
|
+
// css-module:/home/runner/work/platform/platform/packages/platform-client/components/Pagination/Pagination.module.css#css-module
|
|
1107
1109
|
init_react_import();
|
|
1108
1110
|
var Pagination_module_default = { "Pagination": "_Pagination_1okv2_1", "PaginationButton": "_PaginationButton_1okv2_8", "PaginationButton--isActive": "_PaginationButton--isActive_1okv2_20", "Pagination-ellipsis": "_Pagination-ellipsis_1okv2_30" };
|
|
1109
1111
|
|
|
@@ -1115,14 +1117,14 @@ var cxButton = getClassNameFactory2("PaginationButton", Pagination_module_defaul
|
|
|
1115
1117
|
// ../platform-client/components/PlanGrid/index.tsx
|
|
1116
1118
|
init_react_import();
|
|
1117
1119
|
|
|
1118
|
-
// css-module:/home/runner/work/
|
|
1120
|
+
// css-module:/home/runner/work/platform/platform/packages/platform-client/components/PlanGrid/styles.module.css#css-module
|
|
1119
1121
|
init_react_import();
|
|
1120
1122
|
var styles_module_default5 = { "PlanGrid--loading": "_PlanGrid--loading_97rn7_1", "PlanGrid-grid": "_PlanGrid-grid_97rn7_5", "PlanGrid-enterprise": "_PlanGrid-enterprise_97rn7_16" };
|
|
1121
1123
|
|
|
1122
1124
|
// ../platform-client/components/PlanCard/index.tsx
|
|
1123
1125
|
init_react_import();
|
|
1124
1126
|
|
|
1125
|
-
// css-module:/home/runner/work/
|
|
1127
|
+
// css-module:/home/runner/work/platform/platform/packages/platform-client/components/PlanCard/styles.module.css#css-module
|
|
1126
1128
|
init_react_import();
|
|
1127
1129
|
var styles_module_default6 = { "PlanCard": "_PlanCard_16zmu_1", "PlanCard--enterprise": "_PlanCard--enterprise_16zmu_12", "PlanCard-title": "_PlanCard-title_16zmu_17", "PlanCard-header": "_PlanCard-header_16zmu_26", "PlanCard-features": "_PlanCard-features_16zmu_35", "PlanCard-feature": "_PlanCard-feature_16zmu_35", "PlanCard-featureIcon": "_PlanCard-featureIcon_16zmu_51", "PlanCard-featureTitle": "_PlanCard-featureTitle_16zmu_56", "PlanCard-priceValue": "_PlanCard-priceValue_16zmu_61", "PlanCard-priceInterval": "_PlanCard-priceInterval_16zmu_65", "PlanCard-body": "_PlanCard-body_16zmu_69", "PlanCard-section": "_PlanCard-section_16zmu_83", "PlanCard-sectionTitle": "_PlanCard-sectionTitle_16zmu_106", "PlanCard-sectionBody": "_PlanCard-sectionBody_16zmu_112", "PlanCard-usageItem": "_PlanCard-usageItem_16zmu_125", "PlanCard-usageLabel": "_PlanCard-usageLabel_16zmu_131", "PlanCard-usageValue": "_PlanCard-usageValue_16zmu_136", "PlanCard-action": "_PlanCard-action_16zmu_142", "PlanCard-description": "_PlanCard-description_16zmu_149", "PlanCard--highlight": "_PlanCard--highlight_16zmu_154", "PlanCard-highlightText": "_PlanCard-highlightText_16zmu_184", "PlanCard--fullWidth": "_PlanCard--fullWidth_16zmu_200" };
|
|
1128
1130
|
|
|
@@ -6094,7 +6096,7 @@ init_react_import();
|
|
|
6094
6096
|
// ../platform-client/components/Section/Section.tsx
|
|
6095
6097
|
init_react_import();
|
|
6096
6098
|
|
|
6097
|
-
// css-module:/home/runner/work/
|
|
6099
|
+
// css-module:/home/runner/work/platform/platform/packages/platform-client/components/Section/Section.module.css#css-module
|
|
6098
6100
|
init_react_import();
|
|
6099
6101
|
var Section_module_default = { "Section-inner": "_Section-inner_1uwo0_1", "Section--flush": "_Section--flush_1uwo0_8", "Section": "_Section_1uwo0_1", "Section--full": "_Section--full_1uwo0_17" };
|
|
6100
6102
|
|
|
@@ -6114,7 +6116,7 @@ init_react_import();
|
|
|
6114
6116
|
// ../platform-client/components/Tag/Tag.tsx
|
|
6115
6117
|
init_react_import();
|
|
6116
6118
|
|
|
6117
|
-
// css-module:/home/runner/work/
|
|
6119
|
+
// css-module:/home/runner/work/platform/platform/packages/platform-client/components/Tag/Tag.module.css#css-module
|
|
6118
6120
|
init_react_import();
|
|
6119
6121
|
var Tag_module_default = { "Tag": "_Tag_s2h0n_1", "Tag--borderless": "_Tag--borderless_s2h0n_21", "Tag--colorBlue": "_Tag--colorBlue_s2h0n_25", "Tag--colorGreen": "_Tag--colorGreen_s2h0n_29", "Tag--colorRed": "_Tag--colorRed_s2h0n_33", "Tag--colorMuted": "_Tag--colorMuted_s2h0n_37", "Tag-sprite": "_Tag-sprite_s2h0n_41", "Tag--pulse": "_Tag--pulse_s2h0n_45", "pulse": "_pulse_s2h0n_1", "Tag-label": "_Tag-label_s2h0n_79" };
|
|
6120
6122
|
|
|
@@ -6132,7 +6134,7 @@ init_react_import();
|
|
|
6132
6134
|
init_react_import();
|
|
6133
6135
|
var import_react19 = require("react");
|
|
6134
6136
|
|
|
6135
|
-
// css-module:/home/runner/work/
|
|
6137
|
+
// css-module:/home/runner/work/platform/platform/packages/platform-client/components/Table/Table.module.css#css-module
|
|
6136
6138
|
init_react_import();
|
|
6137
6139
|
var Table_module_default = { "Table": "_Table_o345u_1", "Table-filters": "_Table-filters_o345u_9", "Table-inner": "_Table-inner_o345u_13", "Table-table": "_Table-table_o345u_17", "Table--hideHeader": "_Table--hideHeader_o345u_41", "Table-footer": "_Table-footer_o345u_89", "Table--clickableRows": "_Table--clickableRows_o345u_93", "Table-placeholder": "_Table-placeholder_o345u_98", "Table-loader": "_Table-loader_o345u_110", "TableRow--highlightRow": "_TableRow--highlightRow_o345u_114" };
|
|
6138
6140
|
|
|
@@ -6151,7 +6153,7 @@ init_react_import();
|
|
|
6151
6153
|
// ../platform-client/components/VerticalSpace/VerticalSpace.tsx
|
|
6152
6154
|
init_react_import();
|
|
6153
6155
|
|
|
6154
|
-
// css-module:/home/runner/work/
|
|
6156
|
+
// css-module:/home/runner/work/platform/platform/packages/platform-client/components/VerticalSpace/VerticalSpace.module.css#css-module
|
|
6155
6157
|
init_react_import();
|
|
6156
6158
|
var VerticalSpace_module_default = { "VerticalSpace": "_VerticalSpace_1tjaw_1", "VerticalSpace--size4": "_VerticalSpace--size4_1tjaw_5", "VerticalSpace--size8": "_VerticalSpace--size8_1tjaw_9", "VerticalSpace--size16": "_VerticalSpace--size16_1tjaw_13", "VerticalSpace--size32": "_VerticalSpace--size32_1tjaw_17", "VerticalSpace--size40": "_VerticalSpace--size40_1tjaw_21", "VerticalSpace--size48": "_VerticalSpace--size48_1tjaw_25", "VerticalSpace--size56": "_VerticalSpace--size56_1tjaw_29", "VerticalSpace--size96": "_VerticalSpace--size96_1tjaw_33", "VerticalSpace--size128": "_VerticalSpace--size128_1tjaw_37" };
|
|
6157
6159
|
|
|
@@ -6162,7 +6164,7 @@ var getClassName17 = get_class_name_factory_default2("VerticalSpace", VerticalSp
|
|
|
6162
6164
|
// ../platform-client/components/Viewport/index.tsx
|
|
6163
6165
|
init_react_import();
|
|
6164
6166
|
|
|
6165
|
-
// css-module:/home/runner/work/
|
|
6167
|
+
// css-module:/home/runner/work/platform/platform/packages/platform-client/components/Viewport/styles.module.css#css-module
|
|
6166
6168
|
init_react_import();
|
|
6167
6169
|
var styles_module_default7 = { "Viewport": "_Viewport_1vvhm_3", "Viewport--standard": "_Viewport--standard_1vvhm_6", "Viewport--inline": "_Viewport--inline_1vvhm_7", "Viewport--narrow": "_Viewport--narrow_1vvhm_11", "Viewport--flex": "_Viewport--flex_1vvhm_19" };
|
|
6168
6170
|
|
|
@@ -6176,7 +6178,7 @@ var import_react20 = require("react");
|
|
|
6176
6178
|
var import_jsx_runtime28 = require("react/jsx-runtime");
|
|
6177
6179
|
var ctx = (0, import_react20.createContext)({});
|
|
6178
6180
|
|
|
6179
|
-
// css-module:/home/runner/work/
|
|
6181
|
+
// css-module:/home/runner/work/platform/platform/packages/plugin-ai/src/components/ChatBody/styles.module.css#css-module
|
|
6180
6182
|
init_react_import();
|
|
6181
6183
|
var styles_module_default8 = { "Chat": "_Chat_1njo2_1", "Chat-inner": "_Chat-inner_1njo2_17", "Chat--hasMessages": "_Chat--hasMessages_1njo2_25", "Chat--hasChildren": "_Chat--hasChildren_1njo2_29", "Chat-messages": "_Chat-messages_1njo2_34", "Chat-form": "_Chat-form_1njo2_41", "Chat--hideInput": "_Chat--hideInput_1njo2_46", "Chat-formHelper": "_Chat-formHelper_1njo2_60", "Chat-examplePrompts": "_Chat-examplePrompts_1njo2_75", "Chat-examplePrompt": "_Chat-examplePrompt_1njo2_75", "Chat-examplePromptArrow": "_Chat-examplePromptArrow_1njo2_105", "Chat-default": "_Chat-default_1njo2_110", "ChatMessage": "_ChatMessage_1njo2_127", "ChatMessage--userRole": "_ChatMessage--userRole_1njo2_133", "ChatMessage-text": "_ChatMessage-text_1njo2_133", "ChatMessage-data": "_ChatMessage-data_1njo2_231", "ChatMessage-dataInner": "_ChatMessage-dataInner_1njo2_242", "ChatMessage-dataIcon": "_ChatMessage-dataIcon_1njo2_248", "Chat-loader": "_Chat-loader_1njo2_252", "Chat-error": "_Chat-error_1njo2_257", "Chat-errorLabel": "_Chat-errorLabel_1njo2_266", "Chat-errorAction": "_Chat-errorAction_1njo2_270" };
|
|
6182
6184
|
|
|
@@ -6184,7 +6186,7 @@ var styles_module_default8 = { "Chat": "_Chat_1njo2_1", "Chat-inner": "_Chat-inn
|
|
|
6184
6186
|
init_react_import();
|
|
6185
6187
|
var import_react21 = require("react");
|
|
6186
6188
|
|
|
6187
|
-
// css-module:/home/runner/work/
|
|
6189
|
+
// css-module:/home/runner/work/platform/platform/packages/plugin-ai/src/components/PromptForm/styles.module.css#css-module
|
|
6188
6190
|
init_react_import();
|
|
6189
6191
|
var styles_module_default9 = { "PromptForm": "_PromptForm_1r4kq_1", "PromptForm-inner": "_PromptForm-inner_1r4kq_8", "PromptForm--dark": "_PromptForm--dark_1r4kq_14", "PromptForm--glow": "_PromptForm--glow_1r4kq_19", "PromptForm-glow": "_PromptForm-glow_1r4kq_19", "loop": "_loop_1r4kq_1", "PromptForm-formInner": "_PromptForm-formInner_1r4kq_60", "PromptForm-input": "_PromptForm-input_1r4kq_66", "PromptForm--disabled": "_PromptForm--disabled_1r4kq_97", "PromptForm-helper": "_PromptForm-helper_1r4kq_102", "PromptForm-actions": "_PromptForm-actions_1r4kq_112", "PromptForm-actionsLeft": "_PromptForm-actionsLeft_1r4kq_123", "PromptForm-actionsRight": "_PromptForm-actionsRight_1r4kq_130", "PromptForm-actionSubmit": "_PromptForm-actionSubmit_1r4kq_135", "PromptForm--userCta": "_PromptForm--userCta_1r4kq_149", "PromptForm--isDisabled": "_PromptForm--isDisabled_1r4kq_157", "PromptForm--isLoading": "_PromptForm--isLoading_1r4kq_162" };
|
|
6190
6192
|
|
|
@@ -6405,13 +6407,7 @@ function ChatMessagePart({
|
|
|
6405
6407
|
if (part.type === "text") {
|
|
6406
6408
|
return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("div", { className: cxMessage("text"), children: /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(ChatMessageWrapper, { role, children: part.text }) });
|
|
6407
6409
|
}
|
|
6408
|
-
if (part.type
|
|
6409
|
-
return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(PuckTool, { ...part });
|
|
6410
|
-
}
|
|
6411
|
-
if (part.type === "tool-updatePage") {
|
|
6412
|
-
return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(PuckTool, { ...part });
|
|
6413
|
-
}
|
|
6414
|
-
if (part.type === "tool-userTool") {
|
|
6410
|
+
if (part.type.startsWith("tool-")) {
|
|
6415
6411
|
return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(PuckTool, { ...part });
|
|
6416
6412
|
}
|
|
6417
6413
|
return null;
|
|
@@ -6660,29 +6656,39 @@ function Chat2({
|
|
|
6660
6656
|
const [toolStatus, setToolStatus] = (0, import_react25.useState)({});
|
|
6661
6657
|
const uploadScreenshot = (0, import_react25.useCallback)(
|
|
6662
6658
|
async (width, bucketUrl) => {
|
|
6663
|
-
|
|
6664
|
-
|
|
6665
|
-
|
|
6666
|
-
|
|
6667
|
-
|
|
6668
|
-
|
|
6669
|
-
|
|
6670
|
-
|
|
6671
|
-
|
|
6672
|
-
|
|
6673
|
-
|
|
6674
|
-
|
|
6675
|
-
|
|
6676
|
-
|
|
6677
|
-
|
|
6678
|
-
|
|
6679
|
-
|
|
6680
|
-
|
|
6681
|
-
|
|
6682
|
-
|
|
6683
|
-
|
|
6684
|
-
|
|
6685
|
-
|
|
6659
|
+
try {
|
|
6660
|
+
const iframeDocument = document?.getElementById("preview-frame")?.contentDocument?.documentElement ?? null;
|
|
6661
|
+
if (!iframeDocument) {
|
|
6662
|
+
throw new Error("Preview frame not found");
|
|
6663
|
+
}
|
|
6664
|
+
const canvas = await (0, import_html2canvas_pro.default)(iframeDocument, {
|
|
6665
|
+
scale: 2,
|
|
6666
|
+
backgroundColor: "#ffffff",
|
|
6667
|
+
width,
|
|
6668
|
+
windowWidth: width,
|
|
6669
|
+
foreignObjectRendering: false,
|
|
6670
|
+
imageTimeout: 3e4,
|
|
6671
|
+
logging: false,
|
|
6672
|
+
allowTaint: false,
|
|
6673
|
+
useCORS: true,
|
|
6674
|
+
scrollY: 0,
|
|
6675
|
+
ignoreElements: (el) => Array.from(el.classList).some(
|
|
6676
|
+
(c2) => c2.startsWith("_DraggableComponent--hover") || c2.startsWith("_ActionBar")
|
|
6677
|
+
)
|
|
6678
|
+
});
|
|
6679
|
+
const image = canvas.toDataURL("image/webp", 0.8);
|
|
6680
|
+
const imageResponse = await fetch(image);
|
|
6681
|
+
const blob = await imageResponse.blob();
|
|
6682
|
+
const uploadResponse = await fetch(bucketUrl, {
|
|
6683
|
+
method: "PUT",
|
|
6684
|
+
body: blob
|
|
6685
|
+
});
|
|
6686
|
+
if (!uploadResponse.ok) {
|
|
6687
|
+
throw new Error(`Upload failed with status ${uploadResponse.status}`);
|
|
6688
|
+
}
|
|
6689
|
+
} catch (e2) {
|
|
6690
|
+
console.error("Failed to upload screenshot", e2);
|
|
6691
|
+
}
|
|
6686
6692
|
},
|
|
6687
6693
|
[]
|
|
6688
6694
|
);
|
|
@@ -6727,7 +6733,7 @@ function Chat2({
|
|
|
6727
6733
|
return;
|
|
6728
6734
|
}
|
|
6729
6735
|
case "data-send-screenshot": {
|
|
6730
|
-
dataPart.data.urls.
|
|
6736
|
+
dataPart.data.urls.forEach((obj) => {
|
|
6731
6737
|
const [[key, value]] = Object.entries(obj);
|
|
6732
6738
|
const breakpoint = Number(key);
|
|
6733
6739
|
uploadScreenshot(breakpoint, value);
|
|
@@ -6739,7 +6745,7 @@ function Chat2({
|
|
|
6739
6745
|
return;
|
|
6740
6746
|
}
|
|
6741
6747
|
},
|
|
6742
|
-
[getPuck]
|
|
6748
|
+
[getPuck, puckDispatch, uploadScreenshot]
|
|
6743
6749
|
);
|
|
6744
6750
|
const { messages, status, sendMessage, regenerate, setMessages } = useChat({
|
|
6745
6751
|
generateId: () => prefixedUlid("msg"),
|
package/dist/index.mjs
CHANGED
|
@@ -522,7 +522,7 @@ import {
|
|
|
522
522
|
import {
|
|
523
523
|
DefaultChatTransport
|
|
524
524
|
} from "ai";
|
|
525
|
-
import { useCallback as useCallback4, useEffect as useEffect10, useMemo as useMemo4, useRef as
|
|
525
|
+
import { useCallback as useCallback4, useEffect as useEffect10, useMemo as useMemo4, useRef as useRef9, useState as useState14 } from "react";
|
|
526
526
|
import { ulid } from "ulid";
|
|
527
527
|
|
|
528
528
|
// ../utils/lib/get-class-name-factory.ts
|
|
@@ -559,7 +559,7 @@ var getClassNameFactory = (rootClass, styles, { baseClass = "" } = {}) => (optio
|
|
|
559
559
|
};
|
|
560
560
|
var get_class_name_factory_default = getClassNameFactory;
|
|
561
561
|
|
|
562
|
-
// css-module:/home/runner/work/
|
|
562
|
+
// css-module:/home/runner/work/platform/platform/packages/plugin-ai/src/components/Chat/styles.module.css#css-module
|
|
563
563
|
init_react_import();
|
|
564
564
|
var styles_module_default = { "Chat": "_Chat_3s08c_1", "Chat-header": "_Chat-header_3s08c_9", "Chat-placeholder": "_Chat-placeholder_3s08c_23", "Chat-actions": "_Chat-actions_3s08c_42", "Chat-action": "_Chat-action_3s08c_42", "Chat-actionOutlined": "_Chat-actionOutlined_3s08c_51" };
|
|
565
565
|
|
|
@@ -580,7 +580,7 @@ init_react_import();
|
|
|
580
580
|
// ../platform-client/components/ActionModal/ActionModal.tsx
|
|
581
581
|
init_react_import();
|
|
582
582
|
|
|
583
|
-
// css-module:/home/runner/work/
|
|
583
|
+
// css-module:/home/runner/work/platform/platform/packages/platform-client/components/ActionModal/ActionModal.module.css#css-module
|
|
584
584
|
init_react_import();
|
|
585
585
|
var ActionModal_module_default = { "ActionModal": "_ActionModal_r3pvy_1", "ActionModal-header": "_ActionModal-header_r3pvy_6", "ActionModal-body": "_ActionModal-body_r3pvy_17", "ActionModal-footer": "_ActionModal-footer_r3pvy_22" };
|
|
586
586
|
|
|
@@ -624,7 +624,7 @@ var get_class_name_factory_default2 = getClassNameFactory2;
|
|
|
624
624
|
// ../platform-client/components/Modal/Modal.tsx
|
|
625
625
|
init_react_import();
|
|
626
626
|
|
|
627
|
-
// css-module:/home/runner/work/
|
|
627
|
+
// css-module:/home/runner/work/platform/platform/packages/platform-client/components/Modal/Modal.module.css#css-module
|
|
628
628
|
init_react_import();
|
|
629
629
|
var Modal_module_default = { "Modal-background": "_Modal-background_1bedq_1", "Modal--visible": "_Modal--visible_1bedq_16", "Modal-modal": "_Modal-modal_1bedq_22" };
|
|
630
630
|
|
|
@@ -642,14 +642,14 @@ init_react_import();
|
|
|
642
642
|
init_react_import();
|
|
643
643
|
import { useEffect as useEffect4, useState as useState4 } from "react";
|
|
644
644
|
|
|
645
|
-
// css-module:/home/runner/work/
|
|
645
|
+
// css-module:/home/runner/work/platform/platform/packages/platform-client/components/Button/Button.module.css#css-module
|
|
646
646
|
init_react_import();
|
|
647
647
|
var Button_module_default = { "Button": "_Button_1sk6w_1", "Button--medium": "_Button--medium_1sk6w_34", "Button--large": "_Button--large_1sk6w_42", "Button--brand": "_Button--brand_1sk6w_49", "Button--primary": "_Button--primary_1sk6w_70", "Button--secondary": "_Button--secondary_1sk6w_84", "Button--danger": "_Button--danger_1sk6w_101", "Button--flush": "_Button--flush_1sk6w_115", "Button--ghost": "_Button--ghost_1sk6w_119", "Button--disabled": "_Button--disabled_1sk6w_136", "Button--fullWidth": "_Button--fullWidth_1sk6w_146", "Button-spinner": "_Button-spinner_1sk6w_151" };
|
|
648
648
|
|
|
649
649
|
// ../platform-client/components/Loader/index.tsx
|
|
650
650
|
init_react_import();
|
|
651
651
|
|
|
652
|
-
// css-module:/home/runner/work/
|
|
652
|
+
// css-module:/home/runner/work/platform/platform/packages/platform-client/components/Loader/styles.module.css#css-module
|
|
653
653
|
init_react_import();
|
|
654
654
|
var styles_module_default2 = { "Loader": "_Loader_nacdm_13", "loader-animation": "_loader-animation_nacdm_1" };
|
|
655
655
|
|
|
@@ -756,8 +756,10 @@ var Modal = ({
|
|
|
756
756
|
!hideButton && /* @__PURE__ */ jsx3("div", { className: getClassName3("button"), children: /* @__PURE__ */ jsx3(
|
|
757
757
|
Button,
|
|
758
758
|
{
|
|
759
|
+
type: "button",
|
|
759
760
|
variant: buttonVariant,
|
|
760
|
-
onClick: () => {
|
|
761
|
+
onClick: (e2) => {
|
|
762
|
+
e2.stopPropagation();
|
|
761
763
|
setVisible(!visible);
|
|
762
764
|
},
|
|
763
765
|
children: actionLabel
|
|
@@ -773,7 +775,7 @@ init_react_import();
|
|
|
773
775
|
// ../platform-client/components/Heading/Heading.tsx
|
|
774
776
|
init_react_import();
|
|
775
777
|
|
|
776
|
-
// css-module:/home/runner/work/
|
|
778
|
+
// css-module:/home/runner/work/platform/platform/packages/platform-client/components/Heading/Heading.module.css#css-module
|
|
777
779
|
init_react_import();
|
|
778
780
|
var Heading_module_default = { "Heading": "_Heading_qkzg9_1", "Heading--xxxxl": "_Heading--xxxxl_qkzg9_11", "Heading--xxxl": "_Heading--xxxl_qkzg9_15", "Heading--xxl": "_Heading--xxl_qkzg9_19", "Heading--xl": "_Heading--xl_qkzg9_23", "Heading--l": "_Heading--l_qkzg9_27", "Heading--m": "_Heading--m_qkzg9_31", "Heading--s": "_Heading--s_qkzg9_35", "Heading--xs": "_Heading--xs_qkzg9_39", "Heading--xxs": "_Heading--xxs_qkzg9_43" };
|
|
779
781
|
|
|
@@ -827,7 +829,7 @@ init_react_import();
|
|
|
827
829
|
init_react_import();
|
|
828
830
|
import React2 from "react";
|
|
829
831
|
|
|
830
|
-
// css-module:/home/runner/work/
|
|
832
|
+
// css-module:/home/runner/work/platform/platform/packages/platform-client/components/Align/Align.module.css#css-module
|
|
831
833
|
init_react_import();
|
|
832
834
|
var Align_module_default = { "Align": "_Align_oewlu_1", "Align--horizontalCenter": "_Align--horizontalCenter_oewlu_7", "Align--horizontalRight": "_Align--horizontalRight_oewlu_11", "Align--verticalBottom": "_Align--verticalBottom_oewlu_15", "Align--verticalCenter": "_Align--verticalCenter_oewlu_20", "Align-item": "_Align-item_oewlu_25" };
|
|
833
835
|
|
|
@@ -849,9 +851,9 @@ init_react_import();
|
|
|
849
851
|
// ../platform-client/components/AutoForm/AutoForm.tsx
|
|
850
852
|
init_react_import();
|
|
851
853
|
import { AutoField, FieldLabel } from "@puckeditor/core";
|
|
852
|
-
import { useEffect as useEffect5, useState as useState5 } from "react";
|
|
854
|
+
import { useEffect as useEffect5, useRef as useRef5, useState as useState5 } from "react";
|
|
853
855
|
|
|
854
|
-
// css-module:/home/runner/work/
|
|
856
|
+
// css-module:/home/runner/work/platform/platform/packages/platform-client/components/AutoForm/AutoForm.module.css#css-module
|
|
855
857
|
init_react_import();
|
|
856
858
|
var AutoForm_module_default = { "AutoForm": "_AutoForm_1vmh9_1" };
|
|
857
859
|
|
|
@@ -865,7 +867,7 @@ init_react_import();
|
|
|
865
867
|
// ../platform-client/components/Card/Card.tsx
|
|
866
868
|
init_react_import();
|
|
867
869
|
|
|
868
|
-
// css-module:/home/runner/work/
|
|
870
|
+
// css-module:/home/runner/work/platform/platform/packages/platform-client/components/Card/Card.module.css#css-module
|
|
869
871
|
init_react_import();
|
|
870
872
|
var Card_module_default = { "Card": "_Card_rpnal_1", "Card-body": "_Card-body_rpnal_17", "Card-title": "_Card-title_rpnal_23", "Card-subtitle": "_Card-subtitle_rpnal_27", "Card-chevron": "_Card-chevron_rpnal_32", "Card--showChevron": "_Card--showChevron_rpnal_38", "Card--isActive": "_Card--isActive_rpnal_42" };
|
|
871
873
|
|
|
@@ -876,7 +878,7 @@ var getClassName8 = get_class_name_factory_default2("Card", Card_module_default)
|
|
|
876
878
|
// ../platform-client/components/CardSelector/index.tsx
|
|
877
879
|
init_react_import();
|
|
878
880
|
|
|
879
|
-
// css-module:/home/runner/work/
|
|
881
|
+
// css-module:/home/runner/work/platform/platform/packages/platform-client/components/CardSelector/styles.module.css#css-module
|
|
880
882
|
init_react_import();
|
|
881
883
|
var styles_module_default3 = { "CardSelector": "_CardSelector_1ogry_1", "CardSelectorOption": "_CardSelectorOption_1ogry_12", "CardSelectorOption--isSelected": "_CardSelectorOption--isSelected_1ogry_23", "CardSelectorOption--disabled": "_CardSelectorOption--disabled_1ogry_27", "CardSelectorOption-description": "_CardSelectorOption-description_1ogry_31", "CardSelectorOption-body": "_CardSelectorOption-body_1ogry_35" };
|
|
882
884
|
|
|
@@ -891,7 +893,7 @@ init_react_import();
|
|
|
891
893
|
// ../platform-client/components/Code/Code.tsx
|
|
892
894
|
init_react_import();
|
|
893
895
|
|
|
894
|
-
// css-module:/home/runner/work/
|
|
896
|
+
// css-module:/home/runner/work/platform/platform/packages/platform-client/components/Code/Code.module.css#css-module
|
|
895
897
|
init_react_import();
|
|
896
898
|
var Code_module_default = { "Code": "_Code_d4378_1", "Code-body": "_Code-body_d4378_8", "Code--light": "_Code--light_d4378_19", "Code-header": "_Code-header_d4378_34", "Code-corner": "_Code-corner_d4378_51", "Code-actions": "_Code-actions_d4378_71", "Code--lineNumbers": "_Code--lineNumbers_d4378_76", "Code-tabs": "_Code-tabs_d4378_91", "Tab": "_Tab_d4378_99", "Tab--isActive": "_Tab--isActive_d4378_104", "Tab--light": "_Tab--light_d4378_108", "Tab-button": "_Tab-button_d4378_112" };
|
|
897
899
|
|
|
@@ -901,7 +903,7 @@ import { useEffect as useEffect6, useState as useState6 } from "react";
|
|
|
901
903
|
import { jsx as jsx11 } from "react/jsx-runtime";
|
|
902
904
|
|
|
903
905
|
// ../platform-client/components/Code/Code.tsx
|
|
904
|
-
import { useRef as
|
|
906
|
+
import { useRef as useRef6, useState as useState7 } from "react";
|
|
905
907
|
import { jsx as jsx12, jsxs as jsxs7 } from "react/jsx-runtime";
|
|
906
908
|
var getClassName9 = get_class_name_factory_default("Code", Code_module_default);
|
|
907
909
|
var getClassNameTab = get_class_name_factory_default("Tab", Code_module_default);
|
|
@@ -913,7 +915,7 @@ init_react_import();
|
|
|
913
915
|
init_react_import();
|
|
914
916
|
import { useState as useState8 } from "react";
|
|
915
917
|
|
|
916
|
-
// css-module:/home/runner/work/
|
|
918
|
+
// css-module:/home/runner/work/platform/platform/packages/platform-client/components/IconButton/IconButton.module.css#css-module
|
|
917
919
|
init_react_import();
|
|
918
920
|
var IconButton_module_default = { "IconButton": "_IconButton_thegm_1", "IconButton--disabled": "_IconButton--disabled_thegm_20", "IconButton--dark": "_IconButton--dark_thegm_26", "IconButton-title": "_IconButton-title_thegm_37" };
|
|
919
921
|
|
|
@@ -978,7 +980,7 @@ init_react_import();
|
|
|
978
980
|
// ../platform-client/components/InfoBar/InfoBar.tsx
|
|
979
981
|
init_react_import();
|
|
980
982
|
|
|
981
|
-
// css-module:/home/runner/work/
|
|
983
|
+
// css-module:/home/runner/work/platform/platform/packages/platform-client/components/InfoBar/InfoBar.module.css#css-module
|
|
982
984
|
init_react_import();
|
|
983
985
|
var InfoBar_module_default = { "InfoBar": "_InfoBar_kchdj_1", "Info": "_Info_kchdj_1", "Info-title": "_Info-title_kchdj_21" };
|
|
984
986
|
|
|
@@ -1003,7 +1005,7 @@ init_react_import();
|
|
|
1003
1005
|
// ../platform-client/components/Inline/Inline.tsx
|
|
1004
1006
|
init_react_import();
|
|
1005
1007
|
|
|
1006
|
-
// css-module:/home/runner/work/
|
|
1008
|
+
// css-module:/home/runner/work/platform/platform/packages/platform-client/components/Inline/Inline.module.css#css-module
|
|
1007
1009
|
init_react_import();
|
|
1008
1010
|
var Inline_module_default = { "Inline": "_Inline_6o5on_3", "Inline-inner": "_Inline-inner_6o5on_7", "Inline--noWrap": "_Inline--noWrap_6o5on_12", "Inline--sizeNONE": "_Inline--sizeNONE_6o5on_16", "Inline--sizeXXS": "_Inline--sizeXXS_6o5on_20", "Inline--sizeXS": "_Inline--sizeXS_6o5on_24", "Inline--sizeS": "_Inline--sizeS_6o5on_28", "Inline--sizeM": "_Inline--sizeM_6o5on_32", "Inline--sizeL": "_Inline--sizeL_6o5on_36", "Inline--center": "_Inline--center_6o5on_40", "Inline--centerH": "_Inline--centerH_6o5on_44", "Inline--grow": "_Inline--grow_6o5on_48" };
|
|
1009
1011
|
|
|
@@ -1055,7 +1057,7 @@ init_react_import();
|
|
|
1055
1057
|
// ../platform-client/components/Link/Link.tsx
|
|
1056
1058
|
init_react_import();
|
|
1057
1059
|
|
|
1058
|
-
// css-module:/home/runner/work/
|
|
1060
|
+
// css-module:/home/runner/work/platform/platform/packages/platform-client/components/Link/Link.module.css#css-module
|
|
1059
1061
|
init_react_import();
|
|
1060
1062
|
var Link_module_default = { "Link": "_Link_1j70m_1" };
|
|
1061
1063
|
|
|
@@ -1067,7 +1069,7 @@ var getClassName12 = get_class_name_factory_default2("Link", Link_module_default
|
|
|
1067
1069
|
init_react_import();
|
|
1068
1070
|
import { useState as useState9 } from "react";
|
|
1069
1071
|
|
|
1070
|
-
// css-module:/home/runner/work/
|
|
1072
|
+
// css-module:/home/runner/work/platform/platform/packages/platform-client/components/Menu/styles.module.css#css-module
|
|
1071
1073
|
init_react_import();
|
|
1072
1074
|
var styles_module_default4 = { "Menu": "_Menu_1tu16_1", "Menu-content": "_Menu-content_1tu16_6", "Menu-sections": "_Menu-sections_1tu16_11", "Menu-action": "_Menu-action_1tu16_22", "Menu-list": "_Menu-list_1tu16_44", "Menu-item": "_Menu-item_1tu16_55", "Menu-item--disabled": "_Menu-item--disabled_1tu16_83" };
|
|
1073
1075
|
|
|
@@ -1085,7 +1087,7 @@ init_react_import();
|
|
|
1085
1087
|
// ../platform-client/components/Page/Page.tsx
|
|
1086
1088
|
init_react_import();
|
|
1087
1089
|
|
|
1088
|
-
// css-module:/home/runner/work/
|
|
1090
|
+
// css-module:/home/runner/work/platform/platform/packages/platform-client/components/Page/Page.module.css#css-module
|
|
1089
1091
|
init_react_import();
|
|
1090
1092
|
var Page_module_default = { "Page": "_Page_nkzj9_1", "Page-masthead": "_Page-masthead_nkzj9_8", "Page-crumbs": "_Page-crumbs_nkzj9_18", "Page-crumb": "_Page-crumb_nkzj9_18", "Page-crumbLink": "_Page-crumbLink_nkzj9_29", "Page-actions": "_Page-actions_nkzj9_61", "Page-footer": "_Page-footer_nkzj9_65" };
|
|
1091
1093
|
|
|
@@ -1100,7 +1102,7 @@ init_react_import();
|
|
|
1100
1102
|
init_react_import();
|
|
1101
1103
|
import { useMemo } from "react";
|
|
1102
1104
|
|
|
1103
|
-
// css-module:/home/runner/work/
|
|
1105
|
+
// css-module:/home/runner/work/platform/platform/packages/platform-client/components/Pagination/Pagination.module.css#css-module
|
|
1104
1106
|
init_react_import();
|
|
1105
1107
|
var Pagination_module_default = { "Pagination": "_Pagination_1okv2_1", "PaginationButton": "_PaginationButton_1okv2_8", "PaginationButton--isActive": "_PaginationButton--isActive_1okv2_20", "Pagination-ellipsis": "_Pagination-ellipsis_1okv2_30" };
|
|
1106
1108
|
|
|
@@ -1112,14 +1114,14 @@ var cxButton = getClassNameFactory2("PaginationButton", Pagination_module_defaul
|
|
|
1112
1114
|
// ../platform-client/components/PlanGrid/index.tsx
|
|
1113
1115
|
init_react_import();
|
|
1114
1116
|
|
|
1115
|
-
// css-module:/home/runner/work/
|
|
1117
|
+
// css-module:/home/runner/work/platform/platform/packages/platform-client/components/PlanGrid/styles.module.css#css-module
|
|
1116
1118
|
init_react_import();
|
|
1117
1119
|
var styles_module_default5 = { "PlanGrid--loading": "_PlanGrid--loading_97rn7_1", "PlanGrid-grid": "_PlanGrid-grid_97rn7_5", "PlanGrid-enterprise": "_PlanGrid-enterprise_97rn7_16" };
|
|
1118
1120
|
|
|
1119
1121
|
// ../platform-client/components/PlanCard/index.tsx
|
|
1120
1122
|
init_react_import();
|
|
1121
1123
|
|
|
1122
|
-
// css-module:/home/runner/work/
|
|
1124
|
+
// css-module:/home/runner/work/platform/platform/packages/platform-client/components/PlanCard/styles.module.css#css-module
|
|
1123
1125
|
init_react_import();
|
|
1124
1126
|
var styles_module_default6 = { "PlanCard": "_PlanCard_16zmu_1", "PlanCard--enterprise": "_PlanCard--enterprise_16zmu_12", "PlanCard-title": "_PlanCard-title_16zmu_17", "PlanCard-header": "_PlanCard-header_16zmu_26", "PlanCard-features": "_PlanCard-features_16zmu_35", "PlanCard-feature": "_PlanCard-feature_16zmu_35", "PlanCard-featureIcon": "_PlanCard-featureIcon_16zmu_51", "PlanCard-featureTitle": "_PlanCard-featureTitle_16zmu_56", "PlanCard-priceValue": "_PlanCard-priceValue_16zmu_61", "PlanCard-priceInterval": "_PlanCard-priceInterval_16zmu_65", "PlanCard-body": "_PlanCard-body_16zmu_69", "PlanCard-section": "_PlanCard-section_16zmu_83", "PlanCard-sectionTitle": "_PlanCard-sectionTitle_16zmu_106", "PlanCard-sectionBody": "_PlanCard-sectionBody_16zmu_112", "PlanCard-usageItem": "_PlanCard-usageItem_16zmu_125", "PlanCard-usageLabel": "_PlanCard-usageLabel_16zmu_131", "PlanCard-usageValue": "_PlanCard-usageValue_16zmu_136", "PlanCard-action": "_PlanCard-action_16zmu_142", "PlanCard-description": "_PlanCard-description_16zmu_149", "PlanCard--highlight": "_PlanCard--highlight_16zmu_154", "PlanCard-highlightText": "_PlanCard-highlightText_16zmu_184", "PlanCard--fullWidth": "_PlanCard--fullWidth_16zmu_200" };
|
|
1125
1127
|
|
|
@@ -6091,7 +6093,7 @@ init_react_import();
|
|
|
6091
6093
|
// ../platform-client/components/Section/Section.tsx
|
|
6092
6094
|
init_react_import();
|
|
6093
6095
|
|
|
6094
|
-
// css-module:/home/runner/work/
|
|
6096
|
+
// css-module:/home/runner/work/platform/platform/packages/platform-client/components/Section/Section.module.css#css-module
|
|
6095
6097
|
init_react_import();
|
|
6096
6098
|
var Section_module_default = { "Section-inner": "_Section-inner_1uwo0_1", "Section--flush": "_Section--flush_1uwo0_8", "Section": "_Section_1uwo0_1", "Section--full": "_Section--full_1uwo0_17" };
|
|
6097
6099
|
|
|
@@ -6111,7 +6113,7 @@ init_react_import();
|
|
|
6111
6113
|
// ../platform-client/components/Tag/Tag.tsx
|
|
6112
6114
|
init_react_import();
|
|
6113
6115
|
|
|
6114
|
-
// css-module:/home/runner/work/
|
|
6116
|
+
// css-module:/home/runner/work/platform/platform/packages/platform-client/components/Tag/Tag.module.css#css-module
|
|
6115
6117
|
init_react_import();
|
|
6116
6118
|
var Tag_module_default = { "Tag": "_Tag_s2h0n_1", "Tag--borderless": "_Tag--borderless_s2h0n_21", "Tag--colorBlue": "_Tag--colorBlue_s2h0n_25", "Tag--colorGreen": "_Tag--colorGreen_s2h0n_29", "Tag--colorRed": "_Tag--colorRed_s2h0n_33", "Tag--colorMuted": "_Tag--colorMuted_s2h0n_37", "Tag-sprite": "_Tag-sprite_s2h0n_41", "Tag--pulse": "_Tag--pulse_s2h0n_45", "pulse": "_pulse_s2h0n_1", "Tag-label": "_Tag-label_s2h0n_79" };
|
|
6117
6119
|
|
|
@@ -6127,9 +6129,9 @@ init_react_import();
|
|
|
6127
6129
|
|
|
6128
6130
|
// ../platform-client/components/Table/Table.tsx
|
|
6129
6131
|
init_react_import();
|
|
6130
|
-
import { useEffect as useEffect8, useMemo as useMemo3, useRef as
|
|
6132
|
+
import { useEffect as useEffect8, useMemo as useMemo3, useRef as useRef7, useState as useState11 } from "react";
|
|
6131
6133
|
|
|
6132
|
-
// css-module:/home/runner/work/
|
|
6134
|
+
// css-module:/home/runner/work/platform/platform/packages/platform-client/components/Table/Table.module.css#css-module
|
|
6133
6135
|
init_react_import();
|
|
6134
6136
|
var Table_module_default = { "Table": "_Table_o345u_1", "Table-filters": "_Table-filters_o345u_9", "Table-inner": "_Table-inner_o345u_13", "Table-table": "_Table-table_o345u_17", "Table--hideHeader": "_Table--hideHeader_o345u_41", "Table-footer": "_Table-footer_o345u_89", "Table--clickableRows": "_Table--clickableRows_o345u_93", "Table-placeholder": "_Table-placeholder_o345u_98", "Table-loader": "_Table-loader_o345u_110", "TableRow--highlightRow": "_TableRow--highlightRow_o345u_114" };
|
|
6135
6137
|
|
|
@@ -6148,7 +6150,7 @@ init_react_import();
|
|
|
6148
6150
|
// ../platform-client/components/VerticalSpace/VerticalSpace.tsx
|
|
6149
6151
|
init_react_import();
|
|
6150
6152
|
|
|
6151
|
-
// css-module:/home/runner/work/
|
|
6153
|
+
// css-module:/home/runner/work/platform/platform/packages/platform-client/components/VerticalSpace/VerticalSpace.module.css#css-module
|
|
6152
6154
|
init_react_import();
|
|
6153
6155
|
var VerticalSpace_module_default = { "VerticalSpace": "_VerticalSpace_1tjaw_1", "VerticalSpace--size4": "_VerticalSpace--size4_1tjaw_5", "VerticalSpace--size8": "_VerticalSpace--size8_1tjaw_9", "VerticalSpace--size16": "_VerticalSpace--size16_1tjaw_13", "VerticalSpace--size32": "_VerticalSpace--size32_1tjaw_17", "VerticalSpace--size40": "_VerticalSpace--size40_1tjaw_21", "VerticalSpace--size48": "_VerticalSpace--size48_1tjaw_25", "VerticalSpace--size56": "_VerticalSpace--size56_1tjaw_29", "VerticalSpace--size96": "_VerticalSpace--size96_1tjaw_33", "VerticalSpace--size128": "_VerticalSpace--size128_1tjaw_37" };
|
|
6154
6156
|
|
|
@@ -6159,7 +6161,7 @@ var getClassName17 = get_class_name_factory_default2("VerticalSpace", VerticalSp
|
|
|
6159
6161
|
// ../platform-client/components/Viewport/index.tsx
|
|
6160
6162
|
init_react_import();
|
|
6161
6163
|
|
|
6162
|
-
// css-module:/home/runner/work/
|
|
6164
|
+
// css-module:/home/runner/work/platform/platform/packages/platform-client/components/Viewport/styles.module.css#css-module
|
|
6163
6165
|
init_react_import();
|
|
6164
6166
|
var styles_module_default7 = { "Viewport": "_Viewport_1vvhm_3", "Viewport--standard": "_Viewport--standard_1vvhm_6", "Viewport--inline": "_Viewport--inline_1vvhm_7", "Viewport--narrow": "_Viewport--narrow_1vvhm_11", "Viewport--flex": "_Viewport--flex_1vvhm_19" };
|
|
6165
6167
|
|
|
@@ -6173,7 +6175,7 @@ import { createContext as createContext2, useContext as useContext2, useState as
|
|
|
6173
6175
|
import { jsx as jsx28 } from "react/jsx-runtime";
|
|
6174
6176
|
var ctx = createContext2({});
|
|
6175
6177
|
|
|
6176
|
-
// css-module:/home/runner/work/
|
|
6178
|
+
// css-module:/home/runner/work/platform/platform/packages/plugin-ai/src/components/ChatBody/styles.module.css#css-module
|
|
6177
6179
|
init_react_import();
|
|
6178
6180
|
var styles_module_default8 = { "Chat": "_Chat_1njo2_1", "Chat-inner": "_Chat-inner_1njo2_17", "Chat--hasMessages": "_Chat--hasMessages_1njo2_25", "Chat--hasChildren": "_Chat--hasChildren_1njo2_29", "Chat-messages": "_Chat-messages_1njo2_34", "Chat-form": "_Chat-form_1njo2_41", "Chat--hideInput": "_Chat--hideInput_1njo2_46", "Chat-formHelper": "_Chat-formHelper_1njo2_60", "Chat-examplePrompts": "_Chat-examplePrompts_1njo2_75", "Chat-examplePrompt": "_Chat-examplePrompt_1njo2_75", "Chat-examplePromptArrow": "_Chat-examplePromptArrow_1njo2_105", "Chat-default": "_Chat-default_1njo2_110", "ChatMessage": "_ChatMessage_1njo2_127", "ChatMessage--userRole": "_ChatMessage--userRole_1njo2_133", "ChatMessage-text": "_ChatMessage-text_1njo2_133", "ChatMessage-data": "_ChatMessage-data_1njo2_231", "ChatMessage-dataInner": "_ChatMessage-dataInner_1njo2_242", "ChatMessage-dataIcon": "_ChatMessage-dataIcon_1njo2_248", "Chat-loader": "_Chat-loader_1njo2_252", "Chat-error": "_Chat-error_1njo2_257", "Chat-errorLabel": "_Chat-errorLabel_1njo2_266", "Chat-errorAction": "_Chat-errorAction_1njo2_270" };
|
|
6179
6181
|
|
|
@@ -6181,11 +6183,11 @@ var styles_module_default8 = { "Chat": "_Chat_1njo2_1", "Chat-inner": "_Chat-inn
|
|
|
6181
6183
|
init_react_import();
|
|
6182
6184
|
import {
|
|
6183
6185
|
useEffect as useEffect9,
|
|
6184
|
-
useRef as
|
|
6186
|
+
useRef as useRef8,
|
|
6185
6187
|
useState as useState13
|
|
6186
6188
|
} from "react";
|
|
6187
6189
|
|
|
6188
|
-
// css-module:/home/runner/work/
|
|
6190
|
+
// css-module:/home/runner/work/platform/platform/packages/plugin-ai/src/components/PromptForm/styles.module.css#css-module
|
|
6189
6191
|
init_react_import();
|
|
6190
6192
|
var styles_module_default9 = { "PromptForm": "_PromptForm_1r4kq_1", "PromptForm-inner": "_PromptForm-inner_1r4kq_8", "PromptForm--dark": "_PromptForm--dark_1r4kq_14", "PromptForm--glow": "_PromptForm--glow_1r4kq_19", "PromptForm-glow": "_PromptForm-glow_1r4kq_19", "loop": "_loop_1r4kq_1", "PromptForm-formInner": "_PromptForm-formInner_1r4kq_60", "PromptForm-input": "_PromptForm-input_1r4kq_66", "PromptForm--disabled": "_PromptForm--disabled_1r4kq_97", "PromptForm-helper": "_PromptForm-helper_1r4kq_102", "PromptForm-actions": "_PromptForm-actions_1r4kq_112", "PromptForm-actionsLeft": "_PromptForm-actionsLeft_1r4kq_123", "PromptForm-actionsRight": "_PromptForm-actionsRight_1r4kq_130", "PromptForm-actionSubmit": "_PromptForm-actionSubmit_1r4kq_135", "PromptForm--userCta": "_PromptForm--userCta_1r4kq_149", "PromptForm--isDisabled": "_PromptForm--isDisabled_1r4kq_157", "PromptForm--isLoading": "_PromptForm--isLoading_1r4kq_162" };
|
|
6191
6193
|
|
|
@@ -6207,9 +6209,9 @@ function PromptForm({
|
|
|
6207
6209
|
maxRows = 5,
|
|
6208
6210
|
value = ""
|
|
6209
6211
|
}) {
|
|
6210
|
-
const hasSetInitialPrompt =
|
|
6212
|
+
const hasSetInitialPrompt = useRef8(false);
|
|
6211
6213
|
const [prompt, setPrompt] = useState13(value);
|
|
6212
|
-
const internalRef =
|
|
6214
|
+
const internalRef = useRef8(null);
|
|
6213
6215
|
useEffect9(() => {
|
|
6214
6216
|
setPrompt(value);
|
|
6215
6217
|
}, [setPrompt, value]);
|
|
@@ -6406,13 +6408,7 @@ function ChatMessagePart({
|
|
|
6406
6408
|
if (part.type === "text") {
|
|
6407
6409
|
return /* @__PURE__ */ jsx30("div", { className: cxMessage("text"), children: /* @__PURE__ */ jsx30(ChatMessageWrapper, { role, children: part.text }) });
|
|
6408
6410
|
}
|
|
6409
|
-
if (part.type
|
|
6410
|
-
return /* @__PURE__ */ jsx30(PuckTool, { ...part });
|
|
6411
|
-
}
|
|
6412
|
-
if (part.type === "tool-updatePage") {
|
|
6413
|
-
return /* @__PURE__ */ jsx30(PuckTool, { ...part });
|
|
6414
|
-
}
|
|
6415
|
-
if (part.type === "tool-userTool") {
|
|
6411
|
+
if (part.type.startsWith("tool-")) {
|
|
6416
6412
|
return /* @__PURE__ */ jsx30(PuckTool, { ...part });
|
|
6417
6413
|
}
|
|
6418
6414
|
return null;
|
|
@@ -6654,36 +6650,46 @@ function Chat2({
|
|
|
6654
6650
|
const { examplePrompts } = chat ?? {};
|
|
6655
6651
|
const puckDispatch = usePuck((s2) => s2.dispatch);
|
|
6656
6652
|
const getPuck = useGetPuck();
|
|
6657
|
-
const localChatId =
|
|
6658
|
-
const inputRef =
|
|
6659
|
-
const pluginRef =
|
|
6653
|
+
const localChatId = useRef9("");
|
|
6654
|
+
const inputRef = useRef9(null);
|
|
6655
|
+
const pluginRef = useRef9(null);
|
|
6660
6656
|
const [error, setError] = useState14();
|
|
6661
6657
|
const [toolStatus, setToolStatus] = useState14({});
|
|
6662
6658
|
const uploadScreenshot = useCallback4(
|
|
6663
6659
|
async (width, bucketUrl) => {
|
|
6664
|
-
|
|
6665
|
-
|
|
6666
|
-
|
|
6667
|
-
|
|
6668
|
-
|
|
6669
|
-
|
|
6670
|
-
|
|
6671
|
-
|
|
6672
|
-
|
|
6673
|
-
|
|
6674
|
-
|
|
6675
|
-
|
|
6676
|
-
|
|
6677
|
-
|
|
6678
|
-
|
|
6679
|
-
|
|
6680
|
-
|
|
6681
|
-
|
|
6682
|
-
|
|
6683
|
-
|
|
6684
|
-
|
|
6685
|
-
|
|
6686
|
-
|
|
6660
|
+
try {
|
|
6661
|
+
const iframeDocument = document?.getElementById("preview-frame")?.contentDocument?.documentElement ?? null;
|
|
6662
|
+
if (!iframeDocument) {
|
|
6663
|
+
throw new Error("Preview frame not found");
|
|
6664
|
+
}
|
|
6665
|
+
const canvas = await html2canvas(iframeDocument, {
|
|
6666
|
+
scale: 2,
|
|
6667
|
+
backgroundColor: "#ffffff",
|
|
6668
|
+
width,
|
|
6669
|
+
windowWidth: width,
|
|
6670
|
+
foreignObjectRendering: false,
|
|
6671
|
+
imageTimeout: 3e4,
|
|
6672
|
+
logging: false,
|
|
6673
|
+
allowTaint: false,
|
|
6674
|
+
useCORS: true,
|
|
6675
|
+
scrollY: 0,
|
|
6676
|
+
ignoreElements: (el) => Array.from(el.classList).some(
|
|
6677
|
+
(c2) => c2.startsWith("_DraggableComponent--hover") || c2.startsWith("_ActionBar")
|
|
6678
|
+
)
|
|
6679
|
+
});
|
|
6680
|
+
const image = canvas.toDataURL("image/webp", 0.8);
|
|
6681
|
+
const imageResponse = await fetch(image);
|
|
6682
|
+
const blob = await imageResponse.blob();
|
|
6683
|
+
const uploadResponse = await fetch(bucketUrl, {
|
|
6684
|
+
method: "PUT",
|
|
6685
|
+
body: blob
|
|
6686
|
+
});
|
|
6687
|
+
if (!uploadResponse.ok) {
|
|
6688
|
+
throw new Error(`Upload failed with status ${uploadResponse.status}`);
|
|
6689
|
+
}
|
|
6690
|
+
} catch (e2) {
|
|
6691
|
+
console.error("Failed to upload screenshot", e2);
|
|
6692
|
+
}
|
|
6687
6693
|
},
|
|
6688
6694
|
[]
|
|
6689
6695
|
);
|
|
@@ -6728,7 +6734,7 @@ function Chat2({
|
|
|
6728
6734
|
return;
|
|
6729
6735
|
}
|
|
6730
6736
|
case "data-send-screenshot": {
|
|
6731
|
-
dataPart.data.urls.
|
|
6737
|
+
dataPart.data.urls.forEach((obj) => {
|
|
6732
6738
|
const [[key, value]] = Object.entries(obj);
|
|
6733
6739
|
const breakpoint = Number(key);
|
|
6734
6740
|
uploadScreenshot(breakpoint, value);
|
|
@@ -6740,7 +6746,7 @@ function Chat2({
|
|
|
6740
6746
|
return;
|
|
6741
6747
|
}
|
|
6742
6748
|
},
|
|
6743
|
-
[getPuck]
|
|
6749
|
+
[getPuck, puckDispatch, uploadScreenshot]
|
|
6744
6750
|
);
|
|
6745
6751
|
const { messages, status, sendMessage, regenerate, setMessages } = useChat({
|
|
6746
6752
|
generateId: () => prefixedUlid("msg"),
|
|
@@ -6957,7 +6963,7 @@ function isScrolledIntoView(el) {
|
|
|
6957
6963
|
|
|
6958
6964
|
// src/components/ScrollTracking/ScrollTracking.tsx
|
|
6959
6965
|
init_react_import();
|
|
6960
|
-
import { useEffect as useEffect11, useRef as
|
|
6966
|
+
import { useEffect as useEffect11, useRef as useRef10 } from "react";
|
|
6961
6967
|
|
|
6962
6968
|
// src/lib/scroll-into-view-local.ts
|
|
6963
6969
|
init_react_import();
|
|
@@ -7027,8 +7033,8 @@ var ScrollTracking = ({
|
|
|
7027
7033
|
children,
|
|
7028
7034
|
trackingId
|
|
7029
7035
|
}) => {
|
|
7030
|
-
const followedRefs =
|
|
7031
|
-
const enabledRef =
|
|
7036
|
+
const followedRefs = useRef10([]);
|
|
7037
|
+
const enabledRef = useRef10(false);
|
|
7032
7038
|
useEffect11(() => {
|
|
7033
7039
|
return subscribeToScrollTrackingEvents(({ id, enabled }) => {
|
|
7034
7040
|
if (id !== trackingId) return;
|
package/package.json
CHANGED