@empathyco/x-components 6.0.0-alpha.26 → 6.0.0-alpha.27

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.
Files changed (44) hide show
  1. package/CHANGELOG.md +9 -0
  2. package/core/index.js.map +1 -1
  3. package/design-system/deprecated-full-theme.css +2068 -2067
  4. package/docs/API-reference/api/x-components.md +2 -1
  5. package/docs/API-reference/api/x-components.relatedprompt.md +27 -11
  6. package/docs/API-reference/api/x-components.relatedpromptsmutations.md +1 -0
  7. package/docs/API-reference/api/x-components.relatedpromptsmutations.resetselectedprompt.md +17 -0
  8. package/docs/API-reference/api/x-components.relatedpromptsmutations.setrelatedpromptsproducts.md +1 -1
  9. package/docs/API-reference/api/x-components.relatedpromptstaglist.md +22 -0
  10. package/docs/API-reference/components/related-prompts/x-components.related-prompt.md +11 -14
  11. package/docs/API-reference/components/related-prompts/x-components.related-prompts-tag-list.md +23 -0
  12. package/js/index.js +1 -0
  13. package/js/index.js.map +1 -1
  14. package/js/x-modules/related-prompts/components/related-prompt.vue.js +43 -81
  15. package/js/x-modules/related-prompts/components/related-prompt.vue.js.map +1 -1
  16. package/js/x-modules/related-prompts/components/related-prompt.vue2.js +34 -26
  17. package/js/x-modules/related-prompts/components/related-prompt.vue2.js.map +1 -1
  18. package/js/x-modules/related-prompts/components/related-prompts-tag-list.vue.js +80 -0
  19. package/js/x-modules/related-prompts/components/related-prompts-tag-list.vue.js.map +1 -0
  20. package/js/x-modules/related-prompts/components/related-prompts-tag-list.vue2.js +55 -0
  21. package/js/x-modules/related-prompts/components/related-prompts-tag-list.vue2.js.map +1 -0
  22. package/js/x-modules/related-prompts/components/related-prompts-tag-list.vue3.js +7 -0
  23. package/js/x-modules/related-prompts/components/related-prompts-tag-list.vue3.js.map +1 -0
  24. package/js/x-modules/related-prompts/store/module.js +9 -1
  25. package/js/x-modules/related-prompts/store/module.js.map +1 -1
  26. package/js/x-modules/related-prompts/wiring.js +10 -0
  27. package/js/x-modules/related-prompts/wiring.js.map +1 -1
  28. package/package.json +2 -2
  29. package/related-prompts/index.js +1 -0
  30. package/report/x-components.api.json +209 -14
  31. package/report/x-components.api.md +47 -10
  32. package/types/x-modules/related-prompts/components/index.d.ts +1 -0
  33. package/types/x-modules/related-prompts/components/index.d.ts.map +1 -1
  34. package/types/x-modules/related-prompts/components/related-prompt.vue.d.ts +27 -13
  35. package/types/x-modules/related-prompts/components/related-prompt.vue.d.ts.map +1 -1
  36. package/types/x-modules/related-prompts/components/related-prompts-tag-list.vue.d.ts +14 -0
  37. package/types/x-modules/related-prompts/components/related-prompts-tag-list.vue.d.ts.map +1 -0
  38. package/types/x-modules/related-prompts/store/module.d.ts.map +1 -1
  39. package/types/x-modules/related-prompts/store/types.d.ts +5 -1
  40. package/types/x-modules/related-prompts/store/types.d.ts.map +1 -1
  41. package/types/x-modules/related-prompts/wiring.d.ts +6 -0
  42. package/types/x-modules/related-prompts/wiring.d.ts.map +1 -1
  43. package/js/x-modules/related-prompts/components/related-prompt.vue3.js +0 -7
  44. package/js/x-modules/related-prompts/components/related-prompt.vue3.js.map +0 -1
@@ -1,11 +1,9 @@
1
1
  import { PropType } from 'vue';
2
2
  import { RelatedPrompt } from '@empathyco/x-types';
3
3
  /**
4
- * This component shows a suggested related prompt with the associated next queries.
5
- * It allows to select one of the next query and show it.
4
+ * This component shows a suggested related prompt.
6
5
  *
7
- * It provide slots to customize the header, the next queries list,
8
- * the individual next query inside the list and the selected query.
6
+ * It provides a slot to customize the related prompt button information.
9
7
  *
10
8
  * @public
11
9
  */
@@ -14,24 +12,40 @@ declare const _default: import("vue").DefineComponent<{
14
12
  type: PropType<RelatedPrompt>;
15
13
  required: true;
16
14
  };
