@slicemachine/manager 0.2.0 → 0.2.2-dev-page-types.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 (87) hide show
  1. package/dist/_node_modules/common-tags/es/stripIndent/stripIndent.cjs +2 -1
  2. package/dist/_node_modules/common-tags/es/stripIndent/stripIndent.cjs.map +1 -1
  3. package/dist/_node_modules/common-tags/es/stripIndent/stripIndent.js +2 -1
  4. package/dist/_node_modules/common-tags/es/stripIndent/stripIndent.js.map +1 -1
  5. package/dist/auth/PrismicAuthManager.cjs +5 -4
  6. package/dist/auth/PrismicAuthManager.cjs.map +1 -1
  7. package/dist/auth/PrismicAuthManager.d.ts +58 -58
  8. package/dist/auth/PrismicAuthManager.js +5 -4
  9. package/dist/auth/PrismicAuthManager.js.map +1 -1
  10. package/dist/auth/createPrismicAuthManager.d.ts +4 -4
  11. package/dist/auth/createPrismicAuthManagerMiddleware.d.ts +14 -14
  12. package/dist/client/index.d.ts +6 -6
  13. package/dist/constants/API_ENDPOINTS.d.ts +8 -8
  14. package/dist/constants/API_TOKENS.d.ts +5 -5
  15. package/dist/constants/APPLICATION_MODE.d.ts +5 -5
  16. package/dist/constants/DEFAULT_SLICE_SCREENSHOT_URL.d.ts +5 -5
  17. package/dist/constants/SLICE_MACHINE_CONFIG_FILENAME.d.ts +1 -1
  18. package/dist/constants/SLICE_MACHINE_GITHUB_PACKAGE_NAME.d.ts +1 -1
  19. package/dist/constants/SLICE_MACHINE_GITHUB_REPOSITORY_NAME.d.ts +1 -1
  20. package/dist/constants/SLICE_MACHINE_GITHUB_REPOSITORY_ORGANIZATION.d.ts +1 -1
  21. package/dist/constants/SLICE_MACHINE_NPM_PACKAGE_NAME.d.ts +1 -1
  22. package/dist/constants/SLICE_MACHINE_USER_AGENT.d.ts +1 -1
  23. package/dist/constants/TS_CONFIG_FILENAME.d.ts +1 -1
  24. package/dist/constants/VERSION_KIND.d.ts +6 -6
  25. package/dist/errors.d.ts +34 -34
  26. package/dist/index.d.ts +11 -11
  27. package/dist/lib/DecodeError.d.ts +12 -12
  28. package/dist/lib/addTrailingSlash.d.ts +1 -1
  29. package/dist/lib/assertPluginsInitialized.d.ts +2 -2
  30. package/dist/lib/bufferCodec.d.ts +4 -4
  31. package/dist/lib/buildPrismicRepositoryAPIEndpoint.d.ts +4 -4
  32. package/dist/lib/castArray.d.ts +1 -1
  33. package/dist/lib/checkIsURLAccessible.d.ts +1 -1
  34. package/dist/lib/createContentDigest.d.ts +9 -9
  35. package/dist/lib/decode.d.ts +10 -10
  36. package/dist/lib/decodeHookResult.d.ts +10 -10
  37. package/dist/lib/decodePackageJSON.d.ts +12 -12
  38. package/dist/lib/decodeSliceMachineConfig.d.ts +3 -3
  39. package/dist/lib/fetchGitHubReleaseBodyForRelease.d.ts +21 -21
  40. package/dist/lib/fetchNPMPackageVersions.d.ts +5 -5
  41. package/dist/lib/format.d.ts +12 -12
  42. package/dist/lib/functionCodec.d.ts +2 -2
  43. package/dist/lib/installDependencies.d.ts +13 -13
  44. package/dist/lib/locateFileUpward.d.ts +10 -10
  45. package/dist/lib/markdownToHTML.d.ts +1 -1
  46. package/dist/lib/mockSlice.d.ts +9 -9
  47. package/dist/lib/prismicrc.d.ts +10 -10
  48. package/dist/lib/serializeCookies.d.ts +6 -6
  49. package/dist/managers/BaseManager.d.ts +33 -33
  50. package/dist/managers/SliceMachineManager.d.ts +95 -95
  51. package/dist/managers/createSliceMachineManager.d.ts +5 -5
  52. package/dist/managers/createSliceMachineManagerClient.d.ts +8 -8
  53. package/dist/managers/createSliceMachineManagerMiddleware.d.ts +15 -15
  54. package/dist/managers/customTypes/CustomTypesManager.d.ts +56 -56
  55. package/dist/managers/plugins/PluginsManager.d.ts +13 -13
  56. package/dist/managers/prismicRepository/PrismicRepositoryManager.cjs +5 -12
  57. package/dist/managers/prismicRepository/PrismicRepositoryManager.cjs.map +1 -1
  58. package/dist/managers/prismicRepository/PrismicRepositoryManager.d.ts +30 -30
  59. package/dist/managers/prismicRepository/PrismicRepositoryManager.js +5 -12
  60. package/dist/managers/prismicRepository/PrismicRepositoryManager.js.map +1 -1
  61. package/dist/managers/prismicRepository/types.d.ts +123 -123
  62. package/dist/managers/project/ProjectManager.d.ts +49 -49
  63. package/dist/managers/screenshots/ScreenshotsManager.cjs +6 -5
  64. package/dist/managers/screenshots/ScreenshotsManager.cjs.map +1 -1
  65. package/dist/managers/screenshots/ScreenshotsManager.d.ts +34 -34
  66. package/dist/managers/screenshots/ScreenshotsManager.js +6 -5
  67. package/dist/managers/screenshots/ScreenshotsManager.js.map +1 -1
  68. package/dist/managers/simulator/SimulatorManager.d.ts +38 -38
  69. package/dist/managers/slices/SlicesManager.cjs +1 -5
  70. package/dist/managers/slices/SlicesManager.cjs.map +1 -1
  71. package/dist/managers/slices/SlicesManager.d.ts +128 -128
  72. package/dist/managers/slices/SlicesManager.js +1 -5
  73. package/dist/managers/slices/SlicesManager.js.map +1 -1
  74. package/dist/managers/snippets/SnippetsManager.d.ts +11 -11
  75. package/dist/managers/telemetry/TelemetryManager.d.ts +30 -30
  76. package/dist/managers/telemetry/types.d.ts +143 -143
  77. package/dist/managers/user/UserManager.d.ts +40 -40
  78. package/dist/managers/versions/VersionsManager.d.ts +19 -19
  79. package/dist/managers/versions/types.d.ts +5 -5
  80. package/dist/test/createSliceMachineManagerMSWHandler.d.ts +7 -7
  81. package/dist/test/index.d.ts +2 -2
  82. package/dist/types.d.ts +45 -45
  83. package/package.json +3 -3
  84. package/src/auth/PrismicAuthManager.ts +5 -9
  85. package/src/managers/prismicRepository/PrismicRepositoryManager.ts +5 -12
  86. package/src/managers/screenshots/ScreenshotsManager.ts +12 -5
  87. package/src/managers/slices/SlicesManager.ts +1 -6
