@slicemachine/adapter-nuxt 0.1.0 → 0.1.2

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.
Files changed (49) hide show
  1. package/README.md +2 -2
  2. package/dist/constants.d.ts +4 -4
  3. package/dist/hooks/customType-asset-delete.d.ts +3 -3
  4. package/dist/hooks/customType-asset-read.d.ts +3 -3
  5. package/dist/hooks/customType-asset-update.d.ts +3 -3
  6. package/dist/hooks/customType-create.d.ts +3 -3
  7. package/dist/hooks/customType-delete.d.ts +3 -3
  8. package/dist/hooks/customType-read.d.ts +3 -3
  9. package/dist/hooks/customType-rename.d.ts +1 -1
  10. package/dist/hooks/customType-update.d.ts +1 -1
  11. package/dist/hooks/customTypeLibrary-read.d.ts +3 -3
  12. package/dist/hooks/project-init.d.ts +3 -3
  13. package/dist/hooks/slice-asset-delete.d.ts +3 -3
  14. package/dist/hooks/slice-asset-read.d.ts +3 -3
  15. package/dist/hooks/slice-asset-update.d.ts +3 -3
  16. package/dist/hooks/slice-create.d.ts +3 -3
  17. package/dist/hooks/slice-delete.d.ts +3 -3
  18. package/dist/hooks/slice-read.d.ts +3 -3
  19. package/dist/hooks/slice-rename.d.ts +3 -3
  20. package/dist/hooks/slice-update.d.ts +3 -3
  21. package/dist/hooks/sliceLibrary-read.d.ts +3 -3
  22. package/dist/hooks/sliceSimulator-setup-read.d.ts +3 -3
  23. package/dist/hooks/snippet-read.d.ts +3 -3
  24. package/dist/index.d.ts +3 -3
  25. package/dist/lib/buildCustomTypeAssetPath.d.ts +9 -9
  26. package/dist/lib/buildCustomTypeDirectoryPath.d.ts +8 -8
  27. package/dist/lib/buildCustomTypeLibraryDirectoryPath.d.ts +7 -7
  28. package/dist/lib/buildSliceAssetPath.d.ts +11 -11
  29. package/dist/lib/buildSliceDirectoryPath.d.ts +10 -10
  30. package/dist/lib/buildSliceLibraryDirectoryPath.d.ts +8 -8
  31. package/dist/lib/checkIsTypeScriptProject.d.ts +8 -8
  32. package/dist/lib/checkPathExists.d.ts +2 -2
  33. package/dist/lib/isSharedSliceModel.d.ts +335 -335
  34. package/dist/lib/pascalCase.d.ts +8 -8
  35. package/dist/lib/readJSONFile.d.ts +1 -1
  36. package/dist/lib/rejectIfNecessary.d.ts +1 -1
  37. package/dist/lib/updateSliceModelFile.d.ts +9 -9
  38. package/dist/lib/upsertGlobalContentTypes.cjs +1 -1
  39. package/dist/lib/upsertGlobalContentTypes.cjs.map +1 -1
  40. package/dist/lib/upsertGlobalContentTypes.d.ts +12 -12
  41. package/dist/lib/upsertGlobalContentTypes.js +1 -1
  42. package/dist/lib/upsertGlobalContentTypes.js.map +1 -1
  43. package/dist/lib/upsertSliceLibraryIndexFile.d.ts +7 -7
  44. package/dist/plugin.d.ts +2 -2
  45. package/dist/simulator/SliceSimulator.d.ts +34 -34
  46. package/dist/simulator/index.d.ts +2 -2
  47. package/dist/types.d.ts +5 -5
  48. package/package.json +2 -2
  49. package/src/lib/upsertGlobalContentTypes.ts +1 -1
