@slicemachine/adapter-nuxt 0.0.2-dev-plugins-m3.8 → 0.1.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.
Files changed (43) hide show
  1. package/dist/constants.d.ts +4 -4
  2. package/dist/hooks/customType-asset-delete.d.ts +3 -3
  3. package/dist/hooks/customType-asset-read.d.ts +3 -3
  4. package/dist/hooks/customType-asset-update.d.ts +3 -3
  5. package/dist/hooks/customType-create.d.ts +3 -3
  6. package/dist/hooks/customType-delete.d.ts +3 -3
  7. package/dist/hooks/customType-read.d.ts +3 -3
  8. package/dist/hooks/customType-rename.d.ts +1 -1
  9. package/dist/hooks/customType-update.d.ts +1 -1
  10. package/dist/hooks/customTypeLibrary-read.d.ts +3 -3
  11. package/dist/hooks/project-init.d.ts +3 -3
  12. package/dist/hooks/slice-asset-delete.d.ts +3 -3
  13. package/dist/hooks/slice-asset-read.d.ts +3 -3
  14. package/dist/hooks/slice-asset-update.d.ts +3 -3
  15. package/dist/hooks/slice-create.d.ts +3 -3
  16. package/dist/hooks/slice-delete.d.ts +3 -3
  17. package/dist/hooks/slice-read.d.ts +3 -3
  18. package/dist/hooks/slice-rename.d.ts +3 -3
  19. package/dist/hooks/slice-update.d.ts +3 -3
  20. package/dist/hooks/sliceLibrary-read.d.ts +3 -3
  21. package/dist/hooks/sliceSimulator-setup-read.d.ts +3 -3
  22. package/dist/hooks/snippet-read.d.ts +3 -3
  23. package/dist/index.d.ts +3 -3
  24. package/dist/lib/buildCustomTypeAssetPath.d.ts +9 -9
  25. package/dist/lib/buildCustomTypeDirectoryPath.d.ts +8 -8
  26. package/dist/lib/buildCustomTypeLibraryDirectoryPath.d.ts +7 -7
  27. package/dist/lib/buildSliceAssetPath.d.ts +11 -11
  28. package/dist/lib/buildSliceDirectoryPath.d.ts +10 -10
  29. package/dist/lib/buildSliceLibraryDirectoryPath.d.ts +8 -8
  30. package/dist/lib/checkIsTypeScriptProject.d.ts +8 -8
  31. package/dist/lib/checkPathExists.d.ts +2 -2
  32. package/dist/lib/isSharedSliceModel.d.ts +335 -335
  33. package/dist/lib/pascalCase.d.ts +8 -8
  34. package/dist/lib/readJSONFile.d.ts +1 -1
  35. package/dist/lib/rejectIfNecessary.d.ts +1 -1
  36. package/dist/lib/updateSliceModelFile.d.ts +9 -9
  37. package/dist/lib/upsertGlobalContentTypes.d.ts +12 -12
  38. package/dist/lib/upsertSliceLibraryIndexFile.d.ts +7 -7
  39. package/dist/plugin.d.ts +2 -2
  40. package/dist/simulator/SliceSimulator.d.ts +34 -34
  41. package/dist/simulator/index.d.ts +2 -2
  42. package/dist/types.d.ts +5 -5
  43. package/package.json +3 -3
