@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.
Files changed (51) hide show
  1. package/CHANGELOG.md +23 -0
  2. package/design-system/deprecated-full-theme.css +717 -717
  3. package/docs/API-reference/api/x-components.md +3 -2
  4. package/docs/API-reference/api/x-components.relatedprompt.md +4 -25
  5. package/docs/API-reference/api/x-components.relatedpromptstaglist.md +39 -6
  6. package/docs/API-reference/api/x-components.typingoptions.md +22 -0
  7. package/docs/API-reference/api/x-components.typingoptions.speed.md +13 -0
  8. package/docs/API-reference/api/x-components.typingoptions.targetattr.md +18 -0
  9. package/docs/API-reference/api/x-components.typingoptions.text.md +13 -0
  10. package/docs/API-reference/components/related-prompts/x-components.related-prompt.md +4 -14
  11. package/docs/API-reference/components/related-prompts/x-components.related-prompts-tag-list.md +16 -10
  12. package/js/components/page-loader-button.vue.js +7 -6
  13. package/js/components/page-loader-button.vue.js.map +1 -1
  14. package/js/components/page-loader-button.vue2.js.map +1 -1
  15. package/js/components/page-loader-button.vue3.js +7 -0
  16. package/js/components/page-loader-button.vue3.js.map +1 -0
  17. package/js/directives/typing.js +52 -0
  18. package/js/directives/typing.js.map +1 -0
  19. package/js/x-modules/empathize/components/empathize.vue2.js +1 -0
  20. package/js/x-modules/empathize/components/empathize.vue2.js.map +1 -1
  21. package/js/x-modules/extra-params/components/extra-params.vue.js +1 -1
  22. package/js/x-modules/extra-params/components/extra-params.vue.js.map +1 -1
  23. package/js/x-modules/queries-preview/components/query-preview-button.vue2.js +1 -0
  24. package/js/x-modules/queries-preview/components/query-preview-button.vue2.js.map +1 -1
  25. package/js/x-modules/queries-preview/components/query-preview.vue2.js +1 -0
  26. package/js/x-modules/queries-preview/components/query-preview.vue2.js.map +1 -1
  27. package/js/x-modules/related-prompts/components/related-prompt.vue.js +16 -43
  28. package/js/x-modules/related-prompts/components/related-prompt.vue.js.map +1 -1
  29. package/js/x-modules/related-prompts/components/related-prompt.vue2.js +5 -36
  30. package/js/x-modules/related-prompts/components/related-prompt.vue2.js.map +1 -1
  31. package/js/x-modules/related-prompts/components/related-prompt.vue3.js +7 -0
  32. package/js/x-modules/related-prompts/components/related-prompt.vue3.js.map +1 -0
  33. package/js/x-modules/related-prompts/components/related-prompts-tag-list.vue.js +62 -68
  34. package/js/x-modules/related-prompts/components/related-prompts-tag-list.vue.js.map +1 -1
  35. package/js/x-modules/related-prompts/components/related-prompts-tag-list.vue2.js +174 -21
  36. package/js/x-modules/related-prompts/components/related-prompts-tag-list.vue2.js.map +1 -1
  37. package/js/x-modules/related-prompts/components/related-prompts-tag-list.vue3.js +1 -1
  38. package/js/x-modules/scroll/components/scroll-to-top.vue2.js +1 -0
  39. package/js/x-modules/scroll/components/scroll-to-top.vue2.js.map +1 -1
  40. package/package.json +2 -2
  41. package/report/x-components.api.json +342 -54
  42. package/report/x-components.api.md +48 -31
  43. package/types/directives/index.d.ts +1 -0
  44. package/types/directives/index.d.ts.map +1 -1
  45. package/types/directives/typing.d.ts +30 -0
  46. package/types/directives/typing.d.ts.map +1 -0
  47. package/types/views/adapter.d.ts.map +1 -1
  48. package/types/x-modules/related-prompts/components/related-prompt.vue.d.ts +4 -27
  49. package/types/x-modules/related-prompts/components/related-prompt.vue.d.ts.map +1 -1
  50. package/types/x-modules/related-prompts/components/related-prompts-tag-list.vue.d.ts +86 -6
  51. package/types/x-modules/related-prompts/components/related-prompts-tag-list.vue.d.ts.map +1 -1