package/dist/index.d.ts CHANGED
@@ -1,11 +1,11 @@
1
- export type { PrismicRepository } from "./managers/prismicRepository/types";
2
- export type { SliceMachineManager } from "./managers/SliceMachineManager";
3
- export { createSliceMachineManager } from "./managers/createSliceMachineManager";
4
- export { createSliceMachineManagerMiddleware } from "./managers/createSliceMachineManagerMiddleware";
5
- export type { CreateSliceMachineManagerMiddlewareArgs } from "./managers/createSliceMachineManagerMiddleware";
6
- export type { PrismicAuthManager, PrismicUserProfile, PrismicAuthState, } from "./auth/PrismicAuthManager";
7
- export { createPrismicAuthManager } from "./auth/createPrismicAuthManager";
8
- export { createPrismicAuthManagerMiddleware } from "./auth/createPrismicAuthManagerMiddleware";
9
- export type { CreatePrismicAuthManagerMiddlewareArgs, PrismicAuthCheckStatusResponse, } from "./auth/createPrismicAuthManagerMiddleware";
10
- export { DecodeError } from "./lib/DecodeError";
11
- export type { SliceMachineConfig, PackageManager } from "./types";
1
+ export type { PrismicRepository } from "./managers/prismicRepository/types";
2
+ export type { SliceMachineManager } from "./managers/SliceMachineManager";
3
+ export { createSliceMachineManager } from "./managers/createSliceMachineManager";
4
+ export { createSliceMachineManagerMiddleware } from "./managers/createSliceMachineManagerMiddleware";
5
+ export type { CreateSliceMachineManagerMiddlewareArgs } from "./managers/createSliceMachineManagerMiddleware";
6
+ export type { PrismicAuthManager, PrismicUserProfile, PrismicAuthState, } from "./auth/PrismicAuthManager";
7
+ export { createPrismicAuthManager } from "./auth/createPrismicAuthManager";
8
+ export { createPrismicAuthManagerMiddleware } from "./auth/createPrismicAuthManagerMiddleware";
9
+ export type { CreatePrismicAuthManagerMiddlewareArgs, PrismicAuthCheckStatusResponse, } from "./auth/createPrismicAuthManagerMiddleware";
10
+ export { DecodeError } from "./lib/DecodeError";
11
+ export type { SliceMachineConfig, PackageManager } from "./types";
@@ -1,12 +1,12 @@
1
- import * as t from "io-ts";
2
- type DecodeErrorConstructorArgs<TInput = unknown> = {
3
- input: TInput;
4
- errors: t.Errors;
5
- };
6
- export declare class DecodeError<TInput = unknown> extends Error {
7
- name: string;
8
- input: TInput;
9
- errors: string[];
10
- constructor(args: DecodeErrorConstructorArgs<TInput>);
11
- }
12
- export {};
1
+ import * as t from "io-ts";
2
+ type DecodeErrorConstructorArgs<TInput = unknown> = {
3
+ input: TInput;
4
+ errors: t.Errors;
5
+ };
6
+ export declare class DecodeError<TInput = unknown> extends Error {
7
+ name: string;
8
+ input: TInput;
9
+ errors: string[];
10
+ constructor(args: DecodeErrorConstructorArgs<TInput>);
11
+ }
12
+ export {};
@@ -1 +1 @@
1
- export declare const addTrailingSlash: (url: string | undefined) => string | undefined;
1
+ export declare const addTrailingSlash: (url: string | undefined) => string | undefined;
@@ -1,2 +1,2 @@
1
- import { SliceMachinePluginRunner } from "@slicemachine/plugin-kit";
2
- export declare function assertPluginsInitialized(pluginRunner: SliceMachinePluginRunner | undefined): asserts pluginRunner is NonNullable<typeof pluginRunner>;
1
+ import { SliceMachinePluginRunner } from "@slicemachine/plugin-kit";
2
+ export declare function assertPluginsInitialized(pluginRunner: SliceMachinePluginRunner | undefined): asserts pluginRunner is NonNullable<typeof pluginRunner>;
@@ -1,4 +1,4 @@
1
- /// <reference types="node" />
2
- import { Buffer } from "node:buffer";
3
- import * as t from "io-ts";
4
- export declare const bufferCodec: t.Type<Buffer, Buffer, unknown>;
1
+ /// <reference types="node" />
2
+ import { Buffer } from "node:buffer";
3
+ import * as t from "io-ts";
4
+ export declare const bufferCodec: t.Type<Buffer, Buffer, unknown>;
@@ -1,4 +1,4 @@
1
- export type BuildPrismicRepositoryAPIEndpointConfig = {
2
- withCDN?: boolean;
3
- };
4
- export declare const buildPrismicRepositoryAPIEndpoint: (repositoryName: string, { withCDN }?: BuildPrismicRepositoryAPIEndpointConfig) => string;
1
+ export type BuildPrismicRepositoryAPIEndpointConfig = {
2
+ withCDN?: boolean;
3
+ };
4
+ export declare const buildPrismicRepositoryAPIEndpoint: (repositoryName: string, { withCDN }?: BuildPrismicRepositoryAPIEndpointConfig) => string;
@@ -1 +1 @@
1
- export declare const castArray: <T>(input: T | readonly T[]) => T[];
1
+ export declare const castArray: <T>(input: T | readonly T[]) => T[];
@@ -1 +1 @@
1
- export declare const checkIsURLAccessible: (url: string) => Promise<boolean>;
1
+ export declare const checkIsURLAccessible: (url: string) => Promise<boolean>;
@@ -1,9 +1,9 @@
1
- import * as crypto from "node:crypto";
2
- /**
3
- * Creates a content digest for a given input.
4
- *
5
- * @param input - The value used to create a digest digest.
6
- *
7
- * @returns The content digest of `input`.
8
- */
9
- export declare const createContentDigest: (input: crypto.BinaryLike) => string;
1
+ import * as crypto from "node:crypto";
2
+ /**
3
+ * Creates a content digest for a given input.
4
+ *
5
+ * @param input - The value used to create a digest digest.
6
+ *
7
+ * @returns The content digest of `input`.
8
+ */
9
+ export declare const createContentDigest: (input: crypto.BinaryLike) => string;
@@ -1,10 +1,10 @@
1
- import * as t from "io-ts";
2
- import { DecodeError } from "./DecodeError";
3
- export type DecodeReturnType<A, _O, I> = {
4
- value: A;
5
- error?: never;
6
- } | {
7
- value?: never;
8
- error: DecodeError<I>;
9
- };
10
- export declare const decode: <A, O, I>(codec: t.Type<A, O, I>, input: I) => DecodeReturnType<A, O, I>;
1
+ import * as t from "io-ts";
2
+ import { DecodeError } from "./DecodeError";
3
+ export type DecodeReturnType<A, _O, I> = {
4
+ value: A;
5
+ error?: never;
6
+ } | {
7
+ value?: never;
8
+ error: DecodeError<I>;
9
+ };
10
+ export declare const decode: <A, O, I>(codec: t.Type<A, O, I>, input: I) => DecodeReturnType<A, O, I>;
@@ -1,10 +1,10 @@
1
- import * as t from "io-ts";
2
- import { HookError } from "@slicemachine/plugin-kit";
3
- import { DecodeError } from "./DecodeError";
4
- export declare const decodeHookResult: <A, O, I, THookResult extends {
5
- data: any[];
6
- errors: HookError<unknown>[];
7
- }>(codec: t.Type<A, O, I>, hookResult: THookResult) => {
8
- data: A[];
9
- errors: (HookError<unknown> | DecodeError<I>)[];
10
- };
1
+ import * as t from "io-ts";
2
+ import { HookError } from "@slicemachine/plugin-kit";
3
+ import { DecodeError } from "./DecodeError";
4
+ export declare const decodeHookResult: <A, O, I, THookResult extends {
5
+ data: any[];
6
+ errors: HookError<unknown>[];
7
+ }>(codec: t.Type<A, O, I>, hookResult: THookResult) => {
8
+ data: A[];
9
+ errors: (HookError<unknown> | DecodeError<I>)[];
10
+ };
@@ -1,12 +1,12 @@
1
- import * as t from "io-ts";
2
- import { DecodeReturnType } from "./decode";
3
- /**
4
- * A minimally defined codec for package.json files. Only data needed for
5
- * version detection is defined.
6
- */
7
- declare const PackageJSONCodec: t.TypeC<{
8
- version: t.StringC;
9
- }>;
10
- type PackageJSON = t.TypeOf<typeof PackageJSONCodec>;
11
- export declare const decodePackageJSON: (input: unknown) => DecodeReturnType<PackageJSON, PackageJSON, unknown>;
12
- export {};
1
+ import * as t from "io-ts";
2
+ import { DecodeReturnType } from "./decode";
3
+ /**
4
+ * A minimally defined codec for package.json files. Only data needed for
5
+ * version detection is defined.
6
+ */
7
+ declare const PackageJSONCodec: t.TypeC<{
8
+ version: t.StringC;
9
+ }>;
10
+ type PackageJSON = t.TypeOf<typeof PackageJSONCodec>;
11
+ export declare const decodePackageJSON: (input: unknown) => DecodeReturnType<PackageJSON, PackageJSON, unknown>;
12
+ export {};
@@ -1,3 +1,3 @@
1
- import { SliceMachineConfig } from "../types";
2
- import { DecodeReturnType } from "./decode";
3
- export declare const decodeSliceMachineConfig: (input: unknown) => DecodeReturnType<SliceMachineConfig, SliceMachineConfig, unknown>;
1
+ import { SliceMachineConfig } from "../types";
2
+ import { DecodeReturnType } from "./decode";
3
+ export declare const decodeSliceMachineConfig: (input: unknown) => DecodeReturnType<SliceMachineConfig, SliceMachineConfig, unknown>;
@@ -1,21 +1,21 @@
1
- import * as t from "io-ts";
2
- /**
3
- * A minimally defined codec for GitHub release metadata.
4
- *
5
- * @see https://docs.github.com/en/rest/releases/releases#get-a-release-by-tag-name
6
- */
7
- declare const GitHubReleaseMetadata: t.TypeC<{
8
- name: t.StringC;
9
- body: t.UnionC<[t.NullC, t.StringC]>;
10
- }>;
11
- export type GitHubReleaseMetadata = t.TypeOf<typeof GitHubReleaseMetadata>;
12
- type FetchGitHubReleaseBodyForReleaseArgs = {
13
- repositoryOwner: string;
14
- repositoryName: string;
15
- packageName?: string;
16
- version: string;
17
- cache?: Record<string, GitHubReleaseMetadata | undefined>;
18
- };
19
- declare const _fetchGitHubReleaseBodyForRelease: (args: FetchGitHubReleaseBodyForReleaseArgs) => Promise<string | undefined>;
20
- export declare const fetchGitHubReleaseBodyForRelease: (args: FetchGitHubReleaseBodyForReleaseArgs) => ReturnType<typeof _fetchGitHubReleaseBodyForRelease>;
21
- export {};
1
+ import * as t from "io-ts";
2
+ /**
3
+ * A minimally defined codec for GitHub release metadata.
4
+ *
5
+ * @see https://docs.github.com/en/rest/releases/releases#get-a-release-by-tag-name
6
+ */
7
+ declare const GitHubReleaseMetadata: t.TypeC<{
8
+ name: t.StringC;
9
+ body: t.UnionC<[t.NullC, t.StringC]>;
10
+ }>;
11
+ export type GitHubReleaseMetadata = t.TypeOf<typeof GitHubReleaseMetadata>;
12
+ type FetchGitHubReleaseBodyForReleaseArgs = {
13
+ repositoryOwner: string;
14
+ repositoryName: string;
15
+ packageName?: string;
16
+ version: string;
17
+ cache?: Record<string, GitHubReleaseMetadata | undefined>;
18
+ };
19
+ declare const _fetchGitHubReleaseBodyForRelease: (args: FetchGitHubReleaseBodyForReleaseArgs) => Promise<string | undefined>;
20
+ export declare const fetchGitHubReleaseBodyForRelease: (args: FetchGitHubReleaseBodyForReleaseArgs) => ReturnType<typeof _fetchGitHubReleaseBodyForRelease>;
21
+ export {};
@@ -1,5 +1,5 @@
1
- type FetchNPMPackageVersionsArgs = {
2
- packageName: string;
3
- };
4
- export declare const fetchNPMPackageVersions: (args: FetchNPMPackageVersionsArgs) => Promise<string[]>;
5
- export {};
1
+ type FetchNPMPackageVersionsArgs = {
2
+ packageName: string;
3
+ };
4
+ export declare const fetchNPMPackageVersions: (args: FetchNPMPackageVersionsArgs) => Promise<string[]>;
5
+ export {};
@@ -1,12 +1,12 @@
1
- import prettier from "prettier";
2
- type FormatOptions = {
3
- prettier?: prettier.Options;
4
- /**
5
- * Determines if a newline is included at the end of the formatted result.
6
- *
7
- * @defaultValue `true`
8
- */
9
- includeNewlineAtEnd?: boolean;
10
- };
11
- export declare const format: (source: string, filePath: string, options?: FormatOptions) => Promise<string>;
12
- export {};
1
+ import prettier from "prettier";
2
+ type FormatOptions = {
3
+ prettier?: prettier.Options;
4
+ /**
5
+ * Determines if a newline is included at the end of the formatted result.
6
+ *
7
+ * @defaultValue `true`
8
+ */
9
+ includeNewlineAtEnd?: boolean;
10
+ };
11
+ export declare const format: (source: string, filePath: string, options?: FormatOptions) => Promise<string>;
12
+ export {};
@@ -1,2 +1,2 @@
1
- import * as t from "io-ts";
2
- export declare const functionCodec: t.Type<Function, Function, unknown>;
1
+ import * as t from "io-ts";
2
+ export declare const functionCodec: t.Type<Function, Function, unknown>;
@@ -1,13 +1,13 @@
1
- import { ExecaChildProcess, Options as ExacaOptions } from "execa";
2
- import { PackageManager } from "../types";
3
- type InstallDependenciesArgs = {
4
- packageManager: PackageManager;
5
- dependencies: Record<string, string>;
6
- dev?: boolean;
7
- execa?: ExacaOptions;
8
- };
9
- type InstallDependenciesReturnType = {
10
- execaProcess: ExecaChildProcess;
11
- };
12
- export declare const installDependencies: (args: InstallDependenciesArgs) => Promise<InstallDependenciesReturnType>;
13
- export {};
1
+ import { ExecaChildProcess, Options as ExacaOptions } from "execa";
2
+ import { PackageManager } from "../types";
3
+ type InstallDependenciesArgs = {
4
+ packageManager: PackageManager;
5
+ dependencies: Record<string, string>;
6
+ dev?: boolean;
7
+ execa?: ExacaOptions;
8
+ };
9
+ type InstallDependenciesReturnType = {
10
+ execaProcess: ExecaChildProcess;
11
+ };
12
+ export declare const installDependencies: (args: InstallDependenciesArgs) => Promise<InstallDependenciesReturnType>;
13
+ export {};
@@ -1,10 +1,10 @@
1
- type LocateFileUpwardConfig = {
2
- startDir?: string;
3
- stopDir?: string;
4
- /**
5
- * @internal
6
- */
7
- _originalStartDir?: string;
8
- };
9
- export declare const locateFileUpward: (filePathOrPaths: string | readonly string[], { startDir, stopDir, _originalStartDir, }?: LocateFileUpwardConfig) => Promise<string>;
10
- export {};
1
+ type LocateFileUpwardConfig = {
2
+ startDir?: string;
3
+ stopDir?: string;
4
+ /**
5
+ * @internal
6
+ */
7
+ _originalStartDir?: string;
8
+ };
9
+ export declare const locateFileUpward: (filePathOrPaths: string | readonly string[], { startDir, stopDir, _originalStartDir, }?: LocateFileUpwardConfig) => Promise<string>;
10
+ export {};
@@ -1 +1 @@
1
- export declare const markdownToHTML: (markdown: string) => Promise<string>;
1
+ export declare const markdownToHTML: (markdown: string) => Promise<string>;
@@ -1,9 +1,9 @@
1
- import { SharedSliceContent } from "@prismicio/types-internal/lib/content";
2
- import { SharedSlice, SliceDiff } from "@prismicio/types-internal/lib/customtypes";
3
- type mockSliceArgs = {
4
- model: SharedSlice;
5
- mocks?: SharedSliceContent[];
6
- diff?: SliceDiff;
7
- };
8
- export declare const mockSlice: (args: mockSliceArgs) => SharedSliceContent[];
9
- export {};
1
+ import { SharedSliceContent } from "@prismicio/types-internal/lib/content";
2
+ import { SharedSlice, SliceDiff } from "@prismicio/types-internal/lib/customtypes";
3
+ type mockSliceArgs = {
4
+ model: SharedSlice;
5
+ mocks?: SharedSliceContent[];
6
+ diff?: SliceDiff;
7
+ };
8
+ export declare const mockSlice: (args: mockSliceArgs) => SharedSliceContent[];
9
+ export {};
@@ -1,10 +1,10 @@
1
- import * as t from "io-ts";
2
- declare const Prismicrc: t.PartialC<{
3
- telemetry: t.BooleanC;
4
- }>;
5
- type Prismicrc = t.TypeOf<typeof Prismicrc>;
6
- export declare const readRawPrismicrc: (dir?: string) => Prismicrc;
7
- export declare const readPrismicrc: (dir: string) => Prismicrc;
8
- export declare const writePrismicrc: (config: Prismicrc, dir?: string) => void;
9
- export declare const updatePrismicrc: (config: Prismicrc, dir?: string) => Prismicrc;
10
- export {};
1
+ import * as t from "io-ts";
2
+ declare const Prismicrc: t.PartialC<{
3
+ telemetry: t.BooleanC;
4
+ }>;
5
+ type Prismicrc = t.TypeOf<typeof Prismicrc>;
6
+ export declare const readRawPrismicrc: (dir?: string) => Prismicrc;
7
+ export declare const readPrismicrc: (dir: string) => Prismicrc;
8
+ export declare const writePrismicrc: (config: Prismicrc, dir?: string) => void;
9
+ export declare const updatePrismicrc: (config: Prismicrc, dir?: string) => Prismicrc;
10
+ export {};
@@ -1,6 +1,6 @@
1
- type Cookies = string | string[] | Record<string, string>;
2
- type SerializeCookiesArgs = {
3
- cookieJar?: Cookies;
4
- };
5
- export declare const serializeCookies: (cookies: Cookies, args?: SerializeCookiesArgs) => string;
6
- export {};
1
+ type Cookies = string | string[] | Record<string, string>;
2
+ type SerializeCookiesArgs = {
3
+ cookieJar?: Cookies;
4
+ };
5
+ export declare const serializeCookies: (cookies: Cookies, args?: SerializeCookiesArgs) => string;
6
+ export {};
@@ -1,33 +1,33 @@
1
- import { SliceMachinePluginRunner } from "@slicemachine/plugin-kit";
2
- import { PrismicAuthManager } from "../auth/PrismicAuthManager";
3
- import { SliceMachineManager } from "./SliceMachineManager";
4
- import { UserManager } from "./user/UserManager";
5
- import { PrismicRepositoryManager } from "./prismicRepository/PrismicRepositoryManager";
6
- import { PluginsManager } from "./plugins/PluginsManager";
7
- import { ProjectManager } from "./project/ProjectManager";
8
- import { CustomTypesManager } from "./customTypes/CustomTypesManager";
9
- import { SlicesManager } from "./slices/SlicesManager";
10
- import { SnippetsManager } from "./snippets/SnippetsManager";
11
- import { ScreenshotsManager } from "./screenshots/ScreenshotsManager";
12
- import { SimulatorManager } from "./simulator/SimulatorManager";
13
- import { VersionsManager } from "./versions/VersionsManager";
14
- import { TelemetryManager } from "./telemetry/TelemetryManager";
15
- export declare abstract class BaseManager {
16
- private _sliceMachineManager;
17
- constructor(sliceMachineManager: SliceMachineManager);
18
- protected get prismicAuthManager(): PrismicAuthManager;
19
- protected get sliceMachinePluginRunner(): SliceMachinePluginRunner | undefined;
20
- protected set sliceMachinePluginRunner(sliceMachinePluginRunner: SliceMachinePluginRunner | undefined);
21
- protected get cwd(): string;
22
- protected get user(): UserManager;
23
- protected get prismicRepository(): PrismicRepositoryManager;
24
- protected get plugins(): PluginsManager;
25
- protected get project(): ProjectManager;
26
- protected get customTypes(): CustomTypesManager;
27
- protected get slices(): SlicesManager;
28
- protected get snippets(): SnippetsManager;
29
- protected get screenshots(): ScreenshotsManager;
30
- protected get simulator(): SimulatorManager;
31
- protected get versions(): VersionsManager;
32
- protected get telemetry(): TelemetryManager;
33
- }
1
+ import { SliceMachinePluginRunner } from "@slicemachine/plugin-kit";
2
+ import { PrismicAuthManager } from "../auth/PrismicAuthManager";
3
+ import { SliceMachineManager } from "./SliceMachineManager";
4
+ import { UserManager } from "./user/UserManager";
5
+ import { PrismicRepositoryManager } from "./prismicRepository/PrismicRepositoryManager";
6
+ import { PluginsManager } from "./plugins/PluginsManager";
7
+ import { ProjectManager } from "./project/ProjectManager";
8
+ import { CustomTypesManager } from "./customTypes/CustomTypesManager";
9
+ import { SlicesManager } from "./slices/SlicesManager";
10
+ import { SnippetsManager } from "./snippets/SnippetsManager";
11
+ import { ScreenshotsManager } from "./screenshots/ScreenshotsManager";
12
+ import { SimulatorManager } from "./simulator/SimulatorManager";
13
+ import { VersionsManager } from "./versions/VersionsManager";
14
+ import { TelemetryManager } from "./telemetry/TelemetryManager";
15
+ export declare abstract class BaseManager {
16
+ private _sliceMachineManager;
17
+ constructor(sliceMachineManager: SliceMachineManager);
18
+ protected get prismicAuthManager(): PrismicAuthManager;
19
+ protected get sliceMachinePluginRunner(): SliceMachinePluginRunner | undefined;
20
+ protected set sliceMachinePluginRunner(sliceMachinePluginRunner: SliceMachinePluginRunner | undefined);
21
+ protected get cwd(): string;
22
+ protected get user(): UserManager;
23
+ protected get prismicRepository(): PrismicRepositoryManager;
24
+ protected get plugins(): PluginsManager;
25
+ protected get project(): ProjectManager;
26
+ protected get customTypes(): CustomTypesManager;
27
+ protected get slices(): SlicesManager;
28
+ protected get snippets(): SnippetsManager;
29
+ protected get screenshots(): ScreenshotsManager;
30
+ protected get simulator(): SimulatorManager;
31
+ protected get versions(): VersionsManager;
32
+ protected get telemetry(): TelemetryManager;
33
+ }