@assistant-ui/react-generative-ui 0.0.17 → 0.0.19
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/JSONGenerativeUI.client.d.ts +1 -2
- package/dist/JSONGenerativeUI.client.d.ts.map +1 -1
- package/dist/JSONGenerativeUI.server.d.ts +1 -2
- package/dist/JSONGenerativeUI.server.d.ts.map +1 -1
- package/dist/JSONGenerativeUI.shared.d.ts +8 -9
- package/dist/JSONGenerativeUI.shared.d.ts.map +1 -1
- package/dist/a2ui/convert.d.ts +1 -2
- package/dist/a2ui/convert.d.ts.map +1 -1
- package/dist/a2ui/convert.js +11 -2
- package/dist/a2ui/convert.js.map +1 -1
- package/dist/a2ui/reducer.d.ts +1 -2
- package/dist/a2ui/reducer.d.ts.map +1 -1
- package/dist/a2ui/reducer.js +63 -10
- package/dist/a2ui/reducer.js.map +1 -1
- package/dist/a2ui/types.d.ts +17 -18
- package/dist/a2ui/types.d.ts.map +1 -1
- package/dist/actionRegistry.d.ts +5 -6
- package/dist/actionRegistry.d.ts.map +1 -1
- package/dist/buildPresentParameters.d.ts +2 -3
- package/dist/buildPresentParameters.d.ts.map +1 -1
- package/dist/buildPresentParameters.js +4 -3
- package/dist/buildPresentParameters.js.map +1 -1
- package/dist/constants.d.ts +2 -2
- package/dist/constants.d.ts.map +1 -1
- package/dist/constants.js +2 -1
- package/dist/constants.js.map +1 -1
- package/dist/convert/boundSpec.d.ts +7 -8
- package/dist/convert/boundSpec.d.ts.map +1 -1
- package/dist/convert/copyBounded.d.ts +1 -2
- package/dist/convert/copyBounded.d.ts.map +1 -1
- package/dist/convert/isElement.d.ts +1 -2
- package/dist/convert/isElement.d.ts.map +1 -1
- package/dist/convert/takeRun.d.ts +1 -2
- package/dist/convert/takeRun.d.ts.map +1 -1
- package/dist/defineGenerativeComponents.d.ts +1 -2
- package/dist/defineGenerativeComponents.d.ts.map +1 -1
- package/dist/generativeUIToJSX.d.ts +2 -3
- package/dist/generativeUIToJSX.d.ts.map +1 -1
- package/dist/ir.d.ts +28 -29
- package/dist/ir.d.ts.map +1 -1
- package/dist/renderGenerativeUI.d.ts +1 -2
- package/dist/renderGenerativeUI.d.ts.map +1 -1
- package/dist/renderGenerativeUI.js +1 -1
- package/dist/renderGenerativeUI.js.map +1 -1
- package/dist/slack/constants.d.ts +35 -36
- package/dist/slack/constants.d.ts.map +1 -1
- package/dist/slack/decodeBlockAction.d.ts +1 -2
- package/dist/slack/decodeBlockAction.d.ts.map +1 -1
- package/dist/slack/fromSlackBlocks.d.ts +1 -2
- package/dist/slack/fromSlackBlocks.d.ts.map +1 -1
- package/dist/slack/toSlackBlocks.d.ts +1 -2
- package/dist/slack/toSlackBlocks.d.ts.map +1 -1
- package/dist/slack/types.d.ts +32 -33
- package/dist/slack/types.d.ts.map +1 -1
- package/dist/teams/constants.d.ts +14 -15
- package/dist/teams/constants.d.ts.map +1 -1
- package/dist/teams/decodeSubmitData.d.ts +1 -2
- package/dist/teams/decodeSubmitData.d.ts.map +1 -1
- package/dist/teams/toAdaptiveCard.d.ts +6 -7
- package/dist/teams/toAdaptiveCard.d.ts.map +1 -1
- package/dist/teams/toTeamsAttachments.d.ts +1 -2
- package/dist/teams/toTeamsAttachments.d.ts.map +1 -1
- package/dist/teams/types.d.ts +29 -30
- package/dist/teams/types.d.ts.map +1 -1
- package/dist/types.d.ts +9 -10
- package/dist/types.d.ts.map +1 -1
- package/dist/vocabulary/alert.d.ts +2 -3
- package/dist/vocabulary/alert.d.ts.map +1 -1
- package/dist/vocabulary/alert.js +21 -16
- package/dist/vocabulary/alert.js.map +1 -1
- package/dist/vocabulary/collectFormValues.d.ts +6 -5
- package/dist/vocabulary/collectFormValues.d.ts.map +1 -1
- package/dist/vocabulary/collectFormValues.js +3 -2
- package/dist/vocabulary/collectFormValues.js.map +1 -1
- package/dist/vocabulary/data.d.ts +1 -2
- package/dist/vocabulary/data.d.ts.map +1 -1
- package/dist/vocabulary/data.js +20 -12
- package/dist/vocabulary/data.js.map +1 -1
- package/dist/vocabulary/dispatch.d.ts +2 -3
- package/dist/vocabulary/dispatch.d.ts.map +1 -1
- package/dist/vocabulary/fact.d.ts +1 -2
- package/dist/vocabulary/fact.d.ts.map +1 -1
- package/dist/vocabulary/fact.js +3 -2
- package/dist/vocabulary/fact.js.map +1 -1
- package/dist/vocabulary/form.d.ts +1 -2
- package/dist/vocabulary/form.d.ts.map +1 -1
- package/dist/vocabulary/icon.d.ts +1 -2
- package/dist/vocabulary/icon.d.ts.map +1 -1
- package/dist/vocabulary/index.d.ts +1 -2
- package/dist/vocabulary/index.d.ts.map +1 -1
- package/dist/vocabulary/interactive.d.ts +10 -9
- package/dist/vocabulary/interactive.d.ts.map +1 -1
- package/dist/vocabulary/interactive.js +30 -23
- package/dist/vocabulary/interactive.js.map +1 -1
- package/dist/vocabulary/layout.d.ts +1 -2
- package/dist/vocabulary/layout.d.ts.map +1 -1
- package/dist/vocabulary/layout.js +7 -5
- package/dist/vocabulary/layout.js.map +1 -1
- package/dist/vocabulary/list.d.ts +1 -2
- package/dist/vocabulary/list.d.ts.map +1 -1
- package/dist/vocabulary/media.d.ts +1 -2
- package/dist/vocabulary/media.d.ts.map +1 -1
- package/dist/vocabulary/text.d.ts +2 -3
- package/dist/vocabulary/text.d.ts.map +1 -1
- package/dist/vocabulary/text.js +4 -3
- package/dist/vocabulary/text.js.map +1 -1
- package/dist/vocabulary/toTextContent.d.ts +4 -0
- package/dist/vocabulary/toTextContent.d.ts.map +1 -0
- package/dist/vocabulary/toTextContent.js +6 -0
- package/dist/vocabulary/toTextContent.js.map +1 -0
- package/package.json +12 -10
- package/src/a2ui/convert.test.ts +36 -0
- package/src/a2ui/convert.ts +21 -2
- package/src/a2ui/reducer.test.ts +223 -0
- package/src/a2ui/reducer.ts +76 -12
- package/src/buildPresentParameters.ts +7 -4
- package/src/constants.ts +2 -0
- package/src/renderGenerativeUI.test.tsx +57 -0
- package/src/renderGenerativeUI.tsx +3 -1
- package/src/slack/fromSlackBlocks.test.ts +4 -1
- package/src/slack/toSlackBlocks.test.ts +8 -4
- package/src/teams/toAdaptiveCard.test.ts +5 -3
- package/src/vocabulary/alert.test.tsx +10 -0
- package/src/vocabulary/alert.tsx +16 -7
- package/src/vocabulary/collectFormValues.test.ts +38 -0
- package/src/vocabulary/collectFormValues.ts +11 -2
- package/src/vocabulary/data.test.tsx +40 -0
- package/src/vocabulary/data.tsx +47 -26
- package/src/vocabulary/fact.test.tsx +12 -0
- package/src/vocabulary/fact.tsx +3 -2
- package/src/vocabulary/form.test.tsx +1 -0
- package/src/vocabulary/interactive.test.tsx +55 -1
- package/src/vocabulary/interactive.tsx +50 -29
- package/src/vocabulary/layout.test.tsx +17 -0
- package/src/vocabulary/layout.tsx +8 -4
- package/src/vocabulary/list.test.tsx +5 -4
- package/src/vocabulary/text.test.tsx +29 -0
- package/src/vocabulary/text.tsx +4 -3
- package/src/vocabulary/toTextContent.ts +2 -0
- package/dist/node_modules/.pnpm/@types_json-schema@7.0.15/node_modules/@types/json-schema/index.d.ts +0 -141
- package/dist/node_modules/.pnpm/@types_json-schema@7.0.15/node_modules/@types/json-schema/index.d.ts.map +0 -1
package/dist/node_modules/.pnpm/@types_json-schema@7.0.15/node_modules/@types/json-schema/index.d.ts
DELETED
|
@@ -1,141 +0,0 @@
|
|
|
1
|
-
//#region ../../node_modules/.pnpm/@types+json-schema@7.0.15/node_modules/@types/json-schema/index.d.ts
|
|
2
|
-
// ==================================================================================================
|
|
3
|
-
// JSON Schema Draft 07
|
|
4
|
-
// ==================================================================================================
|
|
5
|
-
// https://tools.ietf.org/html/draft-handrews-json-schema-validation-01
|
|
6
|
-
// --------------------------------------------------------------------------------------------------
|
|
7
|
-
/**
|
|
8
|
-
* Primitive type
|
|
9
|
-
* @see https://tools.ietf.org/html/draft-handrews-json-schema-validation-01#section-6.1.1
|
|
10
|
-
*/
|
|
11
|
-
type JSONSchema7TypeName = "string" //
|
|
12
|
-
| "number" | "integer" | "boolean" | "object" | "array" | "null";
|
|
13
|
-
/**
|
|
14
|
-
* Primitive type
|
|
15
|
-
* @see https://tools.ietf.org/html/draft-handrews-json-schema-validation-01#section-6.1.1
|
|
16
|
-
*/
|
|
17
|
-
type JSONSchema7Type = string //
|
|
18
|
-
| number | boolean | JSONSchema7Object | JSONSchema7Array | null;
|
|
19
|
-
// Workaround for infinite type recursion
|
|
20
|
-
interface JSONSchema7Object {
|
|
21
|
-
[key: string]: JSONSchema7Type;
|
|
22
|
-
}
|
|
23
|
-
// Workaround for infinite type recursion
|
|
24
|
-
// https://github.com/Microsoft/TypeScript/issues/3496#issuecomment-128553540
|
|
25
|
-
interface JSONSchema7Array extends Array<JSONSchema7Type> {}
|
|
26
|
-
/**
|
|
27
|
-
* Meta schema
|
|
28
|
-
*
|
|
29
|
-
* Recommended values:
|
|
30
|
-
* - 'http://json-schema.org/schema#'
|
|
31
|
-
* - 'http://json-schema.org/hyper-schema#'
|
|
32
|
-
* - 'http://json-schema.org/draft-07/schema#'
|
|
33
|
-
* - 'http://json-schema.org/draft-07/hyper-schema#'
|
|
34
|
-
*
|
|
35
|
-
* @see https://tools.ietf.org/html/draft-handrews-json-schema-validation-01#section-5
|
|
36
|
-
*/
|
|
37
|
-
type JSONSchema7Version = string;
|
|
38
|
-
/**
|
|
39
|
-
* JSON Schema v7
|
|
40
|
-
* @see https://tools.ietf.org/html/draft-handrews-json-schema-validation-01
|
|
41
|
-
*/
|
|
42
|
-
type JSONSchema7Definition = JSONSchema7 | boolean;
|
|
43
|
-
interface JSONSchema7 {
|
|
44
|
-
$id?: string | undefined;
|
|
45
|
-
$ref?: string | undefined;
|
|
46
|
-
$schema?: JSONSchema7Version | undefined;
|
|
47
|
-
$comment?: string | undefined;
|
|
48
|
-
/**
|
|
49
|
-
* @see https://datatracker.ietf.org/doc/html/draft-bhutton-json-schema-00#section-8.2.4
|
|
50
|
-
* @see https://datatracker.ietf.org/doc/html/draft-bhutton-json-schema-validation-00#appendix-A
|
|
51
|
-
*/
|
|
52
|
-
$defs?: {
|
|
53
|
-
[key: string]: JSONSchema7Definition;
|
|
54
|
-
} | undefined;
|
|
55
|
-
/**
|
|
56
|
-
* @see https://tools.ietf.org/html/draft-handrews-json-schema-validation-01#section-6.1
|
|
57
|
-
*/
|
|
58
|
-
type?: JSONSchema7TypeName | JSONSchema7TypeName[] | undefined;
|
|
59
|
-
enum?: JSONSchema7Type[] | undefined;
|
|
60
|
-
const?: JSONSchema7Type | undefined;
|
|
61
|
-
/**
|
|
62
|
-
* @see https://tools.ietf.org/html/draft-handrews-json-schema-validation-01#section-6.2
|
|
63
|
-
*/
|
|
64
|
-
multipleOf?: number | undefined;
|
|
65
|
-
maximum?: number | undefined;
|
|
66
|
-
exclusiveMaximum?: number | undefined;
|
|
67
|
-
minimum?: number | undefined;
|
|
68
|
-
exclusiveMinimum?: number | undefined;
|
|
69
|
-
/**
|
|
70
|
-
* @see https://tools.ietf.org/html/draft-handrews-json-schema-validation-01#section-6.3
|
|
71
|
-
*/
|
|
72
|
-
maxLength?: number | undefined;
|
|
73
|
-
minLength?: number | undefined;
|
|
74
|
-
pattern?: string | undefined;
|
|
75
|
-
/**
|
|
76
|
-
* @see https://tools.ietf.org/html/draft-handrews-json-schema-validation-01#section-6.4
|
|
77
|
-
*/
|
|
78
|
-
items?: JSONSchema7Definition | JSONSchema7Definition[] | undefined;
|
|
79
|
-
additionalItems?: JSONSchema7Definition | undefined;
|
|
80
|
-
maxItems?: number | undefined;
|
|
81
|
-
minItems?: number | undefined;
|
|
82
|
-
uniqueItems?: boolean | undefined;
|
|
83
|
-
contains?: JSONSchema7Definition | undefined;
|
|
84
|
-
/**
|
|
85
|
-
* @see https://tools.ietf.org/html/draft-handrews-json-schema-validation-01#section-6.5
|
|
86
|
-
*/
|
|
87
|
-
maxProperties?: number | undefined;
|
|
88
|
-
minProperties?: number | undefined;
|
|
89
|
-
required?: string[] | undefined;
|
|
90
|
-
properties?: {
|
|
91
|
-
[key: string]: JSONSchema7Definition;
|
|
92
|
-
} | undefined;
|
|
93
|
-
patternProperties?: {
|
|
94
|
-
[key: string]: JSONSchema7Definition;
|
|
95
|
-
} | undefined;
|
|
96
|
-
additionalProperties?: JSONSchema7Definition | undefined;
|
|
97
|
-
dependencies?: {
|
|
98
|
-
[key: string]: JSONSchema7Definition | string[];
|
|
99
|
-
} | undefined;
|
|
100
|
-
propertyNames?: JSONSchema7Definition | undefined;
|
|
101
|
-
/**
|
|
102
|
-
* @see https://tools.ietf.org/html/draft-handrews-json-schema-validation-01#section-6.6
|
|
103
|
-
*/
|
|
104
|
-
if?: JSONSchema7Definition | undefined;
|
|
105
|
-
then?: JSONSchema7Definition | undefined;
|
|
106
|
-
else?: JSONSchema7Definition | undefined;
|
|
107
|
-
/**
|
|
108
|
-
* @see https://tools.ietf.org/html/draft-handrews-json-schema-validation-01#section-6.7
|
|
109
|
-
*/
|
|
110
|
-
allOf?: JSONSchema7Definition[] | undefined;
|
|
111
|
-
anyOf?: JSONSchema7Definition[] | undefined;
|
|
112
|
-
oneOf?: JSONSchema7Definition[] | undefined;
|
|
113
|
-
not?: JSONSchema7Definition | undefined;
|
|
114
|
-
/**
|
|
115
|
-
* @see https://tools.ietf.org/html/draft-handrews-json-schema-validation-01#section-7
|
|
116
|
-
*/
|
|
117
|
-
format?: string | undefined;
|
|
118
|
-
/**
|
|
119
|
-
* @see https://tools.ietf.org/html/draft-handrews-json-schema-validation-01#section-8
|
|
120
|
-
*/
|
|
121
|
-
contentMediaType?: string | undefined;
|
|
122
|
-
contentEncoding?: string | undefined;
|
|
123
|
-
/**
|
|
124
|
-
* @see https://tools.ietf.org/html/draft-handrews-json-schema-validation-01#section-9
|
|
125
|
-
*/
|
|
126
|
-
definitions?: {
|
|
127
|
-
[key: string]: JSONSchema7Definition;
|
|
128
|
-
} | undefined;
|
|
129
|
-
/**
|
|
130
|
-
* @see https://tools.ietf.org/html/draft-handrews-json-schema-validation-01#section-10
|
|
131
|
-
*/
|
|
132
|
-
title?: string | undefined;
|
|
133
|
-
description?: string | undefined;
|
|
134
|
-
default?: JSONSchema7Type | undefined;
|
|
135
|
-
readOnly?: boolean | undefined;
|
|
136
|
-
writeOnly?: boolean | undefined;
|
|
137
|
-
examples?: JSONSchema7Type | undefined;
|
|
138
|
-
}
|
|
139
|
-
//#endregion
|
|
140
|
-
export { JSONSchema7, JSONSchema7Array, JSONSchema7Definition, JSONSchema7Object, JSONSchema7Type, JSONSchema7TypeName, JSONSchema7Version };
|
|
141
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","names":[],"sources":["../../../../../../../../../node_modules/.pnpm/@types+json-schema@7.0.15/node_modules/@types/json-schema/index.d.ts"],"x_google_ignoreList":[0],"mappings":";;;;;;;;;;KA+iBY;;;;;;KAaA;sBAIN,oBACA;;UAIW;GACZ,cAAc;;;;UAKF,yBAAyB,MAAM;;;;;;;;;;;;KAapC;;;;;KAMA,wBAAwB;UACnB;EACb;EACA;EACA,UAAU;EACV;;;;;EAMA;KACK,cAAc;;;;;EAMnB,OAAO,sBAAsB;EAC7B,OAAO;EACP,QAAQ;;;;EAKR;EACA;EACA;EACA;EACA;;;;EAKA;EACA;EACA;;;;EAKA,QAAQ,wBAAwB;EAChC,kBAAkB;EAClB;EACA;EACA;EACA,WAAW;;;;EAKX;EACA;EACA;EACA;KACK,cAAc;;EAEnB;KACK,cAAc;;EAEnB,uBAAuB;EACvB;KACK,cAAc;;EAEnB,gBAAgB;;;;EAKhB,KAAK;EACL,OAAO;EACP,OAAO;;;;EAKP,QAAQ;EACR,QAAQ;EACR,QAAQ;EACR,MAAM;;;;EAKN;;;;EAKA;EACA;;;;EAKA;KACK,cAAc;;;;;EAMnB;EACA;EACA,UAAU;EACV;EACA;EACA,WAAW"}
|