@useinsider/guido 3.2.0-beta.8209d6d → 3.2.0-beta.8220f9d
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/@types/config/schemas.js +38 -36
- package/dist/components/Guido.vue.js +4 -4
- package/dist/components/Guido.vue2.js +82 -71
- package/dist/components/organisms/chat/blueprint/BlueprintCard.vue.js +20 -0
- package/dist/components/organisms/chat/blueprint/BlueprintCard.vue2.js +20 -0
- package/dist/components/organisms/chat/blueprint/EmailTemplateBlueprintCard.vue.js +23 -0
- package/dist/components/organisms/chat/blueprint/EmailTemplateBlueprintCard.vue2.js +18 -0
- package/dist/components/organisms/chat/chatbox/ChatboxContainer.vue.js +18 -0
- package/dist/components/organisms/chat/chatbox/ChatboxContainer.vue2.js +16 -0
- package/dist/components/organisms/chat/chatbox/ChatboxPanel.vue.js +20 -0
- package/dist/components/organisms/chat/chatbox/ChatboxPanel.vue2.js +19 -0
- package/dist/components/organisms/chat/conversation/ChatConversation.vue.js +28 -0
- package/dist/components/organisms/chat/conversation/ChatConversation.vue2.js +20 -0
- package/dist/components/organisms/chat/conversation/ChatWelcome.vue.js +18 -0
- package/dist/components/organisms/chat/conversation/ChatWelcome.vue2.js +11 -0
- package/dist/components/organisms/chat/conversation/QuickActionChips.vue.js +22 -0
- package/dist/components/organisms/chat/conversation/QuickActionChips.vue2.js +42 -0
- package/dist/components/organisms/chat/input/ChatInput.vue.js +29 -0
- package/dist/components/organisms/chat/input/ChatInput.vue2.js +39 -0
- package/dist/components/organisms/chat/input/GuidoAgentSelector.vue.js +22 -0
- package/dist/components/organisms/chat/input/GuidoAgentSelector.vue2.js +29 -0
- package/dist/components/organisms/chat/messages/AiMessage.vue.js +26 -0
- package/dist/components/organisms/chat/messages/AiMessage.vue2.js +41 -0
- package/dist/components/organisms/chat/messages/AiMessageActions.vue.js +18 -0
- package/dist/components/organisms/chat/messages/AiMessageActions.vue2.js +27 -0
- package/dist/components/organisms/chat/messages/ChatLoading.vue.js +18 -0
- package/dist/components/organisms/chat/messages/ChatLoading.vue2.js +30 -0
- package/dist/components/organisms/chat/messages/ChatMessages.vue.js +26 -0
- package/dist/components/organisms/chat/messages/ChatMessages.vue2.js +67 -0
- package/dist/components/organisms/chat/messages/UserMessage.vue.js +18 -0
- package/dist/components/organisms/chat/messages/UserMessage.vue2.js +26 -0
- package/dist/components/organisms/onboarding/AMPOnboarding.vue2.js +51 -31
- package/dist/components/organisms/onboarding/GenericOnboarding.vue.js +1 -1
- package/dist/components/organisms/onboarding/GenericOnboarding.vue2.js +23 -22
- package/dist/components/organisms/onboarding/ItemsOnboarding.vue.js +1 -1
- package/dist/components/organisms/onboarding/ItemsOnboarding.vue2.js +37 -39
- package/dist/components/organisms/onboarding/TextBlockOnboarding.vue.js +3 -3
- package/dist/components/organisms/onboarding/TextBlockOnboarding.vue2.js +30 -41
- package/dist/components/organisms/onboarding/VersionHistoryOnboarding.vue2.js +15 -14
- package/dist/composables/useChatState.js +130 -0
- package/dist/composables/useChatStreaming.js +191 -0
- package/dist/composables/useConversationEvents.js +37 -0
- package/dist/composables/useEmailTemplateApplier.js +41 -0
- package/dist/composables/useRibbonOffset.js +21 -0
- package/dist/config/compiler/unsubscribeCompilerRules.js +40 -37
- package/dist/enums/onboarding.js +7 -2
- package/dist/enums/unsubscribe.js +34 -27
- package/dist/guido.css +1 -1
- package/dist/node_modules/@vueuse/core/index.js +127 -0
- package/dist/node_modules/@vueuse/shared/index.js +68 -27
- package/dist/node_modules/dompurify/dist/purify.es.js +595 -0
- package/dist/node_modules/marked/lib/marked.esm.js +1152 -0
- package/dist/services/chatService.js +163 -0
- package/dist/services/templateLibraryApi.js +5 -4
- package/dist/src/@types/chat.d.ts +138 -0
- package/dist/src/@types/config/schemas.d.ts +4 -0
- package/dist/src/components/Guido.vue.d.ts +4 -0
- package/dist/src/components/organisms/chat/blueprint/BlueprintCard.vue.d.ts +38 -0
- package/dist/src/components/organisms/chat/blueprint/EmailTemplateBlueprintCard.vue.d.ts +35 -0
- package/dist/src/components/organisms/chat/chatbox/ChatboxContainer.vue.d.ts +4 -0
- package/dist/src/components/organisms/chat/chatbox/ChatboxPanel.vue.d.ts +4 -0
- package/dist/src/components/organisms/chat/conversation/ChatConversation.vue.d.ts +31 -0
- package/dist/src/components/organisms/chat/conversation/ChatWelcome.vue.d.ts +2 -0
- package/dist/src/components/organisms/chat/conversation/QuickActionChips.vue.d.ts +30 -0
- package/dist/src/components/organisms/chat/input/ChatInput.vue.d.ts +37 -0
- package/dist/src/components/organisms/chat/input/GuidoAgentSelector.vue.d.ts +2 -0
- package/dist/src/components/organisms/chat/messages/AiMessage.vue.d.ts +33 -0
- package/dist/src/components/organisms/chat/messages/AiMessageActions.vue.d.ts +18 -0
- package/dist/src/components/organisms/chat/messages/ChatLoading.vue.d.ts +32 -0
- package/dist/src/components/organisms/chat/messages/ChatMessages.vue.d.ts +37 -0
- package/dist/src/components/organisms/chat/messages/UserMessage.vue.d.ts +35 -0
- package/dist/src/composables/useChatState.d.ts +26 -0
- package/dist/src/composables/useChatStreaming.d.ts +26 -0
- package/dist/src/composables/useConfig.d.ts +2 -0
- package/dist/src/composables/useConversationEvents.d.ts +19 -0
- package/dist/src/composables/useEmailTemplateApplier.d.ts +21 -0
- package/dist/src/composables/useRibbonOffset.d.ts +4 -0
- package/dist/src/enums/onboarding.d.ts +6 -0
- package/dist/src/enums/unsubscribe.d.ts +5 -0
- package/dist/src/services/chatService.d.ts +16 -0
- package/dist/src/stores/chat.d.ts +323 -0
- package/dist/src/stores/config.d.ts +18 -0
- package/dist/src/stores/editor.d.ts +23 -0
- package/dist/src/stores/onboarding.d.ts +4 -0
- package/dist/src/utils/generateId.d.ts +1 -0
- package/dist/src/utils/markdown.d.ts +1 -0
- package/dist/static/templates/empty/style.css.js +1 -0
- package/dist/stores/chat.js +26 -0
- package/dist/stores/editor.js +1 -0
- package/dist/stores/onboarding.js +4 -0
- package/dist/utils/generateId.js +7 -0
- package/dist/utils/markdown.js +21 -0
- package/dist/utils/pairProductVariables.js +89 -88
- package/package.json +4 -1
|
@@ -67,6 +67,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
67
67
|
unsubscribe: boolean;
|
|
68
68
|
modulesDisabled: boolean;
|
|
69
69
|
liquidSyntax: boolean;
|
|
70
|
+
aiAssistant: boolean;
|
|
70
71
|
};
|
|
71
72
|
blocks: {
|
|
72
73
|
excludeDefaults: ("amp-accordion" | "amp-carousel" | "amp-form-controls" | "banner-block" | "button-block" | "html-block" | "image-block" | "menu-block" | "social-block" | "spacer-block" | "text-block" | "timer-block" | "video-block")[];
|
|
@@ -170,6 +171,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
170
171
|
unsubscribe: boolean;
|
|
171
172
|
modulesDisabled: boolean;
|
|
172
173
|
liquidSyntax: boolean;
|
|
174
|
+
aiAssistant: boolean;
|
|
173
175
|
};
|
|
174
176
|
blocks: {
|
|
175
177
|
excludeDefaults: ("amp-accordion" | "amp-carousel" | "amp-form-controls" | "banner-block" | "button-block" | "html-block" | "image-block" | "menu-block" | "social-block" | "spacer-block" | "text-block" | "timer-block" | "video-block")[];
|
|
@@ -273,6 +275,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
273
275
|
unsubscribe: boolean;
|
|
274
276
|
modulesDisabled: boolean;
|
|
275
277
|
liquidSyntax: boolean;
|
|
278
|
+
aiAssistant: boolean;
|
|
276
279
|
};
|
|
277
280
|
blocks: {
|
|
278
281
|
excludeDefaults: ("amp-accordion" | "amp-carousel" | "amp-form-controls" | "banner-block" | "button-block" | "html-block" | "image-block" | "menu-block" | "social-block" | "spacer-block" | "text-block" | "timer-block" | "video-block")[];
|
|
@@ -376,6 +379,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
376
379
|
unsubscribe: boolean;
|
|
377
380
|
modulesDisabled: boolean;
|
|
378
381
|
liquidSyntax: boolean;
|
|
382
|
+
aiAssistant: boolean;
|
|
379
383
|
};
|
|
380
384
|
blocks: {
|
|
381
385
|
excludeDefaults: ("amp-accordion" | "amp-carousel" | "amp-form-controls" | "banner-block" | "button-block" | "html-block" | "image-block" | "menu-block" | "social-block" | "spacer-block" | "text-block" | "timer-block" | "video-block")[];
|
|
@@ -479,6 +483,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
479
483
|
unsubscribe: boolean;
|
|
480
484
|
modulesDisabled: boolean;
|
|
481
485
|
liquidSyntax: boolean;
|
|
486
|
+
aiAssistant: boolean;
|
|
482
487
|
};
|
|
483
488
|
blocks: {
|
|
484
489
|
excludeDefaults: ("amp-accordion" | "amp-carousel" | "amp-form-controls" | "banner-block" | "button-block" | "html-block" | "image-block" | "menu-block" | "social-block" | "spacer-block" | "text-block" | "timer-block" | "video-block")[];
|
|
@@ -582,6 +587,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
582
587
|
unsubscribe: boolean;
|
|
583
588
|
modulesDisabled: boolean;
|
|
584
589
|
liquidSyntax: boolean;
|
|
590
|
+
aiAssistant: boolean;
|
|
585
591
|
};
|
|
586
592
|
blocks: {
|
|
587
593
|
excludeDefaults: ("amp-accordion" | "amp-carousel" | "amp-form-controls" | "banner-block" | "button-block" | "html-block" | "image-block" | "menu-block" | "social-block" | "spacer-block" | "text-block" | "timer-block" | "video-block")[];
|
|
@@ -685,6 +691,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
685
691
|
unsubscribe: boolean;
|
|
686
692
|
modulesDisabled: boolean;
|
|
687
693
|
liquidSyntax: boolean;
|
|
694
|
+
aiAssistant: boolean;
|
|
688
695
|
};
|
|
689
696
|
blocks: {
|
|
690
697
|
excludeDefaults: ("amp-accordion" | "amp-carousel" | "amp-form-controls" | "banner-block" | "button-block" | "html-block" | "image-block" | "menu-block" | "social-block" | "spacer-block" | "text-block" | "timer-block" | "video-block")[];
|
|
@@ -788,6 +795,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
788
795
|
unsubscribe: boolean;
|
|
789
796
|
modulesDisabled: boolean;
|
|
790
797
|
liquidSyntax: boolean;
|
|
798
|
+
aiAssistant: boolean;
|
|
791
799
|
};
|
|
792
800
|
blocks: {
|
|
793
801
|
excludeDefaults: ("amp-accordion" | "amp-carousel" | "amp-form-controls" | "banner-block" | "button-block" | "html-block" | "image-block" | "menu-block" | "social-block" | "spacer-block" | "text-block" | "timer-block" | "video-block")[];
|
|
@@ -891,6 +899,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
891
899
|
unsubscribe: boolean;
|
|
892
900
|
modulesDisabled: boolean;
|
|
893
901
|
liquidSyntax: boolean;
|
|
902
|
+
aiAssistant: boolean;
|
|
894
903
|
};
|
|
895
904
|
blocks: {
|
|
896
905
|
excludeDefaults: ("amp-accordion" | "amp-carousel" | "amp-form-controls" | "banner-block" | "button-block" | "html-block" | "image-block" | "menu-block" | "social-block" | "spacer-block" | "text-block" | "timer-block" | "video-block")[];
|
|
@@ -994,6 +1003,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
994
1003
|
unsubscribe: boolean;
|
|
995
1004
|
modulesDisabled: boolean;
|
|
996
1005
|
liquidSyntax: boolean;
|
|
1006
|
+
aiAssistant: boolean;
|
|
997
1007
|
};
|
|
998
1008
|
blocks: {
|
|
999
1009
|
excludeDefaults: ("amp-accordion" | "amp-carousel" | "amp-form-controls" | "banner-block" | "button-block" | "html-block" | "image-block" | "menu-block" | "social-block" | "spacer-block" | "text-block" | "timer-block" | "video-block")[];
|
|
@@ -1097,6 +1107,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
1097
1107
|
unsubscribe: boolean;
|
|
1098
1108
|
modulesDisabled: boolean;
|
|
1099
1109
|
liquidSyntax: boolean;
|
|
1110
|
+
aiAssistant: boolean;
|
|
1100
1111
|
};
|
|
1101
1112
|
blocks: {
|
|
1102
1113
|
excludeDefaults: ("amp-accordion" | "amp-carousel" | "amp-form-controls" | "banner-block" | "button-block" | "html-block" | "image-block" | "menu-block" | "social-block" | "spacer-block" | "text-block" | "timer-block" | "video-block")[];
|
|
@@ -1200,6 +1211,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
1200
1211
|
unsubscribe: boolean;
|
|
1201
1212
|
modulesDisabled: boolean;
|
|
1202
1213
|
liquidSyntax: boolean;
|
|
1214
|
+
aiAssistant: boolean;
|
|
1203
1215
|
};
|
|
1204
1216
|
blocks: {
|
|
1205
1217
|
excludeDefaults: ("amp-accordion" | "amp-carousel" | "amp-form-controls" | "banner-block" | "button-block" | "html-block" | "image-block" | "menu-block" | "social-block" | "spacer-block" | "text-block" | "timer-block" | "video-block")[];
|
|
@@ -1303,6 +1315,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
1303
1315
|
unsubscribe: boolean;
|
|
1304
1316
|
modulesDisabled: boolean;
|
|
1305
1317
|
liquidSyntax: boolean;
|
|
1318
|
+
aiAssistant: boolean;
|
|
1306
1319
|
};
|
|
1307
1320
|
blocks: {
|
|
1308
1321
|
excludeDefaults: ("amp-accordion" | "amp-carousel" | "amp-form-controls" | "banner-block" | "button-block" | "html-block" | "image-block" | "menu-block" | "social-block" | "spacer-block" | "text-block" | "timer-block" | "video-block")[];
|
|
@@ -1406,6 +1419,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
1406
1419
|
unsubscribe: boolean;
|
|
1407
1420
|
modulesDisabled: boolean;
|
|
1408
1421
|
liquidSyntax: boolean;
|
|
1422
|
+
aiAssistant: boolean;
|
|
1409
1423
|
};
|
|
1410
1424
|
blocks: {
|
|
1411
1425
|
excludeDefaults: ("amp-accordion" | "amp-carousel" | "amp-form-controls" | "banner-block" | "button-block" | "html-block" | "image-block" | "menu-block" | "social-block" | "spacer-block" | "text-block" | "timer-block" | "video-block")[];
|
|
@@ -1509,6 +1523,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
1509
1523
|
unsubscribe: boolean;
|
|
1510
1524
|
modulesDisabled: boolean;
|
|
1511
1525
|
liquidSyntax: boolean;
|
|
1526
|
+
aiAssistant: boolean;
|
|
1512
1527
|
};
|
|
1513
1528
|
blocks: {
|
|
1514
1529
|
excludeDefaults: ("amp-accordion" | "amp-carousel" | "amp-form-controls" | "banner-block" | "button-block" | "html-block" | "image-block" | "menu-block" | "social-block" | "spacer-block" | "text-block" | "timer-block" | "video-block")[];
|
|
@@ -1612,6 +1627,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
1612
1627
|
unsubscribe: boolean;
|
|
1613
1628
|
modulesDisabled: boolean;
|
|
1614
1629
|
liquidSyntax: boolean;
|
|
1630
|
+
aiAssistant: boolean;
|
|
1615
1631
|
};
|
|
1616
1632
|
blocks: {
|
|
1617
1633
|
excludeDefaults: ("amp-accordion" | "amp-carousel" | "amp-form-controls" | "banner-block" | "button-block" | "html-block" | "image-block" | "menu-block" | "social-block" | "spacer-block" | "text-block" | "timer-block" | "video-block")[];
|
|
@@ -1715,6 +1731,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
1715
1731
|
unsubscribe: boolean;
|
|
1716
1732
|
modulesDisabled: boolean;
|
|
1717
1733
|
liquidSyntax: boolean;
|
|
1734
|
+
aiAssistant: boolean;
|
|
1718
1735
|
};
|
|
1719
1736
|
blocks: {
|
|
1720
1737
|
excludeDefaults: ("amp-accordion" | "amp-carousel" | "amp-form-controls" | "banner-block" | "button-block" | "html-block" | "image-block" | "menu-block" | "social-block" | "spacer-block" | "text-block" | "timer-block" | "video-block")[];
|
|
@@ -1818,6 +1835,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
1818
1835
|
unsubscribe: boolean;
|
|
1819
1836
|
modulesDisabled: boolean;
|
|
1820
1837
|
liquidSyntax: boolean;
|
|
1838
|
+
aiAssistant: boolean;
|
|
1821
1839
|
};
|
|
1822
1840
|
blocks: {
|
|
1823
1841
|
excludeDefaults: ("amp-accordion" | "amp-carousel" | "amp-form-controls" | "banner-block" | "button-block" | "html-block" | "image-block" | "menu-block" | "social-block" | "spacer-block" | "text-block" | "timer-block" | "video-block")[];
|
|
@@ -4,6 +4,7 @@ export declare const useEditorStore: import("pinia").StoreDefinition<"guidoEdito
|
|
|
4
4
|
isSaveAsTemplateDrawerOpen: boolean;
|
|
5
5
|
isVersionHistoryOpen: boolean;
|
|
6
6
|
isPreviewModeOpen: boolean;
|
|
7
|
+
isChatPanelOpen: boolean;
|
|
7
8
|
editorVisualMode: string;
|
|
8
9
|
hasChanges: boolean;
|
|
9
10
|
isStripoInitialized: boolean;
|
|
@@ -16,6 +17,7 @@ export declare const useEditorStore: import("pinia").StoreDefinition<"guidoEdito
|
|
|
16
17
|
isSaveAsTemplateDrawerOpen: boolean;
|
|
17
18
|
isVersionHistoryOpen: boolean;
|
|
18
19
|
isPreviewModeOpen: boolean;
|
|
20
|
+
isChatPanelOpen: boolean;
|
|
19
21
|
editorVisualMode: string;
|
|
20
22
|
hasChanges: boolean;
|
|
21
23
|
isStripoInitialized: boolean;
|
|
@@ -27,6 +29,7 @@ export declare const useEditorStore: import("pinia").StoreDefinition<"guidoEdito
|
|
|
27
29
|
isSaveAsTemplateDrawerOpen: boolean;
|
|
28
30
|
isVersionHistoryOpen: boolean;
|
|
29
31
|
isPreviewModeOpen: boolean;
|
|
32
|
+
isChatPanelOpen: boolean;
|
|
30
33
|
editorVisualMode: string;
|
|
31
34
|
hasChanges: boolean;
|
|
32
35
|
isStripoInitialized: boolean;
|
|
@@ -39,6 +42,7 @@ export declare const useEditorStore: import("pinia").StoreDefinition<"guidoEdito
|
|
|
39
42
|
isSaveAsTemplateDrawerOpen: boolean;
|
|
40
43
|
isVersionHistoryOpen: boolean;
|
|
41
44
|
isPreviewModeOpen: boolean;
|
|
45
|
+
isChatPanelOpen: boolean;
|
|
42
46
|
editorVisualMode: string;
|
|
43
47
|
hasChanges: boolean;
|
|
44
48
|
isStripoInitialized: boolean;
|
|
@@ -50,6 +54,7 @@ export declare const useEditorStore: import("pinia").StoreDefinition<"guidoEdito
|
|
|
50
54
|
isSaveAsTemplateDrawerOpen: boolean;
|
|
51
55
|
isVersionHistoryOpen: boolean;
|
|
52
56
|
isPreviewModeOpen: boolean;
|
|
57
|
+
isChatPanelOpen: boolean;
|
|
53
58
|
editorVisualMode: string;
|
|
54
59
|
hasChanges: boolean;
|
|
55
60
|
isStripoInitialized: boolean;
|
|
@@ -62,6 +67,7 @@ export declare const useEditorStore: import("pinia").StoreDefinition<"guidoEdito
|
|
|
62
67
|
isSaveAsTemplateDrawerOpen: boolean;
|
|
63
68
|
isVersionHistoryOpen: boolean;
|
|
64
69
|
isPreviewModeOpen: boolean;
|
|
70
|
+
isChatPanelOpen: boolean;
|
|
65
71
|
editorVisualMode: string;
|
|
66
72
|
hasChanges: boolean;
|
|
67
73
|
isStripoInitialized: boolean;
|
|
@@ -73,6 +79,7 @@ export declare const useEditorStore: import("pinia").StoreDefinition<"guidoEdito
|
|
|
73
79
|
isSaveAsTemplateDrawerOpen: boolean;
|
|
74
80
|
isVersionHistoryOpen: boolean;
|
|
75
81
|
isPreviewModeOpen: boolean;
|
|
82
|
+
isChatPanelOpen: boolean;
|
|
76
83
|
editorVisualMode: string;
|
|
77
84
|
hasChanges: boolean;
|
|
78
85
|
isStripoInitialized: boolean;
|
|
@@ -85,6 +92,7 @@ export declare const useEditorStore: import("pinia").StoreDefinition<"guidoEdito
|
|
|
85
92
|
isSaveAsTemplateDrawerOpen: boolean;
|
|
86
93
|
isVersionHistoryOpen: boolean;
|
|
87
94
|
isPreviewModeOpen: boolean;
|
|
95
|
+
isChatPanelOpen: boolean;
|
|
88
96
|
editorVisualMode: string;
|
|
89
97
|
hasChanges: boolean;
|
|
90
98
|
isStripoInitialized: boolean;
|
|
@@ -96,6 +104,7 @@ export declare const useEditorStore: import("pinia").StoreDefinition<"guidoEdito
|
|
|
96
104
|
isSaveAsTemplateDrawerOpen: boolean;
|
|
97
105
|
isVersionHistoryOpen: boolean;
|
|
98
106
|
isPreviewModeOpen: boolean;
|
|
107
|
+
isChatPanelOpen: boolean;
|
|
99
108
|
editorVisualMode: string;
|
|
100
109
|
hasChanges: boolean;
|
|
101
110
|
isStripoInitialized: boolean;
|
|
@@ -108,6 +117,7 @@ export declare const useEditorStore: import("pinia").StoreDefinition<"guidoEdito
|
|
|
108
117
|
isSaveAsTemplateDrawerOpen: boolean;
|
|
109
118
|
isVersionHistoryOpen: boolean;
|
|
110
119
|
isPreviewModeOpen: boolean;
|
|
120
|
+
isChatPanelOpen: boolean;
|
|
111
121
|
editorVisualMode: string;
|
|
112
122
|
hasChanges: boolean;
|
|
113
123
|
isStripoInitialized: boolean;
|
|
@@ -119,6 +129,7 @@ export declare const useEditorStore: import("pinia").StoreDefinition<"guidoEdito
|
|
|
119
129
|
isSaveAsTemplateDrawerOpen: boolean;
|
|
120
130
|
isVersionHistoryOpen: boolean;
|
|
121
131
|
isPreviewModeOpen: boolean;
|
|
132
|
+
isChatPanelOpen: boolean;
|
|
122
133
|
editorVisualMode: string;
|
|
123
134
|
hasChanges: boolean;
|
|
124
135
|
isStripoInitialized: boolean;
|
|
@@ -131,6 +142,7 @@ export declare const useEditorStore: import("pinia").StoreDefinition<"guidoEdito
|
|
|
131
142
|
isSaveAsTemplateDrawerOpen: boolean;
|
|
132
143
|
isVersionHistoryOpen: boolean;
|
|
133
144
|
isPreviewModeOpen: boolean;
|
|
145
|
+
isChatPanelOpen: boolean;
|
|
134
146
|
editorVisualMode: string;
|
|
135
147
|
hasChanges: boolean;
|
|
136
148
|
isStripoInitialized: boolean;
|
|
@@ -142,6 +154,7 @@ export declare const useEditorStore: import("pinia").StoreDefinition<"guidoEdito
|
|
|
142
154
|
isSaveAsTemplateDrawerOpen: boolean;
|
|
143
155
|
isVersionHistoryOpen: boolean;
|
|
144
156
|
isPreviewModeOpen: boolean;
|
|
157
|
+
isChatPanelOpen: boolean;
|
|
145
158
|
editorVisualMode: string;
|
|
146
159
|
hasChanges: boolean;
|
|
147
160
|
isStripoInitialized: boolean;
|
|
@@ -154,6 +167,7 @@ export declare const useEditorStore: import("pinia").StoreDefinition<"guidoEdito
|
|
|
154
167
|
isSaveAsTemplateDrawerOpen: boolean;
|
|
155
168
|
isVersionHistoryOpen: boolean;
|
|
156
169
|
isPreviewModeOpen: boolean;
|
|
170
|
+
isChatPanelOpen: boolean;
|
|
157
171
|
editorVisualMode: string;
|
|
158
172
|
hasChanges: boolean;
|
|
159
173
|
isStripoInitialized: boolean;
|
|
@@ -165,6 +179,7 @@ export declare const useEditorStore: import("pinia").StoreDefinition<"guidoEdito
|
|
|
165
179
|
isSaveAsTemplateDrawerOpen: boolean;
|
|
166
180
|
isVersionHistoryOpen: boolean;
|
|
167
181
|
isPreviewModeOpen: boolean;
|
|
182
|
+
isChatPanelOpen: boolean;
|
|
168
183
|
editorVisualMode: string;
|
|
169
184
|
hasChanges: boolean;
|
|
170
185
|
isStripoInitialized: boolean;
|
|
@@ -177,6 +192,7 @@ export declare const useEditorStore: import("pinia").StoreDefinition<"guidoEdito
|
|
|
177
192
|
isSaveAsTemplateDrawerOpen: boolean;
|
|
178
193
|
isVersionHistoryOpen: boolean;
|
|
179
194
|
isPreviewModeOpen: boolean;
|
|
195
|
+
isChatPanelOpen: boolean;
|
|
180
196
|
editorVisualMode: string;
|
|
181
197
|
hasChanges: boolean;
|
|
182
198
|
isStripoInitialized: boolean;
|
|
@@ -188,6 +204,7 @@ export declare const useEditorStore: import("pinia").StoreDefinition<"guidoEdito
|
|
|
188
204
|
isSaveAsTemplateDrawerOpen: boolean;
|
|
189
205
|
isVersionHistoryOpen: boolean;
|
|
190
206
|
isPreviewModeOpen: boolean;
|
|
207
|
+
isChatPanelOpen: boolean;
|
|
191
208
|
editorVisualMode: string;
|
|
192
209
|
hasChanges: boolean;
|
|
193
210
|
isStripoInitialized: boolean;
|
|
@@ -200,6 +217,7 @@ export declare const useEditorStore: import("pinia").StoreDefinition<"guidoEdito
|
|
|
200
217
|
isSaveAsTemplateDrawerOpen: boolean;
|
|
201
218
|
isVersionHistoryOpen: boolean;
|
|
202
219
|
isPreviewModeOpen: boolean;
|
|
220
|
+
isChatPanelOpen: boolean;
|
|
203
221
|
editorVisualMode: string;
|
|
204
222
|
hasChanges: boolean;
|
|
205
223
|
isStripoInitialized: boolean;
|
|
@@ -211,6 +229,7 @@ export declare const useEditorStore: import("pinia").StoreDefinition<"guidoEdito
|
|
|
211
229
|
isSaveAsTemplateDrawerOpen: boolean;
|
|
212
230
|
isVersionHistoryOpen: boolean;
|
|
213
231
|
isPreviewModeOpen: boolean;
|
|
232
|
+
isChatPanelOpen: boolean;
|
|
214
233
|
editorVisualMode: string;
|
|
215
234
|
hasChanges: boolean;
|
|
216
235
|
isStripoInitialized: boolean;
|
|
@@ -223,6 +242,7 @@ export declare const useEditorStore: import("pinia").StoreDefinition<"guidoEdito
|
|
|
223
242
|
isSaveAsTemplateDrawerOpen: boolean;
|
|
224
243
|
isVersionHistoryOpen: boolean;
|
|
225
244
|
isPreviewModeOpen: boolean;
|
|
245
|
+
isChatPanelOpen: boolean;
|
|
226
246
|
editorVisualMode: string;
|
|
227
247
|
hasChanges: boolean;
|
|
228
248
|
isStripoInitialized: boolean;
|
|
@@ -234,6 +254,7 @@ export declare const useEditorStore: import("pinia").StoreDefinition<"guidoEdito
|
|
|
234
254
|
isSaveAsTemplateDrawerOpen: boolean;
|
|
235
255
|
isVersionHistoryOpen: boolean;
|
|
236
256
|
isPreviewModeOpen: boolean;
|
|
257
|
+
isChatPanelOpen: boolean;
|
|
237
258
|
editorVisualMode: string;
|
|
238
259
|
hasChanges: boolean;
|
|
239
260
|
isStripoInitialized: boolean;
|
|
@@ -246,6 +267,7 @@ export declare const useEditorStore: import("pinia").StoreDefinition<"guidoEdito
|
|
|
246
267
|
isSaveAsTemplateDrawerOpen: boolean;
|
|
247
268
|
isVersionHistoryOpen: boolean;
|
|
248
269
|
isPreviewModeOpen: boolean;
|
|
270
|
+
isChatPanelOpen: boolean;
|
|
249
271
|
editorVisualMode: string;
|
|
250
272
|
hasChanges: boolean;
|
|
251
273
|
isStripoInitialized: boolean;
|
|
@@ -257,6 +279,7 @@ export declare const useEditorStore: import("pinia").StoreDefinition<"guidoEdito
|
|
|
257
279
|
isSaveAsTemplateDrawerOpen: boolean;
|
|
258
280
|
isVersionHistoryOpen: boolean;
|
|
259
281
|
isPreviewModeOpen: boolean;
|
|
282
|
+
isChatPanelOpen: boolean;
|
|
260
283
|
editorVisualMode: string;
|
|
261
284
|
hasChanges: boolean;
|
|
262
285
|
isStripoInitialized: boolean;
|
|
@@ -1392,6 +1392,10 @@ export declare const useOnboardingStore: import("pinia").StoreDefinition<"guidoO
|
|
|
1392
1392
|
close(type: OnboardingType): Promise<void>;
|
|
1393
1393
|
next(type: OnboardingType): void;
|
|
1394
1394
|
previous(type: OnboardingType): void;
|
|
1395
|
+
updateCardPosition(type: OnboardingType, cardIndex: number, position: {
|
|
1396
|
+
top: string;
|
|
1397
|
+
position: string;
|
|
1398
|
+
}): void;
|
|
1395
1399
|
setConfig(type: OnboardingType, config: OnboardingCardConfig[]): void;
|
|
1396
1400
|
onDiscoverNowClicked(): Promise<void>;
|
|
1397
1401
|
onRemindMeLater(): void;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const generateId: (prefix: string) => string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const formatMarkdown: (content: string) => string;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { defineStore as a } from "pinia";
|
|
2
|
+
const i = a("guidoChat", {
|
|
3
|
+
state: () => ({
|
|
4
|
+
messages: [],
|
|
5
|
+
isLoading: !1,
|
|
6
|
+
activeConversationId: null,
|
|
7
|
+
viewMode: "closed",
|
|
8
|
+
draft: ""
|
|
9
|
+
}),
|
|
10
|
+
getters: {
|
|
11
|
+
hasMessages: (e) => e.messages.length > 0,
|
|
12
|
+
lastMessage: (e) => e.messages[e.messages.length - 1] ?? null,
|
|
13
|
+
lastUserMessageId: (e) => {
|
|
14
|
+
for (let s = e.messages.length - 1; s >= 0; s--)
|
|
15
|
+
if (e.messages[s].role === "user")
|
|
16
|
+
return e.messages[s].id;
|
|
17
|
+
return null;
|
|
18
|
+
},
|
|
19
|
+
isStreaming: (e) => e.messages.some((s) => s.isStreaming === !0),
|
|
20
|
+
isShrunk: (e) => e.viewMode === "shrink",
|
|
21
|
+
isClosed: (e) => e.viewMode === "closed"
|
|
22
|
+
}
|
|
23
|
+
});
|
|
24
|
+
export {
|
|
25
|
+
i as useChatStore
|
|
26
|
+
};
|
package/dist/stores/editor.js
CHANGED
|
@@ -71,6 +71,10 @@ const t = () => ({
|
|
|
71
71
|
previous(n) {
|
|
72
72
|
this.onboardings[n].cardIndex > 0 && this.onboardings[n].cardIndex--;
|
|
73
73
|
},
|
|
74
|
+
updateCardPosition(n, i, o) {
|
|
75
|
+
const s = this.onboardings[n].config[i];
|
|
76
|
+
s && (s.top = o.top, s.position = o.position);
|
|
77
|
+
},
|
|
74
78
|
setConfig(n, i) {
|
|
75
79
|
this.onboardings[n].config = i ?? [], this.onboardings[n].cardIndex >= this.onboardings[n].config.length && (this.onboardings[n].cardIndex = 0);
|
|
76
80
|
},
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import l from "../node_modules/dompurify/dist/purify.es.js";
|
|
2
|
+
import { marked as a } from "../node_modules/marked/lib/marked.esm.js";
|
|
3
|
+
const n = new a.Renderer();
|
|
4
|
+
n.link = function({ href: r, title: t, tokens: s }) {
|
|
5
|
+
const o = t ? ` title="${t}"` : "", i = this.parser.parseInline(s);
|
|
6
|
+
return `<a href="${r}"${o} target="_blank" rel="noopener noreferrer">${i}</a>`;
|
|
7
|
+
};
|
|
8
|
+
a.setOptions({
|
|
9
|
+
renderer: n,
|
|
10
|
+
breaks: !0,
|
|
11
|
+
gfm: !0
|
|
12
|
+
});
|
|
13
|
+
const c = (e) => {
|
|
14
|
+
if (!e)
|
|
15
|
+
return "";
|
|
16
|
+
const r = a.parse(e);
|
|
17
|
+
return l.sanitize(r, { ADD_ATTR: ["target", "rel"] }).replace(/<table>/g, '<div class="md-table"><table>').replace(/<\/table>/g, "</table></div>");
|
|
18
|
+
};
|
|
19
|
+
export {
|
|
20
|
+
c as formatMarkdown
|
|
21
|
+
};
|