@puckeditor/plugin-ai 0.4.1-canary.8f053914 → 0.4.1-canary.a2068257

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.js CHANGED
@@ -228,13 +228,6 @@ var createLucideIcon = (iconName, iconNode) => {
228
228
  return Component;
229
229
  };
230
230
 
231
- // ../../node_modules/.pnpm/lucide-react@0.452.0_react@19.1.1/node_modules/lucide-react/dist/esm/icons/arrow-right.js
232
- init_react_import();
233
- var ArrowRight = createLucideIcon("ArrowRight", [
234
- ["path", { d: "M5 12h14", key: "1ays0h" }],
235
- ["path", { d: "m12 5 7 7-7 7", key: "xquz4c" }]
236
- ]);
237
-
238
231
  // ../../node_modules/.pnpm/lucide-react@0.452.0_react@19.1.1/node_modules/lucide-react/dist/esm/icons/arrow-up.js
239
232
  init_react_import();
240
233
  var ArrowUp = createLucideIcon("ArrowUp", [
@@ -834,6 +827,18 @@ var Card_module_default = { "Card": "_Card_jzb6b_1", "Card-body": "_Card-body_jz
834
827
  var import_jsx_runtime9 = require("react/jsx-runtime");
835
828
  var getClassName8 = get_class_name_factory_default2("Card", Card_module_default);
836
829
 
830
+ // ../platform-client/components/CardSelector/index.tsx
831
+ init_react_import();
832
+
833
+ // css-module:/home/runner/work/puck-platform/puck-platform/packages/platform-client/components/CardSelector/styles.module.css#css-module
834
+ init_react_import();
835
+ 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" };
836
+
837
+ // ../platform-client/components/CardSelector/index.tsx
838
+ var import_jsx_runtime10 = require("react/jsx-runtime");
839
+ var cx = get_class_name_factory_default("CardSelector", styles_module_default3);
840
+ var cxOption = get_class_name_factory_default("CardSelectorOption", styles_module_default3);
841
+
837
842
  // ../platform-client/components/Code/index.ts
838
843
  init_react_import();
839
844
 
@@ -847,11 +852,11 @@ var Code_module_default = { "Code": "_Code_d4378_1", "Code-body": "_Code-body_d4
847
852
  // ../platform-client/components/Code/CopyAction.tsx
848
853
  init_react_import();
849
854
  var import_react12 = require("react");
850
- var import_jsx_runtime10 = require("react/jsx-runtime");
855
+ var import_jsx_runtime11 = require("react/jsx-runtime");
851
856
 
852
857
  // ../platform-client/components/Code/Code.tsx
853
858
  var import_react13 = require("react");
854
- var import_jsx_runtime11 = require("react/jsx-runtime");
859
+ var import_jsx_runtime12 = require("react/jsx-runtime");
855
860
  var getClassName9 = get_class_name_factory_default("Code", Code_module_default);
856
861
  var getClassNameTab = get_class_name_factory_default("Tab", Code_module_default);
857
862
 
@@ -867,7 +872,7 @@ init_react_import();
867
872
  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" };
868
873
 
869
874
  // ../platform-client/components/IconButton/IconButton.tsx
870
- var import_jsx_runtime12 = require("react/jsx-runtime");
875
+ var import_jsx_runtime13 = require("react/jsx-runtime");
871
876
  var getClassName10 = get_class_name_factory_default2("IconButton", IconButton_module_default);
872
877
  var IconButton = ({
873
878
  children,
@@ -884,7 +889,7 @@ var IconButton = ({
884
889
  }) => {
885
890
  const [loading, setLoading] = (0, import_react14.useState)(false);
886
891
  const ElementType = href ? "a" : onClick ? "button" : "div";
887
- const el = /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)(
892
+ const el = /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)(
888
893
  ElementType,
889
894
  {
890
895
  className: getClassName10({
@@ -909,11 +914,11 @@ var IconButton = ({
909
914
  href,
910
915
  title,
911
916
  children: [
912
- /* @__PURE__ */ (0, import_jsx_runtime12.jsx)("span", { className: getClassName10("title"), children: title }),
917
+ /* @__PURE__ */ (0, import_jsx_runtime13.jsx)("span", { className: getClassName10("title"), children: title }),
913
918
  children,
914
- loading && /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)(import_jsx_runtime12.Fragment, { children: [
919
+ loading && /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)(import_jsx_runtime13.Fragment, { children: [
915
920
  "\xA0\xA0",
916
- /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(Loader, { size: 14 })
921
+ /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(Loader, { size: 14 })
917
922
  ] })
918
923
  ]
919
924
  }
@@ -932,17 +937,17 @@ init_react_import();
932
937
  var InfoBar_module_default = { "InfoBar": "_InfoBar_kchdj_1", "Info": "_Info_kchdj_1", "Info-title": "_Info-title_kchdj_21" };
933
938
 
934
939
  // ../platform-client/components/InfoBar/InfoBar.tsx
935
- var import_jsx_runtime13 = require("react/jsx-runtime");
936
- var cx = getClassNameFactory2("InfoBar", InfoBar_module_default);
940
+ var import_jsx_runtime14 = require("react/jsx-runtime");
941
+ var cx2 = getClassNameFactory2("InfoBar", InfoBar_module_default);
937
942
  var cxInfo = getClassNameFactory2("Info", InfoBar_module_default);
938
943
  var Info = ({ title, children }) => {
939
- return /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)("div", { className: cxInfo(), children: [
940
- /* @__PURE__ */ (0, import_jsx_runtime13.jsx)("div", { className: cxInfo("title"), children: title }),
941
- /* @__PURE__ */ (0, import_jsx_runtime13.jsx)("div", { className: cxInfo("children"), children })
944
+ return /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)("div", { className: cxInfo(), children: [
945
+ /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("div", { className: cxInfo("title"), children: title }),
946
+ /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("div", { className: cxInfo("children"), children })
942
947
  ] });
943
948
  };
944
949
  var InfoBar = ({ children }) => {
945
- return /* @__PURE__ */ (0, import_jsx_runtime13.jsx)("div", { className: cx(), children });
950
+ return /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("div", { className: cx2(), children });
946
951
  };
947
952
  InfoBar.Info = Info;
948
953
 
@@ -957,7 +962,7 @@ init_react_import();
957
962
  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" };
958
963
 
959
964
  // ../platform-client/components/Inline/Inline.tsx
960
- var import_jsx_runtime14 = require("react/jsx-runtime");
965
+ var import_jsx_runtime15 = require("react/jsx-runtime");
961
966
  var getClassName11 = get_class_name_factory_default2("Inline", Inline_module_default);
962
967
  var Inline = ({
963
968
  children,
@@ -966,7 +971,7 @@ var Inline = ({
966
971
  size = "m",
967
972
  noWrap,
968
973
  centerH
969
- }) => /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
974
+ }) => /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
970
975
  "div",
971
976
  {
972
977
  className: getClassName11({
@@ -976,7 +981,7 @@ var Inline = ({
976
981
  noWrap,
977
982
  [`size${size.toUpperCase()}`]: size
978
983
  }),
979
- children: /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("div", { className: getClassName11("inner"), children })
984
+ children: /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("div", { className: getClassName11("inner"), children })
980
985
  }
981
986
  );
982
987
  var InlineItem = ({
@@ -984,7 +989,7 @@ var InlineItem = ({
984
989
  grow,
985
990
  push,
986
991
  shrink
987
- }) => /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
992
+ }) => /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
988
993
  "div",
989
994
  {
990
995
  style: {
@@ -1009,7 +1014,7 @@ init_react_import();
1009
1014
  var Link_module_default = { "Link": "_Link_1j70m_1" };
1010
1015
 
1011
1016
  // ../platform-client/components/Link/Link.tsx
1012
- var import_jsx_runtime15 = require("react/jsx-runtime");
1017
+ var import_jsx_runtime16 = require("react/jsx-runtime");
1013
1018
  var getClassName12 = get_class_name_factory_default2("Link", Link_module_default);
1014
1019
 
1015
1020
  // ../platform-client/components/Modal/index.ts
@@ -1026,8 +1031,8 @@ init_react_import();
1026
1031
  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" };
1027
1032
 
1028
1033
  // ../platform-client/components/Page/Page.tsx
1029
- var import_jsx_runtime16 = require("react/jsx-runtime");
1030
- var cx2 = getClassNameFactory2("Page", Page_module_default);
1034
+ var import_jsx_runtime17 = require("react/jsx-runtime");
1035
+ var cx3 = getClassNameFactory2("Page", Page_module_default);
1031
1036
 
1032
1037
  // ../platform-client/components/Pagination/index.ts
1033
1038
  init_react_import();
@@ -1041,8 +1046,8 @@ init_react_import();
1041
1046
  var Pagination_module_default = { "Pagination": "_Pagination_1okv2_1", "PaginationButton": "_PaginationButton_1okv2_8", "PaginationButton--isActive": "_PaginationButton--isActive_1okv2_20", "Pagination-ellipsis": "_Pagination-ellipsis_1okv2_30" };
1042
1047
 
1043
1048
  // ../platform-client/components/Pagination/Pagination.tsx
1044
- var import_jsx_runtime17 = require("react/jsx-runtime");
1045
- var cx3 = getClassNameFactory2("Pagination", Pagination_module_default);
1049
+ var import_jsx_runtime18 = require("react/jsx-runtime");
1050
+ var cx4 = getClassNameFactory2("Pagination", Pagination_module_default);
1046
1051
  var cxButton = getClassNameFactory2("PaginationButton", Pagination_module_default);
1047
1052
 
1048
1053
  // ../platform-client/components/Section/index.ts
@@ -1056,7 +1061,7 @@ init_react_import();
1056
1061
  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" };
1057
1062
 
1058
1063
  // ../platform-client/components/Section/Section.tsx
1059
- var import_jsx_runtime18 = require("react/jsx-runtime");
1064
+ var import_jsx_runtime19 = require("react/jsx-runtime");
1060
1065
  var getClassName13 = getClassNameFactory2("Section", Section_module_default);
1061
1066
 
1062
1067
  // ../platform-client/components/StatusTag/index.ts
@@ -1076,11 +1081,11 @@ init_react_import();
1076
1081
  var Tag_module_default = { "Tag": "_Tag_1baze_1", "Tag--colorBlue": "_Tag--colorBlue_1baze_19", "Tag--colorGreen": "_Tag--colorGreen_1baze_23", "Tag--colorRed": "_Tag--colorRed_1baze_27", "Tag--colorMuted": "_Tag--colorMuted_1baze_31", "Tag-sprite": "_Tag-sprite_1baze_35", "Tag--pulse": "_Tag--pulse_1baze_39", "pulse": "_pulse_1baze_1" };
1077
1082
 
1078
1083
  // ../platform-client/components/Tag/Tag.tsx
1079
- var import_jsx_runtime19 = require("react/jsx-runtime");
1084
+ var import_jsx_runtime20 = require("react/jsx-runtime");
1080
1085
  var getClassName14 = getClassNameFactory2("Tag", Tag_module_default);
1081
1086
 
1082
1087
  // ../platform-client/components/StatusTag/StatusTag.tsx
1083
- var import_jsx_runtime20 = require("react/jsx-runtime");
1088
+ var import_jsx_runtime21 = require("react/jsx-runtime");
1084
1089
 
1085
1090
  // ../platform-client/components/Table/index.ts
1086
1091
  init_react_import();
@@ -1094,7 +1099,7 @@ init_react_import();
1094
1099
  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" };
1095
1100
 
1096
1101
  // ../platform-client/components/Table/Table.tsx
1097
- var import_jsx_runtime21 = require("react/jsx-runtime");
1102
+ var import_jsx_runtime22 = require("react/jsx-runtime");
1098
1103
  var getClassName15 = get_class_name_factory_default2("Table", Table_module_default);
1099
1104
  var getRowClassName = get_class_name_factory_default2("TableRow", Table_module_default);
1100
1105
 
@@ -1113,7 +1118,7 @@ init_react_import();
1113
1118
  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" };
1114
1119
 
1115
1120
  // ../platform-client/components/VerticalSpace/VerticalSpace.tsx
1116
- var import_jsx_runtime22 = require("react/jsx-runtime");
1121
+ var import_jsx_runtime23 = require("react/jsx-runtime");
1117
1122
  var getClassName16 = get_class_name_factory_default2("VerticalSpace", VerticalSpace_module_default);
1118
1123
 
1119
1124
  // ../platform-client/components/Viewport/index.tsx
@@ -1121,21 +1126,21 @@ init_react_import();
1121
1126
 
1122
1127
  // css-module:/home/runner/work/puck-platform/puck-platform/packages/platform-client/components/Viewport/styles.module.css#css-module
1123
1128
  init_react_import();
1124
- var styles_module_default3 = { "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" };
1129
+ var styles_module_default4 = { "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" };
1125
1130
 
1126
1131
  // ../platform-client/components/Viewport/index.tsx
1127
- var import_jsx_runtime23 = require("react/jsx-runtime");
1128
- var cx4 = getClassNameFactory("Viewport", styles_module_default3);
1132
+ var import_jsx_runtime24 = require("react/jsx-runtime");
1133
+ var cx5 = getClassNameFactory("Viewport", styles_module_default4);
1129
1134
 
1130
1135
  // ../platform-client/context/editor.tsx
1131
1136
  init_react_import();
1132
1137
  var import_react17 = require("react");
1133
- var import_jsx_runtime24 = require("react/jsx-runtime");
1138
+ var import_jsx_runtime25 = require("react/jsx-runtime");
1134
1139
  var ctx = (0, import_react17.createContext)({});
1135
1140
 
1136
1141
  // css-module:/home/runner/work/puck-platform/puck-platform/packages/plugin-ai/src/components/ChatBody/styles.module.css#css-module
1137
1142
  init_react_import();
1138
- var styles_module_default4 = { "Chat": "_Chat_1ybjn_1", "Chat-inner": "_Chat-inner_1ybjn_17", "Chat--hasMessages": "_Chat--hasMessages_1ybjn_25", "Chat--hasChildren": "_Chat--hasChildren_1ybjn_29", "Chat-messages": "_Chat-messages_1ybjn_34", "Chat-form": "_Chat-form_1ybjn_41", "Chat--hideInput": "_Chat--hideInput_1ybjn_46", "Chat-formHelper": "_Chat-formHelper_1ybjn_60", "Chat-examplePrompts": "_Chat-examplePrompts_1ybjn_75", "Chat-examplePrompt": "_Chat-examplePrompt_1ybjn_75", "Chat-examplePromptArrow": "_Chat-examplePromptArrow_1ybjn_104", "Chat-default": "_Chat-default_1ybjn_108", "ChatMessage": "_ChatMessage_1ybjn_125", "ChatMessage--userRole": "_ChatMessage--userRole_1ybjn_131", "ChatMessage-text": "_ChatMessage-text_1ybjn_131", "ChatMessage-data": "_ChatMessage-data_1ybjn_229", "ChatMessage-dataInner": "_ChatMessage-dataInner_1ybjn_240", "ChatMessage-dataIcon": "_ChatMessage-dataIcon_1ybjn_246", "Chat-loader": "_Chat-loader_1ybjn_250", "Chat-error": "_Chat-error_1ybjn_255", "Chat-errorLabel": "_Chat-errorLabel_1ybjn_264", "Chat-errorAction": "_Chat-errorAction_1ybjn_268" };
1143
+ var styles_module_default5 = { "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" };
1139
1144
 
1140
1145
  // src/components/PromptForm/index.tsx
1141
1146
  init_react_import();
@@ -1143,11 +1148,11 @@ var import_react18 = require("react");
1143
1148
 
1144
1149
  // css-module:/home/runner/work/puck-platform/puck-platform/packages/plugin-ai/src/components/PromptForm/styles.module.css#css-module
1145
1150
  init_react_import();
1146
- var styles_module_default5 = { "PromptForm": "_PromptForm_136g1_1", "PromptForm-inner": "_PromptForm-inner_136g1_8", "PromptForm--dark": "_PromptForm--dark_136g1_14", "PromptForm--glow": "_PromptForm--glow_136g1_19", "PromptForm-glow": "_PromptForm-glow_136g1_19", "loop": "_loop_136g1_1", "PromptForm-formInner": "_PromptForm-formInner_136g1_60", "PromptForm-input": "_PromptForm-input_136g1_64", "PromptForm--disabled": "_PromptForm--disabled_136g1_92", "PromptForm-helper": "_PromptForm-helper_136g1_97", "PromptForm-actions": "_PromptForm-actions_136g1_107", "PromptForm-actionsLeft": "_PromptForm-actionsLeft_136g1_118", "PromptForm-actionsRight": "_PromptForm-actionsRight_136g1_124", "PromptForm-actionSubmit": "_PromptForm-actionSubmit_136g1_128", "PromptForm--isDisabled": "_PromptForm--isDisabled_136g1_147", "PromptForm--isLoading": "_PromptForm--isLoading_136g1_152" };
1151
+ var styles_module_default6 = { "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" };
1147
1152
 
1148
1153
  // src/components/PromptForm/index.tsx
1149
- var import_jsx_runtime25 = require("react/jsx-runtime");
1150
- var cx5 = getClassNameFactory2("PromptForm", styles_module_default5);
1154
+ var import_jsx_runtime26 = require("react/jsx-runtime");
1155
+ var cx6 = getClassNameFactory2("PromptForm", styles_module_default6);
1151
1156
  function PromptForm({
1152
1157
  actions,
1153
1158
  colorScheme = "light",
@@ -1157,10 +1162,18 @@ function PromptForm({
1157
1162
  inputRef,
1158
1163
  isDisabled,
1159
1164
  isLoading,
1160
- placeholder = "Create a page for..."
1165
+ placeholder = "Create a page for...",
1166
+ cta,
1167
+ minRows = 2,
1168
+ maxRows = 5,
1169
+ value = ""
1161
1170
  }) {
1162
1171
  const hasSetInitialPrompt = (0, import_react18.useRef)(false);
1163
- const [prompt, setPrompt] = (0, import_react18.useState)("");
1172
+ const [prompt, setPrompt] = (0, import_react18.useState)(value);
1173
+ const internalRef = (0, import_react18.useRef)(null);
1174
+ (0, import_react18.useEffect)(() => {
1175
+ setPrompt(value);
1176
+ }, [setPrompt, value]);
1164
1177
  const sendPrompt = () => {
1165
1178
  if (isLoading || isDisabled) return;
1166
1179
  if (handleSubmit) {
@@ -1176,37 +1189,44 @@ function PromptForm({
1176
1189
  setPrompt(initialPrompt);
1177
1190
  }
1178
1191
  }, [setPrompt]);
1179
- return /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)(
1192
+ return /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)(
1180
1193
  "div",
1181
1194
  {
1182
- className: cx5({
1195
+ className: cx6({
1183
1196
  isDisabled,
1184
1197
  isLoading,
1185
1198
  dark: colorScheme === "dark",
1186
- glow
1199
+ glow,
1200
+ userCta: !!cta
1187
1201
  }),
1188
1202
  children: [
1189
- helperText ? /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("div", { className: cx5("helper"), children: helperText }) : null,
1190
- /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)("div", { className: cx5("inner"), children: [
1191
- /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("span", { className: cx5("glow") }),
1192
- /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
1203
+ helperText ? /* @__PURE__ */ (0, import_jsx_runtime26.jsx)("div", { className: cx6("helper"), children: helperText }) : null,
1204
+ /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)("div", { className: cx6("inner"), children: [
1205
+ /* @__PURE__ */ (0, import_jsx_runtime26.jsx)("span", { className: cx6("glow") }),
1206
+ /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
1193
1207
  "form",
1194
1208
  {
1195
1209
  onSubmit: (e) => {
1196
1210
  e.preventDefault();
1197
1211
  sendPrompt();
1198
1212
  },
1199
- children: /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)("div", { className: cx5("formInner"), children: [
1200
- /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
1213
+ children: /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)("div", { className: cx6("formInner"), children: [
1214
+ /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
1201
1215
  import_react_textarea_autosize.default,
1202
1216
  {
1203
- className: cx5("input"),
1217
+ className: cx6("input"),
1204
1218
  name: "prompt",
1205
- minRows: 2,
1219
+ minRows,
1220
+ maxRows,
1206
1221
  placeholder,
1207
1222
  disabled: isDisabled,
1208
1223
  value: prompt,
1209
- ref: inputRef,
1224
+ ref: (node) => {
1225
+ if (inputRef) {
1226
+ inputRef.current = node;
1227
+ }
1228
+ internalRef.current = node;
1229
+ },
1210
1230
  onChange: (e) => setPrompt(e.target.value),
1211
1231
  onKeyDown: (e) => {
1212
1232
  if (!e.shiftKey && e.key === "Enter") {
@@ -1221,18 +1241,41 @@ function PromptForm({
1221
1241
  }
1222
1242
  }
1223
1243
  ),
1224
- /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)("div", { className: cx5("actions"), children: [
1225
- /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("div", { className: cx5("actionsLeft"), children: actions }),
1226
- /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("div", { className: cx5("actionsRight"), children: /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
1227
- "button",
1228
- {
1229
- className: cx5("actionSubmit"),
1230
- type: "submit",
1231
- disabled: isLoading,
1232
- children: /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(ArrowUp, {})
1233
- }
1234
- ) })
1235
- ] })
1244
+ /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)(
1245
+ "div",
1246
+ {
1247
+ className: cx6("actions"),
1248
+ onClick: () => {
1249
+ internalRef?.current?.focus();
1250
+ },
1251
+ children: [
1252
+ /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
1253
+ "div",
1254
+ {
1255
+ className: cx6("actionsLeft"),
1256
+ onClick: (e) => e.stopPropagation(),
1257
+ children: actions
1258
+ }
1259
+ ),
1260
+ /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
1261
+ "div",
1262
+ {
1263
+ className: cx6("actionsRight"),
1264
+ onClick: (e) => e.stopPropagation(),
1265
+ children: /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
1266
+ "button",
1267
+ {
1268
+ className: cx6("actionSubmit"),
1269
+ type: "submit",
1270
+ disabled: isLoading,
1271
+ children: cta ?? /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(ArrowUp, { size: 24 })
1272
+ }
1273
+ )
1274
+ }
1275
+ )
1276
+ ]
1277
+ }
1278
+ )
1236
1279
  ] })
1237
1280
  }
1238
1281
  )
@@ -1249,9 +1292,9 @@ var toolStatusContext = (0, import_react19.createContext)({});
1249
1292
  var ToolStatusProvider = toolStatusContext.Provider;
1250
1293
 
1251
1294
  // src/components/ChatBody/index.tsx
1252
- var import_jsx_runtime26 = require("react/jsx-runtime");
1253
- var cx6 = getClassNameFactory2("Chat", styles_module_default4);
1254
- var cxMessage = getClassNameFactory2("ChatMessage", styles_module_default4);
1295
+ var import_jsx_runtime27 = require("react/jsx-runtime");
1296
+ var cx7 = getClassNameFactory2("Chat", styles_module_default5);
1297
+ var cxMessage = getClassNameFactory2("ChatMessage", styles_module_default5);
1255
1298
  function ChatBody({
1256
1299
  children,
1257
1300
  examplePrompts,
@@ -1265,17 +1308,17 @@ function ChatBody({
1265
1308
  }) {
1266
1309
  const { scrollRef, contentRef } = (0, import_use_stick_to_bottom.useStickToBottom)();
1267
1310
  const hasMessages = messages && messages.length > 0;
1268
- return /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)("div", { className: cx6({ hasMessages, hasChildren: !!children, hideInput }), children: [
1269
- children ? /* @__PURE__ */ (0, import_jsx_runtime26.jsx)("div", { className: cx6("default"), children }) : null,
1270
- /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)("div", { className: cx6("inner"), ref: scrollRef, children: [
1271
- /* @__PURE__ */ (0, import_jsx_runtime26.jsx)("div", { className: cx6("messages"), ref: contentRef, children: messages.toReversed().map((message) => /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(ChatMessage, { message }, message.id)) }),
1272
- status === "submitted" && /* @__PURE__ */ (0, import_jsx_runtime26.jsx)("div", { className: cx6("loader"), children: /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(Loader, { size: 14 }) }),
1273
- error && /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)("div", { className: cx6("error"), children: [
1274
- /* @__PURE__ */ (0, import_jsx_runtime26.jsx)("div", { className: cx6("errorLabel"), children: "Something went wrong." }),
1275
- handleRetry && /* @__PURE__ */ (0, import_jsx_runtime26.jsx)("div", { className: cx6("errorAction"), children: /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(IconButton, { title: "Retry", onClick: handleRetry, children: /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(RotateCcw, { size: "14" }) }) })
1311
+ return /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)("div", { className: cx7({ hasMessages, hasChildren: !!children, hideInput }), children: [
1312
+ children ? /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("div", { className: cx7("default"), children }) : null,
1313
+ /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)("div", { className: cx7("inner"), ref: scrollRef, children: [
1314
+ /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("div", { className: cx7("messages"), ref: contentRef, children: messages.toReversed().map((message) => /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(ChatMessage, { message }, message.id)) }),
1315
+ status === "submitted" && /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("div", { className: cx7("loader"), children: /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(Loader, { size: 14 }) }),
1316
+ error && /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)("div", { className: cx7("error"), children: [
1317
+ /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("div", { className: cx7("errorLabel"), children: "Something went wrong." }),
1318
+ handleRetry && /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("div", { className: cx7("errorAction"), children: /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(IconButton, { title: "Retry", onClick: handleRetry, children: /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(RotateCcw, { size: "14" }) }) })
1276
1319
  ] }),
1277
- /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)("div", { className: cx6("form"), children: [
1278
- /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
1320
+ /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)("div", { className: cx7("form"), children: [
1321
+ /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
1279
1322
  PromptForm,
1280
1323
  {
1281
1324
  glow: !hasMessages,
@@ -1285,19 +1328,19 @@ function ChatBody({
1285
1328
  placeholder: "What do you want to build?"
1286
1329
  }
1287
1330
  ),
1288
- examplePrompts ? /* @__PURE__ */ (0, import_jsx_runtime26.jsx)("div", { className: cx6("examplePrompts"), children: examplePrompts }) : null
1331
+ examplePrompts ? /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("div", { className: cx7("examplePrompts"), children: examplePrompts }) : null
1289
1332
  ] })
1290
1333
  ] })
1291
1334
  ] });
1292
1335
  }
1293
1336
  function ChatMessage({ message }) {
1294
1337
  const { role, parts } = message;
1295
- return /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
1338
+ return /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
1296
1339
  "div",
1297
1340
  {
1298
1341
  className: cxMessage({ [`${role}Role`]: true }),
1299
1342
  "data-message-id": message.id,
1300
- children: parts.map((part, i) => /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
1343
+ children: parts.map((part, i) => /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
1301
1344
  ChatMessagePart,
1302
1345
  {
1303
1346
  part,
@@ -1313,25 +1356,25 @@ function ChatMessageWrapper({
1313
1356
  role
1314
1357
  }) {
1315
1358
  if (role === "assistant" || role === "user") {
1316
- return /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(import_react_markdown.default, { children });
1359
+ return /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(import_react_markdown.default, { children });
1317
1360
  }
1318
- return /* @__PURE__ */ (0, import_jsx_runtime26.jsx)("span", { children });
1361
+ return /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("span", { children });
1319
1362
  }
1320
1363
  function ChatMessagePart({
1321
1364
  part,
1322
1365
  role
1323
1366
  }) {
1324
1367
  if (part.type === "text") {
1325
- return /* @__PURE__ */ (0, import_jsx_runtime26.jsx)("div", { className: cxMessage("text"), children: /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(ChatMessageWrapper, { role, children: part.text }) });
1368
+ return /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("div", { className: cxMessage("text"), children: /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(ChatMessageWrapper, { role, children: part.text }) });
1326
1369
  }
1327
1370
  if (part.type === "tool-createPage") {
1328
- return /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(PuckTool, { ...part });
1371
+ return /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(PuckTool, { ...part });
1329
1372
  }
1330
1373
  if (part.type === "tool-updatePage") {
1331
- return /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(PuckTool, { ...part });
1374
+ return /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(PuckTool, { ...part });
1332
1375
  }
1333
1376
  if (part.type === "tool-userTool") {
1334
- return /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(PuckTool, { ...part });
1377
+ return /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(PuckTool, { ...part });
1335
1378
  }
1336
1379
  return null;
1337
1380
  }
@@ -1343,12 +1386,12 @@ function PuckTool({
1343
1386
  const toolStatus = (0, import_react20.useContext)(toolStatusContext)[toolCallId];
1344
1387
  const outputObj = output;
1345
1388
  const status = outputObj && "status" in outputObj ? outputObj.status : toolStatus ?? { loading: true, label: defaultLabel };
1346
- return /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(ToolStatus, { status });
1389
+ return /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(ToolStatus, { status });
1347
1390
  }
1348
1391
  function ToolStatus({ status }) {
1349
- return /* @__PURE__ */ (0, import_jsx_runtime26.jsx)("div", { className: cxMessage("data"), children: /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)("div", { className: cxMessage("dataInner"), children: [
1350
- /* @__PURE__ */ (0, import_jsx_runtime26.jsx)("div", { className: cxMessage("dataIcon"), children: status.error ? /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(TriangleAlert, { size: 18 }) : status.loading ? /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(Loader, { size: 16 }) : /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(Check, { size: 18 }) }),
1351
- /* @__PURE__ */ (0, import_jsx_runtime26.jsx)("div", { children: status.label })
1392
+ return /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("div", { className: cxMessage("data"), children: /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)("div", { className: cxMessage("dataInner"), children: [
1393
+ /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("div", { className: cxMessage("dataIcon"), children: status.error ? /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(TriangleAlert, { size: 18 }) : status.loading ? /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(Loader, { size: 16 }) : /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(Check, { size: 18 }) }),
1394
+ /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("div", { children: status.label })
1352
1395
  ] }) });
1353
1396
  }
1354
1397
  function ExamplePrompt({
@@ -1357,9 +1400,9 @@ function ExamplePrompt({
1357
1400
  onClick
1358
1401
  }) {
1359
1402
  const El = href ? "a" : "button";
1360
- return /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)(El, { className: cx6("examplePrompt"), href, onClick, children: [
1361
- /* @__PURE__ */ (0, import_jsx_runtime26.jsx)("div", { children: label }),
1362
- /* @__PURE__ */ (0, import_jsx_runtime26.jsx)("div", { className: cx6("examplePromptArrow"), children: /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(ArrowRight, { size: "16" }) })
1403
+ return /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)(El, { className: cx7("examplePrompt"), href, onClick, children: [
1404
+ /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("div", { children: label }),
1405
+ /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("div", { className: cx7("examplePromptArrow"), children: /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(ArrowUp, { size: "16" }) })
1363
1406
  ] });
1364
1407
  }
1365
1408
 
@@ -1507,7 +1550,7 @@ var dispatchOp = (operation, {
1507
1550
 
1508
1551
  // src/components/Chat/index.tsx
1509
1552
  var import_html2canvas_pro = __toESM(require("html2canvas-pro"));
1510
- var import_jsx_runtime27 = require("react/jsx-runtime");
1553
+ var import_jsx_runtime28 = require("react/jsx-runtime");
1511
1554
  var q = (0, import_qler.default)();
1512
1555
  var BENCHMARK = false;
1513
1556
  var prefixedUlid = (prefix = "") => `${prefix ? `${prefix}_` : ""}${(0, import_ulid.ulid)()}`;
@@ -1664,7 +1707,12 @@ function Chat2({ chat, host = "/api/puck/chat" }) {
1664
1707
  [status, forcedStatus]
1665
1708
  );
1666
1709
  (0, import_react22.useEffect)(() => {
1667
- window.__PUCK_AI = { processData, setMessages, setStatus: setForcedStatus };
1710
+ window.__PUCK_AI = {
1711
+ processData,
1712
+ setMessages,
1713
+ setStatus: setForcedStatus,
1714
+ sendMessage
1715
+ };
1668
1716
  }, [processData]);
1669
1717
  const handleSubmit = (prompt) => {
1670
1718
  const text = prompt.trim();
@@ -1695,16 +1743,16 @@ function Chat2({ chat, host = "/api/puck/chat" }) {
1695
1743
  };
1696
1744
  });
1697
1745
  }, [messages, toolStatus]);
1698
- return /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)("div", { className: getClassName17(), ref: pluginRef, children: [
1699
- /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("div", { className: getClassName17("header"), children: "AI page builder" }),
1700
- /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(ToolStatusProvider, { value: toolStatus, children: /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
1746
+ return /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)("div", { className: getClassName17(), ref: pluginRef, children: [
1747
+ /* @__PURE__ */ (0, import_jsx_runtime28.jsx)("div", { className: getClassName17("header"), children: "AI page builder" }),
1748
+ /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(ToolStatusProvider, { value: toolStatus, children: /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
1701
1749
  ChatBody,
1702
1750
  {
1703
1751
  messages: messagesWithStatuses,
1704
1752
  handleSubmit,
1705
1753
  inputRef,
1706
1754
  status: resolvedStatus,
1707
- examplePrompts: examplePrompts?.map(({ label, href, onClick }) => /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
1755
+ examplePrompts: examplePrompts?.map(({ label, href, onClick }) => /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
1708
1756
  ExamplePrompt,
1709
1757
  {
1710
1758
  label,
@@ -1718,7 +1766,7 @@ function Chat2({ chat, host = "/api/puck/chat" }) {
1718
1766
  setError("");
1719
1767
  regenerate();
1720
1768
  },
1721
- children: /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
1769
+ children: /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
1722
1770
  Placeholder,
1723
1771
  {
1724
1772
  dispatch: puckDispatch,
@@ -1748,11 +1796,11 @@ function Placeholder({
1748
1796
  }
1749
1797
  }, 10);
1750
1798
  };
1751
- return /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)("div", { className: getClassName17("placeholder"), children: [
1752
- /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(Bot, { size: "24" }),
1753
- /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("div", { children: "Use AI to build a page using the available blocks" }),
1754
- /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)("div", { className: getClassName17("actions"), children: [
1755
- /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
1799
+ return /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)("div", { className: getClassName17("placeholder"), children: [
1800
+ /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(Bot, { size: "24" }),
1801
+ /* @__PURE__ */ (0, import_jsx_runtime28.jsx)("div", { children: "Use AI to build a page using the available blocks" }),
1802
+ /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)("div", { className: getClassName17("actions"), children: [
1803
+ /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
1756
1804
  "button",
1757
1805
  {
1758
1806
  className: getClassName17("action"),
@@ -1760,7 +1808,7 @@ function Placeholder({
1760
1808
  children: "Enter prompt"
1761
1809
  }
1762
1810
  ),
1763
- /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
1811
+ /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
1764
1812
  "button",
1765
1813
  {
1766
1814
  className: getClassName17("actionOutlined"),
@@ -1871,21 +1919,21 @@ var ScrollTracking = ({ children }) => {
1871
1919
  };
1872
1920
 
1873
1921
  // src/index.tsx
1874
- var import_jsx_runtime28 = require("react/jsx-runtime");
1922
+ var import_jsx_runtime29 = require("react/jsx-runtime");
1875
1923
  function createAiPlugin(opts) {
1876
1924
  const { scrollTracking = true, ...rest } = opts || {};
1877
1925
  return {
1878
1926
  label: "AI",
1879
1927
  name: "ai",
1880
- render: () => /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(Chat2, { ...rest }),
1881
- icon: /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(Bot, {}),
1928
+ render: () => /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(Chat2, { ...rest }),
1929
+ icon: /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(Bot, {}),
1882
1930
  mobilePanelHeight: "min-content",
1883
1931
  overrides: {
1884
1932
  preview: ({ children }) => {
1885
1933
  if (scrollTracking) {
1886
- return /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(ScrollTracking, { children });
1934
+ return /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(ScrollTracking, { children });
1887
1935
  }
1888
- return /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(import_jsx_runtime28.Fragment, { children });
1936
+ return /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(import_jsx_runtime29.Fragment, { children });
1889
1937
  }
1890
1938
  }
1891
1939
  };
@@ -1907,7 +1955,6 @@ lucide-react/dist/esm/shared/src/utils.js:
1907
1955
  lucide-react/dist/esm/defaultAttributes.js:
1908
1956
  lucide-react/dist/esm/Icon.js:
1909
1957
  lucide-react/dist/esm/createLucideIcon.js:
1910
- lucide-react/dist/esm/icons/arrow-right.js:
1911
1958
  lucide-react/dist/esm/icons/arrow-up.js:
1912
1959
  lucide-react/dist/esm/icons/bot.js:
1913
1960
  lucide-react/dist/esm/icons/check.js: