@noodleseed/assistant 1.25.1 → 1.26.0

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/README.md +54 -20
  2. package/dist/{app-view-element-BNkQab1B.d.ts → app-view-element-C_ATXseu.d.ts} +1 -1
  3. package/dist/{app-view-element-DhuiNW_x.d.cts → app-view-element-CiFVNIke.d.cts} +1 -1
  4. package/dist/app-view.cjs +5 -5
  5. package/dist/app-view.cjs.map +1 -1
  6. package/dist/app-view.d.cts +3 -3
  7. package/dist/app-view.d.ts +3 -3
  8. package/dist/app-view.js +2 -2
  9. package/dist/{appearance-B6vSg8Ub.d.cts → appearance-C24W6BRj.d.cts} +7 -3
  10. package/dist/{appearance-B6vSg8Ub.d.ts → appearance-C24W6BRj.d.ts} +7 -3
  11. package/dist/{chunk-5TYS2Q6S.js → chunk-5NBHHNI3.js} +2 -2
  12. package/dist/{chunk-FJYPE4GC.js → chunk-5PW6PXCI.js} +702 -122
  13. package/dist/chunk-5PW6PXCI.js.map +1 -0
  14. package/dist/{chunk-7BQHW37I.js → chunk-FNXAVRL5.js} +7 -1
  15. package/dist/{chunk-7BQHW37I.js.map → chunk-FNXAVRL5.js.map} +1 -1
  16. package/dist/{chunk-CF2SCDLF.js → chunk-XKTUXFGX.js} +6 -6
  17. package/dist/chunk-XKTUXFGX.js.map +1 -0
  18. package/dist/{client-BkogON2A.d.ts → client-BheCOERq.d.ts} +51 -2
  19. package/dist/{client-C07ppTU_.d.cts → client-BiMRVxjs.d.cts} +51 -2
  20. package/dist/client.cjs.map +1 -1
  21. package/dist/client.d.cts +2 -2
  22. package/dist/client.d.ts +2 -2
  23. package/dist/client.js +1 -1
  24. package/dist/embed.global.js +171 -89
  25. package/dist/index.cjs +709 -124
  26. package/dist/index.cjs.map +1 -1
  27. package/dist/index.d.cts +6 -53
  28. package/dist/index.d.ts +6 -53
  29. package/dist/index.js +3 -3
  30. package/dist/react/client.cjs.map +1 -1
  31. package/dist/react/client.d.cts +2 -2
  32. package/dist/react/client.d.ts +2 -2
  33. package/dist/react/client.js +1 -1
  34. package/dist/react.cjs +709 -124
  35. package/dist/react.cjs.map +1 -1
  36. package/dist/react.d.cts +4 -4
  37. package/dist/react.d.ts +4 -4
  38. package/dist/react.js +4 -4
  39. package/dist/server.d.cts +1 -1
  40. package/dist/server.d.ts +1 -1
  41. package/package.json +1 -1
  42. package/dist/chunk-CF2SCDLF.js.map +0 -1
  43. package/dist/chunk-FJYPE4GC.js.map +0 -1
  44. /package/dist/{chunk-5TYS2Q6S.js.map → chunk-5NBHHNI3.js.map} +0 -0
package/dist/index.d.cts CHANGED
@@ -1,58 +1,9 @@
1
- import { a as AssistantViewAvailableDetail, g as AssistantClientEvent, c as AssistantContext, f as AssistantModelContextUpdate, b as AssistantPageContext, h as AssistantInteractionResponse } from './client-C07ppTU_.cjs';
2
- export { e as AssistantErrorDetail, i as AssistantEvent, j as AssistantViewAvailableEvent } from './client-C07ppTU_.cjs';
3
- import './appearance-B6vSg8Ub.cjs';
1
+ import { f as AssistantAppearance, c as AssistantContext, g as AssistantModelContextUpdate, b as AssistantPageContext, j as AssistantInteractionResponse } from './client-BiMRVxjs.cjs';
2
+ export { k as AssistantAppearanceTheme, i as AssistantAppearanceWarning, e as AssistantErrorDetail, l as AssistantEvent, m as AssistantSurfaceAppearance, a as AssistantViewAvailableDetail, n as AssistantViewAvailableEvent } from './client-BiMRVxjs.cjs';
3
+ import './appearance-C24W6BRj.cjs';
4
4
  import 'ai';
5
5
 