@@ -51850,7 +51850,7 @@
51850
51850
  {
51851
51851
  "kind": "Variable",
51852
51852
  "canonicalReference": "@empathyco/x-components!RelatedPrompt:var",
51853
- "docComment": "/**\n * This component shows a suggested related prompt.\n *\n * It provides a slot to customize the related prompt button information.\n *\n * @public\n */\n",
51853
+ "docComment": "/**\n * This component shows a suggested related prompt.\n */\n",
51854
51854
  "excerptTokens": [
51855
51855
  {
51856
51856
  "kind": "Content",
@@ -51885,7 +51885,7 @@
51885
51885
  },
51886
51886
  {
51887
51887
  "kind": "Content",
51888
- "text": ">;\n required: true;\n };\n isPromptVisible: {\n type: "
51888
+ "text": ">;\n required: true;\n };\n selected: {\n type: "
51889
51889
  },
51890
51890
  {
51891
51891
  "kind": "Reference",
@@ -51894,25 +51894,7 @@
51894
51894
  },
51895
51895
  {
51896
51896
  "kind": "Content",
51897
- "text": ";\n default: boolean;\n };\n isSelected: {\n type: "
51898
- },
51899
- {
51900
- "kind": "Reference",
51901
- "text": "BooleanConstructor",
51902
- "canonicalReference": "!BooleanConstructor:interface"
51903
- },
51904
- {
51905
- "kind": "Content",
51906
- "text": ";\n default: boolean;\n };\n index: {\n type: "
51907
- },
51908
- {
51909
- "kind": "Reference",
51910
- "text": "NumberConstructor",
51911
- "canonicalReference": "!NumberConstructor:interface"
51912
- },
51913
- {
51914
- "kind": "Content",
51915
- "text": ";\n required: true;\n };\n}, {\n toggleSuggestion: (index: number) => void;\n}, unknown, {}, {}, import(\"vue\")."
51897
+ "text": ";\n default: boolean;\n };\n}, unknown, unknown, {}, {}, import(\"vue\")."
51916
51898
  },
51917
51899
  {
51918
51900
  "kind": "Reference",
@@ -51975,16 +51957,7 @@
51975
51957
  },
51976
51958
  {
51977
51959
  "kind": "Content",
51978
- "text": ">;\n required: true;\n };\n isPromptVisible: {\n type: "
51979
- },
51980
- {
51981
- "kind": "Reference",
51982
- "text": "BooleanConstructor",
51983
- "canonicalReference": "!BooleanConstructor:interface"
51984
- },
51985
- {
51986
- "kind": "Content",
51987
- "text": ";\n default: boolean;\n };\n isSelected: {\n type: "
51960
+ "text": ">;\n required: true;\n };\n selected: {\n type: "
51988
51961
  },
51989
51962
  {
51990
51963
  "kind": "Reference",
@@ -51993,16 +51966,7 @@
51993
51966
  },
51994
51967
  {
51995
51968
  "kind": "Content",
51996
- "text": ";\n default: boolean;\n };\n index: {\n type: "
51997
- },
51998
- {
51999
- "kind": "Reference",
52000
- "text": "NumberConstructor",
52001
- "canonicalReference": "!NumberConstructor:interface"
52002
- },
52003
- {
52004
- "kind": "Content",
52005
- "text": ";\n required: true;\n };\n}>>, {\n isPromptVisible: boolean;\n isSelected: boolean;\n}, {}>"
51969
+ "text": ";\n default: boolean;\n };\n}>>, {\n selected: boolean;\n}, {}>"
52006
51970
  }
52007
51971
  ],
52008
51972
  "fileUrlPath": "dist/types/x-modules/related-prompts/components/related-prompt.vue.d.ts",
@@ -52011,7 +51975,7 @@
52011
51975
  "name": "RelatedPrompt",
52012
51976
  "variableTypeTokenRange": {
52013
51977
  "startIndex": 1,
52014
- "endIndex": 34
51978
+ "endIndex": 26
52015
51979
  }
52016
51980
  },