17
- nextQueryButtonClass: {
18
- type: StringConstructor;
19
- default: string;
15
+ isPromptVisible: {
16
+ type: BooleanConstructor;
17
+ default: boolean;
18
+ };
19
+ isSelected: {
20
+ type: BooleanConstructor;
21
+ default: boolean;
22
+ };
23
+ index: {
24
+ type: NumberConstructor;
25
+ required: true;
20
26
  };
21
27
  }, {
22
- selectedNextQuery: import("vue").Ref<string>;
23
- onClick: (nextQuery: string) => void;
28
+ toggleSuggestion: (index: number) => void;
24
29
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
25
30
  relatedPrompt: {
26
31
  type: PropType<RelatedPrompt>;
27
32
  required: true;
28
33
  };
29
- nextQueryButtonClass: {
30
- type: StringConstructor;
31
- default: string;
34
+ isPromptVisible: {
35
+ type: BooleanConstructor;
36
+ default: boolean;
37
+ };
38
+ isSelected: {
39
+ type: BooleanConstructor;
40
+ default: boolean;
41
+ };
42
+ index: {
43
+ type: NumberConstructor;
44
+ required: true;
32
45
  };
33
46
  }>>, {
34
- nextQueryButtonClass: string;
47
+ isPromptVisible: boolean;
48
+ isSelected: boolean;
35
49
  }, {}>;
36
50
  export default _default;
37
51
  //# 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,EAAO,MAAM,KAAK,CAAC;AACrD,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAMnD;;;;;;;;GAQG;;;;;;;;;;;;yBA2B6B,MAAM,KAAG,IAAI;;;;;;;;;;;;;AA1B7C,wBAoCG"}
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;AAMnD;;;;;;GAMG;;;;;;;;;;;;;;;;;;;8BA6BkC,MAAM,KAAG,IAAI;;;;;;;;;;;;;;;;;;;;;;AA5BlD,wBAoCG"}
@@ -0,0 +1,14 @@
1
+ declare const _default: import("vue").DefineComponent<{
2
+ buttonClass: StringConstructor;
3
+ }, {
4
+ arePromptsVisible: import("vue").Ref<boolean>;
5
+ hidePrompt: (index: number) => boolean;
6
+ isSelected: (index: number) => boolean;
7
+ relatedPrompts: import("vue").ComputedRef<any>;
8
+ selectedPrompt: import("vue").ComputedRef<any>;
9
+ slidingPanelContent: import("vue").Ref<Element | undefined>;
10
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
11
+ buttonClass: StringConstructor;
12
+ }>>, {}, {}>;
13
+ export default _default;
14
+ //# sourceMappingURL=related-prompts-tag-list.vue?vue&type=script&lang.d.ts.map
@@ -0,0 +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":";;;;wBAqCiC,MAAM,KAAG,OAAO;wBAFhB,MAAM,KAAG,OAAO;;;;;;;AA5B/C,wBA0CG"}
@@ -1 +1 @@
1
- {"version":3,"file":"module.d.ts","sourceRoot":"","sources":["../../../../../src/x-modules/related-prompts/store/module.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,0BAA0B,EAAE,MAAM,SAAS,CAAC;AAQrD;;;;GAIG;AACH,eAAO,MAAM,0BAA0B,EAAE,0BAsCxC,CAAC"}
1
+ {"version":3,"file":"module.d.ts","sourceRoot":"","sources":["../../../../../src/x-modules/related-prompts/store/module.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,0BAA0B,EAAE,MAAM,SAAS,CAAC;AAQrD;;;;GAIG;AACH,eAAO,MAAM,0BAA0B,EAAE,0BA6CxC,CAAC"}
@@ -45,7 +45,7 @@ export interface RelatedPromptsMutations extends StatusMutations, QueryMutations
45
45
  /**
46
46
  * Sets the related prompts of the module.
47
47
  *
48
- * @param relatedPrompts - The new related prompts to save to the state.
48
+ * @param products - The new related prompts to save to the state.
49
49
  */
50
50
  setRelatedPromptsProducts(products: RelatedPrompt[]): void;
51
51
  /**
@@ -64,6 +64,10 @@ export interface RelatedPromptsMutations extends StatusMutations, QueryMutations
64
64
  * Resets the related prompts state.
65
65
  */
66
66
  resetRelatedPromptsState(): void;
67
+ /**
68
+ * Resets the selected related prompt number.
69
+ */
70
+ resetSelectedPrompt(): void;
67
71
  }
68
72
  /**
69
73
  * Related prompts module actions.
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/x-modules/related-prompts/store/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,qBAAqB,EAAE,MAAM,oBAAoB,CAAC;AAC1E,OAAO,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAChD,OAAO,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,kCAAkC,CAAC;AAC9E,OAAO,EAAE,eAAe,EAAE,WAAW,EAAE,MAAM,yCAAyC,CAAC;AACvF,OAAO,EAAE,cAAc,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAE9D;;;;GAIG;AACH,MAAM,WAAW,mBAAoB,SAAQ,WAAW,EAAE,UAAU;IAClE,qFAAqF;IACrF,cAAc,EAAE,aAAa,EAAE,CAAC;IAChC,gDAAgD;IAChD,cAAc,EAAE,MAAM,CAAC;IACvB,4CAA4C;IAC5C,aAAa,EAAE,MAAM,CAAC;IACtB,8CAA8C;IAC9C,MAAM,EAAE,UAAU,CAAC,OAAO,CAAC,CAAC;CAC7B;AAED;;;;GAIG;AACH,MAAM,WAAW,qBAAqB;IACpC;;;OAGG;IACH,OAAO,EAAE,qBAAqB,GAAG,IAAI,CAAC;CACvC;AAED;;;;GAIG;AACH,MAAM,WAAW,uBAAwB,SAAQ,eAAe,EAAE,cAAc;IAC9E;;;;OAIG;IACH,SAAS,CAAC,MAAM,EAAE,UAAU,CAAC,OAAO,CAAC,GAAG,IAAI,CAAC;IAC7C;;;;OAIG;IACH,yBAAyB,CAAC,QAAQ,EAAE,aAAa,EAAE,GAAG,IAAI,CAAC;IAC3D;;;;OAIG;IACH,iBAAiB,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IACvC;;;;OAIG;IACH,gBAAgB,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IACtC;;OAEG;IACH,wBAAwB,IAAI,IAAI,CAAC;CAClC;AAED;;;;GAIG;AACH,MAAM,WAAW,qBAAqB;IACpC;;;;OAIG;IACH,mBAAmB,CAAC,OAAO,EAAE,qBAAqB,GAAG,IAAI,GAAG,aAAa,EAAE,GAAG,IAAI,CAAC;IACnF;;;;OAIG;IACH,0BAA0B,CAAC,OAAO,EAAE,qBAAqB,GAAG,IAAI,GAAG,IAAI,CAAC;IACxE;;;OAGG;IACH,gCAAgC,IAAI,IAAI,CAAC;CAC1C;AAED;;;;GAIG;AACH,MAAM,MAAM,0BAA0B,GAAG,YAAY,CACnD,mBAAmB,EACnB,qBAAqB,EACrB,uBAAuB,EACvB,qBAAqB,CACtB,CAAC;AAEF;;;;GAIG;AACH,MAAM,MAAM,2BAA2B,GAAG,cAAc,CACtD,mBAAmB,EACnB,qBAAqB,EACrB,uBAAuB,EACvB,qBAAqB,CACtB,CAAC"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/x-modules/related-prompts/store/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,qBAAqB,EAAE,MAAM,oBAAoB,CAAC;AAC1E,OAAO,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAChD,OAAO,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,kCAAkC,CAAC;AAC9E,OAAO,EAAE,eAAe,EAAE,WAAW,EAA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IG;AACH,MAAM,MAAM,0BAA0B,GAAG,YAAY,CACnD,mBAAmB,EACnB,qBAAqB,EACrB,uBAAuB,EACvB,qBAAqB,CACtB,CAAC;AAEF;;;;GAIG;AACH,MAAM,MAAM,2BAA2B,GAAG,cAAc,CACtD,mBAAmB,EACnB,qBAAqB,EACrB,uBAAuB,EACvB,qBAAqB,CACtB,CAAC"}
@@ -27,5 +27,11 @@ export declare const relatedPromptsWiring: {
27
27
  UserSelectedARelatedPromptQuery: {
28
28
  setSelectedQueryWire: import("../..").Wire<number>;
29
29
  };
30
+ UserAcceptedAQueryPreview: {
31
+ resetSelectedPromptWire: import("../..").AnyWire;
32
+ };
33
+ SearchRequestChanged: {
34
+ resetSelectedPromptWire: import("../..").AnyWire;
35
+ };
30
36
  };
31
37
  //# sourceMappingURL=wiring.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"wiring.d.ts","sourceRoot":"","sources":["../../../../src/x-modules/related-prompts/wiring.ts"],"names":[],"mappings":"AAmFA;;;;GAIG;AACH,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;CAwB/B,CAAC"}
1
+ {"version":3,"file":"wiring.d.ts","sourceRoot":"","sources":["../../../../src/x-modules/related-prompts/wiring.ts"],"names":[],"mappings":"AAwFA;;;;GAIG;AACH,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA8B/B,CAAC"}
@@ -1,7 +0,0 @@
1
- import injectCss from '../../../../tools/inject-css.js';
2
-
3
- var css = ".x-related-prompt__info[data-v-44e318df]{display:flex;flex-direction:column}.x-related-prompt__sliding-panel-content[data-v-44e318df]{display:flex;gap:8px}";
4
- injectCss(css);
5
-
6
- export { css, css as default };
7
- //# sourceMappingURL=related-prompt.vue3.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"related-prompt.vue3.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;"}