@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
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # @slicemachine/adapter-next
1
+ # @slicemachine/adapter-nuxt
2
2
 
3
3
  [![npm version][npm-version-src]][npm-version-href]
4
4
  [![npm downloads][npm-downloads-src]][npm-downloads-href]
@@ -24,7 +24,7 @@ Non-breaking space:   are here on purpose to fix emoji rendering on certain
24
24
  ## Install
25
25
 
26
26
  ```bash
27
- npm install --save-dev @slicemachine/adapter-next
27
+ npm install --save-dev @slicemachine/adapter-nuxt
28
28
  ```
29
29
 
30
30
  ## Documentation
@@ -1,4 +1,4 @@
1
- /**
2
- * Banner text added to files that should not be edited by users.
3
- */
4
- export declare const NON_EDITABLE_FILE_BANNER = "// Code generated by Slice Machine. DO NOT EDIT.";
1
+ /**
2
+ * Banner text added to files that should not be edited by users.
3
+ */
4
+ export declare const NON_EDITABLE_FILE_BANNER = "// Code generated by Slice Machine. DO NOT EDIT.";
@@ -1,3 +1,3 @@
1
- import type { CustomTypeAssetDeleteHook } from "@slicemachine/plugin-kit";
2
- import type { PluginOptions } from "../types";
3
- export declare const customTypeAssetDelete: CustomTypeAssetDeleteHook<PluginOptions>;
1
+ import type { CustomTypeAssetDeleteHook } from "@slicemachine/plugin-kit";
2
+ import type { PluginOptions } from "../types";
3
+ export declare const customTypeAssetDelete: CustomTypeAssetDeleteHook<PluginOptions>;
@@ -1,3 +1,3 @@
1
- import type { CustomTypeAssetReadHook } from "@slicemachine/plugin-kit";
2
- import type { PluginOptions } from "../types";
3
- export declare const customTypeAssetRead: CustomTypeAssetReadHook<PluginOptions>;
1
+ import type { CustomTypeAssetReadHook } from "@slicemachine/plugin-kit";
2
+ import type { PluginOptions } from "../types";
3
+ export declare const customTypeAssetRead: CustomTypeAssetReadHook<PluginOptions>;
@@ -1,3 +1,3 @@
1
- import type { CustomTypeAssetUpdateHook } from "@slicemachine/plugin-kit";
2
- import type { PluginOptions } from "../types";
3
- export declare const customTypeAssetUpdate: CustomTypeAssetUpdateHook<PluginOptions>;
1
+ import type { CustomTypeAssetUpdateHook } from "@slicemachine/plugin-kit";
2
+ import type { PluginOptions } from "../types";
3
+ export declare const customTypeAssetUpdate: CustomTypeAssetUpdateHook<PluginOptions>;
@@ -1,3 +1,3 @@
1
- import type { CustomTypeCreateHook } from "@slicemachine/plugin-kit";
2
- import type { PluginOptions } from "../types";
3
- export declare const customTypeCreate: CustomTypeCreateHook<PluginOptions>;
1
+ import type { CustomTypeCreateHook } from "@slicemachine/plugin-kit";
2
+ import type { PluginOptions } from "../types";
3
+ export declare const customTypeCreate: CustomTypeCreateHook<PluginOptions>;
@@ -1,3 +1,3 @@
1
- import type { CustomTypeDeleteHook } from "@slicemachine/plugin-kit";
2
- import type { PluginOptions } from "../types";
3
- export declare const customTypeDelete: CustomTypeDeleteHook<PluginOptions>;
1
+ import type { CustomTypeDeleteHook } from "@slicemachine/plugin-kit";
2
+ import type { PluginOptions } from "../types";
3
+ export declare const customTypeDelete: CustomTypeDeleteHook<PluginOptions>;
@@ -1,3 +1,3 @@
1
- import type { CustomTypeReadHook } from "@slicemachine/plugin-kit";
2
- import type { PluginOptions } from "../types";
3
- export declare const customTypeRead: CustomTypeReadHook<PluginOptions>;
1
+ import type { CustomTypeReadHook } from "@slicemachine/plugin-kit";
2
+ import type { PluginOptions } from "../types";
3
+ export declare const customTypeRead: CustomTypeReadHook<PluginOptions>;
@@ -1 +1 @@
1
- export declare const customTypeRename: import("@slicemachine/plugin-kit").CustomTypeCreateHook<import("..").PluginOptions>;
1
+ export declare const customTypeRename: import("@slicemachine/plugin-kit").CustomTypeCreateHook<import("..").PluginOptions>;
@@ -1 +1 @@
1
- export declare const customTypeUpdate: import("@slicemachine/plugin-kit").CustomTypeCreateHook<import("..").PluginOptions>;
1
+ export declare const customTypeUpdate: import("@slicemachine/plugin-kit").CustomTypeCreateHook<import("..").PluginOptions>;
@@ -1,3 +1,3 @@
1
- import type { CustomTypeLibraryReadHook } from "@slicemachine/plugin-kit";
2
- import type { PluginOptions } from "../types";
3
- export declare const customTypeLibraryRead: CustomTypeLibraryReadHook<PluginOptions>;
1
+ import type { CustomTypeLibraryReadHook } from "@slicemachine/plugin-kit";
2
+ import type { PluginOptions } from "../types";
3
+ export declare const customTypeLibraryRead: CustomTypeLibraryReadHook<PluginOptions>;
@@ -1,3 +1,3 @@
1
- import type { ProjectInitHook } from "@slicemachine/plugin-kit";
2
- import type { PluginOptions } from "../types";
3
- export declare const projectInit: ProjectInitHook<PluginOptions>;
1
+ import type { ProjectInitHook } from "@slicemachine/plugin-kit";
2
+ import type { PluginOptions } from "../types";
3
+ export declare const projectInit: ProjectInitHook<PluginOptions>;
@@ -1,3 +1,3 @@
1
- import type { SliceAssetDeleteHook } from "@slicemachine/plugin-kit";
2
- import type { PluginOptions } from "../types";
3
- export declare const sliceAssetDelete: SliceAssetDeleteHook<PluginOptions>;
1
+ import type { SliceAssetDeleteHook } from "@slicemachine/plugin-kit";
2
+ import type { PluginOptions } from "../types";
3
+ export declare const sliceAssetDelete: SliceAssetDeleteHook<PluginOptions>;
@@ -1,3 +1,3 @@
1
- import type { SliceAssetReadHook } from "@slicemachine/plugin-kit";
2
- import type { PluginOptions } from "../types";
3
- export declare const sliceAssetRead: SliceAssetReadHook<PluginOptions>;
1
+ import type { SliceAssetReadHook } from "@slicemachine/plugin-kit";
2
+ import type { PluginOptions } from "../types";
3
+ export declare const sliceAssetRead: SliceAssetReadHook<PluginOptions>;
@@ -1,3 +1,3 @@
1
- import type { SliceAssetUpdateHook } from "@slicemachine/plugin-kit";
2
- import type { PluginOptions } from "../types";
3
- export declare const sliceAssetUpdate: SliceAssetUpdateHook<PluginOptions>;
1
+ import type { SliceAssetUpdateHook } from "@slicemachine/plugin-kit";
2
+ import type { PluginOptions } from "../types";
3
+ export declare const sliceAssetUpdate: SliceAssetUpdateHook<PluginOptions>;
@@ -1,3 +1,3 @@
1
- import type { SliceCreateHook } from "@slicemachine/plugin-kit";
2
- import type { PluginOptions } from "../types";
3
- export declare const sliceCreate: SliceCreateHook<PluginOptions>;
1
+ import type { SliceCreateHook } from "@slicemachine/plugin-kit";
2
+ import type { PluginOptions } from "../types";
3
+ export declare const sliceCreate: SliceCreateHook<PluginOptions>;
@@ -1,3 +1,3 @@
1
- import type { SliceDeleteHook } from "@slicemachine/plugin-kit";
2
- import type { PluginOptions } from "../types";
3
- export declare const sliceDelete: SliceDeleteHook<PluginOptions>;
1
+ import type { SliceDeleteHook } from "@slicemachine/plugin-kit";
2
+ import type { PluginOptions } from "../types";
3
+ export declare const sliceDelete: SliceDeleteHook<PluginOptions>;
@@ -1,3 +1,3 @@
1
- import type { SliceReadHook } from "@slicemachine/plugin-kit";
2
- import type { PluginOptions } from "../types";
3
- export declare const sliceRead: SliceReadHook<PluginOptions>;
1
+ import type { SliceReadHook } from "@slicemachine/plugin-kit";
2
+ import type { PluginOptions } from "../types";
3
+ export declare const sliceRead: SliceReadHook<PluginOptions>;
@@ -1,3 +1,3 @@
1
- import type { SliceRenameHook } from "@slicemachine/plugin-kit";
2
- import type { PluginOptions } from "../types";
3
- export declare const sliceRename: SliceRenameHook<PluginOptions>;
1
+ import type { SliceRenameHook } from "@slicemachine/plugin-kit";
2
+ import type { PluginOptions } from "../types";
3
+ export declare const sliceRename: SliceRenameHook<PluginOptions>;
@@ -1,3 +1,3 @@
1
- import type { SliceUpdateHook } from "@slicemachine/plugin-kit";
2
- import type { PluginOptions } from "../types";
3
- export declare const sliceUpdate: SliceUpdateHook<PluginOptions>;
1
+ import type { SliceUpdateHook } from "@slicemachine/plugin-kit";
2
+ import type { PluginOptions } from "../types";
3
+ export declare const sliceUpdate: SliceUpdateHook<PluginOptions>;
@@ -1,3 +1,3 @@
1
- import type { SliceLibraryReadHook } from "@slicemachine/plugin-kit";
2
- import type { PluginOptions } from "../types";
3
- export declare const sliceLibraryRead: SliceLibraryReadHook<PluginOptions>;
1
+ import type { SliceLibraryReadHook } from "@slicemachine/plugin-kit";
2
+ import type { PluginOptions } from "../types";
3
+ export declare const sliceLibraryRead: SliceLibraryReadHook<PluginOptions>;
@@ -1,3 +1,3 @@
1
- import type { SliceSimulatorSetupReadHook } from "@slicemachine/plugin-kit";
2
- import type { PluginOptions } from "../types";
3
- export declare const sliceSimulatorSetupRead: SliceSimulatorSetupReadHook<PluginOptions>;
1
+ import type { SliceSimulatorSetupReadHook } from "@slicemachine/plugin-kit";
2
+ import type { PluginOptions } from "../types";
3
+ export declare const sliceSimulatorSetupRead: SliceSimulatorSetupReadHook<PluginOptions>;
@@ -1,3 +1,3 @@
1
- import type { SnippetReadHook } from "@slicemachine/plugin-kit";
2
- import type { PluginOptions } from "../types";
3
- export declare const snippetRead: SnippetReadHook<PluginOptions>;
1
+ import type { SnippetReadHook } from "@slicemachine/plugin-kit";
2
+ import type { PluginOptions } from "../types";
3
+ export declare const snippetRead: SnippetReadHook<PluginOptions>;
package/dist/index.d.ts CHANGED
@@ -1,3 +1,3 @@
1
- import { plugin } from "./plugin";
2
- export default plugin;
3
- export type { PluginOptions } from "./types";
1
+ import { plugin } from "./plugin";
2
+ export default plugin;
3
+ export type { PluginOptions } from "./types";
@@ -1,9 +1,9 @@
1
- import { SliceMachineContext } from "@slicemachine/plugin-kit";
2
- import { PluginOptions } from "../types";
3
- type BuildCustomTypeAssetPathArgs = {
4
- customTypeID: string;
5
- assetID: string;
6
- helpers: SliceMachineContext<PluginOptions>["helpers"];
7
- };
8
- export declare const buildCustomTypeAssetPath: (args: BuildCustomTypeAssetPathArgs) => string;
9
- export {};
1
+ import { SliceMachineContext } from "@slicemachine/plugin-kit";
2
+ import { PluginOptions } from "../types";
3
+ type BuildCustomTypeAssetPathArgs = {
4
+ customTypeID: string;
5
+ assetID: string;
6
+ helpers: SliceMachineContext<PluginOptions>["helpers"];
7
+ };
8
+ export declare const buildCustomTypeAssetPath: (args: BuildCustomTypeAssetPathArgs) => string;
9
+ export {};
@@ -1,8 +1,8 @@
1
- import { SliceMachineContext } from "@slicemachine/plugin-kit";
2
- import { PluginOptions } from "../types";
3
- type BuildCustomTypeDirectoryPathArgs = {
4
- customTypeID: string;
5
- helpers: SliceMachineContext<PluginOptions>["helpers"];
6
- };
7
- export declare const buildCustomTypeDirectoryPath: (args: BuildCustomTypeDirectoryPathArgs) => string;
8
- export {};
1
+ import { SliceMachineContext } from "@slicemachine/plugin-kit";
2
+ import { PluginOptions } from "../types";
3
+ type BuildCustomTypeDirectoryPathArgs = {
4
+ customTypeID: string;
5
+ helpers: SliceMachineContext<PluginOptions>["helpers"];
6
+ };
7
+ export declare const buildCustomTypeDirectoryPath: (args: BuildCustomTypeDirectoryPathArgs) => string;
8
+ export {};
@@ -1,7 +1,7 @@
1
- import { SliceMachineContext } from "@slicemachine/plugin-kit";
2
- import { PluginOptions } from "../types";
3
- type BuildCustomTypeLibraryDirectoryPathArgs = {
4
- helpers: SliceMachineContext<PluginOptions>["helpers"];
5
- };
6
- export declare const buildCustomTypeLibraryDirectoryPath: (args: BuildCustomTypeLibraryDirectoryPathArgs) => string;
7
- export {};
1
+ import { SliceMachineContext } from "@slicemachine/plugin-kit";
2
+ import { PluginOptions } from "../types";
3
+ type BuildCustomTypeLibraryDirectoryPathArgs = {
4
+ helpers: SliceMachineContext<PluginOptions>["helpers"];
5
+ };
6
+ export declare const buildCustomTypeLibraryDirectoryPath: (args: BuildCustomTypeLibraryDirectoryPathArgs) => string;
7
+ export {};
@@ -1,11 +1,11 @@
1
- import { SliceMachineContext } from "@slicemachine/plugin-kit";
2
- import { PluginOptions } from "../types";
3
- type BuildSliceAssetPathArgs = {
4
- libraryID: string;
5
- sliceID: string;
6
- assetID: string;
7
- actions: SliceMachineContext<PluginOptions>["actions"];
8
- helpers: SliceMachineContext<PluginOptions>["helpers"];
9
- };
10
- export declare const buildSliceAssetPath: (args: BuildSliceAssetPathArgs) => Promise<string>;
11
- export {};
1
+ import { SliceMachineContext } from "@slicemachine/plugin-kit";
2
+ import { PluginOptions } from "../types";
3
+ type BuildSliceAssetPathArgs = {
4
+ libraryID: string;
5
+ sliceID: string;
6
+ assetID: string;
7
+ actions: SliceMachineContext<PluginOptions>["actions"];
8
+ helpers: SliceMachineContext<PluginOptions>["helpers"];
9
+ };
10
+ export declare const buildSliceAssetPath: (args: BuildSliceAssetPathArgs) => Promise<string>;
11
+ export {};
@@ -1,10 +1,10 @@
1
- import type { SharedSlice } from "@prismicio/types-internal/lib/customtypes";
2
- import { SliceMachineContext } from "@slicemachine/plugin-kit";
3
- import { PluginOptions } from "../types";
4
- type BuildSliceDirectoryPathArgs = {
5
- libraryID: string;
6
- model: SharedSlice;
7
- helpers: SliceMachineContext<PluginOptions>["helpers"];
8
- };
9
- export declare const buildSliceDirectoryPath: (args: BuildSliceDirectoryPathArgs) => string;
10
- export {};
1
+ import type { SharedSlice } from "@prismicio/types-internal/lib/customtypes";
2
+ import { SliceMachineContext } from "@slicemachine/plugin-kit";
3
+ import { PluginOptions } from "../types";
4
+ type BuildSliceDirectoryPathArgs = {
5
+ libraryID: string;
6
+ model: SharedSlice;
7
+ helpers: SliceMachineContext<PluginOptions>["helpers"];
8
+ };
9
+ export declare const buildSliceDirectoryPath: (args: BuildSliceDirectoryPathArgs) => string;
10
+ export {};
@@ -1,8 +1,8 @@
1
- import { SliceMachineContext } from "@slicemachine/plugin-kit";
2
- import { PluginOptions } from "../types";
3
- type BuildSliceLibraryDirectoryPathArgs = {
4
- libraryID: string;
5
- helpers: SliceMachineContext<PluginOptions>["helpers"];
6
- };
7
- export declare const buildSliceLibraryDirectoryPath: (args: BuildSliceLibraryDirectoryPathArgs) => string;
8
- export {};
1
+ import { SliceMachineContext } from "@slicemachine/plugin-kit";
2
+ import { PluginOptions } from "../types";
3
+ type BuildSliceLibraryDirectoryPathArgs = {
4
+ libraryID: string;
5
+ helpers: SliceMachineContext<PluginOptions>["helpers"];
6
+ };
7
+ export declare const buildSliceLibraryDirectoryPath: (args: BuildSliceLibraryDirectoryPathArgs) => string;
8
+ export {};
@@ -1,8 +1,8 @@
1
- import { SliceMachineContext } from "@slicemachine/plugin-kit";
2
- import { PluginOptions } from "../types";
3
- type CheckIsTypeScriptProjectArgs = {
4
- helpers: SliceMachineContext<PluginOptions>["helpers"];
5
- options: SliceMachineContext<PluginOptions>["options"];
6
- };
7
- export declare const checkIsTypeScriptProject: (args: CheckIsTypeScriptProjectArgs) => Promise<boolean>;
8
- export {};
1
+ import { SliceMachineContext } from "@slicemachine/plugin-kit";
2
+ import { PluginOptions } from "../types";
3
+ type CheckIsTypeScriptProjectArgs = {
4
+ helpers: SliceMachineContext<PluginOptions>["helpers"];
5
+ options: SliceMachineContext<PluginOptions>["options"];
6
+ };
7
+ export declare const checkIsTypeScriptProject: (args: CheckIsTypeScriptProjectArgs) => Promise<boolean>;
8
+ export {};
@@ -1,2 +1,2 @@
1
- import { PathLike } from "node:fs";
2
- export declare const checkPathExists: (path: PathLike) => Promise<boolean>;
1
+ import { PathLike } from "node:fs";
2
+ export declare const checkPathExists: (path: PathLike) => Promise<boolean>;