@@ -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>;
@@ -1,335 +1,335 @@
1
- export declare const isSharedSliceModel: (input: any) => input is {
2
- id: string;
3
- type: "SharedSlice";
4
- name: string;
5
- variations: readonly ({
6
- id: string;
7
- name: string;
8
- description: string;
9
- imageUrl: string;
10
- docURL: string;
11
- version: string;
12
- } & {
13
- display?: string | undefined;
14
- primary?: {
15
- [x: string]: ({
16
- type: "Color";
17
- } & {
18
- fieldset?: string | null | undefined;
19
- config?: {
20
- label?: string | null | undefined;
21
- placeholder?: string | undefined;
22
- } | undefined;
23
- }) | ({
24
- type: "Boolean";
25
- } & {
26
- config?: {
27
- label?: string | null | undefined;
28
- default_value?: boolean | undefined;
29
- placeholder_true?: string | undefined;
30
- placeholder_false?: string | undefined;
31
- } | undefined;
32
- }) | ({
33
- type: "Embed";
34
- } & {
35
- fieldset?: string | null | undefined;
36
- config?: {
37
- label?: string | null | undefined;
38
- placeholder?: string | undefined;
39
- useAsTitle?: boolean | undefined;
40
- } | undefined;
41
- }) | ({
42
- type: "GeoPoint";
43
- } & {
44
- fieldset?: string | null | undefined;
45
- config?: {
46
- label?: string | null | undefined;
47
- } | undefined;
48
- }) | ({
49
- type: "Date";
50
- } & {
51
- fieldset?: string | null | undefined;
52
- config?: {
53
- label?: string | null | undefined;
54
- placeholder?: string | undefined;
55
- default?: string | undefined;
56
- } | undefined;
57
- }) | ({
58
- type: "Number";
59
- } & {
60
- fieldset?: string | null | undefined;
61
- config?: {
62
- label?: string | null | undefined;
63
- placeholder?: string | undefined;
64
- min?: number | undefined;
65
- max?: number | undefined;
66
- step?: number | undefined;
67
- } | undefined;
68
- }) | ({
69
- type: "Range";
70
- } & {
71
- fieldset?: string | null | undefined;
72
- config?: {
73
- label?: string | null | undefined;
74
- placeholder?: string | undefined;
75
- min?: number | undefined;
76
- max?: number | undefined;
77
- step?: number | undefined;
78
- } | undefined;
79
- }) | ({
80
- type: "StructuredText";
81
- } & {
82
- fieldset?: string | null | undefined;
83
- config?: {
84
- label?: string | null | undefined;
85
- placeholder?: string | undefined;
86
- useAsTitle?: boolean | undefined;
87
- single?: string | undefined;
88
- multi?: string | undefined;
89
- imageConstraint?: {
90
- width?: number | null | undefined;
91
- height?: number | null | undefined;
92
- } | undefined;
93
- labels?: readonly string[] | undefined;
94
- allowTargetBlank?: boolean | undefined;
95
- } | undefined;
96
- }) | ({
97
- type: "Select";
98
- } & {
99
- fieldset?: string | null | undefined;
100
- config?: {
101
- label?: string | null | undefined;
102
- placeholder?: string | undefined;
103
- default_value?: string | undefined;
104
- options?: readonly string[] | undefined;
105
- } | undefined;
106
- }) | ({
107
- type: "Separator";
108
- } & {
109
- config?: {
110
- label?: string | null | undefined;
111
- } | undefined;
112
- }) | ({
113
- type: "Text";
114
- } & {
115
- fieldset?: string | null | undefined;
116
- config?: {
117
- label?: string | null | undefined;
118
- useAsTitle?: boolean | undefined;
119
- placeholder?: string | undefined;
120
- } | undefined;
121
- }) | ({
122
- type: "Timestamp";
123
- } & {
124
- fieldset?: string | null | undefined;
125
- config?: {
126
- label?: string | null | undefined;
127
- placeholder?: string | undefined;
128
- default?: string | undefined;
129
- } | undefined;
130
- }) | ({
131
- type: "Link";
132
- } & {
133
- fieldset?: string | null | undefined;
134
- config?: {
135
- label?: string | null | undefined;
136
- useAsTitle?: boolean | undefined;
137
- placeholder?: string | undefined;
138
- select?: "document" | "media" | "web" | null | undefined;
139
- customtypes?: readonly string[] | undefined;
140
- masks?: readonly string[] | undefined;
141
- tags?: readonly string[] | undefined;
142
- allowTargetBlank?: boolean | undefined;
143
- } | undefined;
144
- }) | ({
145
- type: "Image";
146
- } & {
147
- fieldset?: string | null | undefined;
148
- config?: {
149
- label?: string | null | undefined;
150
- placeholder?: string | undefined;
151
- constraint?: {
152
- width?: number | null | undefined;
153
- height?: number | null | undefined;
154
- } | undefined;
155
- thumbnails?: readonly ({
156
- name: string;
157
- } & {
158
- width?: number | null | undefined;
159
- height?: number | null | undefined;
160
- })[] | undefined;
161
- } | undefined;
162
- }) | ({
163
- type: "IntegrationFields";
164
- } & {
165
- fieldset?: string | null | undefined;
166
- config?: {
167
- label?: string | null | undefined;
168
- placeholder?: string | undefined;
169
- catalog?: string | undefined;
170
- } | undefined;
171
- });
172
- } | undefined;
173
- items?: {
174
- [x: string]: ({
175
- type: "Color";
176
- } & {
177
- fieldset?: string | null | undefined;
178
- config?: {
179
- label?: string | null | undefined;
180
- placeholder?: string | undefined;
181
- } | undefined;
182
- }) | ({
183
- type: "Boolean";
184
- } & {
185
- config?: {
186
- label?: string | null | undefined;
187
- default_value?: boolean | undefined;
188
- placeholder_true?: string | undefined;
189
- placeholder_false?: string | undefined;
190
- } | undefined;
191
- }) | ({
192
- type: "Embed";
193
- } & {
194
- fieldset?: string | null | undefined;
195
- config?: {
196
- label?: string | null | undefined;
197
- placeholder?: string | undefined;
198
- useAsTitle?: boolean | undefined;
199
- } | undefined;
200
- }) | ({
201
- type: "GeoPoint";
202
- } & {
203
- fieldset?: string | null | undefined;
204
- config?: {
205
- label?: string | null | undefined;
206
- } | undefined;
207
- }) | ({
208
- type: "Date";
209
- } & {
210
- fieldset?: string | null | undefined;
211
- config?: {
212
- label?: string | null | undefined;
213
- placeholder?: string | undefined;
214
- default?: string | undefined;
215
- } | undefined;
216
- }) | ({
217
- type: "Number";
218
- } & {
219
- fieldset?: string | null | undefined;
220
- config?: {
221
- label?: string | null | undefined;
222
- placeholder?: string | undefined;
223
- min?: number | undefined;
224
- max?: number | undefined;
225
- step?: number | undefined;
226
- } | undefined;
227
- }) | ({
228
- type: "Range";
229
- } & {
230
- fieldset?: string | null | undefined;
231
- config?: {
232
- label?: string | null | undefined;
233
- placeholder?: string | undefined;
234
- min?: number | undefined;
235
- max?: number | undefined;
236
- step?: number | undefined;
237
- } | undefined;
238
- }) | ({
239
- type: "StructuredText";
240
- } & {
241
- fieldset?: string | null | undefined;
242
- config?: {
243
- label?: string | null | undefined;
244
- placeholder?: string | undefined;
245
- useAsTitle?: boolean | undefined;
246
- single?: string | undefined;
247
- multi?: string | undefined;
248
- imageConstraint?: {
249
- width?: number | null | undefined;
250
- height?: number | null | undefined;
251
- } | undefined;
252
- labels?: readonly string[] | undefined;
253
- allowTargetBlank?: boolean | undefined;
254
- } | undefined;
255
- }) | ({
256
- type: "Select";
257
- } & {
258
- fieldset?: string | null | undefined;
259
- config?: {
260
- label?: string | null | undefined;
261
- placeholder?: string | undefined;
262
- default_value?: string | undefined;
263
- options?: readonly string[] | undefined;
264
- } | undefined;
265
- }) | ({
266
- type: "Separator";
267
- } & {
268
- config?: {
269
- label?: string | null | undefined;
270
- } | undefined;
271
- }) | ({
272
- type: "Text";
273
- } & {
274
- fieldset?: string | null | undefined;
275
- config?: {
276
- label?: string | null | undefined;
277
- useAsTitle?: boolean | undefined;
278
- placeholder?: string | undefined;
279
- } | undefined;
280
- }) | ({
281
- type: "Timestamp";
282
- } & {
283
- fieldset?: string | null | undefined;
284
- config?: {
285
- label?: string | null | undefined;
286
- placeholder?: string | undefined;
287
- default?: string | undefined;
288
- } | undefined;
289
- }) | ({
290
- type: "Link";
291
- } & {
292
- fieldset?: string | null | undefined;
293
- config?: {
294
- label?: string | null | undefined;
295
- useAsTitle?: boolean | undefined;
296
- placeholder?: string | undefined;
297
- select?: "document" | "media" | "web" | null | undefined;
298
- customtypes?: readonly string[] | undefined;
299
- masks?: readonly string[] | undefined;
300
- tags?: readonly string[] | undefined;
301
- allowTargetBlank?: boolean | undefined;
302
- } | undefined;
303
- }) | ({
304
- type: "Image";
305
- } & {
306
- fieldset?: string | null | undefined;
307
- config?: {
308
- label?: string | null | undefined;
309
- placeholder?: string | undefined;
310
- constraint?: {
311
- width?: number | null | undefined;
312
- height?: number | null | undefined;
313
- } | undefined;
314
- thumbnails?: readonly ({
315
- name: string;
316
- } & {
317
- width?: number | null | undefined;
318
- height?: number | null | undefined;
319
- })[] | undefined;
320
- } | undefined;
321
- }) | ({
322
- type: "IntegrationFields";
323
- } & {
324
- fieldset?: string | null | undefined;
325
- config?: {
326
- label?: string | null | undefined;
327
- placeholder?: string | undefined;
328
- catalog?: string | undefined;
329
- } | undefined;
330
- });
331
- } | undefined;
332
- })[];
333
- } & {
334
- description?: string | undefined;
335
- };
1
+ export declare const isSharedSliceModel: (input: any) => input is {
2
+ id: string;
3
+ type: "SharedSlice";
4
+ name: string;
5
+ variations: readonly ({
6
+ id: string;
7
+ name: string;
8
+ description: string;
9
+ imageUrl: string;
10
+ docURL: string;
11
+ version: string;
12
+ } & {
13
+ display?: string | undefined;
14
+ primary?: {
15
+ [x: string]: ({
16
+ type: "Color";
17
+ } & {
18
+ fieldset?: string | null | undefined;
19
+ config?: {
20
+ label?: string | null | undefined;
21
+ placeholder?: string | undefined;
22
+ } | undefined;
23
+ }) | ({
24
+ type: "Boolean";
25
+ } & {
26
+ config?: {
27
+ label?: string | null | undefined;
28
+ default_value?: boolean | undefined;
29
+ placeholder_true?: string | undefined;
30
+ placeholder_false?: string | undefined;
31
+ } | undefined;
32
+ }) | ({
33
+ type: "Embed";
34
+ } & {
35
+ fieldset?: string | null | undefined;
36
+ config?: {
37
+ label?: string | null | undefined;
38
+ placeholder?: string | undefined;
39
+ useAsTitle?: boolean | undefined;
40
+ } | undefined;
41
+ }) | ({
42
+ type: "GeoPoint";
43
+ } & {
44
+ fieldset?: string | null | undefined;
45
+ config?: {
46
+ label?: string | null | undefined;
47
+ } | undefined;
48
+ }) | ({
49
+ type: "Date";
50
+ } & {
51
+ fieldset?: string | null | undefined;
52
+ config?: {
53
+ label?: string | null | undefined;
54
+ placeholder?: string | undefined;
55
+ default?: string | undefined;
56
+ } | undefined;
57
+ }) | ({
58
+ type: "Number";
59
+ } & {
60
+ fieldset?: string | null | undefined;
61
+ config?: {
62
+ label?: string | null | undefined;
63
+ placeholder?: string | undefined;
64
+ min?: number | undefined;
65
+ max?: number | undefined;
66
+ step?: number | undefined;
67
+ } | undefined;
68
+ }) | ({
69
+ type: "Range";
70
+ } & {
71
+ fieldset?: string | null | undefined;
72
+ config?: {
73
+ label?: string | null | undefined;
74
+ placeholder?: string | undefined;
75
+ min?: number | undefined;
76
+ max?: number | undefined;
77
+ step?: number | undefined;
78
+ } | undefined;
79
+ }) | ({
80
+ type: "StructuredText";
81
+ } & {
82
+ fieldset?: string | null | undefined;
83
+ config?: {
84
+ label?: string | null | undefined;
85
+ placeholder?: string | undefined;
86
+ useAsTitle?: boolean | undefined;
87
+ single?: string | undefined;
88
+ multi?: string | undefined;
89
+ imageConstraint?: {
90
+ width?: number | null | undefined;
91
+ height?: number | null | undefined;
92
+ } | undefined;
93
+ labels?: readonly string[] | undefined;
94
+ allowTargetBlank?: boolean | undefined;
95
+ } | undefined;
96
+ }) | ({
97
+ type: "Select";
98
+ } & {
99
+ fieldset?: string | null | undefined;
100
+ config?: {
101
+ label?: string | null | undefined;
102
+ placeholder?: string | undefined;
103
+ default_value?: string | undefined;
104
+ options?: readonly string[] | undefined;
105
+ } | undefined;
106
+ }) | ({
107
+ type: "Separator";
108
+ } & {
109
+ config?: {
110
+ label?: string | null | undefined;
111
+ } | undefined;
112
+ }) | ({
113
+ type: "Text";
114
+ } & {
115
+ fieldset?: string | null | undefined;
116
+ config?: {
117
+ label?: string | null | undefined;
118
+ useAsTitle?: boolean | undefined;
119
+ placeholder?: string | undefined;
120
+ } | undefined;
121
+ }) | ({
122
+ type: "Timestamp";
123
+ } & {
124
+ fieldset?: string | null | undefined;
125
+ config?: {
126
+ label?: string | null | undefined;
127
+ placeholder?: string | undefined;
128
+ default?: string | undefined;
129
+ } | undefined;
130
+ }) | ({
131
+ type: "Link";
132
+ } & {
133
+ fieldset?: string | null | undefined;
134
+ config?: {
135
+ label?: string | null | undefined;
136
+ useAsTitle?: boolean | undefined;
137
+ placeholder?: string | undefined;
138
+ select?: "document" | "media" | "web" | null | undefined;
139
+ customtypes?: readonly string[] | undefined;
140
+ masks?: readonly string[] | undefined;
141
+ tags?: readonly string[] | undefined;
142
+ allowTargetBlank?: boolean | undefined;
143
+ } | undefined;
144
+ }) | ({
145
+ type: "Image";
146
+ } & {
147
+ fieldset?: string | null | undefined;
148
+ config?: {
149
+ label?: string | null | undefined;
150
+ placeholder?: string | undefined;
151
+ constraint?: {
152
+ width?: number | null | undefined;
153
+ height?: number | null | undefined;
154
+ } | undefined;
155
+ thumbnails?: readonly ({
156
+ name: string;
157
+ } & {
158
+ width?: number | null | undefined;
159
+ height?: number | null | undefined;
160
+ })[] | undefined;
161
+ } | undefined;
162
+ }) | ({
163
+ type: "IntegrationFields";
164
+ } & {
165
+ fieldset?: string | null | undefined;
166
+ config?: {
167
+ label?: string | null | undefined;
168
+ placeholder?: string | undefined;
169
+ catalog?: string | undefined;
170
+ } | undefined;
171
+ });
172
+ } | undefined;
173
+ items?: {
174
+ [x: string]: ({
175
+ type: "Color";
176
+ } & {
177
+ fieldset?: string | null | undefined;
178
+ config?: {
179
+ label?: string | null | undefined;
180
+ placeholder?: string | undefined;
181
+ } | undefined;
182
+ }) | ({
183
+ type: "Boolean";
184
+ } & {
185
+ config?: {
186
+ label?: string | null | undefined;
187
+ default_value?: boolean | undefined;
188
+ placeholder_true?: string | undefined;
189
+ placeholder_false?: string | undefined;
190
+ } | undefined;
191
+ }) | ({
192
+ type: "Embed";
193
+ } & {
194
+ fieldset?: string | null | undefined;
195
+ config?: {
196
+ label?: string | null | undefined;
197
+ placeholder?: string | undefined;
198
+ useAsTitle?: boolean | undefined;
199
+ } | undefined;
200
+ }) | ({
201
+ type: "GeoPoint";
202
+ } & {
203
+ fieldset?: string | null | undefined;
204
+ config?: {
205
+ label?: string | null | undefined;
206
+ } | undefined;
207
+ }) | ({
208
+ type: "Date";
209
+ } & {
210
+ fieldset?: string | null | undefined;
211
+ config?: {
212
+ label?: string | null | undefined;
213
+ placeholder?: string | undefined;
214
+ default?: string | undefined;
215
+ } | undefined;
216
+ }) | ({
217
+ type: "Number";
218
+ } & {
219
+ fieldset?: string | null | undefined;
220
+ config?: {
221
+ label?: string | null | undefined;
222
+ placeholder?: string | undefined;
223
+ min?: number | undefined;
224
+ max?: number | undefined;
225
+ step?: number | undefined;
226
+ } | undefined;
227
+ }) | ({
228
+ type: "Range";
229
+ } & {
230
+ fieldset?: string | null | undefined;
231
+ config?: {
232
+ label?: string | null | undefined;
233
+ placeholder?: string | undefined;
234
+ min?: number | undefined;
235
+ max?: number | undefined;
236
+ step?: number | undefined;
237
+ } | undefined;
238
+ }) | ({
239
+ type: "StructuredText";
240
+ } & {
241
+ fieldset?: string | null | undefined;
242
+ config?: {
243
+ label?: string | null | undefined;
244
+ placeholder?: string | undefined;
245
+ useAsTitle?: boolean | undefined;
246
+ single?: string | undefined;
247
+ multi?: string | undefined;
248
+ imageConstraint?: {
249
+ width?: number | null | undefined;
250
+ height?: number | null | undefined;
251
+ } | undefined;
252
+ labels?: readonly string[] | undefined;
253
+ allowTargetBlank?: boolean | undefined;
254
+ } | undefined;
255
+ }) | ({
256
+ type: "Select";
257
+ } & {
258
+ fieldset?: string | null | undefined;
259
+ config?: {
260
+ label?: string | null | undefined;
261
+ placeholder?: string | undefined;
262
+ default_value?: string | undefined;
263
+ options?: readonly string[] | undefined;
264
+ } | undefined;
265
+ }) | ({
266
+ type: "Separator";
267
+ } & {
268
+ config?: {
269
+ label?: string | null | undefined;
270
+ } | undefined;
271
+ }) | ({
272
+ type: "Text";
273
+ } & {
274
+ fieldset?: string | null | undefined;
275
+ config?: {
276
+ label?: string | null | undefined;
277
+ useAsTitle?: boolean | undefined;
278
+ placeholder?: string | undefined;
279
+ } | undefined;
280
+ }) | ({
281
+ type: "Timestamp";
282
+ } & {
283
+ fieldset?: string | null | undefined;
284
+ config?: {
285
+ label?: string | null | undefined;
286
+ placeholder?: string | undefined;
287
+ default?: string | undefined;
288
+ } | undefined;
289
+ }) | ({
290
+ type: "Link";
291
+ } & {
292
+ fieldset?: string | null | undefined;
293
+ config?: {
294
+ label?: string | null | undefined;
295
+ useAsTitle?: boolean | undefined;
296
+ placeholder?: string | undefined;
297
+ select?: "document" | "media" | "web" | null | undefined;
298
+ customtypes?: readonly string[] | undefined;
299
+ masks?: readonly string[] | undefined;
300
+ tags?: readonly string[] | undefined;
301
+ allowTargetBlank?: boolean | undefined;
302
+ } | undefined;
303
+ }) | ({
304
+ type: "Image";
305
+ } & {
306
+ fieldset?: string | null | undefined;
307
+ config?: {
308
+ label?: string | null | undefined;
309
+ placeholder?: string | undefined;
310
+ constraint?: {
311
+ width?: number | null | undefined;
312
+ height?: number | null | undefined;
313
+ } | undefined;
314
+ thumbnails?: readonly ({
315
+ name: string;
316
+ } & {
317
+ width?: number | null | undefined;
318
+ height?: number | null | undefined;
319
+ })[] | undefined;
320
+ } | undefined;
321
+ }) | ({
322
+ type: "IntegrationFields";
323
+ } & {
324
+ fieldset?: string | null | undefined;
325
+ config?: {
326
+ label?: string | null | undefined;
327
+ placeholder?: string | undefined;
328
+ catalog?: string | undefined;
329
+ } | undefined;
330
+ });
331
+ } | undefined;
332
+ })[];
333
+ } & {
334
+ description?: string | undefined;
335
+ };
@@ -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 {};
@@ -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 {};
@@ -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.0.2-dev-plugins-m3.8",
3
+ "version": "0.1.0",
4
4
  "description": "Slice Machine adapter for Nuxt 3.",
5
5
  "keywords": [
6
6
  "typescript",
@@ -59,7 +59,7 @@
59
59
  "dependencies": {
60
60
  "@prismicio/slice-simulator-core": "^0.2.7",
61
61
  "@prismicio/types-internal": "2.0.0-alpha.9",
62
- "@slicemachine/plugin-kit": "0.1.8-dev-plugins-m3.8",
62
+ "@slicemachine/plugin-kit": "0.2.0",
63
63
  "common-tags": "^1.8.2",
64
64
  "fs-extra": "^11.1.0",
65
65
  "magicast": "^0.2.1",
@@ -103,5 +103,5 @@
103
103
  "publishConfig": {
104
104
  "access": "public"
105
105
  },
106
- "gitHead": "3e9eb580f64736b6dc2dab057c92a3f7f9875424"
106
+ "gitHead": "94819b03033580880acc7a3475a3dc9b4d466a0c"
107
107
  }