glchat-a2ui-react-renderer 0.3.6 → 0.4.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 (128) hide show
  1. package/README.md +200 -267
  2. package/dist/index.d.ts +13 -6
  3. package/dist/index.d.ts.map +1 -1
  4. package/dist/index.js +14 -4
  5. package/dist/src/Provider.d.ts +33 -8
  6. package/dist/src/Provider.d.ts.map +1 -1
  7. package/dist/src/Provider.js +12 -10
  8. package/dist/src/SurfaceRenderer.d.ts +7 -1
  9. package/dist/src/SurfaceRenderer.d.ts.map +1 -1
  10. package/dist/src/SurfaceRenderer.js +2 -2
  11. package/dist/src/components/a2ui/v0_9/AudioPlayer/AudioPlayer.d.ts +1 -5
  12. package/dist/src/components/a2ui/v0_9/AudioPlayer/AudioPlayer.d.ts.map +1 -1
  13. package/dist/src/components/a2ui/v0_9/AudioPlayer/AudioPlayer.js +2 -12
  14. package/dist/src/components/a2ui/v0_9/Button/Button.d.ts +73 -239
  15. package/dist/src/components/a2ui/v0_9/Button/Button.d.ts.map +1 -1
  16. package/dist/src/components/a2ui/v0_9/Button/Button.js +2 -13
  17. package/dist/src/components/a2ui/v0_9/ChoicePicker/ChoicePicker.d.ts +1 -8
  18. package/dist/src/components/a2ui/v0_9/ChoicePicker/ChoicePicker.d.ts.map +1 -1
  19. package/dist/src/components/a2ui/v0_9/ChoicePicker/ChoicePicker.js +2 -51
  20. package/dist/src/components/a2ui/v0_9/TagInput/TagInput.d.ts +40 -196
  21. package/dist/src/components/a2ui/v0_9/TagInput/TagInput.d.ts.map +1 -1
  22. package/dist/src/components/a2ui/v0_9/TagInput/TagInput.js +3 -10
  23. package/dist/src/components/a2ui/v0_9/Timeout/Timeout.d.ts +24 -100
  24. package/dist/src/components/a2ui/v0_9/Timeout/Timeout.d.ts.map +1 -1
  25. package/dist/src/components/a2ui/v0_9/Timeout/Timeout.js +3 -23
  26. package/dist/src/components/a2ui/v0_9/common.d.ts +11 -57
  27. package/dist/src/components/a2ui/v0_9/common.d.ts.map +1 -1
  28. package/dist/src/components/a2ui/v0_9/common.js +0 -9
  29. package/dist/src/components/a2ui/v1_0/AudioPlayer/AudioPlayer.d.ts +3 -0
  30. package/dist/src/components/a2ui/v1_0/AudioPlayer/AudioPlayer.d.ts.map +1 -0
  31. package/dist/src/components/a2ui/v1_0/AudioPlayer/AudioPlayer.js +6 -0
  32. package/dist/src/components/a2ui/v1_0/Button/Button.d.ts +223 -0
  33. package/dist/src/components/a2ui/v1_0/Button/Button.d.ts.map +1 -0
  34. package/dist/src/components/a2ui/v1_0/Button/Button.js +26 -0
  35. package/dist/src/components/a2ui/v1_0/ChoicePicker/ChoicePicker.d.ts +3 -0
  36. package/dist/src/components/a2ui/v1_0/ChoicePicker/ChoicePicker.d.ts.map +1 -0
  37. package/dist/src/components/a2ui/v1_0/ChoicePicker/ChoicePicker.js +6 -0
  38. package/dist/src/components/a2ui/v1_0/TagInput/TagInput.d.ts +214 -0
  39. package/dist/src/components/a2ui/v1_0/TagInput/TagInput.d.ts.map +1 -0
  40. package/dist/src/components/a2ui/v1_0/TagInput/TagInput.js +34 -0
  41. package/dist/src/components/a2ui/v1_0/Timeout/Timeout.d.ts +58 -0
  42. package/dist/src/components/a2ui/v1_0/Timeout/Timeout.d.ts.map +1 -0
  43. package/dist/src/components/a2ui/v1_0/Timeout/Timeout.js +25 -0
  44. package/dist/src/components/a2ui/v1_0/common.d.ts +15 -0
  45. package/dist/src/components/a2ui/v1_0/common.d.ts.map +1 -0
  46. package/dist/src/components/a2ui/v1_0/common.js +16 -0
  47. package/dist/src/components/a2ui/views/AudioPlayer/AudioPlayer.d.ts +14 -0
  48. package/dist/src/components/a2ui/views/AudioPlayer/AudioPlayer.d.ts.map +1 -0
  49. package/dist/src/components/a2ui/views/AudioPlayer/AudioPlayer.js +10 -0
  50. package/dist/src/components/a2ui/views/Button/Button.d.ts +18 -0
  51. package/dist/src/components/a2ui/views/Button/Button.d.ts.map +1 -0
  52. package/dist/src/components/a2ui/views/Button/Button.js +22 -0
  53. package/dist/src/components/a2ui/views/ChoicePicker/ChoicePicker.d.ts +25 -0
  54. package/dist/src/components/a2ui/views/ChoicePicker/ChoicePicker.d.ts.map +1 -0
  55. package/dist/src/components/a2ui/views/ChoicePicker/ChoicePicker.js +46 -0
  56. package/dist/src/components/a2ui/views/ChoicePicker/theme.d.ts.map +1 -0
  57. package/dist/src/components/a2ui/views/TagInput/TagInput.d.ts +16 -0
  58. package/dist/src/components/a2ui/views/TagInput/TagInput.d.ts.map +1 -0
  59. package/dist/src/components/a2ui/views/TagInput/TagInput.js +12 -0
  60. package/dist/src/components/a2ui/views/Timeout/Timeout.d.ts +9 -0
  61. package/dist/src/components/a2ui/views/Timeout/Timeout.d.ts.map +1 -0
  62. package/dist/src/components/a2ui/views/Timeout/Timeout.js +27 -0
  63. package/dist/src/components/a2ui/views/weight.d.ts +7 -0
  64. package/dist/src/components/a2ui/views/weight.d.ts.map +1 -0
  65. package/dist/src/components/a2ui/views/weight.js +9 -0
  66. package/dist/src/core/SurfaceErrorBoundary.d.ts +27 -0
  67. package/dist/src/core/SurfaceErrorBoundary.d.ts.map +1 -0
  68. package/dist/src/core/SurfaceErrorBoundary.js +24 -0
  69. package/dist/src/core/SurfaceGroupProvider.d.ts +38 -0
  70. package/dist/src/core/SurfaceGroupProvider.d.ts.map +1 -0
  71. package/dist/src/core/SurfaceGroupProvider.js +142 -0
  72. package/dist/src/core/SurfaceRenderer.d.ts +4 -0
  73. package/dist/src/core/SurfaceRenderer.d.ts.map +1 -0
  74. package/dist/src/core/SurfaceRenderer.js +64 -0
  75. package/dist/src/core/errors.d.ts +44 -0
  76. package/dist/src/core/errors.d.ts.map +1 -0
  77. package/dist/src/core/errors.js +42 -0
  78. package/dist/src/core/types.d.ts +11 -0
  79. package/dist/src/core/types.d.ts.map +1 -0
  80. package/dist/src/core/types.js +1 -0
  81. package/dist/src/core/unknownComponent.d.ts +28 -0
  82. package/dist/src/core/unknownComponent.d.ts.map +1 -0
  83. package/dist/src/core/unknownComponent.js +41 -0
  84. package/dist/src/{v0_9 → core}/useSurfaces.d.ts +3 -3
  85. package/dist/src/core/useSurfaces.d.ts.map +1 -0
  86. package/dist/src/utils/detectVersion.d.ts +1 -1
  87. package/dist/src/utils/detectVersion.d.ts.map +1 -1
  88. package/dist/src/utils/detectVersion.js +5 -1
  89. package/dist/src/v0_8/Provider.d.ts +2 -1
  90. package/dist/src/v0_8/Provider.d.ts.map +1 -1
  91. package/dist/src/v0_8/Provider.js +3 -8
  92. package/dist/src/v0_9/Provider.d.ts +13 -13
  93. package/dist/src/v0_9/Provider.d.ts.map +1 -1
  94. package/dist/src/v0_9/Provider.js +14 -61
  95. package/dist/src/v0_9/catalog.d.ts +2 -8
  96. package/dist/src/v0_9/catalog.d.ts.map +1 -1
  97. package/dist/src/v0_9/catalog.js +3 -17
  98. package/dist/src/v1_0/Provider.d.ts +27 -0
  99. package/dist/src/v1_0/Provider.d.ts.map +1 -0
  100. package/dist/src/v1_0/Provider.js +35 -0
  101. package/dist/src/v1_0/catalog.d.ts +52 -0
  102. package/dist/src/v1_0/catalog.d.ts.map +1 -0
  103. package/dist/src/v1_0/catalog.js +118 -0
  104. package/dist/src/v1_0/types.d.ts +13 -0
  105. package/dist/src/v1_0/types.d.ts.map +1 -0
  106. package/dist/src/v1_0/types.js +1 -0
  107. package/json/README.md +27 -30
  108. package/json/v0_9/glchat_standard_catalog_definition.json +5 -5
  109. package/json/v1_0/a2ui-sample-messages-extension.json +150 -0
  110. package/json/v1_0/a2ui-sample-messages.json +144 -0
  111. package/json/v1_0/glchat_extension_catalog_definition.json +794 -0
  112. package/json/v1_0/glchat_standard_catalog_definition.json +1487 -0
  113. package/package.json +4 -4
  114. package/styles/globals.css +136 -67
  115. package/dist/src/components/a2ui/v0_9/ChoicePicker/theme.d.ts.map +0 -1
  116. package/dist/src/components/a2ui/v0_9/UnknownComponent/UnknownComponent.d.ts +0 -231
  117. package/dist/src/components/a2ui/v0_9/UnknownComponent/UnknownComponent.d.ts.map +0 -1
  118. package/dist/src/components/a2ui/v0_9/UnknownComponent/UnknownComponent.js +0 -24
  119. package/dist/src/v0_9/SurfaceErrorBoundary.d.ts +0 -18
  120. package/dist/src/v0_9/SurfaceErrorBoundary.d.ts.map +0 -1
  121. package/dist/src/v0_9/SurfaceErrorBoundary.js +0 -24
  122. package/dist/src/v0_9/SurfaceRenderer.d.ts +0 -3
  123. package/dist/src/v0_9/SurfaceRenderer.d.ts.map +0 -1
  124. package/dist/src/v0_9/SurfaceRenderer.js +0 -47
  125. package/dist/src/v0_9/useSurfaces.d.ts.map +0 -1
  126. /package/dist/src/components/a2ui/{v0_9 → views}/ChoicePicker/theme.d.ts +0 -0
  127. /package/dist/src/components/a2ui/{v0_9 → views}/ChoicePicker/theme.js +0 -0
  128. /package/dist/src/{v0_9 → core}/useSurfaces.js +0 -0
