@hubspot/cms-dev-server 0.18.19 → 0.18.20
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 +1 -1
- package/dist/internalSsr.js +24 -0
- package/dist/run.js +1 -1
- package/dist/storybook-main/main.js +24 -0
- package/package.json +3 -3
- package/types/lib/renderModuleJson.d.ts +4 -0
- package/types/routes/meta.d.ts +0 -2
package/dist/index.js
CHANGED
|
@@ -1461,7 +1461,7 @@ function trackUsage(action) {
|
|
|
1461
1461
|
eventName: EVENT_NAME,
|
|
1462
1462
|
action,
|
|
1463
1463
|
nodeVersion: getNodeVersionData(),
|
|
1464
|
-
version: "0.18.
|
|
1464
|
+
version: "0.18.20",
|
|
1465
1465
|
os: getPlatform()
|
|
1466
1466
|
};
|
|
1467
1467
|
const url3 = isAuthedWithPersonalAccessKey ? DEV_SERVER_USAGE_ENDPOINT_AUTHENTICATED : DEV_SERVER_USAGE_ENDPOINT;
|
package/dist/internalSsr.js
CHANGED
|
@@ -1152,13 +1152,37 @@ function renderFieldsToJson(fields, moduleName) {
|
|
|
1152
1152
|
throw e2;
|
|
1153
1153
|
}
|
|
1154
1154
|
}
|
|
1155
|
+
function DndAreaSlot(props) {
|
|
1156
|
+
return /* @__PURE__ */ jsx(
|
|
1157
|
+
"div",
|
|
1158
|
+
{
|
|
1159
|
+
suppressHydrationWarning: true,
|
|
1160
|
+
dangerouslySetInnerHTML: {
|
|
1161
|
+
__html: `<!-- hs-dnd-area-placeholder-${props.name} -->`
|
|
1162
|
+
}
|
|
1163
|
+
}
|
|
1164
|
+
);
|
|
1165
|
+
}
|
|
1166
|
+
function ModuleSlot(props) {
|
|
1167
|
+
return /* @__PURE__ */ jsx(
|
|
1168
|
+
"div",
|
|
1169
|
+
{
|
|
1170
|
+
suppressHydrationWarning: true,
|
|
1171
|
+
dangerouslySetInnerHTML: {
|
|
1172
|
+
__html: `<!-- hs-module-placeholder-${props.name} -->`
|
|
1173
|
+
}
|
|
1174
|
+
}
|
|
1175
|
+
);
|
|
1176
|
+
}
|
|
1155
1177
|
export {
|
|
1156
1178
|
COMPONENT_EXTENSIONS,
|
|
1157
1179
|
CSS_LANGS_RE,
|
|
1180
|
+
DndAreaSlot,
|
|
1158
1181
|
ENABLED_FEATURES_GATE_MAP,
|
|
1159
1182
|
ENTRY_POINTS_PATH,
|
|
1160
1183
|
GATES,
|
|
1161
1184
|
MODULE_FOLDER_PATH,
|
|
1185
|
+
ModuleSlot,
|
|
1162
1186
|
VIRTUAL_CONFIG_SETUP,
|
|
1163
1187
|
VIRTUAL_ISLAND_RUNTIME,
|
|
1164
1188
|
areBuildHealthChecksEnabled,
|
package/dist/run.js
CHANGED
|
@@ -2081,7 +2081,7 @@ function trackUsage(action) {
|
|
|
2081
2081
|
eventName: EVENT_NAME,
|
|
2082
2082
|
action,
|
|
2083
2083
|
nodeVersion: getNodeVersionData(),
|
|
2084
|
-
version: "0.18.
|
|
2084
|
+
version: "0.18.20",
|
|
2085
2085
|
os: getPlatform()
|
|
2086
2086
|
};
|
|
2087
2087
|
const url3 = isAuthedWithPersonalAccessKey ? DEV_SERVER_USAGE_ENDPOINT_AUTHENTICATED : DEV_SERVER_USAGE_ENDPOINT;
|
|
@@ -486,10 +486,12 @@ var dist_exports = {};
|
|
|
486
486
|
__export(dist_exports, {
|
|
487
487
|
COMPONENT_EXTENSIONS: () => COMPONENT_EXTENSIONS,
|
|
488
488
|
CSS_LANGS_RE: () => CSS_LANGS_RE,
|
|
489
|
+
DndAreaSlot: () => DndAreaSlot,
|
|
489
490
|
ENABLED_FEATURES_GATE_MAP: () => ENABLED_FEATURES_GATE_MAP,
|
|
490
491
|
ENTRY_POINTS_PATH: () => ENTRY_POINTS_PATH,
|
|
491
492
|
GATES: () => GATES,
|
|
492
493
|
MODULE_FOLDER_PATH: () => MODULE_FOLDER_PATH,
|
|
494
|
+
ModuleSlot: () => ModuleSlot,
|
|
493
495
|
VIRTUAL_CONFIG_SETUP: () => VIRTUAL_CONFIG_SETUP,
|
|
494
496
|
VIRTUAL_ISLAND_RUNTIME: () => VIRTUAL_ISLAND_RUNTIME,
|
|
495
497
|
areBuildHealthChecksEnabled: () => areBuildHealthChecksEnabled,
|
|
@@ -1068,6 +1070,28 @@ function renderFieldsToJson(fields, moduleName) {
|
|
|
1068
1070
|
throw e2;
|
|
1069
1071
|
}
|
|
1070
1072
|
}
|
|
1073
|
+
function DndAreaSlot(props) {
|
|
1074
|
+
return /* @__PURE__ */ jsx(
|
|
1075
|
+
"div",
|
|
1076
|
+
{
|
|
1077
|
+
suppressHydrationWarning: true,
|
|
1078
|
+
dangerouslySetInnerHTML: {
|
|
1079
|
+
__html: `<!-- hs-dnd-area-placeholder-${props.name} -->`
|
|
1080
|
+
}
|
|
1081
|
+
}
|
|
1082
|
+
);
|
|
1083
|
+
}
|
|
1084
|
+
function ModuleSlot(props) {
|
|
1085
|
+
return /* @__PURE__ */ jsx(
|
|
1086
|
+
"div",
|
|
1087
|
+
{
|
|
1088
|
+
suppressHydrationWarning: true,
|
|
1089
|
+
dangerouslySetInnerHTML: {
|
|
1090
|
+
__html: `<!-- hs-module-placeholder-${props.name} -->`
|
|
1091
|
+
}
|
|
1092
|
+
}
|
|
1093
|
+
);
|
|
1094
|
+
}
|
|
1071
1095
|
var setProperty, getProperty, hasProperty, serializeIslandDataForInlineScript, writeSharedStateToJsGlobal, createIslandsGlobalJsForClientInDev, traverse, CMS_MODULE_COMPONENT_NAME, DND_AREA_COMPONENT_NAME, PLUGIN_NAME, promiseForNewWritableStream, renderStreamToPromise, createServerRenderContextV22, createServerRenderContext2, renderServerSidePropsWithAsyncLocalStoreContext, bootStrapRenderContext;
|
|
1072
1096
|
var init_dist = __esm({
|
|
1073
1097
|
"../cms-js-internal/dist/index.js"() {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hubspot/cms-dev-server",
|
|
3
|
-
"version": "0.18.
|
|
3
|
+
"version": "0.18.20",
|
|
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": "^0.18.
|
|
32
|
+
"@hubspot/cms-components": "^0.18.20",
|
|
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",
|
|
@@ -130,5 +130,5 @@
|
|
|
130
130
|
"publishConfig": {
|
|
131
131
|
"access": "public"
|
|
132
132
|
},
|
|
133
|
-
"gitHead": "
|
|
133
|
+
"gitHead": "60fcf93ab9a2f42d65948f33662709878d9a2188"
|
|
134
134
|
}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { ViteDevServer } from 'vite';
|
|
2
|
+
export declare const lookForModuleInFolder: (modulePath: string, viteServer: ViteDevServer) => Promise<[any, string]>;
|
|
3
|
+
declare function renderModuleJson(viteServer: ViteDevServer, requestedModulePath: string): Promise<any>;
|
|
4
|
+
export default renderModuleJson;
|
package/types/routes/meta.d.ts
DELETED