@hubspot/cms-dev-server 0.8.5 → 0.9.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.
package/dist/index.js CHANGED
@@ -102,6 +102,7 @@ Custom origin: ${process.env.VITE_ORIGIN}
102
102
  protocol: sslEnabled ? "wss" : void 0
103
103
  }
104
104
  },
105
+ root: webRoot,
105
106
  ssr: {
106
107
  // TODO: might need more entries here to get things to resolve through
107
108
  // resolveWebRootDepsPlugin
@@ -118,7 +119,11 @@ Custom origin: ${process.env.VITE_ORIGIN}
118
119
  sslEnabled ? mkcert({ hosts: additionalMkcertHosts }) : null,
119
120
  react({
120
121
  babel: {
121
- plugins: ["babel-plugin-styled-components", "styled-jsx/babel"]
122
+ plugins: [
123
+ "babel-plugin-styled-components",
124
+ "styled-jsx/babel",
125
+ "macros"
126
+ ]
122
127
  }
123
128
  }),
124
129
  clientIslandEntryPlugin(),
package/dist/run.js CHANGED
@@ -2217,6 +2217,7 @@ Custom origin: ${process.env.VITE_ORIGIN}
2217
2217
  protocol: sslEnabled ? "wss" : void 0
2218
2218
  }
2219
2219
  },
2220
+ root: webRoot2,
2220
2221
  ssr: {
2221
2222
  // TODO: might need more entries here to get things to resolve through
2222
2223
  // resolveWebRootDepsPlugin
@@ -2233,7 +2234,11 @@ Custom origin: ${process.env.VITE_ORIGIN}
2233
2234
  sslEnabled ? mkcert({ hosts: additionalMkcertHosts }) : null,
2234
2235
  react({
2235
2236
  babel: {
2236
- plugins: ["babel-plugin-styled-components", "styled-jsx/babel"]
2237
+ plugins: [
2238
+ "babel-plugin-styled-components",
2239
+ "styled-jsx/babel",
2240
+ "macros"
2241
+ ]
2237
2242
  }
2238
2243
  }),
2239
2244
  clientIslandEntryPlugin(),
@@ -2402,9 +2407,6 @@ var PORT = process.env.PORT ? parseInt(process.env.PORT, 10) : 3e3;
2402
2407
  var SHADOW_PORT = 1442;
2403
2408
  var STORYBOOK_PORT = process.env.STORYBOOK_PORT ? parseInt(process.env.STORYBOOK_PORT, 10) : 3123;
2404
2409
  async function createDevServer(webRoot2, storybook2, hubspotCliConfigPathOption2, hubspotCliAccountNameOption2, sslEnabledOption2) {
2405
- console.log(
2406
- "Warning: this is a prerelease and requires specific HubSpot account configuration to work"
2407
- );
2408
2410
  let authedPortalId = null;
2409
2411
  let authedEnv = null;
2410
2412
  let jsRenderingGates = [];
@@ -2544,9 +2546,8 @@ HubSpot CMS dev server hosting: ${projectName}/${expressServer.locals.projectCom
2544
2546
  const packageRoot = path6.dirname(url2.fileURLToPath(import.meta.url));
2545
2547
  const configPath = path6.resolve(packageRoot, "./storybook-main");
2546
2548
  const storybookProcess = spawn(
2547
- "npx",
2549
+ "sb",
2548
2550
  [
2549
- "sb",
2550
2551
  "dev",
2551
2552
  "-p",
2552
2553
  STORYBOOK_PORT.toString(),
@@ -5,16 +5,17 @@ import {
5
5
  ClientRenderContextProvider
6
6
  } from "@hubspot/cms-components";
7
7
  import { jsx } from "react/jsx-runtime";
8
- var parameters = {
9
- actions: { argTypesRegex: "^on[A-Z].*" }
10
- };
11
8
  var contextValue = createServerRenderContextV2("http://testUrl.com", {
12
9
  environmentConfig: null
13
10
  });
14
- var decorators = [
15
- (Story) => /* @__PURE__ */ jsx(ClientRenderContextProvider, { pageUrl: "http://test.com", islands: [], children: /* @__PURE__ */ jsx(ServerRenderContext.Provider, { value: contextValue, children: /* @__PURE__ */ jsx(Story, {}) }) })
16
- ];
11
+ var preview_default = {
12
+ parameters: {
13
+ actions: { argTypesRegex: "^on[A-Z].*" }
14
+ },
15
+ decorators: [
16
+ (Story) => /* @__PURE__ */ jsx(ClientRenderContextProvider, { pageUrl: "http://test.com", islands: [], children: /* @__PURE__ */ jsx(ServerRenderContext.Provider, { value: contextValue, children: /* @__PURE__ */ jsx(Story, {}) }) })
17
+ ]
18
+ };
17
19
  export {
18
- decorators,
19
- parameters
20
+ preview_default as default
20
21
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hubspot/cms-dev-server",
3
- "version": "0.8.5",
3
+ "version": "0.9.0",
4
4
  "license": "Apache-2.0",
5
5
  "type": "module",
6
6
  "engines": {
@@ -25,7 +25,7 @@
25
25
  },
26
26
  "dependencies": {
27
27
  "@hubspot/cli-lib": "^3.0.12",
28
- "@hubspot/cms-components": "^0.8.5",
28
+ "@hubspot/cms-components": "^0.9.0",
29
29
  "@originjs/vite-plugin-commonjs": "^1.0.3",
30
30
  "@storybook/addon-actions": "7.0.7",
31
31
  "@storybook/addon-essentials": "7.0.7",
@@ -37,6 +37,7 @@
37
37
  "@storybook/testing-library": "^0.0.13",
38
38
  "@vitejs/plugin-react": "^4.0.0",
39
39
  "ansi-to-html": "0.7.x",
40
+ "babel-plugin-macros": "^3.1.0",
40
41
  "babel-plugin-styled-components": "^2.1.4",
41
42
  "cors": "^2.8.5",
42
43
  "debug": "^4.3.4",
@@ -100,5 +101,5 @@
100
101
  "publishConfig": {
101
102
  "access": "public"
102
103
  },
103
- "gitHead": "c430bb20b7d19f97f5781f1c0439974fd04d6dac"
104
+ "gitHead": "f57bf5f6b7984a619c6e5c1b80d4e51fe636a9a7"
104
105
  }
@@ -0,0 +1,2 @@
1
+ import { Plugin } from 'vite';
2
+ export default function resolveSharedDeps(): Plugin | null;