@@ -1 +1 @@
1
- {"version":3,"file":"Button.d.ts","sourceRoot":"","sources":["../../../../../../src/components/a2ui/v0_9/Button/Button.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB;;GAEG;AACH,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;8BAqC4vsE,CAAC;;;;uBAA0M,CAAC;;;;;;;;;uBAA6Y,CAAC;;;;;8BAA8N,CAAC;;;;;;uBAAmP,CAAC;;;;;;;;;;;uBAA6a,CAAC;;;;;8BAA8N,CAAC;;;;;;;;;;;;;;;0BAAmuB,CAAC;;;;;;;;;;;;0BAA4e,CAAC;;;;;;;;;;;;;;;;;;;;;0BAA27B,CAAC;;;;;;;;;;;;;;;;;;;0BAAwrB,CAAC;;;;;;;;;;;;;;;;;;;;;0BAAw8B,CAAC;;;;;;;;;;;;;;;;;;;0BAAy4B,CAAC;;;uBAAmK,CAAC;;;;;;;iBAAqR,CAAC;;;;;;;;uBAAwS,CAAC;;;;;0BAAgK,CAAC;;iBAAiI,CAAC;;;;;0BAAgK,CAAC;;;;;;;;;;;uBAA98M,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;uBAA6a,CAAC;;;;;8BAA8N,CAAC;;;;;;;0BAAgtC,CAAC;;;;;;;;;;;0BAA20I,CAAC;;;;;;;0BAAkS,CAAC;;;;;;;;;;0BAA3/F,CAAC;;;;CA1Bvx1E,CAAC;AASF;;GAEG;AACH,eAAO,MAAM,qBAAqB,yDAajC,CAAC"}
1
+ {"version":3,"file":"Button.d.ts","sourceRoot":"","sources":["../../../../../../src/components/a2ui/v0_9/Button/Button.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB;;GAEG;AACH,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;iBAoB6lrC,CAAC;;;uBAAqI,CAAC;;;;iBAA4I,CAAC;;;uBAAqI,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;uBAAu4C,CAAC;;;uBAA2I,CAAC;;;;;uBAAoM,CAAC;;;;;uBAA2K,CAAC;;;;;;;;;;;;;;;;;uBAA7K,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;uBAA2K,CAAC;;;;;;;;;;;;;;;;;;;;;;CATv5vC,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,qBAAqB,kEAGjC,CAAC"}
@@ -1,10 +1,8 @@
1
1
  'use client';
2
- import { jsx as _jsx } from "react/jsx-runtime";
3
2
  import { createComponentImplementation } from '@a2ui/react/v0_9';
4
3
  import { ButtonApi } from '@a2ui/web_core/v0_9/basic_catalog';
5
4
  import { z } from 'zod';
6
- import { Button } from '../../../../components/ui/Button/Button.js';
7
- import { getWeightStyle } from '../common.js';
5
+ import { GlchatButtonView } from '../../views/Button/Button.js';
8
6
  /**
9
7
  * GLChat Button schema — upstream `ButtonApi` with an extra `destructive` variant.
10
8
  */
@@ -18,16 +16,7 @@ export const GlchatButtonApi = {
18
16
  .optional(),
19
17
  }),
20
18
  };
