@hubspot/cms-dev-server 1.2.12 → 1.2.13

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/.DS_Store ADDED
Binary file
@@ -1614,7 +1614,8 @@ function unstable_usePodcastEpisodes(resolvableIds) {
1614
1614
  function useMenu(resolvableIds) {
1615
1615
  var _a;
1616
1616
  const renderContext = useRenderContext();
1617
- const uniqueId = `${resolvableIds.type}:${resolvableIds.value}`;
1617
+ const resolvedIdType = resolvableIds.type === "id" ? "ID" : "FIELD_PATH";
1618
+ const uniqueId = `${resolvedIdType}:${resolvableIds.value}`;
1618
1619
  if (!((_a = renderContext.resolvedDataDependencies) == null ? void 0 : _a.menus)) {
1619
1620
  return null;
1620
1621
  }
package/dist/index.js CHANGED
@@ -1631,7 +1631,7 @@ function trackUsage(action) {
1631
1631
  eventName: EVENT_NAME,
1632
1632
  action,
1633
1633
  nodeVersion: getNodeVersionData(),
1634
- version: "1.2.12",
1634
+ version: "1.2.13",
1635
1635
  os: getPlatform()
1636
1636
  };
1637
1637
  const url3 = isAuthedWithPersonalAccessKey ? DEV_SERVER_USAGE_ENDPOINT_AUTHENTICATED : DEV_SERVER_USAGE_ENDPOINT;
package/dist/run.js CHANGED
@@ -2197,7 +2197,7 @@ function trackUsage(action) {
2197
2197
  eventName: EVENT_NAME,
2198
2198
  action,
2199
2199
  nodeVersion: getNodeVersionData(),
2200
- version: "1.2.12",
2200
+ version: "1.2.13",
2201
2201
  os: getPlatform()
2202
2202
  };
2203
2203
  const url3 = isAuthedWithPersonalAccessKey ? DEV_SERVER_USAGE_ENDPOINT_AUTHENTICATED : DEV_SERVER_USAGE_ENDPOINT;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hubspot/cms-dev-server",
3
- "version": "1.2.12",
3
+ "version": "1.2.13",
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.12",
32
+ "@hubspot/cms-components": "^1.2.13",
33
33
  "@hubspot/local-dev-lib": "4.0.2",
34
34
  "@inquirer/select": "^2.0.0",
35
35
  "@originjs/vite-plugin-commonjs": "^1.0.3",
@@ -133,5 +133,5 @@
133
133
  "publishConfig": {
134
134
  "access": "public"
135
135
  },
136
- "gitHead": "fd38dad4f139ebfd8f34b0ac893d9e870b49c210"
136
+ "gitHead": "c5e256b8d29fa086d92b1b6ce88829c1d25c05a0"
137
137
  }
@@ -0,0 +1,2 @@
1
+ export declare function debugAuthContext(authedPortalId: number, cookieValue: string): Promise<void>;
2
+ export declare function compareUrls(originalUrl: string, signedUrl: string): void;
@@ -0,0 +1,2 @@
1
+ export declare function getLocalComponentsPath(): string;
2
+ export declare function shouldUseLocalComponents(): boolean;
@@ -0,0 +1,15 @@
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(html: string, viteServer: ViteDevServer): Promise<string>;
6
+ /**
7
+ * Vite plugin to handle remote assets
8
+ */
9
+ export declare function remoteAssetsPlugin(): {
10
+ name: string;
11
+ apply: "serve";
12
+ configResolved(config: any): void;
13
+ resolveId(id: string): string;
14
+ load(id: string): Promise<string>;
15
+ };
@@ -0,0 +1,2 @@
1
+ import type { Plugin } from 'vite';
2
+ export declare function hubspotStaticAssetsPlugin(): Plugin;
@@ -0,0 +1,7 @@
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: (html: string, viteServer: ViteDevServer) => Promise<string>;
7
+ };
@@ -0,0 +1,6 @@
1
+ import type { Plugin } from 'vite';
2
+ /**
3
+ * Plugin that provides URL signing capabilities
4
+ * Uses internal signing mechanisms when available, with fallback for public environments
5
+ */
6
+ export default function requestSigningPlugin(): Plugin;
@@ -0,0 +1,5 @@
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 createAppServerRoutes(): import("express-serve-static-core").Router;
5
+ export default createAppServerRoutes;
@@ -0,0 +1,3 @@
1
+ import { Request, Response } from 'express';
2
+ declare const homeRouteHandler: (request: Request, response: Response, next: Function) => Promise<void>;
3
+ export default homeRouteHandler;