@empathyco/x-components 6.0.0-alpha.35 → 6.0.0-alpha.37
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/CHANGELOG.md +23 -0
- package/design-system/deprecated-full-theme.css +717 -717
- package/docs/API-reference/api/x-components.md +3 -2
- package/docs/API-reference/api/x-components.relatedprompt.md +4 -25
- package/docs/API-reference/api/x-components.relatedpromptstaglist.md +39 -6
- package/docs/API-reference/api/x-components.typingoptions.md +22 -0
- package/docs/API-reference/api/x-components.typingoptions.speed.md +13 -0
- package/docs/API-reference/api/x-components.typingoptions.targetattr.md +18 -0
- package/docs/API-reference/api/x-components.typingoptions.text.md +13 -0
- package/docs/API-reference/components/related-prompts/x-components.related-prompt.md +4 -14
- package/docs/API-reference/components/related-prompts/x-components.related-prompts-tag-list.md +16 -10
- package/js/components/page-loader-button.vue.js +7 -6
- package/js/components/page-loader-button.vue.js.map +1 -1
- package/js/components/page-loader-button.vue2.js.map +1 -1
- package/js/components/page-loader-button.vue3.js +7 -0
- package/js/components/page-loader-button.vue3.js.map +1 -0
- package/js/directives/typing.js +52 -0
- package/js/directives/typing.js.map +1 -0
- package/js/x-modules/empathize/components/empathize.vue2.js +1 -0
- package/js/x-modules/empathize/components/empathize.vue2.js.map +1 -1
- package/js/x-modules/extra-params/components/extra-params.vue.js +1 -1
- package/js/x-modules/extra-params/components/extra-params.vue.js.map +1 -1
- package/js/x-modules/queries-preview/components/query-preview-button.vue2.js +1 -0
- package/js/x-modules/queries-preview/components/query-preview-button.vue2.js.map +1 -1
- package/js/x-modules/queries-preview/components/query-preview.vue2.js +1 -0
- package/js/x-modules/queries-preview/components/query-preview.vue2.js.map +1 -1
- package/js/x-modules/related-prompts/components/related-prompt.vue.js +16 -43
- package/js/x-modules/related-prompts/components/related-prompt.vue.js.map +1 -1
- package/js/x-modules/related-prompts/components/related-prompt.vue2.js +5 -36
- package/js/x-modules/related-prompts/components/related-prompt.vue2.js.map +1 -1
- package/js/x-modules/related-prompts/components/related-prompt.vue3.js +7 -0
- package/js/x-modules/related-prompts/components/related-prompt.vue3.js.map +1 -0
- package/js/x-modules/related-prompts/components/related-prompts-tag-list.vue.js +62 -68
- package/js/x-modules/related-prompts/components/related-prompts-tag-list.vue.js.map +1 -1
- package/js/x-modules/related-prompts/components/related-prompts-tag-list.vue2.js +174 -21
- package/js/x-modules/related-prompts/components/related-prompts-tag-list.vue2.js.map +1 -1
- package/js/x-modules/related-prompts/components/related-prompts-tag-list.vue3.js +1 -1
- package/js/x-modules/scroll/components/scroll-to-top.vue2.js +1 -0
- package/js/x-modules/scroll/components/scroll-to-top.vue2.js.map +1 -1
- package/package.json +2 -2
- package/report/x-components.api.json +342 -54
- package/report/x-components.api.md +48 -31
- package/types/directives/index.d.ts +1 -0
- package/types/directives/index.d.ts.map +1 -1
- package/types/directives/typing.d.ts +30 -0
- package/types/directives/typing.d.ts.map +1 -0
- package/types/views/adapter.d.ts.map +1 -1
- package/types/x-modules/related-prompts/components/related-prompt.vue.d.ts +4 -27
- package/types/x-modules/related-prompts/components/related-prompt.vue.d.ts.map +1 -1
- package/types/x-modules/related-prompts/components/related-prompts-tag-list.vue.d.ts +86 -6
- package/types/x-modules/related-prompts/components/related-prompts-tag-list.vue.d.ts.map +1 -1
|
@@ -2,50 +2,27 @@ import { PropType } from 'vue';
|
|
|
2
2
|
import { RelatedPrompt } from '@empathyco/x-types';
|
|
3
3
|
/**
|
|
4
4
|
* This component shows a suggested related prompt.
|
|
5
|
-
*
|
|
6
|
-
* It provides a slot to customize the related prompt button information.
|
|
7
|
-
*
|
|
8
|
-
* @public
|
|
9
5
|
*/
|
|
10
6
|
declare const _default: import("vue").DefineComponent<{
|
|
11
7
|
relatedPrompt: {
|
|
12
8
|
type: PropType<RelatedPrompt>;
|
|
13
9
|
required: true;
|
|
14
10
|
};
|
|
15
|
-
|
|
11
|
+
selected: {
|
|
16
12
|
type: BooleanConstructor;
|
|
17
13
|
default: boolean;
|
|
18
14
|
};
|
|
19
|
-
|
|
20
|
-
type: BooleanConstructor;
|
|
21
|
-
default: boolean;
|
|
22
|
-
};
|
|
23
|
-
index: {
|
|
24
|
-
type: NumberConstructor;
|
|
25
|
-
required: true;
|
|
26
|
-
};
|
|
27
|
-
}, {
|
|
28
|
-
toggleSuggestion: (index: number) => void;
|
|
29
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
15
|
+
}, unknown, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
30
16
|
relatedPrompt: {
|
|
31
17
|
type: PropType<RelatedPrompt>;
|
|
32
18
|
required: true;
|
|
33
19
|
};
|
|
34
|
-
|
|
20
|
+
selected: {
|
|
35
21
|
type: BooleanConstructor;
|
|
36
22
|
default: boolean;
|
|
37
23
|
};
|
|
38
|
-
isSelected: {
|
|
39
|
-
type: BooleanConstructor;
|
|
40
|
-
default: boolean;
|
|
41
|
-
};
|
|
42
|
-
index: {
|
|
43
|
-
type: NumberConstructor;
|
|
44
|
-
required: true;
|
|
45
|
-
};
|
|
46
24
|
}>>, {
|
|
47
|
-
|
|
48
|
-
isSelected: boolean;
|
|
25
|
+
selected: boolean;
|
|
49
26
|
}, {}>;
|
|
50
27
|
export default _default;
|
|
51
28
|
//# sourceMappingURL=related-prompt.vue?vue&type=script&lang.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"related-prompt.vue?vue&type=script&lang.d.ts","sourceRoot":"","sources":["../../../../../src/x-modules/related-prompts/components/related-prompt.vue?vue&type=script&lang.ts"],"names":[],"mappings":"AACE,OAAO,EAAmB,QAAQ,EAAE,MAAM,KAAK,CAAC;AAChD,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;
|
|
1
|
+
{"version":3,"file":"related-prompt.vue?vue&type=script&lang.d.ts","sourceRoot":"","sources":["../../../../../src/x-modules/related-prompts/components/related-prompt.vue?vue&type=script&lang.ts"],"names":[],"mappings":"AACE,OAAO,EAAmB,QAAQ,EAAE,MAAM,KAAK,CAAC;AAChD,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAKnD;;GAEG;;;;;;;;;;;;;;;;;;;;;;AACH,wBAmBG"}
|
|
@@ -1,14 +1,94 @@
|
|
|
1
|
+
import { PropType } from 'vue';
|
|
2
|
+
/**
|
|
3
|
+
* This component shows the list of `RelatedPrompts` components.
|
|
4
|
+
*
|
|
5
|
+
* If the default slot is reimplemented in the consumer, `onSelect` function will be
|
|
6
|
+
* necessary to handle the selection of the related prompt and to trigger the stagger-fade-slide animation.
|
|
7
|
+
*
|
|
8
|
+
* @public
|
|
9
|
+
*/
|
|
1
10
|
declare const _default: import("vue").DefineComponent<{
|
|
11
|
+
/**
|
|
12
|
+
* The CSS class for the left and right button of the sliding panel.
|
|
13
|
+
*
|
|
14
|
+
* @public
|
|
15
|
+
*/
|
|
2
16
|
buttonClass: StringConstructor;
|
|
17
|
+
/**
|
|
18
|
+
* The CSS class for all the related prompt wrapper elements.
|
|
19
|
+
*
|
|
20
|
+
* @public
|
|
21
|
+
*/
|
|
22
|
+
tagClass: StringConstructor;
|
|
23
|
+
/**
|
|
24
|
+
* Array of colors to apply to the related prompts. It will be applied to tag
|
|
25
|
+
* elements cyclically according to their index in the nex way: `tagColors[index % tagColors.length]`.
|
|
26
|
+
*
|
|
27
|
+
* @public
|
|
28
|
+
*/
|
|
29
|
+
tagColors: PropType<string[]>;
|
|
30
|
+
/**
|
|
31
|
+
* The duration of the total animation in milliseconds.
|
|
32
|
+
*
|
|
33
|
+
* @public
|
|
34
|
+
*/
|
|
35
|
+
animationDurationInMs: {
|
|
36
|
+
type: NumberConstructor;
|
|
37
|
+
default: number;
|
|
38
|
+
};
|
|
3
39
|
}, {
|
|
4
|
-
arePromptsVisible: import("vue").Ref<boolean>;
|
|
5
|
-
hidePrompt: (index: number) => boolean;
|
|
6
40
|
isSelected: (index: number) => boolean;
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
41
|
+
onSelect: (selectedIndex: number) => void;
|
|
42
|
+
onBeforeEnter: (el: Element) => void;
|
|
43
|
+
onEnter: (el: Element, done: () => void) => void;
|
|
44
|
+
onLeave: (el: Element, done: () => void) => void;
|
|
45
|
+
selectedPromptIndex: import("vue").ComputedRef<any>;
|
|
46
|
+
visibleRelatedPrompts: import("vue").ComputedRef<{
|
|
47
|
+
index: number;
|
|
48
|
+
nextQueries: string[];
|
|
49
|
+
suggestionText: string;
|
|
50
|
+
type: string;
|
|
51
|
+
modelName: "RelatedPrompt";
|
|
52
|
+
}[]>;
|
|
53
|
+
listItems: import("vue").Ref<HTMLElement[]>;
|
|
54
|
+
isAnimating: import("vue").Ref<boolean>;
|
|
55
|
+
x: import("../../../composables").UseAliasAPI & {
|
|
56
|
+
on: <Event_1 extends keyof import("../../..").XEventsTypes, Metadata extends boolean>(event: Event_1, withMetadata: Metadata) => {
|
|
57
|
+
subscribe: (callback: (payload: Metadata extends true ? import("@empathyco/x-bus").SubjectPayload<import("@empathyco/x-bus").EventPayload<import("../../..").XEventsTypes, Event_1>, import("../../..").WireMetadata> : import("@empathyco/x-bus").EventPayload<import("../../..").XEventsTypes, Event_1>) => void) => void;
|
|
58
|
+
};
|
|
59
|
+
emit: <Event_2 extends keyof import("../../..").XEventsTypes>(event: Event_2, payload?: import("../../..").XEventPayload<Event_2> | undefined, metadata?: Omit<import("../../..").WireMetadata, "moduleName">) => Promise<import("@empathyco/x-bus").EmittedData<import("../../..").XEventsTypes, Event_2, import("../../..").WireMetadata>>;
|
|
60
|
+
};
|
|
10
61
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
62
|
+
/**
|
|
63
|
+
* The CSS class for the left and right button of the sliding panel.
|
|
64
|
+
*
|
|
65
|
+
* @public
|
|
66
|
+
*/
|
|
11
67
|
buttonClass: StringConstructor;
|
|
12
|
-
|
|
68
|
+
/**
|
|
69
|
+
* The CSS class for all the related prompt wrapper elements.
|
|
70
|
+
*
|
|
71
|
+
* @public
|
|
72
|
+
*/
|
|
73
|
+
tagClass: StringConstructor;
|
|
74
|
+
/**
|
|
75
|
+
* Array of colors to apply to the related prompts. It will be applied to tag
|
|
76
|
+
* elements cyclically according to their index in the nex way: `tagColors[index % tagColors.length]`.
|
|
77
|
+
*
|
|
78
|
+
* @public
|
|
79
|
+
*/
|
|
80
|
+
tagColors: PropType<string[]>;
|
|
81
|
+
/**
|
|
82
|
+
* The duration of the total animation in milliseconds.
|
|
83
|
+
*
|
|
84
|
+
* @public
|
|
85
|
+
*/
|
|
86
|
+
animationDurationInMs: {
|
|
87
|
+
type: NumberConstructor;
|
|
88
|
+
default: number;
|
|
89
|
+
};
|
|
90
|
+
}>>, {
|
|
91
|
+
animationDurationInMs: number;
|
|
92
|
+
}, {}>;
|
|
13
93
|
export default _default;
|
|
14
94
|
//# sourceMappingURL=related-prompts-tag-list.vue?vue&type=script&lang.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"related-prompts-tag-list.vue?vue&type=script&lang.d.ts","sourceRoot":"","sources":["../../../../../src/x-modules/related-prompts/components/related-prompts-tag-list.vue?vue&type=script&lang.ts"],"names":[],"mappings":";;;;
|
|
1
|
+
{"version":3,"file":"related-prompts-tag-list.vue?vue&type=script&lang.d.ts","sourceRoot":"","sources":["../../../../../src/x-modules/related-prompts/components/related-prompts-tag-list.vue?vue&type=script&lang.ts"],"names":[],"mappings":"AAEE,OAAO,EAA6B,QAAQ,EAAc,MAAM,KAAK,CAAC;AAMtE;;;;;;;GAOG;;IAMC;;;;OAIG;;IAEH;;;;OAIG;;IAEH;;;;;OAKG;;IAEH;;;;OAIG;;;;;;wBAwLwB,MAAM,KAAG,OAAO;8BA5GV,MAAM,KAAG,IAAI;wBA8DnB,OAAO;kBAeb,OAAO,QAAQ,MAAM,IAAI;kBAkBzB,OAAO,QAAQ,MAAM,IAAI;;;;;;;;;;;;;;;;;;IAlM9C;;;;OAIG;;IAEH;;;;OAIG;;IAEH;;;;;OAKG;;IAEH;;;;OAIG;;;;;;;;AA5BP,wBAuOG"}
|