21
- function toButtonVariant(variant) {
22
- if (variant === 'primary')
23
- return 'primary';
24
- if (variant === 'borderless')
25
- return 'borderless';
26
- if (variant === 'destructive')
27
- return 'destructive';
28
- return 'outline';
29
- }
30
19
  /**
31
20
  * GLChat-styled Button. Overrides the basic catalog `Button` with extended variants.
32
21
  */
33
- export const GlchatButtonComponent = createComponentImplementation(GlchatButtonApi, ({ props, buildChild }) => (_jsx("div", { className: "a2ui-button", style: getWeightStyle(props.weight), children: _jsx(Button, { variant: toButtonVariant(props.variant), disabled: props.isValid === false, onClick: props.action, children: props.child ? buildChild(props.child) : null }) })));
22
+ export const GlchatButtonComponent = createComponentImplementation(GlchatButtonApi, GlchatButtonView);
@@ -1,9 +1,2 @@
1
- /**
2
- * GLChat-styled ChoicePicker. Overrides the basic catalog `ChoicePicker`.
3
- *
4
- * - `variant`: `mutuallyExclusive` (single) or `multipleSelection` (multi).
5
- * - `displayStyle`: `checkbox` renders a checkbox/radio list; otherwise a
6
- * GLChat select (single) or multi-select dropdown is used.
7
- */
8
- export declare const GlchatChoicePickerComponent: import("@a2ui/react/v0_9").ReactComponentImplementation;
1
+ export declare const GlchatChoicePickerComponent: import("@a2ui/react").ReactComponentImplementation<import("zod").ZodTypeAny>;
9
2
  //# sourceMappingURL=ChoicePicker.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ChoicePicker.d.ts","sourceRoot":"","sources":["../../../../../../src/components/a2ui/v0_9/ChoicePicker/ChoicePicker.tsx"],"names":[],"mappings":"AA6DA;;;;;;GAMG;AACH,eAAO,MAAM,2BAA2B,yDA6EvC,CAAC"}
1
+ {"version":3,"file":"ChoicePicker.d.ts","sourceRoot":"","sources":["../../../../../../src/components/a2ui/v0_9/ChoicePicker/ChoicePicker.tsx"],"names":[],"mappings":"AAOA,eAAO,MAAM,2BAA2B,8EAGvC,CAAC"}
@@ -1,54 +1,5 @@
1
1
  'use client';
2
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
3
2
  import { createComponentImplementation } from '@a2ui/react/v0_9';
4
3
  import { ChoicePickerApi } from '@a2ui/web_core/v0_9/basic_catalog';
