@hubspot/cms-dev-server 1.0.0 → 1.0.5
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-BDlX5eip.js → index-Ck3-AaKI.js} +10 -10
- package/dist/app/index.html +1 -1
- package/dist/app/server/serverEntry.js +39 -12
- package/dist/index.js +35 -29
- package/dist/run.js +42 -32
- package/package.json +3 -3
- package/types/createDevServer.d.ts +1 -1
- package/types/lib/getDevServerUIData.d.ts +2 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hubspot/cms-dev-server",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.5",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"engines": {
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
"@babel/parser": "^7.25.3",
|
|
30
30
|
"@babel/traverse": "^7.25.3",
|
|
31
31
|
"@babel/types": "^7.25.2",
|
|
32
|
-
"@hubspot/cms-components": "^1.0.
|
|
32
|
+
"@hubspot/cms-components": "^1.0.5",
|
|
33
33
|
"@hubspot/local-dev-lib": "2.0.1",
|
|
34
34
|
"@inquirer/select": "^2.0.0",
|
|
35
35
|
"@originjs/vite-plugin-commonjs": "^1.0.3",
|
|
@@ -131,5 +131,5 @@
|
|
|
131
131
|
"publishConfig": {
|
|
132
132
|
"access": "public"
|
|
133
133
|
},
|
|
134
|
-
"gitHead": "
|
|
134
|
+
"gitHead": "75984e96e8029b675f574bc50824f556ba417cdf"
|
|
135
135
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ThemePreviewOptions } from './lib/previewUtils.js';
|
|
2
|
-
declare function createDevServer(webRoot: string, storybook: boolean, hubspotCliConfigPathOption?: string, hubspotCliAccountNameOption?: string, sslEnabledOption?: boolean, fieldGenEnabledOption?: boolean, themePreviewOptions?: ThemePreviewOptions): Promise<{
|
|
2
|
+
declare function createDevServer(webRoot: string, storybook: boolean, hubspotCliConfigPathOption?: string, hubspotCliAccountNameOption?: string, sslEnabledOption?: boolean, fieldGenEnabledOption?: boolean, themePreviewOptions?: ThemePreviewOptions, fieldBuilderEnabled?: boolean): Promise<{
|
|
3
3
|
close: () => Promise<[...PromiseSettledResult<unknown>[], PromiseSettledResult<unknown>]>;
|
|
4
4
|
}>;
|
|
5
5
|
export default createDevServer;
|
|
@@ -36,6 +36,7 @@ export interface DevServerUIData {
|
|
|
36
36
|
}[];
|
|
37
37
|
sslEnabled: boolean;
|
|
38
38
|
projectData: ProjectData | null;
|
|
39
|
+
fieldBuilderEnabled: boolean;
|
|
39
40
|
[key: string]: any;
|
|
40
41
|
}
|
|
41
42
|
export interface RequestLocals {
|
|
@@ -47,6 +48,7 @@ export interface RequestLocals {
|
|
|
47
48
|
webRootProjectComponentFolder: string;
|
|
48
49
|
localPreviewToken: string;
|
|
49
50
|
sslEnabled: boolean;
|
|
51
|
+
fieldBuilderEnabled: boolean;
|
|
50
52
|
}
|
|
51
53
|
export declare const templateTypeMap: Record<number, string>;
|
|
52
54
|
export declare function getDevServerUIData(reqLocals: RequestLocals, viteServer: ViteDevServer): Promise<DevServerUIData>;
|