@stina/extension-api 1.7.0 → 1.9.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.
- package/dist/schemas/index.cjs +10 -0
- package/dist/schemas/index.cjs.map +1 -1
- package/dist/schemas/index.d.cts +1 -1
- package/dist/schemas/index.d.ts +1 -1
- package/dist/schemas/index.js +10 -0
- package/dist/schemas/index.js.map +1 -1
- package/package.json +1 -1
- package/src/schemas/card.schema.test.ts +24 -0
- package/src/schemas/card.schema.ts +13 -0
- package/src/types.components.ts +27 -0
package/dist/schemas/index.d.cts
CHANGED
|
@@ -6061,7 +6061,7 @@ type ChatCardComponent = {
|
|
|
6061
6061
|
[key: string]: unknown;
|
|
6062
6062
|
};
|
|
6063
6063
|
/** Every component name a card may use. Exported so the docs and the tool description stay in step. */
|
|
6064
|
-
declare const CHAT_CARD_COMPONENTS: readonly ["VerticalStack", "HorizontalStack", "Grid", "Frame", "List", "Divider", "Header", "Label", "Paragraph", "Markdown", "Icon", "Pill", "WeatherNow", "WeatherForecast", "Chart", "StatTile", "ProgressBar", "KeyValueList", "Timeline", "Note", "CalendarEvent"];
|
|
6064
|
+
declare const CHAT_CARD_COMPONENTS: readonly ["VerticalStack", "HorizontalStack", "Grid", "Frame", "List", "Divider", "Header", "Label", "Paragraph", "Markdown", "Icon", "Pill", "WeatherNow", "WeatherForecast", "Chart", "StatTile", "ProgressBar", "KeyValueList", "Timeline", "Note", "Quote", "CalendarEvent"];
|
|
6065
6065
|
/**
|
|
6066
6066
|
* The properties each card component accepts, read off the schemas themselves.
|
|
6067
6067
|
*
|
package/dist/schemas/index.d.ts
CHANGED
|
@@ -6061,7 +6061,7 @@ type ChatCardComponent = {
|
|
|
6061
6061
|
[key: string]: unknown;
|
|
6062
6062
|
};
|
|
6063
6063
|
/** Every component name a card may use. Exported so the docs and the tool description stay in step. */
|
|
6064
|
-
declare const CHAT_CARD_COMPONENTS: readonly ["VerticalStack", "HorizontalStack", "Grid", "Frame", "List", "Divider", "Header", "Label", "Paragraph", "Markdown", "Icon", "Pill", "WeatherNow", "WeatherForecast", "Chart", "StatTile", "ProgressBar", "KeyValueList", "Timeline", "Note", "CalendarEvent"];
|
|
6064
|
+
declare const CHAT_CARD_COMPONENTS: readonly ["VerticalStack", "HorizontalStack", "Grid", "Frame", "List", "Divider", "Header", "Label", "Paragraph", "Markdown", "Icon", "Pill", "WeatherNow", "WeatherForecast", "Chart", "StatTile", "ProgressBar", "KeyValueList", "Timeline", "Note", "Quote", "CalendarEvent"];
|
|
6065
6065
|
/**
|
|
6066
6066
|
* The properties each card component accepts, read off the schemas themselves.
|
|
6067
6067
|
*
|
package/dist/schemas/index.js
CHANGED
|
@@ -905,6 +905,14 @@ var NoteCardSchema = z5.object({
|
|
|
905
905
|
variant: NoteVariantSchema.optional(),
|
|
906
906
|
style
|
|
907
907
|
}).strict();
|
|
908
|
+
var QuoteCardSchema = z5.object({
|
|
909
|
+
component: z5.literal("Quote"),
|
|
910
|
+
text: z5.string(),
|
|
911
|
+
source: z5.string().optional(),
|
|
912
|
+
context: z5.string().optional(),
|
|
913
|
+
footer: z5.string().optional(),
|
|
914
|
+
style
|
|
915
|
+
}).strict();
|
|
908
916
|
var CalendarEventCardSchema = z5.object({
|
|
909
917
|
component: z5.literal("CalendarEvent"),
|
|
910
918
|
title: z5.string(),
|
|
@@ -941,6 +949,7 @@ var CHAT_CARD_COMPONENTS = [
|
|
|
941
949
|
"KeyValueList",
|
|
942
950
|
"Timeline",
|
|
943
951
|
"Note",
|
|
952
|
+
"Quote",
|
|
944
953
|
"CalendarEvent"
|
|
945
954
|
];
|
|
946
955
|
var CARD_MEMBERS = [
|
|
@@ -964,6 +973,7 @@ var CARD_MEMBERS = [
|
|
|
964
973
|
KeyValueListCardSchema,
|
|
965
974
|
TimelineCardSchema,
|
|
966
975
|
NoteCardSchema,
|
|
976
|
+
QuoteCardSchema,
|
|
967
977
|
CalendarEventCardSchema
|
|
968
978
|
];
|
|
969
979
|
var CHAT_CARD_PROPS = Object.freeze(
|