@@ -1,8 +1,8 @@
1
- /**
2
- * Converts a string to a Pascal cased string.
3
- *
4
- * @param input - String to convert into a Pascal cased string.
5
- *
6
- * @returns Pascal cased string version of `input`.
7
- */
8
- export declare const pascalCase: (...input: (string | undefined)[]) => string;
1
+ /**
2
+ * Converts a string to a Pascal cased string.
3
+ *
4
+ * @param input - String to convert into a Pascal cased string.
5
+ *
6
+ * @returns Pascal cased string version of `input`.
7
+ */
8
+ export declare const pascalCase: (...input: (string | undefined)[]) => string;
@@ -1 +1 @@
1
- export declare const readJSONFile: <T = unknown>(path: string) => Promise<T>;
1
+ export declare const readJSONFile: <T = unknown>(path: string) => Promise<T>;
@@ -1 +1 @@
1
- export declare const rejectIfNecessary: <TPromiseSettledResults extends readonly PromiseSettledResult<any>[]>(promiseSettledResults: TPromiseSettledResults) => void;
1
+ export declare const rejectIfNecessary: <TPromiseSettledResults extends readonly PromiseSettledResult<any>[]>(promiseSettledResults: TPromiseSettledResults) => void;
@@ -1,9 +1,9 @@
1
- import type { SharedSlice } from "@prismicio/types-internal/lib/customtypes";
2
- import { SliceMachineContext } from "@slicemachine/plugin-kit";
3
- import type { PluginOptions } from "../types";
4
- type UpdateSliceModelFileArgs = {
5
- libraryID: string;
6
- model: SharedSlice;
7
- } & SliceMachineContext<PluginOptions>;
8
- export declare const updateSliceModelFile: ({ libraryID, model, helpers, options, }: UpdateSliceModelFileArgs) => Promise<void>;
9
- export {};
1
+ import type { SharedSlice } from "@prismicio/types-internal/lib/customtypes";
2
+ import { SliceMachineContext } from "@slicemachine/plugin-kit";
3
+ import type { PluginOptions } from "../types";
4
+ type UpdateSliceModelFileArgs = {
5
+ libraryID: string;
6
+ model: SharedSlice;
7
+ } & SliceMachineContext<PluginOptions>;
8
+ export declare const updateSliceModelFile: ({ libraryID, model, helpers, options, }: UpdateSliceModelFileArgs) => Promise<void>;
9
+ export {};
@@ -23,7 +23,7 @@ function _interopNamespaceDefault(e) {
23
23
  const fs__namespace = /* @__PURE__ */ _interopNamespaceDefault(fs);
24
24
  const path__namespace = /* @__PURE__ */ _interopNamespaceDefault(path);
25
25
  const upsertGlobalContentTypes = async ({ actions, helpers, options }) => {
26
- const filePath = helpers.joinPathFromRoot("prismicio.d.ts");
26
+ const filePath = helpers.joinPathFromRoot("prismicio-types.d.ts");
27
27
  const [customTypeModelDescriptors, sharedSliceModelDescriptors] = await Promise.all([
28
28
  actions.readAllCustomTypeModels(),
29
29
  actions.readAllSliceModels()
@@ -1 +1 @@
1
- {"version":3,"file":"upsertGlobalContentTypes.cjs","sources":["../../../src/lib/upsertGlobalContentTypes.ts"],"sourcesContent":["import type { SliceMachineContext } from \"@slicemachine/plugin-kit\";\nimport { generateTypes } from \"prismic-ts-codegen\";\nimport * as fs from \"node:fs/promises\";\nimport * as path from \"node:path\";\n\nimport type { PluginOptions } from \"../types\";\nimport { NON_EDITABLE_FILE_BANNER } from \"../constants\";\n\n/**\n * Arguments for `upsertGlobalContentTypes()`.\n */\ntype UpsertGlobalTypesArgs = Pick<\n\tSliceMachineContext<PluginOptions>,\n\t\"actions\" | \"helpers\" | \"options\"\n>;\n\n/**\n * Creates a globally accessible TypeScript file containing types representing\n * the Prismic repository's content.\n */\nexport const upsertGlobalContentTypes = async ({\n\tactions,\n\thelpers,\n\toptions,\n}: UpsertGlobalTypesArgs): Promise<void> => {\n\tconst filePath = helpers.joinPathFromRoot(\"prismicio.d.ts\");\n\n\tconst [customTypeModelDescriptors, sharedSliceModelDescriptors] =\n\t\tawait Promise.all([\n\t\t\tactions.readAllCustomTypeModels(),\n\t\t\tactions.readAllSliceModels(),\n\t\t]);\n\n\tconst customTypeModels = customTypeModelDescriptors.map(\n\t\t(customTypeModelDescriptors) => {\n\t\t\treturn customTypeModelDescriptors.model;\n\t\t},\n\t);\n\tconst sharedSliceModels = sharedSliceModelDescriptors.map(\n\t\t(sharedSliceModelDescriptors) => {\n\t\t\treturn sharedSliceModelDescriptors.model;\n\t\t},\n\t);\n\n\tlet contents = generateTypes({\n\t\tcustomTypeModels,\n\t\tsharedSliceModels,\n\t\tclientIntegration: {\n\t\t\tincludeCreateClientInterface: true,\n\t\t\tincludeContentNamespace: true,\n\t\t},\n\t});\n\n\tcontents = `${NON_EDITABLE_FILE_BANNER}\\n\\n${contents}`;\n\n\tif (options.format) {\n\t\tcontents = await helpers.format(contents, filePath);\n\t}\n\n\tawait fs.mkdir(path.dirname(filePath), { recursive: true });\n\tawait fs.writeFile(filePath, contents);\n};\n"],"names":["customTypeModelDescriptors","sharedSliceModelDescriptors","generateTypes","NON_EDITABLE_FILE_BANNER","fs","path"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAoBO,MAAM,2BAA2B,OAAO,EAC9C,SACA,SACA,cAC0C;AACpC,QAAA,WAAW,QAAQ,iBAAiB,gBAAgB;AAE1D,QAAM,CAAC,4BAA4B,2BAA2B,IAC7D,MAAM,QAAQ,IAAI;AAAA,IACjB,QAAQ,wBAAyB;AAAA,IACjC,QAAQ,mBAAoB;AAAA,EAAA,CAC5B;AAEF,QAAM,mBAAmB,2BAA2B,IACnD,CAACA,gCAA8B;AAC9B,WAAOA,4BAA2B;AAAA,EAAA,CAClC;AAEF,QAAM,oBAAoB,4BAA4B,IACrD,CAACC,iCAA+B;AAC/B,WAAOA,6BAA4B;AAAA,EAAA,CACnC;AAGF,MAAI,WAAWC,iBAAAA,cAAc;AAAA,IAC5B;AAAA,IACA;AAAA,IACA,mBAAmB;AAAA,MAClB,8BAA8B;AAAA,MAC9B,yBAAyB;AAAA,IACzB;AAAA,EAAA,CACD;AAED,aAAW,GAAGC;;EAA+B;AAE7C,MAAI,QAAQ,QAAQ;AACnB,eAAW,MAAM,QAAQ,OAAO,UAAU,QAAQ;AAAA,EAClD;AAEK,QAAAC,cAAG,MAAMC,gBAAK,QAAQ,QAAQ,GAAG,EAAE,WAAW,KAAA,CAAM;AACpD,QAAAD,cAAG,UAAU,UAAU,QAAQ;AACtC;;"}
1
+ {"version":3,"file":"upsertGlobalContentTypes.cjs","sources":["../../../src/lib/upsertGlobalContentTypes.ts"],"sourcesContent":["import type { SliceMachineContext } from \"@slicemachine/plugin-kit\";\nimport { generateTypes } from \"prismic-ts-codegen\";\nimport * as fs from \"node:fs/promises\";\nimport * as path from \"node:path\";\n\nimport type { PluginOptions } from \"../types\";\nimport { NON_EDITABLE_FILE_BANNER } from \"../constants\";\n\n/**\n * Arguments for `upsertGlobalContentTypes()`.\n */\ntype UpsertGlobalTypesArgs = Pick<\n\tSliceMachineContext<PluginOptions>,\n\t\"actions\" | \"helpers\" | \"options\"\n>;\n\n/**\n * Creates a globally accessible TypeScript file containing types representing\n * the Prismic repository's content.\n */\nexport const upsertGlobalContentTypes = async ({\n\tactions,\n\thelpers,\n\toptions,\n}: UpsertGlobalTypesArgs): Promise<void> => {\n\tconst filePath = helpers.joinPathFromRoot(\"prismicio-types.d.ts\");\n\n\tconst [customTypeModelDescriptors, sharedSliceModelDescriptors] =\n\t\tawait Promise.all([\n\t\t\tactions.readAllCustomTypeModels(),\n\t\t\tactions.readAllSliceModels(),\n\t\t]);\n\n\tconst customTypeModels = customTypeModelDescriptors.map(\n\t\t(customTypeModelDescriptors) => {\n\t\t\treturn customTypeModelDescriptors.model;\n\t\t},\n\t);\n\tconst sharedSliceModels = sharedSliceModelDescriptors.map(\n\t\t(sharedSliceModelDescriptors) => {\n\t\t\treturn sharedSliceModelDescriptors.model;\n\t\t},\n\t);\n\n\tlet contents = generateTypes({\n\t\tcustomTypeModels,\n\t\tsharedSliceModels,\n\t\tclientIntegration: {\n\t\t\tincludeCreateClientInterface: true,\n\t\t\tincludeContentNamespace: true,\n\t\t},\n\t});\n\n\tcontents = `${NON_EDITABLE_FILE_BANNER}\\n\\n${contents}`;\n\n\tif (options.format) {\n\t\tcontents = await helpers.format(contents, filePath);\n\t}\n\n\tawait fs.mkdir(path.dirname(filePath), { recursive: true });\n\tawait fs.writeFile(filePath, contents);\n};\n"],"names":["customTypeModelDescriptors","sharedSliceModelDescriptors","generateTypes","NON_EDITABLE_FILE_BANNER","fs","path"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAoBO,MAAM,2BAA2B,OAAO,EAC9C,SACA,SACA,cAC0C;AACpC,QAAA,WAAW,QAAQ,iBAAiB,sBAAsB;AAEhE,QAAM,CAAC,4BAA4B,2BAA2B,IAC7D,MAAM,QAAQ,IAAI;AAAA,IACjB,QAAQ,wBAAyB;AAAA,IACjC,QAAQ,mBAAoB;AAAA,EAAA,CAC5B;AAEF,QAAM,mBAAmB,2BAA2B,IACnD,CAACA,gCAA8B;AAC9B,WAAOA,4BAA2B;AAAA,EAAA,CAClC;AAEF,QAAM,oBAAoB,4BAA4B,IACrD,CAACC,iCAA+B;AAC/B,WAAOA,6BAA4B;AAAA,EAAA,CACnC;AAGF,MAAI,WAAWC,iBAAAA,cAAc;AAAA,IAC5B;AAAA,IACA;AAAA,IACA,mBAAmB;AAAA,MAClB,8BAA8B;AAAA,MAC9B,yBAAyB;AAAA,IACzB;AAAA,EAAA,CACD;AAED,aAAW,GAAGC;;EAA+B;AAE7C,MAAI,QAAQ,QAAQ;AACnB,eAAW,MAAM,QAAQ,OAAO,UAAU,QAAQ;AAAA,EAClD;AAEK,QAAAC,cAAG,MAAMC,gBAAK,QAAQ,QAAQ,GAAG,EAAE,WAAW,KAAA,CAAM;AACpD,QAAAD,cAAG,UAAU,UAAU,QAAQ;AACtC;;"}
@@ -1,12 +1,12 @@
1
- import type { SliceMachineContext } from "@slicemachine/plugin-kit";
2
- import type { PluginOptions } from "../types";
3
- /**
4
- * Arguments for `upsertGlobalContentTypes()`.
5
- */
6
- type UpsertGlobalTypesArgs = Pick<SliceMachineContext<PluginOptions>, "actions" | "helpers" | "options">;
7
- /**
8
- * Creates a globally accessible TypeScript file containing types representing
9
- * the Prismic repository's content.
10
- */
11
- export declare const upsertGlobalContentTypes: ({ actions, helpers, options, }: UpsertGlobalTypesArgs) => Promise<void>;
12
- export {};
1
+ import type { SliceMachineContext } from "@slicemachine/plugin-kit";
2
+ import type { PluginOptions } from "../types";
3
+ /**
4
+ * Arguments for `upsertGlobalContentTypes()`.
5
+ */
6
+ type UpsertGlobalTypesArgs = Pick<SliceMachineContext<PluginOptions>, "actions" | "helpers" | "options">;
7
+ /**
8
+ * Creates a globally accessible TypeScript file containing types representing
9
+ * the Prismic repository's content.
10
+ */
11
+ export declare const upsertGlobalContentTypes: ({ actions, helpers, options, }: UpsertGlobalTypesArgs) => Promise<void>;
12
+ export {};
@@ -3,7 +3,7 @@ import * as fs from "node:fs/promises";
3
3
  import * as path from "node:path";
4
4
  import { NON_EDITABLE_FILE_BANNER } from "../constants.js";
5
5
  const upsertGlobalContentTypes = async ({ actions, helpers, options }) => {
6
- const filePath = helpers.joinPathFromRoot("prismicio.d.ts");
6
+ const filePath = helpers.joinPathFromRoot("prismicio-types.d.ts");
7
7
  const [customTypeModelDescriptors, sharedSliceModelDescriptors] = await Promise.all([
8
8
  actions.readAllCustomTypeModels(),
9
9
  actions.readAllSliceModels()
@@ -1 +1 @@
1
- {"version":3,"file":"upsertGlobalContentTypes.js","sources":["../../../src/lib/upsertGlobalContentTypes.ts"],"sourcesContent":["import type { SliceMachineContext } from \"@slicemachine/plugin-kit\";\nimport { generateTypes } from \"prismic-ts-codegen\";\nimport * as fs from \"node:fs/promises\";\nimport * as path from \"node:path\";\n\nimport type { PluginOptions } from \"../types\";\nimport { NON_EDITABLE_FILE_BANNER } from \"../constants\";\n\n/**\n * Arguments for `upsertGlobalContentTypes()`.\n */\ntype UpsertGlobalTypesArgs = Pick<\n\tSliceMachineContext<PluginOptions>,\n\t\"actions\" | \"helpers\" | \"options\"\n>;\n\n/**\n * Creates a globally accessible TypeScript file containing types representing\n * the Prismic repository's content.\n */\nexport const upsertGlobalContentTypes = async ({\n\tactions,\n\thelpers,\n\toptions,\n}: UpsertGlobalTypesArgs): Promise<void> => {\n\tconst filePath = helpers.joinPathFromRoot(\"prismicio.d.ts\");\n\n\tconst [customTypeModelDescriptors, sharedSliceModelDescriptors] =\n\t\tawait Promise.all([\n\t\t\tactions.readAllCustomTypeModels(),\n\t\t\tactions.readAllSliceModels(),\n\t\t]);\n\n\tconst customTypeModels = customTypeModelDescriptors.map(\n\t\t(customTypeModelDescriptors) => {\n\t\t\treturn customTypeModelDescriptors.model;\n\t\t},\n\t);\n\tconst sharedSliceModels = sharedSliceModelDescriptors.map(\n\t\t(sharedSliceModelDescriptors) => {\n\t\t\treturn sharedSliceModelDescriptors.model;\n\t\t},\n\t);\n\n\tlet contents = generateTypes({\n\t\tcustomTypeModels,\n\t\tsharedSliceModels,\n\t\tclientIntegration: {\n\t\t\tincludeCreateClientInterface: true,\n\t\t\tincludeContentNamespace: true,\n\t\t},\n\t});\n\n\tcontents = `${NON_EDITABLE_FILE_BANNER}\\n\\n${contents}`;\n\n\tif (options.format) {\n\t\tcontents = await helpers.format(contents, filePath);\n\t}\n\n\tawait fs.mkdir(path.dirname(filePath), { recursive: true });\n\tawait fs.writeFile(filePath, contents);\n};\n"],"names":["customTypeModelDescriptors","sharedSliceModelDescriptors"],"mappings":";;;;AAoBO,MAAM,2BAA2B,OAAO,EAC9C,SACA,SACA,cAC0C;AACpC,QAAA,WAAW,QAAQ,iBAAiB,gBAAgB;AAE1D,QAAM,CAAC,4BAA4B,2BAA2B,IAC7D,MAAM,QAAQ,IAAI;AAAA,IACjB,QAAQ,wBAAyB;AAAA,IACjC,QAAQ,mBAAoB;AAAA,EAAA,CAC5B;AAEF,QAAM,mBAAmB,2BAA2B,IACnD,CAACA,gCAA8B;AAC9B,WAAOA,4BAA2B;AAAA,EAAA,CAClC;AAEF,QAAM,oBAAoB,4BAA4B,IACrD,CAACC,iCAA+B;AAC/B,WAAOA,6BAA4B;AAAA,EAAA,CACnC;AAGF,MAAI,WAAW,cAAc;AAAA,IAC5B;AAAA,IACA;AAAA,IACA,mBAAmB;AAAA,MAClB,8BAA8B;AAAA,MAC9B,yBAAyB;AAAA,IACzB;AAAA,EAAA,CACD;AAED,aAAW,GAAG;AAAA;AAAA,EAA+B;AAE7C,MAAI,QAAQ,QAAQ;AACnB,eAAW,MAAM,QAAQ,OAAO,UAAU,QAAQ;AAAA,EAClD;AAEK,QAAA,GAAG,MAAM,KAAK,QAAQ,QAAQ,GAAG,EAAE,WAAW,KAAA,CAAM;AACpD,QAAA,GAAG,UAAU,UAAU,QAAQ;AACtC;"}
1
+ {"version":3,"file":"upsertGlobalContentTypes.js","sources":["../../../src/lib/upsertGlobalContentTypes.ts"],"sourcesContent":["import type { SliceMachineContext } from \"@slicemachine/plugin-kit\";\nimport { generateTypes } from \"prismic-ts-codegen\";\nimport * as fs from \"node:fs/promises\";\nimport * as path from \"node:path\";\n\nimport type { PluginOptions } from \"../types\";\nimport { NON_EDITABLE_FILE_BANNER } from \"../constants\";\n\n/**\n * Arguments for `upsertGlobalContentTypes()`.\n */\ntype UpsertGlobalTypesArgs = Pick<\n\tSliceMachineContext<PluginOptions>,\n\t\"actions\" | \"helpers\" | \"options\"\n>;\n\n/**\n * Creates a globally accessible TypeScript file containing types representing\n * the Prismic repository's content.\n */\nexport const upsertGlobalContentTypes = async ({\n\tactions,\n\thelpers,\n\toptions,\n}: UpsertGlobalTypesArgs): Promise<void> => {\n\tconst filePath = helpers.joinPathFromRoot(\"prismicio-types.d.ts\");\n\n\tconst [customTypeModelDescriptors, sharedSliceModelDescriptors] =\n\t\tawait Promise.all([\n\t\t\tactions.readAllCustomTypeModels(),\n\t\t\tactions.readAllSliceModels(),\n\t\t]);\n\n\tconst customTypeModels = customTypeModelDescriptors.map(\n\t\t(customTypeModelDescriptors) => {\n\t\t\treturn customTypeModelDescriptors.model;\n\t\t},\n\t);\n\tconst sharedSliceModels = sharedSliceModelDescriptors.map(\n\t\t(sharedSliceModelDescriptors) => {\n\t\t\treturn sharedSliceModelDescriptors.model;\n\t\t},\n\t);\n\n\tlet contents = generateTypes({\n\t\tcustomTypeModels,\n\t\tsharedSliceModels,\n\t\tclientIntegration: {\n\t\t\tincludeCreateClientInterface: true,\n\t\t\tincludeContentNamespace: true,\n\t\t},\n\t});\n\n\tcontents = `${NON_EDITABLE_FILE_BANNER}\\n\\n${contents}`;\n\n\tif (options.format) {\n\t\tcontents = await helpers.format(contents, filePath);\n\t}\n\n\tawait fs.mkdir(path.dirname(filePath), { recursive: true });\n\tawait fs.writeFile(filePath, contents);\n};\n"],"names":["customTypeModelDescriptors","sharedSliceModelDescriptors"],"mappings":";;;;AAoBO,MAAM,2BAA2B,OAAO,EAC9C,SACA,SACA,cAC0C;AACpC,QAAA,WAAW,QAAQ,iBAAiB,sBAAsB;AAEhE,QAAM,CAAC,4BAA4B,2BAA2B,IAC7D,MAAM,QAAQ,IAAI;AAAA,IACjB,QAAQ,wBAAyB;AAAA,IACjC,QAAQ,mBAAoB;AAAA,EAAA,CAC5B;AAEF,QAAM,mBAAmB,2BAA2B,IACnD,CAACA,gCAA8B;AAC9B,WAAOA,4BAA2B;AAAA,EAAA,CAClC;AAEF,QAAM,oBAAoB,4BAA4B,IACrD,CAACC,iCAA+B;AAC/B,WAAOA,6BAA4B;AAAA,EAAA,CACnC;AAGF,MAAI,WAAW,cAAc;AAAA,IAC5B;AAAA,IACA;AAAA,IACA,mBAAmB;AAAA,MAClB,8BAA8B;AAAA,MAC9B,yBAAyB;AAAA,IACzB;AAAA,EAAA,CACD;AAED,aAAW,GAAG;AAAA;AAAA,EAA+B;AAE7C,MAAI,QAAQ,QAAQ;AACnB,eAAW,MAAM,QAAQ,OAAO,UAAU,QAAQ;AAAA,EAClD;AAEK,QAAA,GAAG,MAAM,KAAK,QAAQ,QAAQ,GAAG,EAAE,WAAW,KAAA,CAAM;AACpD,QAAA,GAAG,UAAU,UAAU,QAAQ;AACtC;"}
@@ -1,7 +1,7 @@
1
- import { SliceMachineContext } from "@slicemachine/plugin-kit";
2
- import { PluginOptions } from "../types";
3
- type UpsertSliceLibraryIndexFileArgs = {
4
- libraryID: string;
5
- } & SliceMachineContext<PluginOptions>;
6
- export declare const upsertSliceLibraryIndexFile: (args: UpsertSliceLibraryIndexFileArgs) => Promise<void>;
7
- export {};
1
+ import { SliceMachineContext } from "@slicemachine/plugin-kit";
2
+ import { PluginOptions } from "../types";
3
+ type UpsertSliceLibraryIndexFileArgs = {
4
+ libraryID: string;
5
+ } & SliceMachineContext<PluginOptions>;
6
+ export declare const upsertSliceLibraryIndexFile: (args: UpsertSliceLibraryIndexFileArgs) => Promise<void>;
7
+ export {};
package/dist/plugin.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- import { PluginOptions } from "./types";
2
- export declare const plugin: import("@slicemachine/plugin-kit").SliceMachinePlugin<PluginOptions>;
1
+ import { PluginOptions } from "./types";
2
+ export declare const plugin: import("@slicemachine/plugin-kit").SliceMachinePlugin<PluginOptions>;
@@ -1,34 +1,34 @@
1
- import { PropType, AllowedComponentProps, ComponentCustomProps, VNodeProps } from "vue";
2
- import { SliceSimulatorProps as BaseSliceSimulatorProps } from "@prismicio/slice-simulator-core";
3
- export type SliceSimulatorProps = Omit<BaseSliceSimulatorProps, "state">;
4
- export declare const SliceSimulatorImpl: import("vue").DefineComponent<{
5
- zIndex: {
6
- type: PropType<Required<number | undefined>>;
7
- default: number;
8
- required: false;
9
- };
10
- background: {
11
- type: PropType<Required<string | undefined>>;
12
- default: string;
13
- required: false;
14
- };
15
- }, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
16
- [key: string]: any;
17
- }>, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
18
- zIndex: {
19
- type: PropType<Required<number | undefined>>;
20
- default: number;
21
- required: false;
22
- };
23
- background: {
24
- type: PropType<Required<string | undefined>>;
25
- default: string;
26
- required: false;
27
- };
28
- }>>, {
29
- zIndex: Required<number | undefined>;
30
- background: Required<string | undefined>;
31
- }>;
32
- export declare const SliceSimulator: new () => {
33
- $props: AllowedComponentProps & ComponentCustomProps & VNodeProps & SliceSimulatorProps;
34
- };
1
+ import { PropType, AllowedComponentProps, ComponentCustomProps, VNodeProps } from "vue";
2
+ import { SliceSimulatorProps as BaseSliceSimulatorProps } from "@prismicio/slice-simulator-core";
3
+ export type SliceSimulatorProps = Omit<BaseSliceSimulatorProps, "state">;
4
+ export declare const SliceSimulatorImpl: import("vue").DefineComponent<{
5
+ zIndex: {
6
+ type: PropType<Required<number | undefined>>;
7
+ default: number;
8
+ required: false;
9
+ };
10
+ background: {
11
+ type: PropType<Required<string | undefined>>;
12
+ default: string;
13
+ required: false;
14
+ };
15
+ }, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
16
+ [key: string]: any;
17
+ }>, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
18
+ zIndex: {
19
+ type: PropType<Required<number | undefined>>;
20
+ default: number;
21
+ required: false;
22
+ };
23
+ background: {
24
+ type: PropType<Required<string | undefined>>;
25
+ default: string;
26
+ required: false;
27
+ };
28
+ }>>, {
29
+ zIndex: Required<number | undefined>;
30
+ background: Required<string | undefined>;
31
+ }>;
32
+ export declare const SliceSimulator: new () => {
33
+ $props: AllowedComponentProps & ComponentCustomProps & VNodeProps & SliceSimulatorProps;
34
+ };
@@ -1,2 +1,2 @@
1
- export { SliceSimulator } from "./SliceSimulator";
2
- export type { SliceSimulatorProps } from "./SliceSimulator";
1
+ export { SliceSimulator } from "./SliceSimulator";
2
+ export type { SliceSimulatorProps } from "./SliceSimulator";
package/dist/types.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- export type PluginOptions = {
2
- format?: boolean;
3
- lazyLoadSlices?: boolean;
4
- typescript?: boolean;
5
- };
1
+ export type PluginOptions = {
2
+ format?: boolean;
3
+ lazyLoadSlices?: boolean;
4
+ typescript?: boolean;
5
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@slicemachine/adapter-nuxt",
3
- "version": "0.1.0",
3
+ "version": "0.1.2",
4
4
  "description": "Slice Machine adapter for Nuxt 3.",
5
5
  "keywords": [
6
6
  "typescript",
@@ -103,5 +103,5 @@
103
103
  "publishConfig": {
104
104
  "access": "public"
105
105
  },
106
- "gitHead": "94819b03033580880acc7a3475a3dc9b4d466a0c"
106
+ "gitHead": "cad80345015bd1b8a9ffc1d60db482a81ab8442a"
107
107
  }
@@ -23,7 +23,7 @@ export const upsertGlobalContentTypes = async ({
23
23
  helpers,
24
24
  options,
25
25
  }: UpsertGlobalTypesArgs): Promise<void> => {
26
- const filePath = helpers.joinPathFromRoot("prismicio.d.ts");
26
+ const filePath = helpers.joinPathFromRoot("prismicio-types.d.ts");
27
27
 
28
28
  const [customTypeModelDescriptors, sharedSliceModelDescriptors] =
29
29
  await Promise.all([