5
- import { useCallback, useMemo } from 'react';
6
- import { MultiSelect } from '../../../../components/ui/MultiSelect/MultiSelect.js';
7
- import { Select, SelectContent, SelectItem, SelectTrigger } from '../../../../components/ui/Select/Select.js';
8
- import { selectTriggerLabelStyles, selectTriggerPlaceholderStyles, } from '../../../../components/ui/Select/theme.js';
9
- import { getWeightStyle } from '../common.js';
10
- import { CheckboxList } from '../../../../components/ui/CheckboxList/CheckboxList.js';
11
- import { choicePickerContainerStyles, choicePickerLabelStyles } from './theme.js';
12
- function SingleSelectChips({ options, value, onValueChange, }) {
13
- const selectedLabel = useMemo(() => {
14
- const match = options.find((opt) => opt.value === value);
15
- return match?.label ?? '';
16
- }, [options, value]);
17
- const triggerLabelStyle = useMemo(() => ({
18
- ...selectTriggerLabelStyles,
19
- ...(selectedLabel ? undefined : selectTriggerPlaceholderStyles),
20
- }), [selectedLabel]);
21
- return (_jsxs(Select, { value: value, onValueChange: onValueChange, children: [_jsx(SelectTrigger, { className: "glchat-a2ui-select-trigger", "aria-label": "Select option", children: _jsx("span", { style: triggerLabelStyle, ...(selectedLabel ? {} : { 'data-placeholder': '' }), children: selectedLabel || 'Select an item' }) }), _jsx(SelectContent, { className: "glchat-a2ui-select-content", children: options.map((option) => (_jsx(SelectItem, { value: option.value, children: option.label }, option.value))) })] }));
22
- }
23
- /**
24
- * GLChat-styled ChoicePicker. Overrides the basic catalog `ChoicePicker`.
25
- *
26
- * - `variant`: `mutuallyExclusive` (single) or `multipleSelection` (multi).
27
- * - `displayStyle`: `checkbox` renders a checkbox/radio list; otherwise a
28
- * GLChat select (single) or multi-select dropdown is used.
29
- */
30
- export const GlchatChoicePickerComponent = createComponentImplementation(ChoicePickerApi, ({ props }) => {
31
- const singleSelect = props.variant !== 'multipleSelection';
32
- const filterable = props.filterable ?? false;
33
- const useCheckboxes = props.displayStyle === 'checkbox';
34
- const label = typeof props.label === 'string' ? props.label : '';
35
- const selectedValues = useMemo(() => (Array.isArray(props.value) ? props.value : []), [props.value]);
36
- const resolvedOptions = useMemo(() => (props.options ?? []).map((option) => ({
37
- value: option.value,
38
- label: typeof option.label === 'string' ? option.label : option.value,
39
- })), [props.options]);
40
- const handleSingleValueChange = useCallback((nextValue) => {
41
- props.setValue([nextValue]);
42
- }, [props]);
43
- const handleMultiValueChange = useCallback((values) => {
44
- props.setValue(values);
45
- }, [props]);
46
- const wrapper = (content) => (_jsx("div", { className: "a2ui-choicepicker", style: getWeightStyle(props.weight), children: _jsxs("section", { style: choicePickerContainerStyles, children: [label ? _jsx("strong", { style: choicePickerLabelStyles, children: label }) : null, content] }) }));
47
- if (useCheckboxes) {
48
- return wrapper(_jsx(CheckboxList, { options: resolvedOptions, value: selectedValues, onValueChange: handleMultiValueChange, singleSelect: singleSelect, filterable: filterable }));
49
- }
50
- if (singleSelect) {
51
- return wrapper(_jsx(SingleSelectChips, { options: resolvedOptions, value: selectedValues[0] ?? '', onValueChange: handleSingleValueChange }));
52
- }
53
- return wrapper(_jsx(MultiSelect, { options: resolvedOptions, value: selectedValues, onValueChange: handleMultiValueChange, placeholder: "Select options", filterable: filterable }));
54
- });
4
+ import { GlchatChoicePickerView } from '../../views/ChoicePicker/ChoicePicker.js';
5
+ export const GlchatChoicePickerComponent = createComponentImplementation(ChoicePickerApi, GlchatChoicePickerView);
@@ -8,283 +8,127 @@ export declare const TagInputApi: {
8
8
  schema: z.ZodObject<{
9
9
  label: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodObject<{
10
10
  path: z.ZodString;
11
- }, "strip", z.ZodTypeAny, {
11
+ }, "strict", z.ZodTypeAny, {
12
12
  path: string;
13
13
  }, {
14
14
  path: string;
15
- }>, z.ZodObject<{
16
- call: z.ZodString;
17
- args: z.ZodRecord<z.ZodString, z.ZodAny>;
18
- returnType: z.ZodDefault<z.ZodEnum<["string", "number", "boolean", "array", "object", "any", "void"]>>;
19
- }, "strip", z.ZodTypeAny, {
20
- call: string;
21
- args: Record<string, any>;
22
- returnType: "string" | "number" | "boolean" | "object" | "array" | "void" | "any";
23
- }, {
24
- call: string;
25
- args: Record<string, any>;
26
- returnType?: "string" | "number" | "boolean" | "object" | "array" | "void" | "any" | undefined;
27
- }>]>>;
15
+ }>, z.ZodType<import("@a2ui/web_core/v0_9").FunctionCall, z.ZodTypeDef, import("@a2ui/web_core/v0_9").FunctionCall>]>>;
28
16
  value: z.ZodUnion<[z.ZodArray<z.ZodString, "many">, z.ZodObject<{
29
17
  path: z.ZodString;
30
- }, "strip", z.ZodTypeAny, {
18
+ }, "strict", z.ZodTypeAny, {
31
19
  path: string;
32
20
  }, {
33
21
  path: string;
34
- }>, z.ZodObject<{
35
- call: z.ZodString;
36
- args: z.ZodRecord<z.ZodString, z.ZodAny>;
37
- returnType: z.ZodDefault<z.ZodEnum<["string", "number", "boolean", "array", "object", "any", "void"]>>;
38
- }, "strip", z.ZodTypeAny, {
39
- call: string;
40
- args: Record<string, any>;
41
- returnType: "string" | "number" | "boolean" | "object" | "array" | "void" | "any";
42
- }, {
43
- call: string;
44
- args: Record<string, any>;
45
- returnType?: "string" | "number" | "boolean" | "object" | "array" | "void" | "any" | undefined;
46
- }>]>;
22
+ }>, z.ZodType<import("@a2ui/web_core/v0_9").FunctionCall, z.ZodTypeDef, import("@a2ui/web_core/v0_9").FunctionCall>]>;
47
23
  placeholder: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodObject<{
48
24
  path: z.ZodString;
49
- }, "strip", z.ZodTypeAny, {
25
+ }, "strict", z.ZodTypeAny, {
50
26
  path: string;
51
27
  }, {
52
28
  path: string;
53
- }>, z.ZodObject<{
54
- call: z.ZodString;
55
- args: z.ZodRecord<z.ZodString, z.ZodAny>;
56
- returnType: z.ZodDefault<z.ZodEnum<["string", "number", "boolean", "array", "object", "any", "void"]>>;
57
- }, "strip", z.ZodTypeAny, {
58
- call: string;
59
- args: Record<string, any>;
60
- returnType: "string" | "number" | "boolean" | "object" | "array" | "void" | "any";
61
- }, {
62
- call: string;
63
- args: Record<string, any>;
64
- returnType?: "string" | "number" | "boolean" | "object" | "array" | "void" | "any" | undefined;
65
- }>]>>;
29
+ }>, z.ZodType<import("@a2ui/web_core/v0_9").FunctionCall, z.ZodTypeDef, import("@a2ui/web_core/v0_9").FunctionCall>]>>;
66
30
  disabled: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodObject<{
67
31
  path: z.ZodString;
68
- }, "strip", z.ZodTypeAny, {
32
+ }, "strict", z.ZodTypeAny, {
69
33
  path: string;
70
34
  }, {
71
35
  path: string;
72
- }>, z.ZodObject<{
73
- call: z.ZodString;
74
- args: z.ZodRecord<z.ZodString, z.ZodAny>;
75
- returnType: z.ZodDefault<z.ZodEnum<["string", "number", "boolean", "array", "object", "any", "void"]>>;
76
- }, "strip", z.ZodTypeAny, {
77
- call: string;
78
- args: Record<string, any>;
79
- returnType: "string" | "number" | "boolean" | "object" | "array" | "void" | "any";
80
- }, {
81
- call: string;
82
- args: Record<string, any>;
83
- returnType?: "string" | "number" | "boolean" | "object" | "array" | "void" | "any" | undefined;
84
- }>]>>;
36
+ }>, z.ZodType<import("@a2ui/web_core/v0_9").FunctionCall, z.ZodTypeDef, import("@a2ui/web_core/v0_9").FunctionCall>]>>;
85
37
  disableTextInput: z.ZodOptional<z.ZodBoolean>;
