@duckpic/content-spec 0.2.5 → 0.2.6
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.
|
@@ -3,5 +3,9 @@ import type { ComponentSpec } from "./ComponentSpec";
|
|
|
3
3
|
export declare const VocabularyListPropsSchema: z.ZodObject<{
|
|
4
4
|
title: z.ZodOptional<z.ZodString>;
|
|
5
5
|
staticVocabIds: z.ZodDefault<z.ZodArray<z.ZodNumber>>;
|
|
6
|
+
userActions: z.ZodDefault<z.ZodArray<z.ZodEnum<{
|
|
7
|
+
select: "select";
|
|
8
|
+
"add-to-my-vocabulary": "add-to-my-vocabulary";
|
|
9
|
+
}>>>;
|
|
6
10
|
}, z.core.$strip>;
|
|
7
11
|
export declare const VocabularyListComponentSpec: ComponentSpec;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
export const VocabularyListPropsSchema = z.object({
|
|
3
3
|
title: z.string().optional(),
|
|
4
|
-
staticVocabIds: z.array(z.number()).default([])
|
|
4
|
+
staticVocabIds: z.array(z.number()).default([]),
|
|
5
|
+
userActions: z.array(z.enum(["select", "add-to-my-vocabulary"])).default([])
|
|
5
6
|
});
|
|
6
7
|
export const VocabularyListComponentSpec = {
|
|
7
8
|
type: "VocabularyList",
|
package/package.json
CHANGED
|
@@ -3,7 +3,8 @@ import type { ComponentSpec } from "./ComponentSpec";
|
|
|
3
3
|
|
|
4
4
|
export const VocabularyListPropsSchema = z.object({
|
|
5
5
|
title: z.string().optional(),
|
|
6
|
-
staticVocabIds: z.array(z.number()).default([])
|
|
6
|
+
staticVocabIds: z.array(z.number()).default([]),
|
|
7
|
+
userActions: z.array(z.enum(["select", "add-to-my-vocabulary"])).default([])
|
|
7
8
|
});
|
|
8
9
|
|
|
9
10
|
export const VocabularyListComponentSpec: ComponentSpec = {
|