@hubspot/cms-dev-server 1.2.76 → 1.2.77
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/index.js +3 -2
- package/dist/run.js +3 -2
- package/dist/validateFieldsCli.js +2 -1
- package/package.json +2 -2
- package/types/lib/debugAuth.d.ts +0 -8
- package/types/lib/localComponentsLoader.d.ts +0 -2
- package/types/lib/viteAssetHandler.d.ts +0 -18
- package/types/plugins/hubspotStaticAssetPlugin.d.ts +0 -2
- package/types/plugins/remoteAssetsPlugin.d.ts +0 -10
- package/types/plugins/requestSigningPlugin.d.ts +0 -6
- package/types/routes/createAppServerRoutes.d.ts +0 -13
- package/types/routes/homeRouteHandler.d.ts +0 -7
package/dist/index.js
CHANGED
|
@@ -1650,7 +1650,7 @@ function trackUsage(action) {
|
|
|
1650
1650
|
eventName: EVENT_NAME,
|
|
1651
1651
|
action,
|
|
1652
1652
|
nodeVersion: getNodeVersionData(),
|
|
1653
|
-
version: "1.2.
|
|
1653
|
+
version: "1.2.77",
|
|
1654
1654
|
os: getPlatform()
|
|
1655
1655
|
};
|
|
1656
1656
|
const url3 = isAuthedWithPersonalAccessKey ? DEV_SERVER_USAGE_ENDPOINT_AUTHENTICATED : DEV_SERVER_USAGE_ENDPOINT;
|
|
@@ -5431,6 +5431,7 @@ var fieldTypeNameByType = {
|
|
|
5431
5431
|
textalignment: "TextAlignmentFieldType",
|
|
5432
5432
|
text: "TextFieldType",
|
|
5433
5433
|
url: "UrlFieldType",
|
|
5434
|
+
variantselection: "VariantSelectionFieldType",
|
|
5434
5435
|
videoplayer: "VideoFieldType",
|
|
5435
5436
|
workflow: "WorkflowFieldType"
|
|
5436
5437
|
};
|
|
@@ -5546,7 +5547,7 @@ function getFieldTypes(fields) {
|
|
|
5546
5547
|
if (field.children) {
|
|
5547
5548
|
const childrenResult = getFieldTypes(field.children);
|
|
5548
5549
|
imports.push(...childrenResult.imports);
|
|
5549
|
-
if (childrenResult.types.length) {
|
|
5550
|
+
if (childrenResult.types.length || field.type === "GroupFieldType") {
|
|
5550
5551
|
const subType = ts.factory.createTypeLiteralNode(childrenResult.types);
|
|
5551
5552
|
const { type: type2, imports: newImports2 } = buildTypeFromField(
|
|
5552
5553
|
field,
|
package/dist/run.js
CHANGED
|
@@ -2255,7 +2255,7 @@ function trackUsage(action) {
|
|
|
2255
2255
|
eventName: EVENT_NAME,
|
|
2256
2256
|
action,
|
|
2257
2257
|
nodeVersion: getNodeVersionData(),
|
|
2258
|
-
version: "1.2.
|
|
2258
|
+
version: "1.2.77",
|
|
2259
2259
|
os: getPlatform()
|
|
2260
2260
|
};
|
|
2261
2261
|
const url3 = isAuthedWithPersonalAccessKey ? DEV_SERVER_USAGE_ENDPOINT_AUTHENTICATED : DEV_SERVER_USAGE_ENDPOINT;
|
|
@@ -6100,6 +6100,7 @@ var fieldTypeNameByType = {
|
|
|
6100
6100
|
textalignment: "TextAlignmentFieldType",
|
|
6101
6101
|
text: "TextFieldType",
|
|
6102
6102
|
url: "UrlFieldType",
|
|
6103
|
+
variantselection: "VariantSelectionFieldType",
|
|
6103
6104
|
videoplayer: "VideoFieldType",
|
|
6104
6105
|
workflow: "WorkflowFieldType"
|
|
6105
6106
|
};
|
|
@@ -6215,7 +6216,7 @@ function getFieldTypes(fields) {
|
|
|
6215
6216
|
if (field.children) {
|
|
6216
6217
|
const childrenResult = getFieldTypes(field.children);
|
|
6217
6218
|
imports.push(...childrenResult.imports);
|
|
6218
|
-
if (childrenResult.types.length) {
|
|
6219
|
+
if (childrenResult.types.length || field.type === "GroupFieldType") {
|
|
6219
6220
|
const subType = ts.factory.createTypeLiteralNode(childrenResult.types);
|
|
6220
6221
|
const { type: type2, imports: newImports2 } = buildTypeFromField(
|
|
6221
6222
|
field,
|
|
@@ -318,6 +318,7 @@ var fieldTypeNameByType = {
|
|
|
318
318
|
textalignment: "TextAlignmentFieldType",
|
|
319
319
|
text: "TextFieldType",
|
|
320
320
|
url: "UrlFieldType",
|
|
321
|
+
variantselection: "VariantSelectionFieldType",
|
|
321
322
|
videoplayer: "VideoFieldType",
|
|
322
323
|
workflow: "WorkflowFieldType"
|
|
323
324
|
};
|
|
@@ -433,7 +434,7 @@ function getFieldTypes(fields) {
|
|
|
433
434
|
if (field.children) {
|
|
434
435
|
const childrenResult = getFieldTypes(field.children);
|
|
435
436
|
imports.push(...childrenResult.imports);
|
|
436
|
-
if (childrenResult.types.length) {
|
|
437
|
+
if (childrenResult.types.length || field.type === "GroupFieldType") {
|
|
437
438
|
const subType = ts.factory.createTypeLiteralNode(childrenResult.types);
|
|
438
439
|
const { type: type2, imports: newImports2 } = buildTypeFromField(
|
|
439
440
|
field,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hubspot/cms-dev-server",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.77",
|
|
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.2.
|
|
32
|
+
"@hubspot/cms-components": "^1.2.77",
|
|
33
33
|
"@hubspot/local-dev-lib": "5.10.1",
|
|
34
34
|
"@inquirer/select": "^2.0.0",
|
|
35
35
|
"@originjs/vite-plugin-commonjs": "^1.0.3",
|
package/types/lib/debugAuth.d.ts
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { ViteDevServer } from 'vite';
|
|
2
|
-
/**
|
|
3
|
-
* Processes HTML to find remote assets and replace with Vite-managed URLs
|
|
4
|
-
*/
|
|
5
|
-
export declare function processRemoteAssets(
|
|
6
|
-
html: string,
|
|
7
|
-
viteServer: ViteDevServer
|
|
8
|
-
): Promise<string>;
|
|
9
|
-
/**
|
|
10
|
-
* Vite plugin to handle remote assets
|
|
11
|
-
*/
|
|
12
|
-
export declare function remoteAssetsPlugin(): {
|
|
13
|
-
name: string;
|
|
14
|
-
apply: 'serve';
|
|
15
|
-
configResolved(config: any): void;
|
|
16
|
-
resolveId(id: string): string;
|
|
17
|
-
load(id: string): Promise<string>;
|
|
18
|
-
};
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { ViteDevServer, Plugin } from 'vite';
|
|
2
|
-
/**
|
|
3
|
-
* Create a self-contained plugin with proper caching
|
|
4
|
-
*/
|
|
5
|
-
export declare function remoteAssetsPlugin(): Plugin & {
|
|
6
|
-
processRemoteAssets: (
|
|
7
|
-
html: string,
|
|
8
|
-
viteServer: ViteDevServer
|
|
9
|
-
) => Promise<string>;
|
|
10
|
-
};
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { Request, Response, NextFunction } from 'express';
|
|
2
|
-
export declare function handleGetModulePages(
|
|
3
|
-
req: Request,
|
|
4
|
-
res: Response,
|
|
5
|
-
next: NextFunction
|
|
6
|
-
): Promise<Response<any, Record<string, any>>>;
|
|
7
|
-
export declare function handleOpenFile(
|
|
8
|
-
req: Request,
|
|
9
|
-
res: Response,
|
|
10
|
-
next: NextFunction
|
|
11
|
-
): Response<any, Record<string, any>>;
|
|
12
|
-
export declare function createAppServerRoutes(): import('express-serve-static-core').Router;
|
|
13
|
-
export default createAppServerRoutes;
|