86
38
  validationRegexp: z.ZodOptional<z.ZodString>;
87
39
  validationErrorMessage: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodObject<{
88
40
  path: z.ZodString;
89
- }, "strip", z.ZodTypeAny, {
41
+ }, "strict", z.ZodTypeAny, {
90
42
  path: string;
91
43
  }, {
92
44
  path: string;
93
- }>, z.ZodObject<{
94
- call: z.ZodString;
95
- args: z.ZodRecord<z.ZodString, z.ZodAny>;
96
- returnType: z.ZodDefault<z.ZodEnum<["string", "number", "boolean", "array", "object", "any", "void"]>>;
97
- }, "strip", z.ZodTypeAny, {
98
- call: string;
99
- args: Record<string, any>;
100
- returnType: "string" | "number" | "boolean" | "object" | "array" | "void" | "any";
101
- }, {
102
- call: string;
103
- args: Record<string, any>;
104
- returnType?: "string" | "number" | "boolean" | "object" | "array" | "void" | "any" | undefined;
105
- }>]>>;
45
+ }>, z.ZodType<import("@a2ui/web_core/v0_9").FunctionCall, z.ZodTypeDef, import("@a2ui/web_core/v0_9").FunctionCall>]>>;
106
46
  accessibility: z.ZodOptional<z.ZodObject<{
107
47
  label: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodObject<{
108
48
  path: z.ZodString;
109
- }, "strip", z.ZodTypeAny, {
49
+ }, "strict", z.ZodTypeAny, {
110
50
  path: string;
111
51
  }, {
112
52
  path: string;
113
- }>, z.ZodObject<{
114
- call: z.ZodString;
115
- args: z.ZodRecord<z.ZodString, z.ZodAny>;
116
- returnType: z.ZodDefault<z.ZodEnum<["string", "number", "boolean", "array", "object", "any", "void"]>>;
117
- }, "strip", z.ZodTypeAny, {
118
- call: string;
119
- args: Record<string, any>;
120
- returnType: "string" | "number" | "boolean" | "object" | "array" | "void" | "any";
121
- }, {
122
- call: string;
123
- args: Record<string, any>;
124
- returnType?: "string" | "number" | "boolean" | "object" | "array" | "void" | "any" | undefined;
125
- }>]>>;
53
+ }>, z.ZodType<import("@a2ui/web_core/v0_9").FunctionCall, z.ZodTypeDef, import("@a2ui/web_core/v0_9").FunctionCall>]>>;
126
54
  description: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodObject<{
127
55
  path: z.ZodString;
128
- }, "strip", z.ZodTypeAny, {
56
+ }, "strict", z.ZodTypeAny, {
129
57
  path: string;
130
58
  }, {
131
59
  path: string;
132
- }>, z.ZodObject<{
133
- call: z.ZodString;
134
- args: z.ZodRecord<z.ZodString, z.ZodAny>;
135
- returnType: z.ZodDefault<z.ZodEnum<["string", "number", "boolean", "array", "object", "any", "void"]>>;
136
- }, "strip", z.ZodTypeAny, {
137
- call: string;
138
- args: Record<string, any>;
139
- returnType: "string" | "number" | "boolean" | "object" | "array" | "void" | "any";
140
- }, {
141
- call: string;
142
- args: Record<string, any>;
143
- returnType?: "string" | "number" | "boolean" | "object" | "array" | "void" | "any" | undefined;
144
- }>]>>;
60
+ }>, z.ZodType<import("@a2ui/web_core/v0_9").FunctionCall, z.ZodTypeDef, import("@a2ui/web_core/v0_9").FunctionCall>]>>;
145
61
  }, "strip", z.ZodTypeAny, {
146
- description?: string | {
147
- path: string;
148
- } | {
149
- call: string;
150
- args: Record<string, any>;
151
- returnType: "string" | "number" | "boolean" | "object" | "array" | "void" | "any";
152
- } | undefined;
153
62
  label?: string | {
154
63
  path: string;
155
- } | {
156
- call: string;
157
- args: Record<string, any>;
158
- returnType: "string" | "number" | "boolean" | "object" | "array" | "void" | "any";
159
- } | undefined;
160
- }, {
64
+ } | import("@a2ui/web_core/v0_9").FunctionCall | undefined;
161
65
  description?: string | {
162
66
  path: string;
163
- } | {
164
- call: string;
165
- args: Record<string, any>;
166
- returnType?: "string" | "number" | "boolean" | "object" | "array" | "void" | "any" | undefined;
167
- } | undefined;
67
+ } | import("@a2ui/web_core/v0_9").FunctionCall | undefined;
68
+ }, {
168
69
  label?: string | {
169
70
  path: string;
170
- } | {
171
- call: string;
172
- args: Record<string, any>;
173
- returnType?: "string" | "number" | "boolean" | "object" | "array" | "void" | "any" | undefined;
174
- } | undefined;
71
+ } | import("@a2ui/web_core/v0_9").FunctionCall | undefined;
72
+ description?: string | {
73
+ path: string;
74
+ } | import("@a2ui/web_core/v0_9").FunctionCall | undefined;
175
75
  }>>;
