@assistant-ui/react-generative-ui 0.0.18 → 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/reducer.d.ts +1 -2
- package/dist/a2ui/reducer.d.ts.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/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/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 +1 -2
- package/dist/vocabulary/alert.d.ts.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/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/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 +4 -4
- package/dist/vocabulary/interactive.d.ts.map +1 -1
- package/dist/vocabulary/interactive.js +2 -0
- 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/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/toTextContent.d.ts +1 -2
- package/dist/vocabulary/toTextContent.d.ts.map +1 -1
- package/package.json +12 -10
- package/src/constants.ts +2 -0
- 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/collectFormValues.test.ts +38 -0
- package/src/vocabulary/collectFormValues.ts +11 -2
- package/src/vocabulary/form.test.tsx +1 -0
- package/src/vocabulary/interactive.test.tsx +14 -1
- package/src/vocabulary/interactive.tsx +8 -1
- package/src/vocabulary/layout.test.tsx +1 -0
- package/src/vocabulary/list.test.tsx +5 -4
- 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
|
@@ -1,77 +1,77 @@
|
|
|
1
1
|
import { SlackAlertBlock, SlackButtonElement, SlackCardBlock, SlackCarouselBlock, SlackContextBlock, SlackDataTableBlock, SlackDataTableCell, SlackImageBlock, SlackSectionBlock, SlackTextObject } from "./types.js";
|
|
2
2
|
//#region src/slack/constants.d.ts
|
|
3
3
|
/** The block limit for a Slack message. */
|
|
4
|
-
declare const MESSAGE_BLOCK_CAP = 50;
|
|
4
|
+
export declare const MESSAGE_BLOCK_CAP = 50;
|
|
5
5
|
/** The block limit for a Slack modal. */
|
|
6
|
-
declare const MODAL_BLOCK_CAP = 100;
|
|
6
|
+
export declare const MODAL_BLOCK_CAP = 100;
|
|
7
7
|
/**
|
|
8
8
|
* The maximum number of top-level blocks accepted when parsing Slack Block
|
|
9
9
|
* Kit JSON back into generative UI, guarding against a hostile or malformed
|
|
10
10
|
* payload.
|
|
11
11
|
*/
|
|
12
|
-
declare const INBOUND_BLOCK_CAP = 200;
|
|
12
|
+
export declare const INBOUND_BLOCK_CAP = 200;
|
|
13
13
|
/** The character limit for header text. */
|
|
14
|
-
declare const HEADER_TEXT_CAP = 150;
|
|
14
|
+
export declare const HEADER_TEXT_CAP = 150;
|
|
15
15
|
/** The character limit for section text. */
|
|
16
|
-
declare const SECTION_TEXT_CAP = 3000;
|
|
16
|
+
export declare const SECTION_TEXT_CAP = 3000;
|
|
17
17
|
/** The maximum number of fields in one section. */
|
|
18
|
-
declare const FACT_FIELD_CAP = 10;
|
|
18
|
+
export declare const FACT_FIELD_CAP = 10;
|
|
19
19
|
/** The character limit for one section field. */
|
|
20
|
-
declare const FACT_FIELD_TEXT_CAP = 2000;
|
|
20
|
+
export declare const FACT_FIELD_TEXT_CAP = 2000;
|
|
21
21
|
/** The character limit for button labels and option labels. */
|
|
22
|
-
declare const INTERACTIVE_TEXT_CAP = 75;
|
|
22
|
+
export declare const INTERACTIVE_TEXT_CAP = 75;
|
|
23
23
|
/** The character limit for an action_id. */
|
|
24
|
-
declare const ACTION_ID_CAP = 255;
|
|
24
|
+
export declare const ACTION_ID_CAP = 255;
|
|
25
25
|
/** The character limit for a button's serialized value payload. */
|
|
26
|
-
declare const BUTTON_VALUE_CAP = 2000;
|
|
26
|
+
export declare const BUTTON_VALUE_CAP = 2000;
|
|
27
27
|
/** The maximum number of elements in one actions block. */
|
|
28
|
-
declare const ACTIONS_ELEMENT_CAP = 25;
|
|
28
|
+
export declare const ACTIONS_ELEMENT_CAP = 25;
|
|
29
29
|
/** The maximum number of options in a static select. */
|
|
30
|
-
declare const SELECT_OPTION_CAP = 100;
|
|
30
|
+
export declare const SELECT_OPTION_CAP = 100;
|
|
31
31
|
/** The maximum number of options in a radio-button group. */
|
|
32
|
-
declare const RADIO_OPTION_CAP = 10;
|
|
32
|
+
export declare const RADIO_OPTION_CAP = 10;
|
|
33
33
|
/** The character limit for a select or input placeholder. */
|
|
34
|
-
declare const PLACEHOLDER_TEXT_CAP = 150;
|
|
34
|
+
export declare const PLACEHOLDER_TEXT_CAP = 150;
|
|
35
35
|
/** The character limit for an input's label. */
|
|
36
|
-
declare const INPUT_LABEL_CAP = 2000;
|
|
36
|
+
export declare const INPUT_LABEL_CAP = 2000;
|
|
37
37
|
/** The maximum number of elements in one context block. */
|
|
38
|
-
declare const CONTEXT_ELEMENT_CAP = 10;
|
|
38
|
+
export declare const CONTEXT_ELEMENT_CAP = 10;
|
|
39
39
|
/** The character limit for one context element's text. */
|
|
40
|
-
declare const CONTEXT_TEXT_CAP = 3000;
|
|
40
|
+
export declare const CONTEXT_TEXT_CAP = 3000;
|
|
41
41
|
/** The character limit for card titles and subtitles. */
|
|
42
|
-
declare const CARD_TITLE_CAP = 150;
|
|
42
|
+
export declare const CARD_TITLE_CAP = 150;
|
|
43
43
|
/** The character limit for a card's body text. */
|
|
44
|
-
declare const CARD_BODY_CAP = 200;
|
|
44
|
+
export declare const CARD_BODY_CAP = 200;
|
|
45
45
|
/** The character limit for a card's subtext. */
|
|
46
|
-
declare const CARD_SUBTEXT_CAP = 200;
|
|
46
|
+
export declare const CARD_SUBTEXT_CAP = 200;
|
|
47
47
|
/** The maximum number of buttons in a card's actions. */
|
|
48
|
-
declare const CARD_ACTIONS_CAP = 3;
|
|
48
|
+
export declare const CARD_ACTIONS_CAP = 3;
|
|
49
49
|
/** The minimum number of elements in a renderable carousel. */
|
|
50
|
-
declare const CAROUSEL_CARD_MIN = 1;
|
|
50
|
+
export declare const CAROUSEL_CARD_MIN = 1;
|
|
51
51
|
/** The maximum number of elements in a carousel. */
|
|
52
|
-
declare const CAROUSEL_CARD_CAP = 10;
|
|
52
|
+
export declare const CAROUSEL_CARD_CAP = 10;
|
|
53
53
|
/** The character limit for an alert's text. */
|
|
54
|
-
declare const ALERT_TEXT_CAP = 200;
|
|
54
|
+
export declare const ALERT_TEXT_CAP = 200;
|
|
55
55
|
/**
|
|
56
56
|
* The maximum number of data rows in a data-table block; the emitted `rows`
|
|
57
57
|
* array additionally carries one header row.
|
|
58
58
|
*/
|
|
59
|
-
declare const DATA_TABLE_ROW_CAP = 200;
|
|
59
|
+
export declare const DATA_TABLE_ROW_CAP = 200;
|
|
60
60
|
/** The maximum number of columns in a data-table block. */
|
|
61
|
-
declare const DATA_TABLE_COLUMN_CAP = 20;
|
|
61
|
+
export declare const DATA_TABLE_COLUMN_CAP = 20;
|
|
62
62
|
/**
|
|
63
63
|
* The cumulative character limit (summed across every cell's text) shared by
|
|
64
64
|
* every data-table block in one payload.
|
|
65
65
|
*/
|
|
66
|
-
declare const DATA_TABLE_CHAR_BUDGET = 20000;
|
|
66
|
+
export declare const DATA_TABLE_CHAR_BUDGET = 20000;
|
|
67
67
|
/** The caption emitted on every native data-table block. */
|
|
68
|
-
declare const TABLE_CAPTION = "Table";
|
|
68
|
+
export declare const TABLE_CAPTION = "Table";
|
|
69
69
|
/** The cumulative character limit for native markdown blocks. */
|
|
70
|
-
declare const MARKDOWN_TEXT_BUDGET = 12000;
|
|
70
|
+
export declare const MARKDOWN_TEXT_BUDGET = 12000;
|
|
71
71
|
/** Builds the message-surface fallback for an alert. */
|
|
72
|
-
declare function buildAlertFallback(title: string, description: string, tone: "info" | "success" | "warning" | "danger"): readonly [SlackContextBlock, SlackSectionBlock];
|
|
72
|
+
export declare function buildAlertFallback(title: string, description: string, tone: "info" | "success" | "warning" | "danger"): readonly [SlackContextBlock, SlackSectionBlock];
|
|
73
73
|
/** Builds a 2026 Slack modal-only alert block, mapping `tone` to its `level`. */
|
|
74
|
-
declare function buildAlertBlock(text: string, tone: "info" | "success" | "warning" | "danger"): SlackAlertBlock;
|
|
74
|
+
export declare function buildAlertBlock(text: string, tone: "info" | "success" | "warning" | "danger"): SlackAlertBlock;
|
|
75
75
|
type CardBlockFields = {
|
|
76
76
|
readonly heroImage?: SlackImageBlock;
|
|
77
77
|
readonly title?: SlackTextObject;
|
|
@@ -81,13 +81,12 @@ type CardBlockFields = {
|
|
|
81
81
|
readonly actions?: readonly SlackButtonElement[];
|
|
82
82
|
};
|
|
83
83
|
/** Builds a 2026 Slack card block from its already-clamped fields. */
|
|
84
|
-
declare function buildCardBlock(fields: CardBlockFields): SlackCardBlock;
|
|
84
|
+
export declare function buildCardBlock(fields: CardBlockFields): SlackCardBlock;
|
|
85
85
|
/** Builds a 2026 Slack carousel block. */
|
|
86
|
-
declare function buildCarouselBlock(elements: readonly SlackCardBlock[]): SlackCarouselBlock;
|
|
86
|
+
export declare function buildCarouselBlock(elements: readonly SlackCardBlock[]): SlackCarouselBlock;
|
|
87
87
|
/** Builds a 2026 Slack data-table block; `rows[0]` must be the header row. */
|
|
88
|
-
declare function buildDataTableBlock(rows: readonly (readonly SlackDataTableCell[])[]): SlackDataTableBlock;
|
|
88
|
+
export declare function buildDataTableBlock(rows: readonly (readonly SlackDataTableCell[])[]): SlackDataTableBlock;
|
|
89
89
|
/** Builds the final note used when a surface block budget is exceeded. */
|
|
90
|
-
declare function buildBlockBudgetNote(omitted: number): SlackContextBlock;
|
|
90
|
+
export declare function buildBlockBudgetNote(omitted: number): SlackContextBlock;
|
|
91
91
|
//#endregion
|
|
92
|
-
export { ACTIONS_ELEMENT_CAP, ACTION_ID_CAP, ALERT_TEXT_CAP, BUTTON_VALUE_CAP, CARD_ACTIONS_CAP, CARD_BODY_CAP, CARD_SUBTEXT_CAP, CARD_TITLE_CAP, CAROUSEL_CARD_CAP, CAROUSEL_CARD_MIN, CONTEXT_ELEMENT_CAP, CONTEXT_TEXT_CAP, DATA_TABLE_CHAR_BUDGET, DATA_TABLE_COLUMN_CAP, DATA_TABLE_ROW_CAP, FACT_FIELD_CAP, FACT_FIELD_TEXT_CAP, HEADER_TEXT_CAP, INBOUND_BLOCK_CAP, INPUT_LABEL_CAP, INTERACTIVE_TEXT_CAP, MARKDOWN_TEXT_BUDGET, MESSAGE_BLOCK_CAP, MODAL_BLOCK_CAP, PLACEHOLDER_TEXT_CAP, RADIO_OPTION_CAP, SECTION_TEXT_CAP, SELECT_OPTION_CAP, TABLE_CAPTION, buildAlertBlock, buildAlertFallback, buildBlockBudgetNote, buildCardBlock, buildCarouselBlock, buildDataTableBlock };
|
|
93
92
|
//# sourceMappingURL=constants.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.d.ts","names":[],"sources":["../../src/slack/constants.ts"],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"constants.d.ts","names":[],"sources":["../../src/slack/constants.ts"],"mappings":";;;qBAca;;qBAGA;;;;;;qBAOA;;qBAGA;;qBAGA;;qBAGA;;qBAGA;;qBAGA;;qBAGA;;qBAGA;;qBAGA;;qBAGA;;qBAGA;;qBAGA;;qBAGA;;qBAGA;;qBAGA;;qBAGA;;qBAGA;;qBAGA;;qBAGA;;qBAGA;;qBAGA;;qBAGA;;;;;qBAMA;;qBAGA;;;;;qBAMA;;qBAGA;;qBAGA;;wBAGG,mBACd,eACA,qBACA,4DACW,mBAAmB;;wBAmBhB,gBACd,cACA,kDACC;KAKE;WACM,YAAY;WACZ,QAAQ;WACR,WAAW;WACX,OAAO;WACP,UAAU;WACV,mBAAmB;;;wBAId,eAAe,QAAQ,kBAAkB;;wBAczC,mBACd,mBAAmB,mBAClB;;wBAKa,oBACd,yBAAyB,0BACxB;;wBAKa,qBAAqB,kBAAkB"}
|
|
@@ -5,7 +5,6 @@ import { Action } from "../ir.js";
|
|
|
5
5
|
* `$input` is reserved for the runtime selection: a `$input` key inside the
|
|
6
6
|
* button's JSON `value` payload is dropped rather than spread into the result.
|
|
7
7
|
*/
|
|
8
|
-
declare function decodeBlockAction(action: unknown): Action | undefined;
|
|
8
|
+
export declare function decodeBlockAction(action: unknown): Action | undefined;
|
|
9
9
|
//#endregion
|
|
10
|
-
export { decodeBlockAction };
|
|
11
10
|
//# sourceMappingURL=decodeBlockAction.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"decodeBlockAction.d.ts","names":[],"sources":["../../src/slack/decodeBlockAction.ts"],"mappings":";;;;;;;
|
|
1
|
+
{"version":3,"file":"decodeBlockAction.d.ts","names":[],"sources":["../../src/slack/decodeBlockAction.ts"],"mappings":";;;;;;;wBAegB,kBAAkB,kBAAkB"}
|
|
@@ -24,7 +24,6 @@ import { FromSlackBlocksResult } from "./types.js";
|
|
|
24
24
|
* string, even when its text is the stringified form of a boolean, since the
|
|
25
25
|
* Slack shape does not distinguish a boolean from ordinary text.
|
|
26
26
|
*/
|
|
27
|
-
declare function fromSlackBlocks(blocks: unknown): FromSlackBlocksResult;
|
|
27
|
+
export declare function fromSlackBlocks(blocks: unknown): FromSlackBlocksResult;
|
|
28
28
|
//#endregion
|
|
29
|
-
export { fromSlackBlocks };
|
|
30
29
|
//# sourceMappingURL=fromSlackBlocks.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fromSlackBlocks.d.ts","names":[],"sources":["../../src/slack/fromSlackBlocks.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"fromSlackBlocks.d.ts","names":[],"sources":["../../src/slack/fromSlackBlocks.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;wBA+pBgB,gBAAgB,kBAAkB"}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { SlackBlocksResult, ToSlackBlocksOptions } from "./types.js";
|
|
2
2
|
//#region src/slack/toSlackBlocks.d.ts
|
|
3
3
|
/** Converts a generative-UI tree into Slack Block Kit JSON and downgrade warnings. */
|
|
4
|
-
declare function toSlackBlocks(node: unknown, options?: ToSlackBlocksOptions): SlackBlocksResult;
|
|
4
|
+
export declare function toSlackBlocks(node: unknown, options?: ToSlackBlocksOptions): SlackBlocksResult;
|
|
5
5
|
//#endregion
|
|
6
|
-
export { toSlackBlocks };
|
|
7
6
|
//# sourceMappingURL=toSlackBlocks.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"toSlackBlocks.d.ts","names":[],"sources":["../../src/slack/toSlackBlocks.ts"],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"toSlackBlocks.d.ts","names":[],"sources":["../../src/slack/toSlackBlocks.ts"],"mappings":";;;wBAqzCgB,cACd,eACA,UAAU,uBACT"}
|
package/dist/slack/types.d.ts
CHANGED
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
import { UIElement } from "../ir.js";
|
|
2
2
|
//#region src/slack/types.d.ts
|
|
3
3
|
/** A Slack plain-text composition object. */
|
|
4
|
-
interface SlackPlainText {
|
|
4
|
+
export interface SlackPlainText {
|
|
5
5
|
readonly type: "plain_text";
|
|
6
6
|
readonly text: string;
|
|
7
7
|
}
|
|
8
8
|
/** A Slack mrkdwn composition object. */
|
|
9
|
-
interface SlackMrkdwnText {
|
|
9
|
+
export interface SlackMrkdwnText {
|
|
10
10
|
readonly type: "mrkdwn";
|
|
11
11
|
readonly text: string;
|
|
12
12
|
}
|
|
13
13
|
/** A text composition object accepted by card and alert text fields. */
|
|
14
|
-
type SlackTextObject = SlackPlainText | SlackMrkdwnText;
|
|
14
|
+
export type SlackTextObject = SlackPlainText | SlackMrkdwnText;
|
|
15
15
|
/** A selectable Slack option. */
|
|
16
|
-
interface SlackOption {
|
|
16
|
+
export interface SlackOption {
|
|
17
17
|
readonly text: SlackPlainText;
|
|
18
18
|
readonly value: string;
|
|
19
19
|
}
|
|
20
20
|
/** A Slack button element. */
|
|
21
|
-
interface SlackButtonElement {
|
|
21
|
+
export interface SlackButtonElement {
|
|
22
22
|
readonly type: "button";
|
|
23
23
|
readonly text: SlackPlainText;
|
|
24
24
|
readonly action_id: string;
|
|
@@ -26,98 +26,98 @@ interface SlackButtonElement {
|
|
|
26
26
|
readonly style?: "primary" | "danger";
|
|
27
27
|
}
|
|
28
28
|
/** A Slack static-select element. */
|
|
29
|
-
interface SlackStaticSelectElement {
|
|
29
|
+
export interface SlackStaticSelectElement {
|
|
30
30
|
readonly type: "static_select";
|
|
31
31
|
readonly action_id: string;
|
|
32
32
|
readonly options: readonly SlackOption[];
|
|
33
33
|
readonly placeholder?: SlackPlainText;
|
|
34
34
|
}
|
|
35
35
|
/** A Slack date-picker element. */
|
|
36
|
-
interface SlackDatePickerElement {
|
|
36
|
+
export interface SlackDatePickerElement {
|
|
37
37
|
readonly type: "datepicker";
|
|
38
38
|
readonly action_id: string;
|
|
39
39
|
readonly initial_date?: string;
|
|
40
40
|
}
|
|
41
41
|
/** A Slack checkbox-group element. */
|
|
42
|
-
interface SlackCheckboxesElement {
|
|
42
|
+
export interface SlackCheckboxesElement {
|
|
43
43
|
readonly type: "checkboxes";
|
|
44
44
|
readonly action_id: string;
|
|
45
45
|
readonly options: readonly SlackOption[];
|
|
46
46
|
readonly initial_options?: readonly SlackOption[];
|
|
47
47
|
}
|
|
48
48
|
/** A Slack radio-button element. */
|
|
49
|
-
interface SlackRadioButtonsElement {
|
|
49
|
+
export interface SlackRadioButtonsElement {
|
|
50
50
|
readonly type: "radio_buttons";
|
|
51
51
|
readonly action_id: string;
|
|
52
52
|
readonly options: readonly SlackOption[];
|
|
53
53
|
readonly initial_option?: SlackOption;
|
|
54
54
|
}
|
|
55
55
|
/** A Slack plain-text input element. */
|
|
56
|
-
interface SlackPlainTextInputElement {
|
|
56
|
+
export interface SlackPlainTextInputElement {
|
|
57
57
|
readonly type: "plain_text_input";
|
|
58
58
|
readonly action_id: string;
|
|
59
59
|
readonly multiline?: boolean;
|
|
60
60
|
readonly placeholder?: SlackPlainText;
|
|
61
61
|
}
|
|
62
62
|
/** An element accepted by a Slack actions block. */
|
|
63
|
-
type SlackActionElement = SlackButtonElement | SlackStaticSelectElement | SlackDatePickerElement | SlackCheckboxesElement | SlackRadioButtonsElement;
|
|
63
|
+
export type SlackActionElement = SlackButtonElement | SlackStaticSelectElement | SlackDatePickerElement | SlackCheckboxesElement | SlackRadioButtonsElement;
|
|
64
64
|
/** A Slack header block. */
|
|
65
|
-
interface SlackHeaderBlock {
|
|
65
|
+
export interface SlackHeaderBlock {
|
|
66
66
|
readonly type: "header";
|
|
67
67
|
readonly text: SlackPlainText;
|
|
68
68
|
}
|
|
69
69
|
/** A Slack section block. */
|
|
70
|
-
interface SlackSectionBlock {
|
|
70
|
+
export interface SlackSectionBlock {
|
|
71
71
|
readonly type: "section";
|
|
72
72
|
readonly text?: SlackMrkdwnText;
|
|
73
73
|
readonly fields?: readonly SlackMrkdwnText[];
|
|
74
74
|
readonly accessory?: SlackButtonElement;
|
|
75
75
|
}
|
|
76
76
|
/** A Slack context block. */
|
|
77
|
-
interface SlackContextBlock {
|
|
77
|
+
export interface SlackContextBlock {
|
|
78
78
|
readonly type: "context";
|
|
79
79
|
readonly elements: readonly SlackMrkdwnText[];
|
|
80
80
|
}
|
|
81
81
|
/** A Slack image block. */
|
|
82
|
-
interface SlackImageBlock {
|
|
82
|
+
export interface SlackImageBlock {
|
|
83
83
|
readonly type: "image";
|
|
84
84
|
readonly image_url: string;
|
|
85
85
|
readonly alt_text: string;
|
|
86
86
|
}
|
|
87
87
|
/** A Slack divider block. */
|
|
88
|
-
interface SlackDividerBlock {
|
|
88
|
+
export interface SlackDividerBlock {
|
|
89
89
|
readonly type: "divider";
|
|
90
90
|
}
|
|
91
91
|
/** A Slack actions block. */
|
|
92
|
-
interface SlackActionsBlock {
|
|
92
|
+
export interface SlackActionsBlock {
|
|
93
93
|
readonly type: "actions";
|
|
94
94
|
readonly elements: readonly SlackActionElement[];
|
|
95
95
|
}
|
|
96
96
|
/** A Slack input block. */
|
|
97
|
-
interface SlackInputBlock {
|
|
97
|
+
export interface SlackInputBlock {
|
|
98
98
|
readonly type: "input";
|
|
99
99
|
readonly label: SlackPlainText;
|
|
100
100
|
readonly element: SlackPlainTextInputElement;
|
|
101
101
|
}
|
|
102
102
|
/** A text cell in a Slack data-table block. */
|
|
103
|
-
interface SlackDataTableRawTextCell {
|
|
103
|
+
export interface SlackDataTableRawTextCell {
|
|
104
104
|
readonly type: "raw_text";
|
|
105
105
|
readonly text: string;
|
|
106
106
|
}
|
|
107
107
|
/** A numeric cell in a Slack data-table block. */
|
|
108
|
-
interface SlackDataTableRawNumberCell {
|
|
108
|
+
export interface SlackDataTableRawNumberCell {
|
|
109
109
|
readonly type: "raw_number";
|
|
110
110
|
readonly text: string;
|
|
111
111
|
}
|
|
112
112
|
/** A cell value in a Slack data-table block. */
|
|
113
|
-
type SlackDataTableCell = SlackDataTableRawTextCell | SlackDataTableRawNumberCell;
|
|
113
|
+
export type SlackDataTableCell = SlackDataTableRawTextCell | SlackDataTableRawNumberCell;
|
|
114
114
|
/**
|
|
115
115
|
* A Slack card block. A card does not nest arbitrary blocks: content is
|
|
116
116
|
* limited to a hero image, title, subtitle, body, subtext, and up to three
|
|
117
117
|
* action buttons. At least one of `hero_image`, `title`, `actions`, or `body`
|
|
118
118
|
* is required.
|
|
119
119
|
*/
|
|
120
|
-
interface SlackCardBlock {
|
|
120
|
+
export interface SlackCardBlock {
|
|
121
121
|
readonly type: "card";
|
|
122
122
|
readonly hero_image?: SlackImageBlock;
|
|
123
123
|
readonly title?: SlackTextObject;
|
|
@@ -127,34 +127,34 @@ interface SlackCardBlock {
|
|
|
127
127
|
readonly actions?: readonly SlackButtonElement[];
|
|
128
128
|
}
|
|
129
129
|
/** A Slack carousel block: a horizontally scrollable group of card blocks. */
|
|
130
|
-
interface SlackCarouselBlock {
|
|
130
|
+
export interface SlackCarouselBlock {
|
|
131
131
|
readonly type: "carousel";
|
|
132
132
|
readonly elements: readonly SlackCardBlock[];
|
|
133
133
|
}
|
|
134
134
|
/** A Slack data-table block. The first entry in `rows` is the header row. */
|
|
135
|
-
interface SlackDataTableBlock {
|
|
135
|
+
export interface SlackDataTableBlock {
|
|
136
136
|
readonly type: "data_table";
|
|
137
137
|
readonly caption: string;
|
|
138
138
|
readonly rows: readonly (readonly SlackDataTableCell[])[];
|
|
139
139
|
readonly page_size?: number;
|
|
140
140
|
}
|
|
141
141
|
/** A Slack markdown block. */
|
|
142
|
-
interface SlackMarkdownBlock {
|
|
142
|
+
export interface SlackMarkdownBlock {
|
|
143
143
|
readonly type: "markdown";
|
|
144
144
|
readonly text: string;
|
|
145
145
|
}
|
|
146
146
|
/** The severity level accepted by a Slack alert block. */
|
|
147
|
-
type SlackAlertLevel = "default" | "info" | "warning" | "error" | "success";
|
|
147
|
+
export type SlackAlertLevel = "default" | "info" | "warning" | "error" | "success";
|
|
148
148
|
/** A Slack alert block. Alert blocks are only supported in modals. */
|
|
149
|
-
interface SlackAlertBlock {
|
|
149
|
+
export interface SlackAlertBlock {
|
|
150
150
|
readonly type: "alert";
|
|
151
151
|
readonly text: SlackTextObject;
|
|
152
152
|
readonly level?: SlackAlertLevel;
|
|
153
153
|
}
|
|
154
154
|
/** A block emitted by the Slack converter. */
|
|
155
|
-
type SlackBlock = SlackHeaderBlock | SlackSectionBlock | SlackContextBlock | SlackImageBlock | SlackDividerBlock | SlackActionsBlock | SlackInputBlock | SlackCardBlock | SlackCarouselBlock | SlackDataTableBlock | SlackMarkdownBlock | SlackAlertBlock;
|
|
155
|
+
export type SlackBlock = SlackHeaderBlock | SlackSectionBlock | SlackContextBlock | SlackImageBlock | SlackDividerBlock | SlackActionsBlock | SlackInputBlock | SlackCardBlock | SlackCarouselBlock | SlackDataTableBlock | SlackMarkdownBlock | SlackAlertBlock;
|
|
156
156
|
/** Options that select the target Slack surface. */
|
|
157
|
-
interface ToSlackBlocksOptions {
|
|
157
|
+
export interface ToSlackBlocksOptions {
|
|
158
158
|
readonly surface?: "message" | "modal";
|
|
159
159
|
}
|
|
160
160
|
/**
|
|
@@ -164,21 +164,20 @@ interface ToSlackBlocksOptions {
|
|
|
164
164
|
* of its props and may leave a placeholder note behind, and `fallback` emitted
|
|
165
165
|
* the node in a different form than requested.
|
|
166
166
|
*/
|
|
167
|
-
interface SlackConversionWarning {
|
|
167
|
+
export interface SlackConversionWarning {
|
|
168
168
|
readonly code: "clamped" | "dropped" | "fallback";
|
|
169
169
|
readonly component: string;
|
|
170
170
|
readonly detail: string;
|
|
171
171
|
}
|
|
172
172
|
/** The blocks and non-fatal warnings produced by Slack conversion. */
|
|
173
|
-
interface SlackBlocksResult {
|
|
173
|
+
export interface SlackBlocksResult {
|
|
174
174
|
readonly blocks: SlackBlock[];
|
|
175
175
|
readonly warnings: SlackConversionWarning[];
|
|
176
176
|
}
|
|
177
177
|
/** The IR nodes and non-fatal warnings produced by converting Slack Block Kit JSON back into generative UI. */
|
|
178
|
-
interface FromSlackBlocksResult {
|
|
178
|
+
export interface FromSlackBlocksResult {
|
|
179
179
|
readonly nodes: UIElement[];
|
|
180
180
|
readonly warnings: SlackConversionWarning[];
|
|
181
181
|
}
|
|
182
182
|
//#endregion
|
|
183
|
-
export { FromSlackBlocksResult, SlackActionElement, SlackActionsBlock, SlackAlertBlock, SlackAlertLevel, SlackBlock, SlackBlocksResult, SlackButtonElement, SlackCardBlock, SlackCarouselBlock, SlackCheckboxesElement, SlackContextBlock, SlackConversionWarning, SlackDataTableBlock, SlackDataTableCell, SlackDataTableRawNumberCell, SlackDataTableRawTextCell, SlackDatePickerElement, SlackDividerBlock, SlackHeaderBlock, SlackImageBlock, SlackInputBlock, SlackMarkdownBlock, SlackMrkdwnText, SlackOption, SlackPlainText, SlackPlainTextInputElement, SlackRadioButtonsElement, SlackSectionBlock, SlackStaticSelectElement, SlackTextObject, ToSlackBlocksOptions };
|
|
184
183
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","names":[],"sources":["../../src/slack/types.ts"],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"types.d.ts","names":[],"sources":["../../src/slack/types.ts"],"mappings":";;;iBAGiB;WACN;WACA;;;iBAIM;WACN;WACA;;;YAIC,kBAAkB,iBAAiB;;iBAG9B;WACN,MAAM;WACN;;;iBAIM;WACN;WACA,MAAM;WACN;WACA;WACA;;;iBAIM;WACN;WACA;WACA,kBAAkB;WAClB,cAAc;;;iBAIR;WACN;WACA;WACA;;;iBAIM;WACN;WACA;WACA,kBAAkB;WAClB,2BAA2B;;;iBAIrB;WACN;WACA;WACA,kBAAkB;WAClB,iBAAiB;;;iBAIX;WACN;WACA;WACA;WACA,cAAc;;;YAIb,qBACR,qBACA,2BACA,yBACA,yBACA;;iBAGa;WACN;WACA,MAAM;;;iBAIA;WACN;WACA,OAAO;WACP,kBAAkB;WAClB,YAAY;;;iBAIN;WACN;WACA,mBAAmB;;;iBAIb;WACN;WACA;WACA;;;iBAIM;WACN;;;iBAIM;WACN;WACA,mBAAmB;;;iBAIb;WACN;WACA,OAAO;WACP,SAAS;;;iBAIH;WACN;WACA;;;iBAIM;WACN;WACA;;;YAIC,qBACR,4BACA;;;;;;;iBAQa;WACN;WACA,aAAa;WACb,QAAQ;WACR,WAAW;WACX,OAAO;WACP,UAAU;WACV,mBAAmB;;;iBAIb;WACN;WACA,mBAAmB;;;iBAIb;WACN;WACA;WACA,yBAAyB;WACzB;;;iBAIM;WACN;WACA;;;YAIC;;iBAQK;WACN;WACA,MAAM;WACN,QAAQ;;;YAIP,aACR,mBACA,oBACA,oBACA,kBACA,oBACA,oBACA,kBACA,iBACA,qBACA,sBACA,qBACA;;iBAGa;WACN;;;;;;;;;iBAUM;WACN;WACA;WACA;;;iBAIM;WACN,QAAQ;WACR,UAAU;;;iBAIJ;WACN,OAAO;WACP,UAAU"}
|
|
@@ -1,37 +1,36 @@
|
|
|
1
1
|
import { TeamsAdaptiveCard, TeamsCardAttachment, TeamsCardElement, TeamsSubmitAction, TeamsSubmitData } from "./types.js";
|
|
2
2
|
//#region src/teams/constants.d.ts
|
|
3
3
|
/** The Adaptive Card schema version emitted by {@link toAdaptiveCard}: the Teams desktop/web cap (mobile clients cap at 1.2). */
|
|
4
|
-
declare const AC_VERSION = "1.5";
|
|
4
|
+
export declare const AC_VERSION = "1.5";
|
|
5
5
|
/** The `$schema` URL stamped on every emitted card. */
|
|
6
|
-
declare const ADAPTIVE_CARD_SCHEMA = "http://adaptivecards.io/schemas/adaptive-card.json";
|
|
6
|
+
export declare const ADAPTIVE_CARD_SCHEMA = "http://adaptivecards.io/schemas/adaptive-card.json";
|
|
7
7
|
/** The `contentType` stamped on every emitted attachment. */
|
|
8
|
-
declare const ATTACHMENT_CONTENT_TYPE = "application/vnd.microsoft.card.adaptive";
|
|
8
|
+
export declare const ATTACHMENT_CONTENT_TYPE = "application/vnd.microsoft.card.adaptive";
|
|
9
9
|
/** The maximum number of attachments produced from a root-level Carousel. */
|
|
10
|
-
declare const CAROUSEL_ATTACHMENT_CAP = 10;
|
|
10
|
+
export declare const CAROUSEL_ATTACHMENT_CAP = 10;
|
|
11
11
|
/** The maximum number of primary-mode actions in one ActionSet; extras are set to secondary mode instead of being dropped. */
|
|
12
|
-
declare const PRIMARY_ACTION_CAP = 6;
|
|
12
|
+
export declare const PRIMARY_ACTION_CAP = 6;
|
|
13
13
|
/** The maximum number of data rows in a Table. */
|
|
14
|
-
declare const TABLE_ROW_CAP = 100;
|
|
14
|
+
export declare const TABLE_ROW_CAP = 100;
|
|
15
15
|
/** The maximum number of columns in a Table. */
|
|
16
|
-
declare const TABLE_COLUMN_CAP = 20;
|
|
16
|
+
export declare const TABLE_COLUMN_CAP = 20;
|
|
17
17
|
/** The maximum number of choices in a Select or RadioGroup. */
|
|
18
|
-
declare const CHOICE_OPTION_CAP = 100;
|
|
18
|
+
export declare const CHOICE_OPTION_CAP = 100;
|
|
19
19
|
/** The soft byte-count budget for a serialized card, past which a warning notes Teams' 100 KB bot message limit (the card is never truncated to fit it). */
|
|
20
|
-
declare const PAYLOAD_SOFT_CAP = 80000;
|
|
20
|
+
export declare const PAYLOAD_SOFT_CAP = 80000;
|
|
21
21
|
/** Measures the wire size of `value` in UTF-8 bytes rather than UTF-16 code units. */
|
|
22
|
-
declare function utf8ByteLength(value: string): number;
|
|
22
|
+
export declare function utf8ByteLength(value: string): number;
|
|
23
23
|
/** Builds the fixed-shape Adaptive Card envelope around a converted body. */
|
|
24
|
-
declare function buildCard(body: TeamsCardElement[]): TeamsAdaptiveCard;
|
|
24
|
+
export declare function buildCard(body: TeamsCardElement[]): TeamsAdaptiveCard;
|
|
25
25
|
/** Wraps a card as a bot-framework message attachment. */
|
|
26
|
-
declare function buildAttachment(card: TeamsAdaptiveCard): TeamsCardAttachment;
|
|
26
|
+
export declare function buildAttachment(card: TeamsAdaptiveCard): TeamsCardAttachment;
|
|
27
27
|
/**
|
|
28
28
|
* Nests an IR action under an `aui` key so `decodeSubmitData` can invert it
|
|
29
29
|
* back out of the merged `activity.value` object a Teams bot receives,
|
|
30
30
|
* alongside whatever other named inputs shared the card.
|
|
31
31
|
*/
|
|
32
|
-
declare function buildSubmitData(action: unknown): TeamsSubmitData;
|
|
32
|
+
export declare function buildSubmitData(action: unknown): TeamsSubmitData;
|
|
33
33
|
/** Builds an Action.Submit carrying `action` in the `aui` envelope. */
|
|
34
|
-
declare function buildSubmitAction(title: string, action: unknown, mode?: "secondary"): TeamsSubmitAction;
|
|
34
|
+
export declare function buildSubmitAction(title: string, action: unknown, mode?: "secondary"): TeamsSubmitAction;
|
|
35
35
|
//#endregion
|
|
36
|
-
export { AC_VERSION, ADAPTIVE_CARD_SCHEMA, ATTACHMENT_CONTENT_TYPE, CAROUSEL_ATTACHMENT_CAP, CHOICE_OPTION_CAP, PAYLOAD_SOFT_CAP, PRIMARY_ACTION_CAP, TABLE_COLUMN_CAP, TABLE_ROW_CAP, buildAttachment, buildCard, buildSubmitAction, buildSubmitData, utf8ByteLength };
|
|
37
36
|
//# sourceMappingURL=constants.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.d.ts","names":[],"sources":["../../src/teams/constants.ts"],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"constants.d.ts","names":[],"sources":["../../src/teams/constants.ts"],"mappings":";;;qBASa;;qBAGA;;qBAIA;;qBAIA;;qBAGA;;qBAGA;;qBAGA;;qBAGA;;qBAGA;;wBAKG,eAAe;;wBAKf,UAAU,MAAM,qBAAqB;;wBAWrC,gBAAgB,MAAM,oBAAoB;;;;;;wBAY1C,gBAAgB,kBAAkB;;wBAalC,kBACd,eACA,iBACA,qBACC"}
|
|
@@ -19,7 +19,6 @@ import { Action } from "../ir.js";
|
|
|
19
19
|
* prototype-inherited `aui`, `type`, or `payload` values never dispatch.
|
|
20
20
|
* Returns `undefined` for a missing or malformed `aui` envelope; never throws.
|
|
21
21
|
*/
|
|
22
|
-
declare function decodeSubmitData(value: unknown): Action | undefined;
|
|
22
|
+
export declare function decodeSubmitData(value: unknown): Action | undefined;
|
|
23
23
|
//#endregion
|
|
24
|
-
export { decodeSubmitData };
|
|
25
24
|
//# sourceMappingURL=decodeSubmitData.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"decodeSubmitData.d.ts","names":[],"sources":["../../src/teams/decodeSubmitData.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"decodeSubmitData.d.ts","names":[],"sources":["../../src/teams/decodeSubmitData.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;wBAwBgB,iBAAiB,iBAAiB"}
|
|
@@ -2,7 +2,7 @@ import { NormalizedUIElement, NormalizedUINode } from "../ir.js";
|
|
|
2
2
|
import { AdaptiveCardResult, TeamsAdaptiveCard, TeamsCardElement, TeamsConversionWarning, ToAdaptiveCardOptions } from "./types.js";
|
|
3
3
|
//#region src/teams/toAdaptiveCard.d.ts
|
|
4
4
|
/** Shared mutable conversion state threaded through one top-level conversion. */
|
|
5
|
-
interface ConversionContext {
|
|
5
|
+
export interface ConversionContext {
|
|
6
6
|
readonly warnings: TeamsConversionWarning[];
|
|
7
7
|
usedInputIds: Set<string>;
|
|
8
8
|
}
|
|
@@ -13,8 +13,8 @@ interface ConversionContext {
|
|
|
13
13
|
* are forwarded, because those describe the tree the caller wrote, while a
|
|
14
14
|
* clamp or a rename would describe content never delivered.
|
|
15
15
|
*/
|
|
16
|
-
declare const discardedChild: (child: NormalizedUINode, context: ConversionContext, depth: number) => boolean;
|
|
17
|
-
declare function convertElement(element: NormalizedUIElement, context: ConversionContext, depth: number): TeamsCardElement[];
|
|
16
|
+
export declare const discardedChild: (child: NormalizedUINode, context: ConversionContext, depth: number) => boolean;
|
|
17
|
+
export declare function convertElement(element: NormalizedUIElement, context: ConversionContext, depth: number): TeamsCardElement[];
|
|
18
18
|
/**
|
|
19
19
|
* Walks a normalized sequence into card body elements. Nested arrays are
|
|
20
20
|
* flattened into one flat sibling sequence first (via {@link normalizedList}),
|
|
@@ -29,9 +29,9 @@ declare function convertElement(element: NormalizedUIElement, context: Conversio
|
|
|
29
29
|
* sibling element is not a descent; only a container's own recursive
|
|
30
30
|
* `convertSequence(children, depth + 1)` call is.
|
|
31
31
|
*/
|
|
32
|
-
declare function convertSequence(node: NormalizedUINode | undefined, context: ConversionContext, depth: number): TeamsCardElement[];
|
|
32
|
+
export declare function convertSequence(node: NormalizedUINode | undefined, context: ConversionContext, depth: number): TeamsCardElement[];
|
|
33
33
|
/** Builds a full card (schema envelope plus body) from an already-normalized root, checking the soft payload budget. */
|
|
34
|
-
declare function convertRootToCard(root: NormalizedUINode | readonly NormalizedUINode[], context: ConversionContext): TeamsAdaptiveCard;
|
|
34
|
+
export declare function convertRootToCard(root: NormalizedUINode | readonly NormalizedUINode[], context: ConversionContext): TeamsAdaptiveCard;
|
|
35
35
|
/**
|
|
36
36
|
* Converts a generative-ui tree into a Microsoft Teams Adaptive Card and
|
|
37
37
|
* non-fatal conversion warnings. Sizes, weights, and colors map to Adaptive
|
|
@@ -41,7 +41,6 @@ declare function convertRootToCard(root: NormalizedUINode | readonly NormalizedU
|
|
|
41
41
|
* unknown `$type` is skipped with a "dropped" warning, and a malformed input
|
|
42
42
|
* resolves to an empty card plus a "dropped" warning instead of throwing.
|
|
43
43
|
*/
|
|
44
|
-
declare function toAdaptiveCard(node: unknown, _options?: ToAdaptiveCardOptions): AdaptiveCardResult;
|
|
44
|
+
export declare function toAdaptiveCard(node: unknown, _options?: ToAdaptiveCardOptions): AdaptiveCardResult;
|
|
45
45
|
//#endregion
|
|
46
|
-
export { ConversionContext, convertElement, convertRootToCard, convertSequence, discardedChild, toAdaptiveCard };
|
|
47
46
|
//# sourceMappingURL=toAdaptiveCard.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"toAdaptiveCard.d.ts","names":[],"sources":["../../src/teams/toAdaptiveCard.ts"],"mappings":";;;;
|
|
1
|
+
{"version":3,"file":"toAdaptiveCard.d.ts","names":[],"sources":["../../src/teams/toAdaptiveCard.ts"],"mappings":";;;;iBA2CiB;WACN,UAAU;EACnB,cAAc;;;;;;;;;qBAgVH,iBACX,OAAO,kBACP,SAAS,mBACT;wBAac,eACd,SAAS,qBACT,SAAS,mBACT,gBACC;;;;;;;;;;;;;;;wBAuSa,gBACd,MAAM,8BACN,SAAS,mBACT,gBACC;;wBAgEa,kBACd,MAAM,4BAA4B,oBAClC,SAAS,oBACR;;;;;;;;;;wBAyBa,eACd,eACA,WAAW,wBACV"}
|
|
@@ -7,7 +7,6 @@ import { TeamsAttachmentsResult, ToAdaptiveCardOptions } from "./types.js";
|
|
|
7
7
|
* anything else converts through {@link toAdaptiveCard}'s engine into a
|
|
8
8
|
* single attachment. Never throws.
|
|
9
9
|
*/
|
|
10
|
-
declare function toTeamsAttachments(node: unknown, _options?: ToAdaptiveCardOptions): TeamsAttachmentsResult;
|
|
10
|
+
export declare function toTeamsAttachments(node: unknown, _options?: ToAdaptiveCardOptions): TeamsAttachmentsResult;
|
|
11
11
|
//#endregion
|
|
12
|
-
export { toTeamsAttachments };
|
|
13
12
|
//# sourceMappingURL=toTeamsAttachments.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"toTeamsAttachments.d.ts","names":[],"sources":["../../src/teams/toTeamsAttachments.ts"],"mappings":";;;;;;;;;
|
|
1
|
+
{"version":3,"file":"toTeamsAttachments.d.ts","names":[],"sources":["../../src/teams/toTeamsAttachments.ts"],"mappings":";;;;;;;;;wBA0EgB,mBACd,eACA,WAAW,wBACV"}
|