52017
51981
  {
@@ -53033,7 +52997,7 @@
53033
52997
  {
53034
52998
  "kind": "Variable",
53035
52999
  "canonicalReference": "@empathyco/x-components!RelatedPromptsTagList:var",
53036
- "docComment": "",
53000
+ "docComment": "/**\n * This component shows the list of `RelatedPrompts` components.\n *\n * If the default slot is reimplemented in the consumer, `onSelect` function will be necessary to handle the selection of the related prompt and to trigger the stagger-fade-slide animation.\n *\n * @public\n */\n",
53037
53001
  "excerptTokens": [
53038
53002
  {
53039
53003
  "kind": "Content",
@@ -53059,16 +53023,61 @@
53059
53023
  },
53060
53024
  {
53061
53025
  "kind": "Content",
53062
- "text": ";\n}, {\n arePromptsVisible: import(\"vue\")."
53026
+ "text": ";\n tagClass: "
53063
53027
  },
53064
53028
  {
53065
53029
  "kind": "Reference",
53066
- "text": "Ref",
53067
- "canonicalReference": "@vue/reactivity!Ref:interface"
53030
+ "text": "StringConstructor",
53031
+ "canonicalReference": "!StringConstructor:interface"
53032
+ },
53033
+ {
53034
+ "kind": "Content",
53035
+ "text": ";\n tagColors: "
53036
+ },
53037
+ {
53038
+ "kind": "Reference",
53039
+ "text": "PropType",
53040
+ "canonicalReference": "@vue/runtime-core!PropType:type"
53041
+ },
53042
+ {
53043
+ "kind": "Content",
53044
+ "text": "<string[]>;\n animationDurationInMs: {\n type: "
53045
+ },
53046
+ {
53047
+ "kind": "Reference",
53048
+ "text": "NumberConstructor",
53049
+ "canonicalReference": "!NumberConstructor:interface"
53050
+ },
53051
+ {
53052
+ "kind": "Content",
53053
+ "text": ";\n default: number;\n };\n}, {\n isSelected: (index: number) => boolean;\n onSelect: (selectedIndex: number) => void;\n onBeforeEnter: (el: "
53054
+ },
53055
+ {
53056
+ "kind": "Reference",
53057
+ "text": "Element",
53058
+ "canonicalReference": "!Element:interface"
53068
53059
  },
53069
53060
  {
53070
53061
  "kind": "Content",
53071
- "text": "<boolean>;\n hidePrompt: (index: number) => boolean;\n isSelected: (index: number) => boolean;\n relatedPrompts: import(\"vue\")."
53062
+ "text": ") => void;\n onEnter: (el: "
53063
+ },
53064
+ {
53065
+ "kind": "Reference",
53066
+ "text": "Element",
53067
+ "canonicalReference": "!Element:interface"
53068
+ },
53069
+ {
53070
+ "kind": "Content",
53071
+ "text": ", done: () => void) => void;\n onLeave: (el: "
53072
+ },
53073
+ {
53074
+ "kind": "Reference",
53075
+ "text": "Element",
53076
+ "canonicalReference": "!Element:interface"
53077
+ },
53078
+ {
53079
+ "kind": "Content",
53080
+ "text": ", done: () => void) => void;\n selectedPromptIndex: import(\"vue\")."
53072
53081
  },
53073
53082
  {
53074
53083
  "kind": "Reference",
@@ -53077,7 +53086,7 @@
53077
53086
  },
53078
53087
  {
53079
53088
  "kind": "Content",
53080
- "text": "<any>;\n selectedPrompt: import(\"vue\")."
53089
+ "text": "<any>;\n visibleRelatedPrompts: import(\"vue\")."
53081
53090
  },
53082
53091
  {
53083
53092
  "kind": "Reference",
@@ -53086,7 +53095,7 @@
53086
53095
  },
53087
53096
  {
53088
53097
  "kind": "Content",
53089
- "text": "<any>;\n slidingPanelContent: import(\"vue\")."
53098
+ "text": "<{\n index: number;\n nextQueries: string[];\n suggestionText: string;\n type: string;\n modelName: \"RelatedPrompt\";\n }[]>;\n listItems: import(\"vue\")."
53090
53099
  },
53091
53100
  {
53092
53101
  "kind": "Reference",
@@ -53099,12 +53108,165 @@
53099
53108
  },
53100
53109
  {
53101
53110
  "kind": "Reference",
53102
- "text": "Element",
53103
- "canonicalReference": "!Element:interface"
53111
+ "text": "HTMLElement",
53112
+ "canonicalReference": "!HTMLElement:interface"
53104
53113
  },
53105
53114
  {
53106
53115
  "kind": "Content",
53107
- "text": " | undefined>;\n}, unknown, {}, {}, import(\"vue\")."
53116
+ "text": "[]>;\n isAnimating: import(\"vue\")."
53117
+ },
53118
+ {
53119
+ "kind": "Reference",
53120
+ "text": "Ref",
53121
+ "canonicalReference": "@vue/reactivity!Ref:interface"
53122
+ },
53123
+ {
53124
+ "kind": "Content",
53125
+ "text": "<boolean>;\n x: import(\"../../../composables\")."
53126
+ },
53127
+ {
53128
+ "kind": "Reference",
53129
+ "text": "UseAliasAPI",
53130
+ "canonicalReference": "@empathyco/x-components!UseAliasAPI:interface"
53131
+ },
53132
+ {
53133
+ "kind": "Content",
53134
+ "text": " & {\n on: <Event_1 extends keyof import(\"../../..\")."
53135
+ },
53136
+ {
53137
+ "kind": "Reference",
53138
+ "text": "XEventsTypes",
53139
+ "canonicalReference": "@empathyco/x-components!XEventsTypes:interface"
53140
+ },
53141
+ {
53142
+ "kind": "Content",
53143
+ "text": ", Metadata extends boolean>(event: Event_1, withMetadata: Metadata) => {\n subscribe: (callback: (payload: Metadata extends true ? import(\"@empathyco/x-bus\")."
53144
+ },
53145
+ {
53146
+ "kind": "Reference",
53147
+ "text": "SubjectPayload",
53148
+ "canonicalReference": "@empathyco/x-bus!SubjectPayload:interface"
53149
+ },
53150
+ {
53151
+ "kind": "Content",
53152
+ "text": "<import(\"@empathyco/x-bus\")."
53153
+ },
53154
+ {
53155
+ "kind": "Reference",
53156
+ "text": "EventPayload",
53157
+ "canonicalReference": "@empathyco/x-bus!EventPayload:type"
53158
+ },
53159
+ {
53160
+ "kind": "Content",
53161
+ "text": "<import(\"../../..\")."
53162
+ },
53163
+ {
53164
+ "kind": "Reference",
53165
+ "text": "XEventsTypes",
53166
+ "canonicalReference": "@empathyco/x-components!XEventsTypes:interface"
53167
+ },
53168
+ {
53169
+ "kind": "Content",
53170
+ "text": ", Event_1>, import(\"../../..\")."
53171
+ },
53172
+ {
53173
+ "kind": "Reference",
53174
+ "text": "WireMetadata",
53175
+ "canonicalReference": "@empathyco/x-components!WireMetadata:interface"
53176
+ },
53177
+ {
53178
+ "kind": "Content",
53179
+ "text": "> : import(\"@empathyco/x-bus\")."
53180
+ },
53181
+ {
53182
+ "kind": "Reference",
53183
+ "text": "EventPayload",
53184
+ "canonicalReference": "@empathyco/x-bus!EventPayload:type"
53185
+ },
53186
+ {
53187
+ "kind": "Content",
53188
+ "text": "<import(\"../../..\")."
53189
+ },
53190
+ {
53191
+ "kind": "Reference",
53192
+ "text": "XEventsTypes",
53193
+ "canonicalReference": "@empathyco/x-components!XEventsTypes:interface"
53194
+ },
53195
+ {
53196
+ "kind": "Content",
53197
+ "text": ", Event_1>) => void) => void;\n };\n emit: <Event_2 extends keyof import(\"../../..\")."
53198
+ },
53199
+ {
53200
+ "kind": "Reference",
53201
+ "text": "XEventsTypes",
53202
+ "canonicalReference": "@empathyco/x-components!XEventsTypes:interface"
53203
+ },
53204
+ {
53205
+ "kind": "Content",
53206
+ "text": ">(event: Event_2, payload?: import(\"../../..\")."
53207
+ },
53208
+ {
53209
+ "kind": "Reference",
53210
+ "text": "XEventPayload",
53211
+ "canonicalReference": "@empathyco/x-components!XEventPayload:type"
53212
+ },
53213
+ {
53214
+ "kind": "Content",
53215
+ "text": "<Event_2> | undefined, metadata?: "
53216
+ },
53217
+ {
53218
+ "kind": "Reference",
53219
+ "text": "Omit",
53220
+ "canonicalReference": "!Omit:type"
53221
+ },
53222
+ {
53223
+ "kind": "Content",
53224
+ "text": "<import(\"../../..\")."
53225
+ },
53226
+ {
53227
+ "kind": "Reference",
53228
+ "text": "WireMetadata",
53229
+ "canonicalReference": "@empathyco/x-components!WireMetadata:interface"
53230
+ },
53231
+ {
53232
+ "kind": "Content",
53233
+ "text": ", \"moduleName\">) => "
53234
+ },
53235
+ {
53236
+ "kind": "Reference",
53237
+ "text": "Promise",
53238
+ "canonicalReference": "!Promise:interface"
53239
+ },
53240
+ {
53241
+ "kind": "Content",
53242
+ "text": "<import(\"@empathyco/x-bus\")."
53243
+ },
53244
+ {
53245
+ "kind": "Reference",
53246
+ "text": "EmittedData",
53247
+ "canonicalReference": "@empathyco/x-bus!EmittedData:interface"
53248
+ },
53249
+ {
53250
+ "kind": "Content",
53251
+ "text": "<import(\"../../..\")."
53252
+ },
53253
+ {
53254
+ "kind": "Reference",
53255
+ "text": "XEventsTypes",
53256
+ "canonicalReference": "@empathyco/x-components!XEventsTypes:interface"
53257
+ },
53258
+ {
53259
+ "kind": "Content",
53260
+ "text": ", Event_2, import(\"../../..\")."
53261
+ },
53262
+ {
53263
+ "kind": "Reference",
53264
+ "text": "WireMetadata",
53265
+ "canonicalReference": "@empathyco/x-components!WireMetadata:interface"
53266
+ },
53267
+ {
53268
+ "kind": "Content",
53269
+ "text": ">>;\n };\n}, unknown, {}, {}, import(\"vue\")."
53108
53270
  },
53109
53271
  {
53110
53272
  "kind": "Reference",
@@ -53158,7 +53320,34 @@
53158
53320
  },
53159
53321
  {
53160
53322
  "kind": "Content",
53161
- "text": ";\n}>>, {}, {}>"
53323
+ "text": ";\n tagClass: "
53324
+ },
53325
+ {
53326
+ "kind": "Reference",
53327
+ "text": "StringConstructor",
53328
+ "canonicalReference": "!StringConstructor:interface"
53329
+ },
53330
+ {
53331
+ "kind": "Content",
53332
+ "text": ";\n tagColors: "
53333
+ },
53334
+ {
53335
+ "kind": "Reference",
53336
+ "text": "PropType",
53337
+ "canonicalReference": "@vue/runtime-core!PropType:type"
53338
+ },
53339
+ {
53340
+ "kind": "Content",
53341
+ "text": "<string[]>;\n animationDurationInMs: {\n type: "
53342
+ },
53343
+ {
53344
+ "kind": "Reference",
53345
+ "text": "NumberConstructor",
53346
+ "canonicalReference": "!NumberConstructor:interface"
53347
+ },
53348
+ {
53349
+ "kind": "Content",
53350
+ "text": ";\n default: number;\n };\n}>>, {\n animationDurationInMs: number;\n}, {}>"
53162
53351
  }
53163
53352
  ],
53164
53353
  "fileUrlPath": "dist/types/x-modules/related-prompts/components/related-prompts-tag-list.vue.d.ts",
@@ -53167,7 +53356,7 @@
53167
53356
  "name": "RelatedPromptsTagList",
53168
53357
  "variableTypeTokenRange": {
53169
53358
  "startIndex": 1,
53170
- "endIndex": 28
53359
+ "endIndex": 78
53171
53360
  }
53172
53361
  },
53173
53362
  {
@@ -75798,6 +75987,105 @@
75798
75987
  "endIndex": 5
75799
75988
  }
75800
75989
  },