176
76
  weight: z.ZodOptional<z.ZodNumber>;
177
77
  }, "strict", z.ZodTypeAny, {
178
- value: string[] | {
78
+ value: string[] | import("@a2ui/web_core/v0_9").FunctionCall | {
179
79
  path: string;
180
- } | {
181
- call: string;
182
- args: Record<string, any>;
183
- returnType: "string" | "number" | "boolean" | "object" | "array" | "void" | "any";
184
80
  };
185
- disabled?: boolean | {
81
+ disabled?: boolean | import("@a2ui/web_core/v0_9").FunctionCall | {
186
82
  path: string;
187
- } | {
188
- call: string;
189
- args: Record<string, any>;
190
- returnType: "string" | "number" | "boolean" | "object" | "array" | "void" | "any";
191
83
  } | undefined;
192
84
  weight?: number | undefined;
193
- placeholder?: string | {
85
+ placeholder?: string | import("@a2ui/web_core/v0_9").FunctionCall | {
194
86
  path: string;
195
- } | {
196
- call: string;
197
- args: Record<string, any>;
198
- returnType: "string" | "number" | "boolean" | "object" | "array" | "void" | "any";
199
87
  } | undefined;
200
- label?: string | {
88
+ label?: string | import("@a2ui/web_core/v0_9").FunctionCall | {
201
89
  path: string;
202
- } | {
203
- call: string;
204
- args: Record<string, any>;
205
- returnType: "string" | "number" | "boolean" | "object" | "array" | "void" | "any";
206
90
  } | undefined;
207
91
  disableTextInput?: boolean | undefined;
208
92
  validationRegexp?: string | undefined;
209
- validationErrorMessage?: string | {
93
+ validationErrorMessage?: string | import("@a2ui/web_core/v0_9").FunctionCall | {
210
94
  path: string;
211
- } | {
212
- call: string;
213
- args: Record<string, any>;
214
- returnType: "string" | "number" | "boolean" | "object" | "array" | "void" | "any";
215
95
  } | undefined;
216
96
  accessibility?: {
217
- description?: string | {
218
- path: string;
219
- } | {
220
- call: string;
221
- args: Record<string, any>;
222
- returnType: "string" | "number" | "boolean" | "object" | "array" | "void" | "any";
223
- } | undefined;
224
97
  label?: string | {
225
98
  path: string;
226
- } | {
227
- call: string;
228
- args: Record<string, any>;
229
- returnType: "string" | "number" | "boolean" | "object" | "array" | "void" | "any";
230
- } | undefined;
99
+ } | import("@a2ui/web_core/v0_9").FunctionCall | undefined;
100
+ description?: string | {
101
+ path: string;
102
+ } | import("@a2ui/web_core/v0_9").FunctionCall | undefined;
231
103
  } | undefined;
232
104
  }, {
233
- value: string[] | {
105
+ value: string[] | import("@a2ui/web_core/v0_9").FunctionCall | {
234
106
  path: string;
235
- } | {
236
- call: string;
237
- args: Record<string, any>;
238
- returnType?: "string" | "number" | "boolean" | "object" | "array" | "void" | "any" | undefined;
239
107
  };
240
- disabled?: boolean | {
108
+ disabled?: boolean | import("@a2ui/web_core/v0_9").FunctionCall | {
241
109
  path: string;
242
- } | {
243
- call: string;
244
- args: Record<string, any>;
245
- returnType?: "string" | "number" | "boolean" | "object" | "array" | "void" | "any" | undefined;
246
110
  } | undefined;
247
111
  weight?: number | undefined;
248
- placeholder?: string | {
112
+ placeholder?: string | import("@a2ui/web_core/v0_9").FunctionCall | {
249
113
  path: string;
250
- } | {
251
- call: string;
252
- args: Record<string, any>;
253
- returnType?: "string" | "number" | "boolean" | "object" | "array" | "void" | "any" | undefined;
254
114
  } | undefined;
255
- label?: string | {
115
+ label?: string | import("@a2ui/web_core/v0_9").FunctionCall | {
256
116
  path: string;
257
- } | {
258
- call: string;
259
- args: Record<string, any>;
260
- returnType?: "string" | "number" | "boolean" | "object" | "array" | "void" | "any" | undefined;
261
117
  } | undefined;
262
118
  disableTextInput?: boolean | undefined;
263
119
  validationRegexp?: string | undefined;
264
- validationErrorMessage?: string | {
120
+ validationErrorMessage?: string | import("@a2ui/web_core/v0_9").FunctionCall | {
265
121
  path: string;
266
- } | {
267
- call: string;
268
- args: Record<string, any>;
269
- returnType?: "string" | "number" | "boolean" | "object" | "array" | "void" | "any" | undefined;
270
122
  } | undefined;
271
123
  accessibility?: {
272
- description?: string | {
273
- path: string;
274
- } | {
275
- call: string;
276
- args: Record<string, any>;
277
- returnType?: "string" | "number" | "boolean" | "object" | "array" | "void" | "any" | undefined;
278
- } | undefined;
279
124
  label?: string | {
280
125
  path: string;
281
- } | {
282
- call: string;
283
- args: Record<string, any>;
284
- returnType?: "string" | "number" | "boolean" | "object" | "array" | "void" | "any" | undefined;
285
- } | undefined;
126
+ } | import("@a2ui/web_core/v0_9").FunctionCall | undefined;
127
+ description?: string | {
128
+ path: string;
129
+ } | import("@a2ui/web_core/v0_9").FunctionCall | undefined;
286
130
  } | undefined;
287
131
  }>;
288
132
  };
289
- export declare const GlchatTagInputComponent: import("@a2ui/react/v0_9").ReactComponentImplementation;
133
+ export declare const GlchatTagInputComponent: import("@a2ui/react").ReactComponentImplementation<z.ZodTypeAny>;
290
134
  //# sourceMappingURL=TagInput.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"TagInput.d.ts","sourceRoot":"","sources":["../../../../../../src/components/a2ui/v0_9/TagInput/TagInput.tsx"],"names":[],"mappings":"AASA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB;;;GAGG;AACH,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;0BAiEmrW,CAAC;;;;;;;;;;;;;;;;;;;0BAAivB,CAAC;;;;;;;;;;;;;;;;;;;;;;;0BAA2sB,CAAC;;;;;;;0BAA0O,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;0BAA5O,CAAC;;;;;;;0BAA0O,CAAC;;;;CAxBp3Z,CAAC;AAEF,eAAO,MAAM,uBAAuB,yDAqBlC,CAAC"}
1
+ {"version":3,"file":"TagInput.d.ts","sourceRoot":"","sources":["../../../../../../src/components/a2ui/v0_9/TagInput/TagInput.tsx"],"names":[],"mappings":"AAQA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB;;;GAGG;AACH,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAyCvB,CAAC;AAEF,eAAO,MAAM,uBAAuB,kEAGnC,CAAC"}
@@ -1,11 +1,9 @@
1
1
  'use client';
2
- import { jsx as _jsx } from "react/jsx-runtime";
3
2
  import { createComponentImplementation } from '@a2ui/react/v0_9';
4
3
  import { DynamicBooleanSchema, DynamicStringListSchema, DynamicStringSchema, } from '@a2ui/web_core/v0_9';
5
- import { useCallback } from 'react';
6
4
  import { z } from 'zod';
7
- import { TagInput } from '../../../../components/ui/TagInput/TagInput.js';
8
- import { CommonProps, describeDynamic, getWeightStyle } from '../common.js';
5
+ import { GlchatTagInputView } from '../../views/TagInput/TagInput.js';
6
+ import { CommonProps, describeDynamic } from '../common.js';
9
7
  /**
10
8
  * Tag input field for adding and removing string tags (GLChat extension).
11
9
  * Binds the selected tags to a string array in the data model via `value`.
@@ -32,9 +30,4 @@ export const TagInputApi = {
32
30
  .strict()
33
31
  .describe('A tag input field for adding and removing string tags.'),
34
32
  };
35
- export const GlchatTagInputComponent = createComponentImplementation(TagInputApi, ({ props }) => {
36
- const handleValueChange = useCallback((nextTags) => {
37
- props.setValue(nextTags);
38
- }, [props]);
39
- return (_jsx(TagInput, { value: props.value, onValueChange: handleValueChange, label: props.label, placeholder: props.placeholder, disabled: props.disabled === true, disableTextInput: props.disableTextInput === true, validationRegexp: props.validationRegexp, validationErrorMessage: props.validationErrorMessage, style: getWeightStyle(props.weight) }));
40
- });
33
+ export const GlchatTagInputComponent = createComponentImplementation(TagInputApi, GlchatTagInputView);
@@ -8,148 +8,72 @@ export declare const TimeoutApi: {
8
8
  schema: z.ZodObject<{
9
9
  targetTimeUtc: z.ZodUnion<[z.ZodString, z.ZodObject<{
10
10
  path: z.ZodString;
11
- }, "strip", z.ZodTypeAny, {
11
+ }, "strict", z.ZodTypeAny, {
12
12
  path: string;
13
13
  }, {
14
14
  path: string;
15
- }>, z.ZodObject<{
16
- call: z.ZodString;
17
- args: z.ZodRecord<z.ZodString, z.ZodAny>;
18
- returnType: z.ZodDefault<z.ZodEnum<["string", "number", "boolean", "array", "object", "any", "void"]>>;
19
- }, "strip", z.ZodTypeAny, {
20
- call: string;
21
- args: Record<string, any>;
22
- returnType: "string" | "number" | "boolean" | "object" | "array" | "void" | "any";
23
- }, {
24
- call: string;
25
- args: Record<string, any>;
26
- returnType?: "string" | "number" | "boolean" | "object" | "array" | "void" | "any" | undefined;
27
- }>]>;
15
+ }>, z.ZodType<import("@a2ui/web_core/v0_9").FunctionCall, z.ZodTypeDef, import("@a2ui/web_core/v0_9").FunctionCall>]>;
28
16
  variant: z.ZodOptional<z.ZodEnum<["body", "caption", "h3", "h4", "h5"]>>;
29
17
  accessibility: z.ZodOptional<z.ZodObject<{
30
18
  label: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodObject<{
31
19
  path: z.ZodString;
32
- }, "strip", z.ZodTypeAny, {
20
+ }, "strict", z.ZodTypeAny, {
33
21
  path: string;
34
22
  }, {
35
23
  path: string;
36
- }>, z.ZodObject<{
37
- call: z.ZodString;
38
- args: z.ZodRecord<z.ZodString, z.ZodAny>;
39
- returnType: z.ZodDefault<z.ZodEnum<["string", "number", "boolean", "array", "object", "any", "void"]>>;
40
- }, "strip", z.ZodTypeAny, {
41
- call: string;
42
- args: Record<string, any>;
43
- returnType: "string" | "number" | "boolean" | "object" | "array" | "void" | "any";
44
- }, {
45
- call: string;
46
- args: Record<string, any>;
47
- returnType?: "string" | "number" | "boolean" | "object" | "array" | "void" | "any" | undefined;
48
- }>]>>;
24
+ }>, z.ZodType<import("@a2ui/web_core/v0_9").FunctionCall, z.ZodTypeDef, import("@a2ui/web_core/v0_9").FunctionCall>]>>;
49
25
  description: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodObject<{
50
26
  path: z.ZodString;
51
- }, "strip", z.ZodTypeAny, {
27
+ }, "strict", z.ZodTypeAny, {
52
28
  path: string;
53
29
  }, {
54
30
  path: string;
55
- }>, z.ZodObject<{
56
- call: z.ZodString;
57
- args: z.ZodRecord<z.ZodString, z.ZodAny>;
58
- returnType: z.ZodDefault<z.ZodEnum<["string", "number", "boolean", "array", "object", "any", "void"]>>;
59
- }, "strip", z.ZodTypeAny, {
60
- call: string;
61
- args: Record<string, any>;
62
- returnType: "string" | "number" | "boolean" | "object" | "array" | "void" | "any";
63
- }, {
64
- call: string;
65
- args: Record<string, any>;
66
- returnType?: "string" | "number" | "boolean" | "object" | "array" | "void" | "any" | undefined;
67
- }>]>>;
31
+ }>, z.ZodType<import("@a2ui/web_core/v0_9").FunctionCall, z.ZodTypeDef, import("@a2ui/web_core/v0_9").FunctionCall>]>>;
68
32
  }, "strip", z.ZodTypeAny, {
69
- description?: string | {
70
- path: string;
71
- } | {
72
- call: string;
73
- args: Record<string, any>;
74
- returnType: "string" | "number" | "boolean" | "object" | "array" | "void" | "any";
75
- } | undefined;
76
33
  label?: string | {
77
34
  path: string;
78
- } | {
79
- call: string;
80
- args: Record<string, any>;
81
- returnType: "string" | "number" | "boolean" | "object" | "array" | "void" | "any";
82
- } | undefined;
83
- }, {
35
+ } | import("@a2ui/web_core/v0_9").FunctionCall | undefined;
84
36
  description?: string | {
85
37
  path: string;
86
- } | {
87
- call: string;
88
- args: Record<string, any>;
89
- returnType?: "string" | "number" | "boolean" | "object" | "array" | "void" | "any" | undefined;
90
- } | undefined;
38
+ } | import("@a2ui/web_core/v0_9").FunctionCall | undefined;
39
+ }, {
91
40
  label?: string | {
92
41
  path: string;
93
- } | {
94
- call: string;
95
- args: Record<string, any>;
96
- returnType?: "string" | "number" | "boolean" | "object" | "array" | "void" | "any" | undefined;
97
- } | undefined;
42
+ } | import("@a2ui/web_core/v0_9").FunctionCall | undefined;
43
+ description?: string | {
44
+ path: string;
45
+ } | import("@a2ui/web_core/v0_9").FunctionCall | undefined;
98
46
  }>>;
99
47
  weight: z.ZodOptional<z.ZodNumber>;
100
48
  }, "strict", z.ZodTypeAny, {
101
- targetTimeUtc: string | {
49
+ targetTimeUtc: string | import("@a2ui/web_core/v0_9").FunctionCall | {
102
50
  path: string;
103
- } | {
104
- call: string;
105
- args: Record<string, any>;
106
- returnType: "string" | "number" | "boolean" | "object" | "array" | "void" | "any";
107
51
  };
108
52
  weight?: number | undefined;
109
53
  variant?: "caption" | "h3" | "body" | "h4" | "h5" | undefined;
110
54
  accessibility?: {
111
- description?: string | {
112
- path: string;
113
- } | {
114
- call: string;
115
- args: Record<string, any>;
116
- returnType: "string" | "number" | "boolean" | "object" | "array" | "void" | "any";
117
- } | undefined;
118
55
  label?: string | {
119
56
  path: string;
120
- } | {
121
- call: string;
122
- args: Record<string, any>;
123
- returnType: "string" | "number" | "boolean" | "object" | "array" | "void" | "any";
124
- } | undefined;
57
+ } | import("@a2ui/web_core/v0_9").FunctionCall | undefined;
58
+ description?: string | {
59
+ path: string;
60
+ } | import("@a2ui/web_core/v0_9").FunctionCall | undefined;
125
61
  } | undefined;
126
62
  }, {
127
- targetTimeUtc: string | {
63
+ targetTimeUtc: string | import("@a2ui/web_core/v0_9").FunctionCall | {
128
64
  path: string;
129
- } | {
130
- call: string;
131
- args: Record<string, any>;
132
- returnType?: "string" | "number" | "boolean" | "object" | "array" | "void" | "any" | undefined;
133
65
  };
134
66
  weight?: number | undefined;
135
67
  variant?: "caption" | "h3" | "body" | "h4" | "h5" | undefined;
136
68
  accessibility?: {
137
- description?: string | {
138
- path: string;
139
- } | {
140
- call: string;
141
- args: Record<string, any>;
142
- returnType?: "string" | "number" | "boolean" | "object" | "array" | "void" | "any" | undefined;
143
- } | undefined;
144
69
  label?: string | {
145
70
  path: string;
146
- } | {
147
- call: string;
148
- args: Record<string, any>;
149
- returnType?: "string" | "number" | "boolean" | "object" | "array" | "void" | "any" | undefined;
150
- } | undefined;
71
+ } | import("@a2ui/web_core/v0_9").FunctionCall | undefined;
72
+ description?: string | {
73
+ path: string;
74
+ } | import("@a2ui/web_core/v0_9").FunctionCall | undefined;
151
75
  } | undefined;
152
76
  }>;
153
77
  };
154
- export declare const GlchatTimeoutComponent: import("@a2ui/react/v0_9").ReactComponentImplementation;
78
+ export declare const GlchatTimeoutComponent: import("@a2ui/react").ReactComponentImplementation<z.ZodTypeAny>;
155
79
  //# sourceMappingURL=Timeout.d.ts.map