6
- interface AssistantSurfaceAppearance {
7
- readonly surface?: string;
8
- readonly text?: string;
9
- readonly border?: string;
10
- }
11
- /** Exact visual roles controlled by the embedding application, above portable server branding. */
12
- interface AssistantAppearanceTheme {
13
- readonly canvas?: string;
14
- readonly text?: string;
15
- readonly mutedText?: string;
16
- readonly link?: string;
17
- readonly focus?: string;
18
- readonly success?: string;
19
- readonly warning?: string;
20
- readonly danger?: string;
21
- readonly panel?: AssistantSurfaceAppearance;
22
- readonly header?: AssistantSurfaceAppearance;
23
- readonly assistantMessage?: AssistantSurfaceAppearance;
24
- readonly userMessage?: AssistantSurfaceAppearance;
25
- readonly composer?: AssistantSurfaceAppearance;
26
- readonly suggestion?: AssistantSurfaceAppearance;
27
- readonly confirmation?: AssistantSurfaceAppearance;
28
- readonly primaryButton?: AssistantSurfaceAppearance;
29
- readonly secondaryButton?: AssistantSurfaceAppearance;
30
- readonly launcher?: AssistantSurfaceAppearance;
31
- readonly code?: AssistantSurfaceAppearance;
32
- readonly app?: AssistantSurfaceAppearance;
33
- }
34
- interface AssistantAppearance {
35
- readonly light?: AssistantAppearanceTheme;
36
- readonly dark?: AssistantAppearanceTheme;
37
- }
38
- interface AssistantAppearanceWarning {
39
- readonly code: 'low_contrast';
40
- readonly theme: 'light' | 'dark';
41
- readonly role: string;
42
- readonly foreground: string;
43
- readonly background: string;
44
- readonly contrastRatio: number;
45
- readonly recommendedRatio: number;
46
- }
47
-
48
6
  declare const ASSISTANT_TAG_NAME = "noodle-assistant";
49
- declare global {
50
- interface HTMLElementEventMap {
51
- 'assistant-view-available': CustomEvent<AssistantViewAvailableDetail>;
52
- 'assistant-appearance-warning': CustomEvent<AssistantAppearanceWarning>;
53
- 'assistant-event': CustomEvent<AssistantClientEvent>;
54
- }
55
- }
56
7
  declare const HTMLElementBase: typeof HTMLElement;
