@genesislcap/ai-assistant 15.3.1 → 15.3.2
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/custom-elements.json +191 -191
- package/dist/dts/react.d.ts +11 -11
- package/dist/react.cjs +11 -11
- package/dist/react.mjs +10 -10
- package/package.json +17 -17
|
@@ -8305,6 +8305,197 @@
|
|
|
8305
8305
|
}
|
|
8306
8306
|
]
|
|
8307
8307
|
},
|
|
8308
|
+
{
|
|
8309
|
+
"kind": "javascript-module",
|
|
8310
|
+
"path": "src/components/chat-interaction-wrapper/chat-interaction-wrapper.styles.ts",
|
|
8311
|
+
"declarations": [
|
|
8312
|
+
{
|
|
8313
|
+
"kind": "variable",
|
|
8314
|
+
"name": "AiChatInteractionWrapperStyles",
|
|
8315
|
+
"default": "css`\n :host {\n display: block;\n }\n`"
|
|
8316
|
+
}
|
|
8317
|
+
],
|
|
8318
|
+
"exports": [
|
|
8319
|
+
{
|
|
8320
|
+
"kind": "js",
|
|
8321
|
+
"name": "AiChatInteractionWrapperStyles",
|
|
8322
|
+
"declaration": {
|
|
8323
|
+
"name": "AiChatInteractionWrapperStyles",
|
|
8324
|
+
"module": "src/components/chat-interaction-wrapper/chat-interaction-wrapper.styles.ts"
|
|
8325
|
+
}
|
|
8326
|
+
}
|
|
8327
|
+
]
|
|
8328
|
+
},
|
|
8329
|
+
{
|
|
8330
|
+
"kind": "javascript-module",
|
|
8331
|
+
"path": "src/components/chat-interaction-wrapper/chat-interaction-wrapper.template.ts",
|
|
8332
|
+
"declarations": [
|
|
8333
|
+
{
|
|
8334
|
+
"kind": "variable",
|
|
8335
|
+
"name": "AiChatInteractionWrapperTemplate",
|
|
8336
|
+
"default": "html<AiChatInteractionWrapper>`\n <div ${ref('container')} class=\"container\" part=\"container\"></div>\n`"
|
|
8337
|
+
}
|
|
8338
|
+
],
|
|
8339
|
+
"exports": [
|
|
8340
|
+
{
|
|
8341
|
+
"kind": "js",
|
|
8342
|
+
"name": "AiChatInteractionWrapperTemplate",
|
|
8343
|
+
"declaration": {
|
|
8344
|
+
"name": "AiChatInteractionWrapperTemplate",
|
|
8345
|
+
"module": "src/components/chat-interaction-wrapper/chat-interaction-wrapper.template.ts"
|
|
8346
|
+
}
|
|
8347
|
+
}
|
|
8348
|
+
]
|
|
8349
|
+
},
|
|
8350
|
+
{
|
|
8351
|
+
"kind": "javascript-module",
|
|
8352
|
+
"path": "src/components/chat-interaction-wrapper/chat-interaction-wrapper.ts",
|
|
8353
|
+
"declarations": [
|
|
8354
|
+
{
|
|
8355
|
+
"kind": "class",
|
|
8356
|
+
"description": "Hosts an interactive AI chat sub-component by tag name.",
|
|
8357
|
+
"name": "AiChatInteractionWrapper",
|
|
8358
|
+
"members": [
|
|
8359
|
+
{
|
|
8360
|
+
"kind": "field",
|
|
8361
|
+
"name": "resolved",
|
|
8362
|
+
"type": {
|
|
8363
|
+
"text": "InteractionResult<unknown> | undefined"
|
|
8364
|
+
},
|
|
8365
|
+
"default": "undefined",
|
|
8366
|
+
"description": "The resolved result once the interaction has completed. Forwarded to the rendered component. @internal"
|
|
8367
|
+
},
|
|
8368
|
+
{
|
|
8369
|
+
"kind": "field",
|
|
8370
|
+
"name": "_resizeObserver",
|
|
8371
|
+
"type": {
|
|
8372
|
+
"text": "ResizeObserver | undefined"
|
|
8373
|
+
},
|
|
8374
|
+
"privacy": "private",
|
|
8375
|
+
"description": "Observes the rendered widget for mid-lifecycle size changes — see observeWidgetResize."
|
|
8376
|
+
},
|
|
8377
|
+
{
|
|
8378
|
+
"kind": "method",
|
|
8379
|
+
"name": "componentNameChanged"
|
|
8380
|
+
},
|
|
8381
|
+
{
|
|
8382
|
+
"kind": "method",
|
|
8383
|
+
"name": "interactionIdChanged",
|
|
8384
|
+
"description": "Re-render the hosted widget when the interaction identity changes. This\nensures widgets don't go stale with them being rendered with `recycle: true`\nwhen messages are dynamically filtered, showing/hiding thinking/tool calls\n\n`interactionId` is a per-interaction UUID, so it changes exactly when the\nhosted interaction does. Property bindings apply in template order\n(componentName, data, interactionId), so `data` is already rebound by the\ntime this fires and the fresh widget is built with the correct data."
|
|
8385
|
+
},
|
|
8386
|
+
{
|
|
8387
|
+
"kind": "method",
|
|
8388
|
+
"name": "resolvedChanged"
|
|
8389
|
+
},
|
|
8390
|
+
{
|
|
8391
|
+
"kind": "method",
|
|
8392
|
+
"name": "observeWidgetResize",
|
|
8393
|
+
"privacy": "private",
|
|
8394
|
+
"parameters": [
|
|
8395
|
+
{
|
|
8396
|
+
"name": "element",
|
|
8397
|
+
"type": {
|
|
8398
|
+
"text": "Element"
|
|
8399
|
+
}
|
|
8400
|
+
}
|
|
8401
|
+
],
|
|
8402
|
+
"description": "Watch the rendered widget element for box-size changes. When the widget\ngrows or shrinks mid-lifecycle (e.g. expanding a \"More info\" panel,\nappending an SSE status row, revealing generated code), bubble a\n`request-scroll-to-bottom` event so `FoundationAiAssistant` re-snaps to\nthe bottom. `scrollToBottom` respects `_userScrolledAway`, so a user\nreading old messages is not yanked back.\n\nThe first ResizeObserver callback fires synchronously with the initial\nsize when `observe()` is called; we skip it so freshly-rendered widgets\ndon't double up with the existing `handleMessagesUpdate` auto-scroll for\nnew messages."
|
|
8403
|
+
},
|
|
8404
|
+
{
|
|
8405
|
+
"kind": "method",
|
|
8406
|
+
"name": "renderComponent",
|
|
8407
|
+
"privacy": "private"
|
|
8408
|
+
},
|
|
8409
|
+
{
|
|
8410
|
+
"kind": "method",
|
|
8411
|
+
"name": "buildInteraction",
|
|
8412
|
+
"privacy": "private",
|
|
8413
|
+
"return": {
|
|
8414
|
+
"type": {
|
|
8415
|
+
"text": "AiChatInteraction"
|
|
8416
|
+
}
|
|
8417
|
+
},
|
|
8418
|
+
"parameters": [
|
|
8419
|
+
{
|
|
8420
|
+
"name": "host",
|
|
8421
|
+
"type": {
|
|
8422
|
+
"text": "InteractionHost | null"
|
|
8423
|
+
}
|
|
8424
|
+
}
|
|
8425
|
+
],
|
|
8426
|
+
"description": "Project the wrapper's current `data`/`resolved`/`interactionId` into the\ndiscriminated AiChatInteraction the widget consumes (GENC-1390)."
|
|
8427
|
+
}
|
|
8428
|
+
],
|
|
8429
|
+
"events": [
|
|
8430
|
+
{
|
|
8431
|
+
"name": "request-scroll-to-bottom",
|
|
8432
|
+
"type": {
|
|
8433
|
+
"text": "CustomEvent"
|
|
8434
|
+
}
|
|
8435
|
+
},
|
|
8436
|
+
{
|
|
8437
|
+
"description": "Fired when the interaction finishes. detail: `InteractionCompletedEventDetail`",
|
|
8438
|
+
"name": "interaction-completed"
|
|
8439
|
+
}
|
|
8440
|
+
],
|
|
8441
|
+
"superclass": {
|
|
8442
|
+
"name": "GenesisElement",
|
|
8443
|
+
"package": "@genesislcap/web-core"
|
|
8444
|
+
},
|
|
8445
|
+
"tagName": "ai-chat-interaction-wrapper",
|
|
8446
|
+
"customElement": true
|
|
8447
|
+
}
|
|
8448
|
+
],
|
|
8449
|
+
"exports": [
|
|
8450
|
+
{
|
|
8451
|
+
"kind": "js",
|
|
8452
|
+
"name": "AiChatInteractionWrapper",
|
|
8453
|
+
"declaration": {
|
|
8454
|
+
"name": "AiChatInteractionWrapper",
|
|
8455
|
+
"module": "src/components/chat-interaction-wrapper/chat-interaction-wrapper.ts"
|
|
8456
|
+
}
|
|
8457
|
+
},
|
|
8458
|
+
{
|
|
8459
|
+
"kind": "custom-element-definition",
|
|
8460
|
+
"name": "ai-chat-interaction-wrapper",
|
|
8461
|
+
"declaration": {
|
|
8462
|
+
"name": "AiChatInteractionWrapper",
|
|
8463
|
+
"module": "src/components/chat-interaction-wrapper/chat-interaction-wrapper.ts"
|
|
8464
|
+
}
|
|
8465
|
+
}
|
|
8466
|
+
]
|
|
8467
|
+
},
|
|
8468
|
+
{
|
|
8469
|
+
"kind": "javascript-module",
|
|
8470
|
+
"path": "src/components/chat-interaction-wrapper/index.ts",
|
|
8471
|
+
"declarations": [],
|
|
8472
|
+
"exports": [
|
|
8473
|
+
{
|
|
8474
|
+
"kind": "js",
|
|
8475
|
+
"name": "*",
|
|
8476
|
+
"declaration": {
|
|
8477
|
+
"name": "*",
|
|
8478
|
+
"package": "./chat-interaction-wrapper"
|
|
8479
|
+
}
|
|
8480
|
+
},
|
|
8481
|
+
{
|
|
8482
|
+
"kind": "js",
|
|
8483
|
+
"name": "*",
|
|
8484
|
+
"declaration": {
|
|
8485
|
+
"name": "*",
|
|
8486
|
+
"package": "./chat-interaction-wrapper.styles"
|
|
8487
|
+
}
|
|
8488
|
+
},
|
|
8489
|
+
{
|
|
8490
|
+
"kind": "js",
|
|
8491
|
+
"name": "*",
|
|
8492
|
+
"declaration": {
|
|
8493
|
+
"name": "*",
|
|
8494
|
+
"package": "./chat-interaction-wrapper.template"
|
|
8495
|
+
}
|
|
8496
|
+
}
|
|
8497
|
+
]
|
|
8498
|
+
},
|
|
8308
8499
|
{
|
|
8309
8500
|
"kind": "javascript-module",
|
|
8310
8501
|
"path": "src/components/chat-markdown/chat-markdown.ts",
|
|
@@ -9800,197 +9991,6 @@
|
|
|
9800
9991
|
}
|
|
9801
9992
|
}
|
|
9802
9993
|
]
|
|
9803
|
-
},
|
|
9804
|
-
{
|
|
9805
|
-
"kind": "javascript-module",
|
|
9806
|
-
"path": "src/components/chat-interaction-wrapper/chat-interaction-wrapper.styles.ts",
|
|
9807
|
-
"declarations": [
|
|
9808
|
-
{
|
|
9809
|
-
"kind": "variable",
|
|
9810
|
-
"name": "AiChatInteractionWrapperStyles",
|
|
9811
|
-
"default": "css`\n :host {\n display: block;\n }\n`"
|
|
9812
|
-
}
|
|
9813
|
-
],
|
|
9814
|
-
"exports": [
|
|
9815
|
-
{
|
|
9816
|
-
"kind": "js",
|
|
9817
|
-
"name": "AiChatInteractionWrapperStyles",
|
|
9818
|
-
"declaration": {
|
|
9819
|
-
"name": "AiChatInteractionWrapperStyles",
|
|
9820
|
-
"module": "src/components/chat-interaction-wrapper/chat-interaction-wrapper.styles.ts"
|
|
9821
|
-
}
|
|
9822
|
-
}
|
|
9823
|
-
]
|
|
9824
|
-
},
|
|
9825
|
-
{
|
|
9826
|
-
"kind": "javascript-module",
|
|
9827
|
-
"path": "src/components/chat-interaction-wrapper/chat-interaction-wrapper.template.ts",
|
|
9828
|
-
"declarations": [
|
|
9829
|
-
{
|
|
9830
|
-
"kind": "variable",
|
|
9831
|
-
"name": "AiChatInteractionWrapperTemplate",
|
|
9832
|
-
"default": "html<AiChatInteractionWrapper>`\n <div ${ref('container')} class=\"container\" part=\"container\"></div>\n`"
|
|
9833
|
-
}
|
|
9834
|
-
],
|
|
9835
|
-
"exports": [
|
|
9836
|
-
{
|
|
9837
|
-
"kind": "js",
|
|
9838
|
-
"name": "AiChatInteractionWrapperTemplate",
|
|
9839
|
-
"declaration": {
|
|
9840
|
-
"name": "AiChatInteractionWrapperTemplate",
|
|
9841
|
-
"module": "src/components/chat-interaction-wrapper/chat-interaction-wrapper.template.ts"
|
|
9842
|
-
}
|
|
9843
|
-
}
|
|
9844
|
-
]
|
|
9845
|
-
},
|
|
9846
|
-
{
|
|
9847
|
-
"kind": "javascript-module",
|
|
9848
|
-
"path": "src/components/chat-interaction-wrapper/chat-interaction-wrapper.ts",
|
|
9849
|
-
"declarations": [
|
|
9850
|
-
{
|
|
9851
|
-
"kind": "class",
|
|
9852
|
-
"description": "Hosts an interactive AI chat sub-component by tag name.",
|
|
9853
|
-
"name": "AiChatInteractionWrapper",
|
|
9854
|
-
"members": [
|
|
9855
|
-
{
|
|
9856
|
-
"kind": "field",
|
|
9857
|
-
"name": "resolved",
|
|
9858
|
-
"type": {
|
|
9859
|
-
"text": "InteractionResult<unknown> | undefined"
|
|
9860
|
-
},
|
|
9861
|
-
"default": "undefined",
|
|
9862
|
-
"description": "The resolved result once the interaction has completed. Forwarded to the rendered component. @internal"
|
|
9863
|
-
},
|
|
9864
|
-
{
|
|
9865
|
-
"kind": "field",
|
|
9866
|
-
"name": "_resizeObserver",
|
|
9867
|
-
"type": {
|
|
9868
|
-
"text": "ResizeObserver | undefined"
|
|
9869
|
-
},
|
|
9870
|
-
"privacy": "private",
|
|
9871
|
-
"description": "Observes the rendered widget for mid-lifecycle size changes — see observeWidgetResize."
|
|
9872
|
-
},
|
|
9873
|
-
{
|
|
9874
|
-
"kind": "method",
|
|
9875
|
-
"name": "componentNameChanged"
|
|
9876
|
-
},
|
|
9877
|
-
{
|
|
9878
|
-
"kind": "method",
|
|
9879
|
-
"name": "interactionIdChanged",
|
|
9880
|
-
"description": "Re-render the hosted widget when the interaction identity changes. This\nensures widgets don't go stale with them being rendered with `recycle: true`\nwhen messages are dynamically filtered, showing/hiding thinking/tool calls\n\n`interactionId` is a per-interaction UUID, so it changes exactly when the\nhosted interaction does. Property bindings apply in template order\n(componentName, data, interactionId), so `data` is already rebound by the\ntime this fires and the fresh widget is built with the correct data."
|
|
9881
|
-
},
|
|
9882
|
-
{
|
|
9883
|
-
"kind": "method",
|
|
9884
|
-
"name": "resolvedChanged"
|
|
9885
|
-
},
|
|
9886
|
-
{
|
|
9887
|
-
"kind": "method",
|
|
9888
|
-
"name": "observeWidgetResize",
|
|
9889
|
-
"privacy": "private",
|
|
9890
|
-
"parameters": [
|
|
9891
|
-
{
|
|
9892
|
-
"name": "element",
|
|
9893
|
-
"type": {
|
|
9894
|
-
"text": "Element"
|
|
9895
|
-
}
|
|
9896
|
-
}
|
|
9897
|
-
],
|
|
9898
|
-
"description": "Watch the rendered widget element for box-size changes. When the widget\ngrows or shrinks mid-lifecycle (e.g. expanding a \"More info\" panel,\nappending an SSE status row, revealing generated code), bubble a\n`request-scroll-to-bottom` event so `FoundationAiAssistant` re-snaps to\nthe bottom. `scrollToBottom` respects `_userScrolledAway`, so a user\nreading old messages is not yanked back.\n\nThe first ResizeObserver callback fires synchronously with the initial\nsize when `observe()` is called; we skip it so freshly-rendered widgets\ndon't double up with the existing `handleMessagesUpdate` auto-scroll for\nnew messages."
|
|
9899
|
-
},
|
|
9900
|
-
{
|
|
9901
|
-
"kind": "method",
|
|
9902
|
-
"name": "renderComponent",
|
|
9903
|
-
"privacy": "private"
|
|
9904
|
-
},
|
|
9905
|
-
{
|
|
9906
|
-
"kind": "method",
|
|
9907
|
-
"name": "buildInteraction",
|
|
9908
|
-
"privacy": "private",
|
|
9909
|
-
"return": {
|
|
9910
|
-
"type": {
|
|
9911
|
-
"text": "AiChatInteraction"
|
|
9912
|
-
}
|
|
9913
|
-
},
|
|
9914
|
-
"parameters": [
|
|
9915
|
-
{
|
|
9916
|
-
"name": "host",
|
|
9917
|
-
"type": {
|
|
9918
|
-
"text": "InteractionHost | null"
|
|
9919
|
-
}
|
|
9920
|
-
}
|
|
9921
|
-
],
|
|
9922
|
-
"description": "Project the wrapper's current `data`/`resolved`/`interactionId` into the\ndiscriminated AiChatInteraction the widget consumes (GENC-1390)."
|
|
9923
|
-
}
|
|
9924
|
-
],
|
|
9925
|
-
"events": [
|
|
9926
|
-
{
|
|
9927
|
-
"name": "request-scroll-to-bottom",
|
|
9928
|
-
"type": {
|
|
9929
|
-
"text": "CustomEvent"
|
|
9930
|
-
}
|
|
9931
|
-
},
|
|
9932
|
-
{
|
|
9933
|
-
"description": "Fired when the interaction finishes. detail: `InteractionCompletedEventDetail`",
|
|
9934
|
-
"name": "interaction-completed"
|
|
9935
|
-
}
|
|
9936
|
-
],
|
|
9937
|
-
"superclass": {
|
|
9938
|
-
"name": "GenesisElement",
|
|
9939
|
-
"package": "@genesislcap/web-core"
|
|
9940
|
-
},
|
|
9941
|
-
"tagName": "ai-chat-interaction-wrapper",
|
|
9942
|
-
"customElement": true
|
|
9943
|
-
}
|
|
9944
|
-
],
|
|
9945
|
-
"exports": [
|
|
9946
|
-
{
|
|
9947
|
-
"kind": "js",
|
|
9948
|
-
"name": "AiChatInteractionWrapper",
|
|
9949
|
-
"declaration": {
|
|
9950
|
-
"name": "AiChatInteractionWrapper",
|
|
9951
|
-
"module": "src/components/chat-interaction-wrapper/chat-interaction-wrapper.ts"
|
|
9952
|
-
}
|
|
9953
|
-
},
|
|
9954
|
-
{
|
|
9955
|
-
"kind": "custom-element-definition",
|
|
9956
|
-
"name": "ai-chat-interaction-wrapper",
|
|
9957
|
-
"declaration": {
|
|
9958
|
-
"name": "AiChatInteractionWrapper",
|
|
9959
|
-
"module": "src/components/chat-interaction-wrapper/chat-interaction-wrapper.ts"
|
|
9960
|
-
}
|
|
9961
|
-
}
|
|
9962
|
-
]
|
|
9963
|
-
},
|
|
9964
|
-
{
|
|
9965
|
-
"kind": "javascript-module",
|
|
9966
|
-
"path": "src/components/chat-interaction-wrapper/index.ts",
|
|
9967
|
-
"declarations": [],
|
|
9968
|
-
"exports": [
|
|
9969
|
-
{
|
|
9970
|
-
"kind": "js",
|
|
9971
|
-
"name": "*",
|
|
9972
|
-
"declaration": {
|
|
9973
|
-
"name": "*",
|
|
9974
|
-
"package": "./chat-interaction-wrapper"
|
|
9975
|
-
}
|
|
9976
|
-
},
|
|
9977
|
-
{
|
|
9978
|
-
"kind": "js",
|
|
9979
|
-
"name": "*",
|
|
9980
|
-
"declaration": {
|
|
9981
|
-
"name": "*",
|
|
9982
|
-
"package": "./chat-interaction-wrapper.styles"
|
|
9983
|
-
}
|
|
9984
|
-
},
|
|
9985
|
-
{
|
|
9986
|
-
"kind": "js",
|
|
9987
|
-
"name": "*",
|
|
9988
|
-
"declaration": {
|
|
9989
|
-
"name": "*",
|
|
9990
|
-
"package": "./chat-interaction-wrapper.template"
|
|
9991
|
-
}
|
|
9992
|
-
}
|
|
9993
|
-
]
|
|
9994
9994
|
}
|
|
9995
9995
|
]
|
|
9996
9996
|
}
|
package/dist/dts/react.d.ts
CHANGED
|
@@ -131,6 +131,17 @@ export declare const AiChatBubble: React.ForwardRefExoticComponent<
|
|
|
131
131
|
>;
|
|
132
132
|
export type AiChatBubbleRef = AiChatBubbleWC;
|
|
133
133
|
|
|
134
|
+
export declare const AiChatInteractionWrapper: React.ForwardRefExoticComponent<
|
|
135
|
+
React.PropsWithChildren<
|
|
136
|
+
Omit<PublicOf<AiChatInteractionWrapperWC>, 'children' | 'style'> &
|
|
137
|
+
HTMLWCProps & {
|
|
138
|
+
onRequestScrollToBottom?: (event: CustomEvent<unknown>) => void;
|
|
139
|
+
onInteractionCompleted?: (event: CustomEvent<InteractionCompletedEventDetail>) => void;
|
|
140
|
+
}
|
|
141
|
+
> & React.RefAttributes<AiChatInteractionWrapperWC>
|
|
142
|
+
>;
|
|
143
|
+
export type AiChatInteractionWrapperRef = AiChatInteractionWrapperWC;
|
|
144
|
+
|
|
134
145
|
export declare const AiChatMarkdown: React.ForwardRefExoticComponent<
|
|
135
146
|
React.PropsWithChildren<
|
|
136
147
|
Omit<PublicOf<AiChatMarkdownWC>, 'children' | 'style'> &
|
|
@@ -149,15 +160,4 @@ export declare const FoundationAiPopoutManager: React.ForwardRefExoticComponent<
|
|
|
149
160
|
>;
|
|
150
161
|
export type FoundationAiPopoutManagerRef = FoundationAiPopoutManagerWC;
|
|
151
162
|
|
|
152
|
-
export declare const AiChatInteractionWrapper: React.ForwardRefExoticComponent<
|
|
153
|
-
React.PropsWithChildren<
|
|
154
|
-
Omit<PublicOf<AiChatInteractionWrapperWC>, 'children' | 'style'> &
|
|
155
|
-
HTMLWCProps & {
|
|
156
|
-
onRequestScrollToBottom?: (event: CustomEvent<unknown>) => void;
|
|
157
|
-
onInteractionCompleted?: (event: CustomEvent<InteractionCompletedEventDetail>) => void;
|
|
158
|
-
}
|
|
159
|
-
> & React.RefAttributes<AiChatInteractionWrapperWC>
|
|
160
|
-
>;
|
|
161
|
-
export type AiChatInteractionWrapperRef = AiChatInteractionWrapperWC;
|
|
162
|
-
|
|
163
163
|
export {};
|
package/dist/react.cjs
CHANGED
|
@@ -102,16 +102,6 @@ const AiChatBubble = React.forwardRef(function AiChatBubble(props, ref) {
|
|
|
102
102
|
return React.createElement(customElements.getName(AiChatBubbleWC) ?? 'foundation-ai-chat-bubble', { ...rest, ref }, children);
|
|
103
103
|
});
|
|
104
104
|
|
|
105
|
-
const AiChatMarkdown = React.forwardRef(function AiChatMarkdown(props, ref) {
|
|
106
|
-
const { children, ...rest } = props;
|
|
107
|
-
return React.createElement(customElements.getName(AiChatMarkdownWC) ?? 'ai-chat-markdown', { ...rest, ref }, children);
|
|
108
|
-
});
|
|
109
|
-
|
|
110
|
-
const FoundationAiPopoutManager = React.forwardRef(function FoundationAiPopoutManager(props, ref) {
|
|
111
|
-
const { children, ...rest } = props;
|
|
112
|
-
return React.createElement(customElements.getName(FoundationAiPopoutManagerWC) ?? 'foundation-ai-popout-manager', { ...rest, ref }, children);
|
|
113
|
-
});
|
|
114
|
-
|
|
115
105
|
const AiChatInteractionWrapper = React.forwardRef(function AiChatInteractionWrapper(props, ref) {
|
|
116
106
|
const { onRequestScrollToBottom, onInteractionCompleted, children, ...rest } = props;
|
|
117
107
|
const _innerRef = React.useRef(null);
|
|
@@ -134,6 +124,16 @@ const AiChatInteractionWrapper = React.forwardRef(function AiChatInteractionWrap
|
|
|
134
124
|
return React.createElement(customElements.getName(AiChatInteractionWrapperWC) ?? 'ai-chat-interaction-wrapper', { ...rest, ref: _mergeRefs(_innerRef, ref) }, children);
|
|
135
125
|
});
|
|
136
126
|
|
|
127
|
+
const AiChatMarkdown = React.forwardRef(function AiChatMarkdown(props, ref) {
|
|
128
|
+
const { children, ...rest } = props;
|
|
129
|
+
return React.createElement(customElements.getName(AiChatMarkdownWC) ?? 'ai-chat-markdown', { ...rest, ref }, children);
|
|
130
|
+
});
|
|
131
|
+
|
|
132
|
+
const FoundationAiPopoutManager = React.forwardRef(function FoundationAiPopoutManager(props, ref) {
|
|
133
|
+
const { children, ...rest } = props;
|
|
134
|
+
return React.createElement(customElements.getName(FoundationAiPopoutManagerWC) ?? 'foundation-ai-popout-manager', { ...rest, ref }, children);
|
|
135
|
+
});
|
|
136
|
+
|
|
137
137
|
module.exports = {
|
|
138
138
|
AiFlowingWavesIndicator,
|
|
139
139
|
AiHaloOverlay,
|
|
@@ -144,7 +144,7 @@ module.exports = {
|
|
|
144
144
|
AiActivityHalo,
|
|
145
145
|
AgentPicker,
|
|
146
146
|
AiChatBubble,
|
|
147
|
+
AiChatInteractionWrapper,
|
|
147
148
|
AiChatMarkdown,
|
|
148
149
|
FoundationAiPopoutManager,
|
|
149
|
-
AiChatInteractionWrapper,
|
|
150
150
|
};
|
package/dist/react.mjs
CHANGED
|
@@ -100,16 +100,6 @@ export const AiChatBubble = React.forwardRef(function AiChatBubble(props, ref) {
|
|
|
100
100
|
return React.createElement(customElements.getName(AiChatBubbleWC) ?? 'foundation-ai-chat-bubble', { ...rest, ref }, children);
|
|
101
101
|
});
|
|
102
102
|
|
|
103
|
-
export const AiChatMarkdown = React.forwardRef(function AiChatMarkdown(props, ref) {
|
|
104
|
-
const { children, ...rest } = props;
|
|
105
|
-
return React.createElement(customElements.getName(AiChatMarkdownWC) ?? 'ai-chat-markdown', { ...rest, ref }, children);
|
|
106
|
-
});
|
|
107
|
-
|
|
108
|
-
export const FoundationAiPopoutManager = React.forwardRef(function FoundationAiPopoutManager(props, ref) {
|
|
109
|
-
const { children, ...rest } = props;
|
|
110
|
-
return React.createElement(customElements.getName(FoundationAiPopoutManagerWC) ?? 'foundation-ai-popout-manager', { ...rest, ref }, children);
|
|
111
|
-
});
|
|
112
|
-
|
|
113
103
|
export const AiChatInteractionWrapper = React.forwardRef(function AiChatInteractionWrapper(props, ref) {
|
|
114
104
|
const { onRequestScrollToBottom, onInteractionCompleted, children, ...rest } = props;
|
|
115
105
|
const _innerRef = React.useRef(null);
|
|
@@ -131,3 +121,13 @@ export const AiChatInteractionWrapper = React.forwardRef(function AiChatInteract
|
|
|
131
121
|
}, []);
|
|
132
122
|
return React.createElement(customElements.getName(AiChatInteractionWrapperWC) ?? 'ai-chat-interaction-wrapper', { ...rest, ref: _mergeRefs(_innerRef, ref) }, children);
|
|
133
123
|
});
|
|
124
|
+
|
|
125
|
+
export const AiChatMarkdown = React.forwardRef(function AiChatMarkdown(props, ref) {
|
|
126
|
+
const { children, ...rest } = props;
|
|
127
|
+
return React.createElement(customElements.getName(AiChatMarkdownWC) ?? 'ai-chat-markdown', { ...rest, ref }, children);
|
|
128
|
+
});
|
|
129
|
+
|
|
130
|
+
export const FoundationAiPopoutManager = React.forwardRef(function FoundationAiPopoutManager(props, ref) {
|
|
131
|
+
const { children, ...rest } = props;
|
|
132
|
+
return React.createElement(customElements.getName(FoundationAiPopoutManagerWC) ?? 'foundation-ai-popout-manager', { ...rest, ref }, children);
|
|
133
|
+
});
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@genesislcap/ai-assistant",
|
|
3
3
|
"description": "Genesis AI Assistant micro-frontend",
|
|
4
|
-
"version": "15.3.
|
|
4
|
+
"version": "15.3.2",
|
|
5
5
|
"license": "SEE LICENSE IN license.txt",
|
|
6
6
|
"main": "dist/esm/index.js",
|
|
7
7
|
"types": "dist/ai-assistant.d.ts",
|
|
@@ -73,26 +73,26 @@
|
|
|
73
73
|
}
|
|
74
74
|
},
|
|
75
75
|
"devDependencies": {
|
|
76
|
-
"@genesislcap/foundation-testing": "15.3.
|
|
77
|
-
"@genesislcap/genx": "15.3.
|
|
78
|
-
"@genesislcap/rollup-builder": "15.3.
|
|
79
|
-
"@genesislcap/ts-builder": "15.3.
|
|
80
|
-
"@genesislcap/uvu-playwright-builder": "15.3.
|
|
81
|
-
"@genesislcap/vite-builder": "15.3.
|
|
82
|
-
"@genesislcap/webpack-builder": "15.3.
|
|
76
|
+
"@genesislcap/foundation-testing": "15.3.2",
|
|
77
|
+
"@genesislcap/genx": "15.3.2",
|
|
78
|
+
"@genesislcap/rollup-builder": "15.3.2",
|
|
79
|
+
"@genesislcap/ts-builder": "15.3.2",
|
|
80
|
+
"@genesislcap/uvu-playwright-builder": "15.3.2",
|
|
81
|
+
"@genesislcap/vite-builder": "15.3.2",
|
|
82
|
+
"@genesislcap/webpack-builder": "15.3.2",
|
|
83
83
|
"@types/dompurify": "^3.0.5",
|
|
84
84
|
"@types/marked": "^5.0.2",
|
|
85
85
|
"esbuild": "0.25.12"
|
|
86
86
|
},
|
|
87
87
|
"dependencies": {
|
|
88
|
-
"@genesislcap/foundation-ai": "15.3.
|
|
89
|
-
"@genesislcap/foundation-logger": "15.3.
|
|
90
|
-
"@genesislcap/foundation-notifications": "15.3.
|
|
91
|
-
"@genesislcap/foundation-redux": "15.3.
|
|
92
|
-
"@genesislcap/foundation-ui": "15.3.
|
|
93
|
-
"@genesislcap/foundation-utils": "15.3.
|
|
94
|
-
"@genesislcap/rapid-design-system": "15.3.
|
|
95
|
-
"@genesislcap/web-core": "15.3.
|
|
88
|
+
"@genesislcap/foundation-ai": "15.3.2",
|
|
89
|
+
"@genesislcap/foundation-logger": "15.3.2",
|
|
90
|
+
"@genesislcap/foundation-notifications": "15.3.2",
|
|
91
|
+
"@genesislcap/foundation-redux": "15.3.2",
|
|
92
|
+
"@genesislcap/foundation-ui": "15.3.2",
|
|
93
|
+
"@genesislcap/foundation-utils": "15.3.2",
|
|
94
|
+
"@genesislcap/rapid-design-system": "15.3.2",
|
|
95
|
+
"@genesislcap/web-core": "15.3.2",
|
|
96
96
|
"dompurify": "^3.3.1",
|
|
97
97
|
"marked": "^17.0.3"
|
|
98
98
|
},
|
|
@@ -105,5 +105,5 @@
|
|
|
105
105
|
"access": "public"
|
|
106
106
|
},
|
|
107
107
|
"customElements": "dist/custom-elements.json",
|
|
108
|
-
"gitHead": "
|
|
108
|
+
"gitHead": "9b3b32a9d7642518469a81d1ed9cc79b3a6c0ece"
|
|
109
109
|
}
|