75990
+ {
75991
+ "kind": "Interface",
75992
+ "canonicalReference": "@empathyco/x-components!TypingOptions:interface",
75993
+ "docComment": "/**\n * TypingOptions interface.\n *\n * @public\n */\n",
75994
+ "excerptTokens": [
75995
+ {
75996
+ "kind": "Content",
75997
+ "text": "export interface TypingOptions "
75998
+ }
75999
+ ],
76000
+ "fileUrlPath": "src/directives/typing.ts",
76001
+ "releaseTag": "Public",
76002
+ "name": "TypingOptions",
76003
+ "preserveMemberOrder": false,
76004
+ "members": [
76005
+ {
76006
+ "kind": "PropertySignature",
76007
+ "canonicalReference": "@empathyco/x-components!TypingOptions#speed:member",
76008
+ "docComment": "/**\n * The typing speed in milliseconds per character.\n */\n",
76009
+ "excerptTokens": [
76010
+ {
76011
+ "kind": "Content",
76012
+ "text": "speed?: "
76013
+ },
76014
+ {
76015
+ "kind": "Content",
76016
+ "text": "number"
76017
+ },
76018
+ {
76019
+ "kind": "Content",
76020
+ "text": ";"
76021
+ }
76022
+ ],
76023
+ "isReadonly": false,
76024
+ "isOptional": true,
76025
+ "releaseTag": "Public",
76026
+ "name": "speed",
76027
+ "propertyTypeTokenRange": {
76028
+ "startIndex": 1,
76029
+ "endIndex": 2
76030
+ }
76031
+ },
76032
+ {
76033
+ "kind": "PropertySignature",
76034
+ "canonicalReference": "@empathyco/x-components!TypingOptions#targetAttr:member",
76035
+ "docComment": "/**\n * The attribute of the HTML element where the typed text will be placed. If not specified, the text will be set as content (innerHTML).\n *\n * @example\n *\n * 'placeholder'\n */\n",
76036
+ "excerptTokens": [
76037
+ {
76038
+ "kind": "Content",
76039
+ "text": "targetAttr?: "
76040
+ },
76041
+ {
76042
+ "kind": "Content",
76043
+ "text": "string"
76044
+ },
76045
+ {
76046
+ "kind": "Content",
76047
+ "text": ";"
76048
+ }
76049
+ ],
76050
+ "isReadonly": false,
76051
+ "isOptional": true,
76052
+ "releaseTag": "Public",
76053
+ "name": "targetAttr",
76054
+ "propertyTypeTokenRange": {
76055
+ "startIndex": 1,
76056
+ "endIndex": 2
76057
+ }
76058
+ },
76059
+ {
76060
+ "kind": "PropertySignature",
76061
+ "canonicalReference": "@empathyco/x-components!TypingOptions#text:member",
76062
+ "docComment": "/**\n * The text (plain or html) that will be typed into the target element.\n */\n",
76063
+ "excerptTokens": [
76064
+ {
76065
+ "kind": "Content",
76066
+ "text": "text: "
76067
+ },
76068
+ {
76069
+ "kind": "Content",
76070
+ "text": "string"
76071
+ },
76072
+ {
76073
+ "kind": "Content",
76074
+ "text": ";"
76075
+ }
76076
+ ],
76077
+ "isReadonly": false,
76078
+ "isOptional": false,
76079
+ "releaseTag": "Public",
76080
+ "name": "text",
76081
+ "propertyTypeTokenRange": {
76082
+ "startIndex": 1,
76083
+ "endIndex": 2
76084
+ }
76085
+ }
76086
+ ],
76087
+ "extendsTokenRanges": []
76088
+ },
75801
76089
  {
75802
76090
  "kind": "Variable",
75803
76091
  "canonicalReference": "@empathyco/x-components!updateHistoryQueriesWithSearchResponse:var",
@@ -5682,40 +5682,21 @@ relatedPrompt: {
5682
5682
  type: PropType<RelatedPrompt_2>;
5683
5683
  required: true;
5684
5684
  };
5685
- isPromptVisible: {
5685
+ selected: {
5686
5686
  type: BooleanConstructor;
5687
5687
  default: boolean;
5688
5688
  };
5689
- isSelected: {
5690
- type: BooleanConstructor;
5691
- default: boolean;
5692
- };
5693
- index: {
5694
- type: NumberConstructor;
5695
- required: true;
5696
- };
5697
- }, {
5698
- toggleSuggestion: (index: number) => void;
5699
- }, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {
5689
+ }, unknown, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {
5700
5690
  relatedPrompt: {
5701
5691
  type: PropType<RelatedPrompt_2>;
5702
5692
  required: true;
5703
5693
  };
5704
- isPromptVisible: {
5694
+ selected: {
5705
5695
  type: BooleanConstructor;
5706
5696
  default: boolean;
5707
5697
  };
5708
- isSelected: {
5709
- type: BooleanConstructor;
5710
- default: boolean;
5711
- };
5712
- index: {
5713
- type: NumberConstructor;
5714
- required: true;
5715
- };
5716
5698
  }>>, {
5717
- isPromptVisible: boolean;
5718
- isSelected: boolean;
5699
+ selected: boolean;
5719
5700
  }, {}>;
5720
5701
 
5721
5702
  // @public
@@ -5821,19 +5802,48 @@ export const relatedPromptsStoreEmitters: {
5821
5802
  RelatedPromptsRequestUpdated: (_: RelatedPromptsState, getters: Returns<GettersTree<RelatedPromptsState, RelatedPromptsGetters>>) => RelatedPromptsRequest | null;
5822
5803
  };
5823
5804
 
5824
- // @public (undocumented)
5805
+ // @public
5825
5806
  export const RelatedPromptsTagList: DefineComponent< {
5826
5807
  buttonClass: StringConstructor;
5808
+ tagClass: StringConstructor;
5809
+ tagColors: PropType<string[]>;
5810
+ animationDurationInMs: {
5811
+ type: NumberConstructor;
5812
+ default: number;
5813
+ };
5827
5814
  }, {
5828
- arePromptsVisible: Ref<boolean>;
5829
- hidePrompt: (index: number) => boolean;
5830
5815
  isSelected: (index: number) => boolean;
5831
- relatedPrompts: ComputedRef<any>;
5832
- selectedPrompt: ComputedRef<any>;
5833
- slidingPanelContent: Ref<Element | undefined>;
5816
+ onSelect: (selectedIndex: number) => void;
5817
+ onBeforeEnter: (el: Element) => void;
5818
+ onEnter: (el: Element, done: () => void) => void;
5819
+ onLeave: (el: Element, done: () => void) => void;
5820
+ selectedPromptIndex: ComputedRef<any>;
5821
+ visibleRelatedPrompts: ComputedRef< {
5822
+ index: number;
5823
+ nextQueries: string[];
5824
+ suggestionText: string;
5825
+ type: string;
5826
+ modelName: "RelatedPrompt";
5827
+ }[]>;
5828
+ listItems: Ref<HTMLElement[]>;
5829
+ isAnimating: Ref<boolean>;
5830
+ x: UseAliasAPI & {
5831
+ on: <Event_1 extends keyof XEventsTypes, Metadata extends boolean>(event: Event_1, withMetadata: Metadata) => {
5832
+ subscribe: (callback: (payload: Metadata extends true ? SubjectPayload<EventPayload<XEventsTypes, Event_1>, WireMetadata> : EventPayload<XEventsTypes, Event_1>) => void) => void;
5833
+ };
5834
+ emit: <Event_2 extends keyof XEventsTypes>(event: Event_2, payload?: XEventPayload<Event_2> | undefined, metadata?: Omit<WireMetadata, "moduleName">) => Promise<EmittedData<XEventsTypes, Event_2, WireMetadata>>;
5835
+ };
5834
5836
  }, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {
5835
5837
  buttonClass: StringConstructor;
5836
- }>>, {}, {}>;
5838
+ tagClass: StringConstructor;
5839
+ tagColors: PropType<string[]>;
5840
+ animationDurationInMs: {
5841
+ type: NumberConstructor;
5842
+ default: number;
5843
+ };
5844
+ }>>, {
5845
+ animationDurationInMs: number;
5846
+ }, {}>;
5837
5847
 
5838
5848
  // @internal
5839
5849
  export const relatedPromptsWiring: {
@@ -8289,6 +8299,13 @@ export { TrendingIcon }
8289
8299
 
8290
8300
  export { TrendingTinyIcon }
8291
8301
 
8302
+ // @public
8303
+ export interface TypingOptions {
8304
+ speed?: number;
8305
+ targetAttr?: string;
8306
+ text: string;
8307
+ }
8308
+
8292
8309
  // @public
8293
8310
  export const updateHistoryQueriesWithSearchResponse: Wire<InternalSearchResponse>;
8294
8311
 
@@ -9059,7 +9076,7 @@ export type XStoreModuleOptions<StoreModule extends AnyXStoreModule> = StoreModu
9059
9076
  // dist/types/x-modules/facets/components/filters/all-filter.vue.d.ts:16:9 - (ae-forgotten-export) The symbol "Facet" needs to be exported by the entry point index.d.ts
9060
9077
  // dist/types/x-modules/facets/components/filters/editable-number-range-filter.vue.d.ts:25:9 - (ae-forgotten-export) The symbol "EditableNumberRangeFilter_2" needs to be exported by the entry point index.d.ts
9061
9078
  // dist/types/x-modules/facets/components/lists/selected-filters-list.vue.d.ts:35:5 - (ae-forgotten-export) The symbol "RenderFilter" needs to be exported by the entry point index.d.ts
9062
- // dist/types/x-modules/related-prompts/components/related-prompt.vue.d.ts:12:9 - (ae-forgotten-export) The symbol "RelatedPrompt_2" needs to be exported by the entry point index.d.ts
9079
+ // dist/types/x-modules/related-prompts/components/related-prompt.vue.d.ts:8:9 - (ae-forgotten-export) The symbol "RelatedPrompt_2" needs to be exported by the entry point index.d.ts
9063
9080
  // dist/types/x-modules/search/components/banner.vue.d.ts:23:9 - (ae-forgotten-export) The symbol "Banner_2" needs to be exported by the entry point index.d.ts
9064
9081
  // dist/types/x-modules/search/components/partial-results-list.vue.d.ts:29:5 - (ae-forgotten-export) The symbol "PartialResult" needs to be exported by the entry point index.d.ts
9065
9082
  // dist/types/x-modules/search/components/sort-list.vue.d.ts:29:5 - (ae-forgotten-export) The symbol "SortListItem" needs to be exported by the entry point index.d.ts
@@ -1,2 +1,3 @@
1
1
  export * from './infinite-scroll';
2
+ export * from './typing';
2
3
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/directives/index.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/directives/index.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAC;AAClC,cAAc,UAAU,CAAC"}
@@ -0,0 +1,30 @@
1
+ import type { Directive } from 'vue';
2
+ /**
3
+ * TypingOptions interface.
4
+ *
5
+ * @public
6
+ */
7
+ export interface TypingOptions {
8
+ /**
9
+ * The text (plain or html) that will be typed into the target element.
10
+ */
11
+ text: string;
12
+ /**
13
+ * The typing speed in milliseconds per character.
14
+ *
15
+ */
16
+ speed?: number;
17
+ /**
18
+ * The attribute of the HTML element where the typed text will be placed.
19
+ * If not specified, the text will be set as content (innerHTML).
20
+ *
21
+ * @example 'placeholder'
22
+ */
23
+ targetAttr?: string;
24
+ }
25
+ interface TypingHTMLElement extends HTMLElement {
26
+ __timeoutId?: number;
27
+ }
28
+ declare const typingDirective: Directive<TypingHTMLElement, TypingOptions>;
29
+ export default typingDirective;
30
+ //# sourceMappingURL=typing.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"typing.d.ts","sourceRoot":"","sources":["../../../src/directives/typing.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,KAAK,CAAC;AAErC;;;;GAIG;AACH,MAAM,WAAW,aAAa;IAC5B;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;;OAGG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;;;;OAKG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED,UAAU,iBAAkB,SAAQ,WAAW;IAC7C,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,QAAA,MAAM,eAAe,EAAE,SAAS,CAAC,iBAAiB,EAAE,aAAa,CAehE,CAAC;AAyCF,eAAe,eAAe,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"adapter.d.ts","sourceRoot":"","sources":["../../../src/views/adapter.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAmB,MAAM,+BAA+B,CAAC;AAGjF,eAAO,MAAM,aAAa;;CAEzB,CAAC;AAQF,eAAO,MAAM,OAAO,iBAGlB,CAAC"}
1
+ {"version":3,"file":"adapter.d.ts","sourceRoot":"","sources":["../../../src/views/adapter.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAmB,MAAM,+BAA+B,CAAC;AAGjF,eAAO,MAAM,aAAa;;CAEzB,CAAC;AAaF,eAAO,MAAM,OAAO,iBAGlB,CAAC"}