@hubspot/cms-dev-server 0.8.4 → 0.8.6
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/fsevents-72LCIACT.node +0 -0
- package/dist/run.js +7 -6
- package/dist/storybook-main/preview.js +9 -8
- package/package.json +3 -3
- package/types/generateBpmAliases.d.ts +2 -0
- package/types/noNodeBuiltinsPlugin.d.ts +3 -0
- package/types/plugins/devSecretsPlugin.d.ts +2 -0
- package/types/resolveSharedDeps.d.ts +2 -0
|
Binary file
|
package/dist/run.js
CHANGED
|
@@ -1191,7 +1191,12 @@ var moduleRouteHandler = async (request2, response) => {
|
|
|
1191
1191
|
viteServer,
|
|
1192
1192
|
jsRenderingGates
|
|
1193
1193
|
);
|
|
1194
|
-
const html = htmlShell.replace(
|
|
1194
|
+
const html = htmlShell.replace(
|
|
1195
|
+
"<!--headend-->",
|
|
1196
|
+
[cssNeeded, ...inlineAssets.map((inlineAsset) => inlineAsset.html)].join(
|
|
1197
|
+
"\n"
|
|
1198
|
+
)
|
|
1199
|
+
).replace(`<!--ssr-outlet-->`, renderedHtml);
|
|
1195
1200
|
response.status(200).set({ "Content-Type": "text/html" }).end(html);
|
|
1196
1201
|
} catch (e) {
|
|
1197
1202
|
console.error(e);
|
|
@@ -2397,9 +2402,6 @@ var PORT = process.env.PORT ? parseInt(process.env.PORT, 10) : 3e3;
|
|
|
2397
2402
|
var SHADOW_PORT = 1442;
|
|
2398
2403
|
var STORYBOOK_PORT = process.env.STORYBOOK_PORT ? parseInt(process.env.STORYBOOK_PORT, 10) : 3123;
|
|
2399
2404
|
async function createDevServer(webRoot2, storybook2, hubspotCliConfigPathOption2, hubspotCliAccountNameOption2, sslEnabledOption2) {
|
|
2400
|
-
console.log(
|
|
2401
|
-
"Warning: this is a prerelease and requires specific HubSpot account configuration to work"
|
|
2402
|
-
);
|
|
2403
2405
|
let authedPortalId = null;
|
|
2404
2406
|
let authedEnv = null;
|
|
2405
2407
|
let jsRenderingGates = [];
|
|
@@ -2539,9 +2541,8 @@ HubSpot CMS dev server hosting: ${projectName}/${expressServer.locals.projectCom
|
|
|
2539
2541
|
const packageRoot = path6.dirname(url2.fileURLToPath(import.meta.url));
|
|
2540
2542
|
const configPath = path6.resolve(packageRoot, "./storybook-main");
|
|
2541
2543
|
const storybookProcess = spawn(
|
|
2542
|
-
"
|
|
2544
|
+
"sb",
|
|
2543
2545
|
[
|
|
2544
|
-
"sb",
|
|
2545
2546
|
"dev",
|
|
2546
2547
|
"-p",
|
|
2547
2548
|
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
|
|
15
|
-
|
|
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
|
-
|
|
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.
|
|
3
|
+
"version": "0.8.6",
|
|
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.
|
|
28
|
+
"@hubspot/cms-components": "^0.8.6",
|
|
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",
|
|
@@ -100,5 +100,5 @@
|
|
|
100
100
|
"publishConfig": {
|
|
101
101
|
"access": "public"
|
|
102
102
|
},
|
|
103
|
-
"gitHead": "
|
|
103
|
+
"gitHead": "803096069b28abd1842356254912bfa911db1884"
|
|
104
104
|
}
|