@hubspot/cms-dev-server 1.0.20 → 1.0.30
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/app/assets/{index-CcBj6IXI.js → index-C-xmsAMz.js} +30 -30
- package/dist/app/index.html +1 -1
- package/dist/app/server/serverEntry.js +2 -0
- package/dist/generateJsonFromJsx.js +1 -1
- package/dist/index.js +100 -8
- package/dist/internalSsr.js +83 -6
- package/dist/run.js +100 -8
- package/dist/storybook/index.js +1 -1
- package/dist/storybook-main/main.js +87 -10
- package/package.json +3 -3
- package/types/lib/localComponentsLoader.d.ts +2 -0
- package/types/lib/renderModulePreview.d.ts +1 -0
- package/types/lib/viteAssetHandler.d.ts +15 -0
- package/types/plugins/hubspotStaticAssetPlugin.d.ts +2 -0
- package/types/plugins/remoteAssetsPlugin.d.ts +7 -0
- package/types/plugins/requestSigningPlugin.d.ts +6 -0
- package/types/constants/errors.d.ts +0 -5
- package/types/createAppViteConfig.d.ts +0 -2
- package/types/lib/cli.d.ts +0 -22
- package/types/lib/cliUtils.d.ts +0 -14
- package/types/lib/constants.d.ts +0 -1
- package/types/routes/api.d.ts +0 -2
- package/types/routes/appServerApiRouteHandler.d.ts +0 -5
- package/types/routes/appServerRoutes.d.ts +0 -5
- package/types/storybook-main/preview.d.ts +0 -9
package/types/lib/cli.d.ts
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
/// <reference types="node" resolution-mode="require"/>
|
|
2
|
-
export declare function getDevServerCommandLineOptions(argv: NodeJS.Process['argv']): {
|
|
3
|
-
hubspotCliConfigPathOption: string;
|
|
4
|
-
hubspotCliAccountNameOption: string;
|
|
5
|
-
sslEnabledOption: boolean;
|
|
6
|
-
storybook: boolean;
|
|
7
|
-
fieldGenEnabledOption: boolean;
|
|
8
|
-
webRoot: string;
|
|
9
|
-
resetSession: boolean;
|
|
10
|
-
};
|
|
11
|
-
export declare function buildThemePreviewOptions(webRoot: string): Promise<{
|
|
12
|
-
filePaths: string[];
|
|
13
|
-
startProgressBar: (numFiles: any) => {
|
|
14
|
-
onAttemptCallback: () => void;
|
|
15
|
-
onSuccessCallback: () => void;
|
|
16
|
-
onFirstErrorCallback: () => void;
|
|
17
|
-
onRetryCallback: () => void;
|
|
18
|
-
onFinalErrorCallback: () => any;
|
|
19
|
-
onFinishCallback: (results: any) => void;
|
|
20
|
-
};
|
|
21
|
-
dest: any;
|
|
22
|
-
}>;
|
package/types/lib/cliUtils.d.ts
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
export declare function determineSrcAndDest(): Promise<{
|
|
2
|
-
absoluteSrc: any;
|
|
3
|
-
dest: any;
|
|
4
|
-
}>;
|
|
5
|
-
export declare function getUploadableFileList(src: any, convertFields: any): Promise<any[]>;
|
|
6
|
-
export declare function fieldsJsPrompt(filePath: any, projectDir: any, skipFiles?: any[]): Promise<any[]>;
|
|
7
|
-
export declare function logError(error: any, context?: {}): void;
|
|
8
|
-
export declare class ApiErrorContext {
|
|
9
|
-
accountId: any;
|
|
10
|
-
request: any;
|
|
11
|
-
payload: any;
|
|
12
|
-
projectName: any;
|
|
13
|
-
constructor(props?: any);
|
|
14
|
-
}
|
package/types/lib/constants.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const templateTypeMap: Record<number, string>;
|
package/types/routes/api.d.ts
DELETED
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { Request, Response, NextFunction } from 'express';
|
|
2
|
-
export declare function handleGetModulePages(req: Request, res: Response, next: NextFunction): Promise<Response<any, Record<string, any>>>;
|
|
3
|
-
export declare function handleOpenFile(req: Request, res: Response, next: NextFunction): Response<any, Record<string, any>>;
|
|
4
|
-
export declare function appServerApiRouteHandler(): import("express-serve-static-core").Router;
|
|
5
|
-
export default appServerApiRouteHandler;
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { Request, Response, NextFunction } from 'express';
|
|
2
|
-
export declare function handleGetModulePages(req: Request, res: Response, next: NextFunction): Promise<Response<any, Record<string, any>>>;
|
|
3
|
-
export declare function handleOpenFile(req: Request, res: Response, next: NextFunction): Promise<Response<any, Record<string, any>>>;
|
|
4
|
-
export declare function appServerRoutes(): import("express-serve-static-core").Router;
|
|
5
|
-
export default appServerRoutes;
|