@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.cjs
CHANGED
|
@@ -1032,6 +1032,14 @@ var NoteCardSchema = import_zod5.z.object({
|
|
|
1032
1032
|
variant: NoteVariantSchema.optional(),
|
|
1033
1033
|
style
|
|
1034
1034
|
}).strict();
|
|
1035
|
+
var QuoteCardSchema = import_zod5.z.object({
|
|
1036
|
+
component: import_zod5.z.literal("Quote"),
|
|
1037
|
+
text: import_zod5.z.string(),
|
|
1038
|
+
source: import_zod5.z.string().optional(),
|
|
1039
|
+
context: import_zod5.z.string().optional(),
|
|
1040
|
+
footer: import_zod5.z.string().optional(),
|
|
1041
|
+
style
|
|
1042
|
+
}).strict();
|
|
1035
1043
|
var CalendarEventCardSchema = import_zod5.z.object({
|
|
1036
1044
|
component: import_zod5.z.literal("CalendarEvent"),
|
|
1037
1045
|
title: import_zod5.z.string(),
|
|
@@ -1068,6 +1076,7 @@ var CHAT_CARD_COMPONENTS = [
|
|
|
1068
1076
|
"KeyValueList",
|
|
1069
1077
|
"Timeline",
|
|
1070
1078
|
"Note",
|
|
1079
|
+
"Quote",
|
|
1071
1080
|
"CalendarEvent"
|
|
1072
1081
|
];
|
|
1073
1082
|
var CARD_MEMBERS = [
|
|
@@ -1091,6 +1100,7 @@ var CARD_MEMBERS = [
|
|
|
1091
1100
|
KeyValueListCardSchema,
|
|
1092
1101
|
TimelineCardSchema,
|
|
1093
1102
|
NoteCardSchema,
|
|
1103
|
+
QuoteCardSchema,
|
|
1094
1104
|
CalendarEventCardSchema
|
|
1095
1105
|
];
|
|
1096
1106
|
var CHAT_CARD_PROPS = Object.freeze(
|