nuxt-google-sheets-import 0.1.18 → 0.1.20

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/module.mjs CHANGED
@@ -13,13 +13,16 @@ const module$1 = defineNuxtModule({
13
13
  "@nuxt/ui": {
14
14
  version: ">=4"
15
15
  }
16
+ // 'zod': {
17
+ // version: '>=4',
18
+ // },
16
19
  },
17
20
  onInstall() {
18
21
  const resolver = createResolver(import.meta.url);
19
22
  addTemplate({
20
- filename: "googleSheetsImportSchemas.js",
21
- src: resolver.resolve("./runtime/app/examples/googleSheetsImportSchemas.js"),
22
- dst: "utils/.googleSheetsImportSchemas.ts",
23
+ filename: "googleSheetsImportSchemas.ts",
24
+ src: resolver.resolve("./runtime/app/examples/googleSheetsImportSchemas.ts"),
25
+ dst: "app/utils/googleSheetsImportSchemas.ts",
23
26
  write: true
24
27
  });
25
28
  },
@@ -186,7 +186,7 @@ function downloadCsv() {
186
186
 
187
187
  <UAlert
188
188
  v-if="status === 'success'"
189
- title="Export prepared"
189
+ title="Export prepared ok"
190
190
  :description="`${rows.length} row(s), ${headers.length} column(s).`"
191
191
  color="success"
192
192
  variant="subtle"
@@ -1,75 +1,28 @@
1
+ import * as z from 'zod/v4';
1
2
  export declare const googleSheetsImportSchemas: {
2
- example: import("zod").ZodObject<{
3
- slug: import("zod").ZodString;
4
- pageOrder: import("zod").ZodNumber;
5
- number: import("zod").ZodNumber;
6
- string: import("zod").ZodString;
7
- enumString: import("zod").ZodEnum<["foo", "bar", "baz"]>;
8
- literalString: import("zod").ZodLiteral<"foo">;
9
- unionString: import("zod").ZodUnion<[import("zod").ZodLiteral<"foo">, import("zod").ZodLiteral<"bar">]>;
10
- unionStringArray: import("zod").ZodArray<import("zod").ZodUnion<[import("zod").ZodLiteral<"foo">, import("zod").ZodLiteral<"bar">]>, "many">;
11
- stringArray: import("zod").ZodArray<import("zod").ZodString, "many">;
12
- numberArray: import("zod").ZodArray<import("zod").ZodNumber, "many">;
13
- boolean: import("zod").ZodBoolean;
14
- object: import("zod").ZodObject<{
15
- key1: import("zod").ZodString;
16
- key2: import("zod").ZodString;
17
- }, "strip", import("zod").ZodTypeAny, {
18
- key1: string;
19
- key2: string;
20
- }, {
21
- key1: string;
22
- key2: string;
3
+ example: z.ZodObject<{
4
+ slug: z.ZodString;
5
+ pageOrder: z.ZodCoercedNumber<unknown>;
6
+ number: z.ZodCoercedNumber<unknown>;
7
+ string: z.ZodString;
8
+ enumString: z.ZodEnum<{
9
+ foo: "foo";
10
+ bar: "bar";
11
+ baz: "baz";
23
12
  }>;
24
- objectArray: import("zod").ZodArray<import("zod").ZodObject<{
25
- keyA: import("zod").ZodString;
26
- keyB: import("zod").ZodString;
27
- }, "strip", import("zod").ZodTypeAny, {
28
- keyA: string;
29
- keyB: string;
30
- }, {
31
- keyA: string;
32
- keyB: string;
33
- }>, "many">;
34
- }, "strip", import("zod").ZodTypeAny, {
35
- string: string;
36
- number: number;
37
- boolean: boolean;
38
- object: {
39
- key1: string;
40
- key2: string;
41
- };
42
- slug: string;
43
- pageOrder: number;
44
- enumString: "foo" | "bar" | "baz";
45
- literalString: "foo";
46
- unionString: "foo" | "bar";
47
- unionStringArray: ("foo" | "bar")[];
48
- stringArray: string[];
49
- numberArray: number[];
50
- objectArray: {
51
- keyA: string;
52
- keyB: string;
53
- }[];
54
- }, {
55
- string: string;
56
- number: number;
57
- boolean: boolean;
58
- object: {
59
- key1: string;
60
- key2: string;
61
- };
62
- slug: string;
63
- pageOrder: number;
64
- enumString: "foo" | "bar" | "baz";
65
- literalString: "foo";
66
- unionString: "foo" | "bar";
67
- unionStringArray: ("foo" | "bar")[];
68
- stringArray: string[];
69
- numberArray: number[];
70
- objectArray: {
71
- keyA: string;
72
- keyB: string;
73
- }[];
74
- }>;
13
+ literalString: z.ZodLiteral<"foo">;
14
+ unionString: z.ZodUnion<readonly [z.ZodLiteral<"foo">, z.ZodLiteral<"bar">]>;
15
+ unionStringArray: z.ZodArray<z.ZodUnion<readonly [z.ZodLiteral<"foo">, z.ZodLiteral<"bar">]>>;
16
+ stringArray: z.ZodArray<z.ZodString>;
17
+ numberArray: z.ZodArray<z.ZodCoercedNumber<unknown>>;
18
+ boolean: z.ZodCoercedBoolean<unknown>;
19
+ object: z.ZodObject<{
20
+ key1: z.ZodString;
21
+ key2: z.ZodString;
22
+ }, z.core.$strip>;
23
+ objectArray: z.ZodArray<z.ZodObject<{
24
+ keyA: z.ZodString;
25
+ keyB: z.ZodString;
26
+ }, z.core.$strip>>;
27
+ }, z.core.$strip>;
75
28
  };
@@ -1,4 +1,4 @@
1
- import { z } from "@nuxt/content";
1
+ import * as z from "zod/v4";
2
2
  const example = z.object({
3
3
  slug: z.string().min(1).max(100),
4
4
  pageOrder: z.coerce.number().int(),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nuxt-google-sheets-import",
3
- "version": "0.1.18",
3
+ "version": "0.1.20",
4
4
  "description": "Schema-driven Google Sheets import module for Nuxt Content",
5
5
  "repository": "tribeweb/nuxt-google-sheets-import",
6
6
  "license": "MIT",