57
8
  declare class NoodleAssistantElement extends HTMLElementBase {
58
9
  #private;
@@ -62,6 +13,8 @@ declare class NoodleAssistantElement extends HTMLElementBase {
62
13
  embedId: string;
63
14
  /** Only for a dev or self-hosted service; the published snippet needs no origin. */
64
15
  serviceUrl: string;
16
+ get fetch(): typeof fetch | undefined;
17
+ set fetch(value: typeof fetch | undefined);
65
18
  get appearance(): AssistantAppearance | undefined;
66
19
  set appearance(value: AssistantAppearance | undefined);
67
20
  connectedCallback(): void;
@@ -87,4 +40,4 @@ declare class NoodleAssistantElement extends HTMLElementBase {
87
40
  }
88
41
  declare function registerNoodleAssistant(): void;
89
42
 
90
- export { ASSISTANT_TAG_NAME, type AssistantAppearance, type AssistantAppearanceTheme, type AssistantAppearanceWarning, type AssistantSurfaceAppearance, AssistantViewAvailableDetail, NoodleAssistantElement, registerNoodleAssistant };
43
+ export { ASSISTANT_TAG_NAME, AssistantAppearance, NoodleAssistantElement, registerNoodleAssistant };
package/dist/index.d.ts CHANGED
@@ -1,58 +1,9 @@
1
- import { a as AssistantViewAvailableDetail, g as AssistantClientEvent, c as AssistantContext, f as AssistantModelContextUpdate, b as AssistantPageContext, h as AssistantInteractionResponse } from './client-BkogON2A.js';
2
- export { e as AssistantErrorDetail, i as AssistantEvent, j as AssistantViewAvailableEvent } from './client-BkogON2A.js';
3
- import './appearance-B6vSg8Ub.js';
1
+ import { f as AssistantAppearance, c as AssistantContext, g as AssistantModelContextUpdate, b as AssistantPageContext, j as AssistantInteractionResponse } from './client-BheCOERq.js';
2
+ export { k as AssistantAppearanceTheme, i as AssistantAppearanceWarning, e as AssistantErrorDetail, l as AssistantEvent, m as AssistantSurfaceAppearance, a as AssistantViewAvailableDetail, n as AssistantViewAvailableEvent } from './client-BheCOERq.js';
3
+ import './appearance-C24W6BRj.js';
4
4
  import 'ai';
5
5
 
6
- interface AssistantSurfaceAppearance {
7
- readonly surface?: string;
8
- readonly text?: string;
9
- readonly border?: string;
10
- }
11
- /** Exact visual roles controlled by the embedding application, above portable server branding. */
12
- interface AssistantAppearanceTheme {
13
- readonly canvas?: string;
14
- readonly text?: string;
15
- readonly mutedText?: string;
16
- readonly link?: string;
17
- readonly focus?: string;
18
- readonly success?: string;
19
- readonly warning?: string;
20
- readonly danger?: string;
21
- readonly panel?: AssistantSurfaceAppearance;
22
- readonly header?: AssistantSurfaceAppearance;
23
- readonly assistantMessage?: AssistantSurfaceAppearance;
24
- readonly userMessage?: AssistantSurfaceAppearance;
25
- readonly composer?: AssistantSurfaceAppearance;
26
- readonly suggestion?: AssistantSurfaceAppearance;
27
- readonly confirmation?: AssistantSurfaceAppearance;
28
- readonly primaryButton?: AssistantSurfaceAppearance;
29
- readonly secondaryButton?: AssistantSurfaceAppearance;
30
- readonly launcher?: AssistantSurfaceAppearance;
31
- readonly code?: AssistantSurfaceAppearance;
32
- readonly app?: AssistantSurfaceAppearance;
33
- }
34
- interface AssistantAppearance {
35
- readonly light?: AssistantAppearanceTheme;
36
- readonly dark?: AssistantAppearanceTheme;
37
- }
38
- interface AssistantAppearanceWarning {
39
- readonly code: 'low_contrast';
40
- readonly theme: 'light' | 'dark';
41
- readonly role: string;
42
- readonly foreground: string;
43
- readonly background: string;
44
- readonly contrastRatio: number;
45
- readonly recommendedRatio: number;
46
- }
47
-
48
6
  declare const ASSISTANT_TAG_NAME = "noodle-assistant";
49
- declare global {
50
- interface HTMLElementEventMap {
51
- 'assistant-view-available': CustomEvent<AssistantViewAvailableDetail>;
52
- 'assistant-appearance-warning': CustomEvent<AssistantAppearanceWarning>;
53
- 'assistant-event': CustomEvent<AssistantClientEvent>;
54
- }
55
- }
56
7
  declare const HTMLElementBase: typeof HTMLElement;
57
8
  declare class NoodleAssistantElement extends HTMLElementBase {
58
9
  #private;
@@ -62,6 +13,8 @@ declare class NoodleAssistantElement extends HTMLElementBase {
62
13
  embedId: string;
63
14
  /** Only for a dev or self-hosted service; the published snippet needs no origin. */
64
15
  serviceUrl: string;
16
+ get fetch(): typeof fetch | undefined;
17
+ set fetch(value: typeof fetch | undefined);
65
18
  get appearance(): AssistantAppearance | undefined;
66
19
  set appearance(value: AssistantAppearance | undefined);
67
20
  connectedCallback(): void;
@@ -87,4 +40,4 @@ declare class NoodleAssistantElement extends HTMLElementBase {
87
40
  }
88
41
  declare function registerNoodleAssistant(): void;
89
42
 
90
- export { ASSISTANT_TAG_NAME, type AssistantAppearance, type AssistantAppearanceTheme, type AssistantAppearanceWarning, type AssistantSurfaceAppearance, AssistantViewAvailableDetail, NoodleAssistantElement, registerNoodleAssistant };
43
+ export { ASSISTANT_TAG_NAME, AssistantAppearance, NoodleAssistantElement, registerNoodleAssistant };
package/dist/index.js CHANGED
@@ -2,9 +2,9 @@ import {
2
2
  ASSISTANT_TAG_NAME,
3
3
  NoodleAssistantElement,
4
4
  registerNoodleAssistant
5
- } from "./chunk-FJYPE4GC.js";
6
- import "./chunk-CF2SCDLF.js";
7
- import "./chunk-7BQHW37I.js";
5
+ } from "./chunk-5PW6PXCI.js";
6
+ import "./chunk-XKTUXFGX.js";
7
+ import "./chunk-FNXAVRL5.js";
8
8
  import "./chunk-P223CYPO.js";
9
9
  import "./chunk-3YYTUJPJ.js";
10
10
  import "./chunk-5FUTL2UF.js";