@woodsportal/hubspot-kit 1.0.3 → 1.0.5
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/cli.js +24 -1
- package/dist/cli.js.map +1 -1
- package/examples/greenfield/module-hybrid-cdn/src/assets/css/main.dev.css +3 -0
- package/examples/greenfield/module-hybrid-cdn/src/defaultData.ts +7 -0
- package/examples/greenfield/module-hybrid-cdn/src/hubspot/types.ts +17 -0
- package/examples/greenfield/module-hybrid-cdn/src/main.tsx +4 -2
- package/examples/greenfield/module-monolith/src/defaultData.ts +7 -0
- package/package.json +5 -1
- package/src/dev/bootstrap-greenfield.tsx +51 -0
- package/src/dev/bootstrap.tsx +46 -0
- package/src/dev-module-config/__tests__/fixtures/fields.json +3014 -0
- package/src/dev-module-config/__tests__/fixtures/golden-module.fixture.ts +102 -0
- package/src/dev-module-config/__tests__/module-config-storage.test.ts +40 -0
- package/src/dev-module-config/__tests__/module-config-transform.test.ts +55 -0
- package/src/dev-module-config/__tests__/normalize-repeater-items.test.ts +46 -0
- package/src/dev-module-config/runtime/module-config-bridge.ts +27 -0
- package/src/dev-module-config/runtime/module-config-runtime.ts +185 -0
- package/src/dev-module-config/schema/build-default-item.ts +7 -0
- package/src/dev-module-config/schema/deep-merge.ts +27 -0
- package/src/dev-module-config/schema/extract-defaults.ts +62 -0
- package/src/dev-module-config/schema/normalize-choices.ts +18 -0
- package/src/dev-module-config/schema/normalize-repeater-items.ts +31 -0
- package/src/dev-module-config/schema/parse-fields-json.ts +2 -0
- package/src/dev-module-config/schema/types.ts +75 -0
- package/src/dev-module-config/schema/validate-module-config.ts +81 -0
- package/src/dev-module-config/schema/visibility.ts +130 -0
- package/src/dev-module-config/storage/config-json.ts +46 -0
- package/src/dev-module-config/storage/workspace-store.ts +139 -0
- package/src/dev-module-config/transform/build-hubspot-data.ts +409 -0
- package/src/dev-module-config/ui/FieldRenderer.tsx +353 -0
- package/src/dev-module-config/ui/ModuleConfigAnimatedPresence.tsx +72 -0
- package/src/dev-module-config/ui/ModuleConfigCollapsible.tsx +43 -0
- package/src/dev-module-config/ui/ModuleConfigDockSideIcon.tsx +27 -0
- package/src/dev-module-config/ui/ModuleConfigOverlay.tsx +134 -0
- package/src/dev-module-config/ui/ModuleConfigPersistenceStatus.tsx +89 -0
- package/src/dev-module-config/ui/ModuleConfigShell.tsx +354 -0
- package/src/dev-module-config/ui/ModuleConfigThemeToggle.tsx +32 -0
- package/src/dev-module-config/ui/ModuleConfigUiContext.tsx +65 -0
- package/src/dev-module-config/ui/editors/DeveloperOptionsEditor.tsx +61 -0
- package/src/dev-module-config/ui/editors/MenuOptionsEditor.tsx +103 -0
- package/src/dev-module-config/ui/hubspot/HsColorField.tsx +106 -0
- package/src/dev-module-config/ui/hubspot/HsColorPickerPopover.tsx +210 -0
- package/src/dev-module-config/ui/hubspot/HsFieldLabel.tsx +24 -0
- package/src/dev-module-config/ui/hubspot/HsFieldWidgets.tsx +248 -0
- package/src/dev-module-config/ui/hubspot/HsImageField.tsx +112 -0
- package/src/dev-module-config/ui/hubspot/HsOccurrenceGroupEditor.tsx +243 -0
- package/src/dev-module-config/ui/hubspot/HsRepeaterList.tsx +178 -0
- package/src/dev-module-config/ui/hubspot/HsSectionHeader.tsx +20 -0
- package/src/dev-module-config/ui/hubspot/HsToggle.tsx +39 -0
- package/src/dev-module-config/ui/hubspot/HsToggleRow.tsx +30 -0
- package/src/dev-module-config/ui/hubspot/hs-color-palette.ts +11 -0
- package/src/dev-module-config/ui/hubspot/module-config-typography.ts +26 -0
- package/src/dev-module-config/ui/module-config-motion.css +134 -0
- package/src/dev-module-config/ui/module-config-motion.ts +28 -0
- package/src/dev-module-config/ui/module-config-overlay-side.ts +29 -0
- package/src/dev-module-config/ui/module-config-surfaces.ts +27 -0
- package/src/dev-module-config/ui/module-config-theme.css +483 -0
- package/src/dev-module-config/ui/module-config-toolbar-theme.ts +35 -0
- package/src/dev-module-config/ui/navigation/ModuleConfigNavContext.tsx +188 -0
- package/src/dev-module-config/ui/use-dev-module-config-live-revision.ts +22 -0
- package/src/dev-module-config/ui/use-hubspot-live-exports.ts +27 -0
- package/src/dev-module-config/ui/use-module-config.ts +124 -0
- package/src/routing/build-api-routes.ts +37 -0
- package/src/routing/route-format.ts +19 -0
- package/templates/module-hybrid-cdn/index.html +12 -1
- package/templates/module-hybrid-cdn/package.json +1 -1
- package/templates/module-hybrid-cdn/src/assets/css/main.dev.css +3 -0
- package/templates/module-hybrid-cdn/src/defaultData.ts +7 -0
- package/templates/module-hybrid-cdn/src/hubspot/types.ts +17 -0
- package/templates/module-hybrid-cdn/src/main.tsx +4 -2
- package/templates/module-monolith/index.html +12 -0
- package/templates/module-monolith/package.json +1 -1
- package/templates/module-monolith/src/assets/css/main.dev.css +3 -0
- package/templates/module-monolith/src/defaultData.ts +7 -0
- package/templates/module-monolith/src/hubspot/types.ts +17 -0
- package/templates/module-monolith/src/main.tsx +4 -0
- package/templates/theme-starter/package.json +1 -1
- package/vite/vite.config.dev.mjs +7 -1
package/dist/cli.js
CHANGED
|
@@ -510,6 +510,28 @@ function checkDevViteConfig(ctx) {
|
|
|
510
510
|
severity: "error"
|
|
511
511
|
};
|
|
512
512
|
}
|
|
513
|
+
function checkDevEntry(ctx) {
|
|
514
|
+
const checks = [];
|
|
515
|
+
const indexHtml = resolve5(ctx.projectRoot, "index.html");
|
|
516
|
+
const hasIndex = existsSync4(indexHtml);
|
|
517
|
+
checks.push({
|
|
518
|
+
name: "index-html",
|
|
519
|
+
ok: hasIndex,
|
|
520
|
+
message: hasIndex ? "index.html present" : "index.html missing",
|
|
521
|
+
remediation: hasIndex ? void 0 : "Re-run wp init or copy index.html from kit templates",
|
|
522
|
+
severity: "error"
|
|
523
|
+
});
|
|
524
|
+
const localDev = resolve5(ctx.projectRoot, ctx.config.entries.localDev);
|
|
525
|
+
const hasEntry = existsSync4(localDev);
|
|
526
|
+
checks.push({
|
|
527
|
+
name: "local-dev-entry",
|
|
528
|
+
ok: hasEntry,
|
|
529
|
+
message: hasEntry ? `${ctx.config.entries.localDev} present` : `${ctx.config.entries.localDev} missing`,
|
|
530
|
+
remediation: hasEntry ? void 0 : "Re-run wp init or restore src/main.tsx from kit templates",
|
|
531
|
+
severity: "error"
|
|
532
|
+
});
|
|
533
|
+
return checks;
|
|
534
|
+
}
|
|
513
535
|
function checkKitScripts() {
|
|
514
536
|
const script = kitPath("scripts", "build-cdn.mjs");
|
|
515
537
|
const ok = existsSync4(script);
|
|
@@ -610,6 +632,7 @@ async function runDoctor(ctx) {
|
|
|
610
632
|
checkNode(),
|
|
611
633
|
checkKitScripts(),
|
|
612
634
|
checkDevViteConfig(ctx),
|
|
635
|
+
...checkDevEntry(ctx),
|
|
613
636
|
checkViteInstalled(ctx),
|
|
614
637
|
...checkConfig(ctx),
|
|
615
638
|
...checkWphsWorkspace(ctx),
|
|
@@ -1131,7 +1154,7 @@ var VITE_DEV_PEER_DEPS = {
|
|
|
1131
1154
|
tailwindcss: "^4.0.6"
|
|
1132
1155
|
};
|
|
1133
1156
|
var KIT_DEV_DEP = "@woodsportal/hubspot-kit";
|
|
1134
|
-
var KIT_DEV_DEP_VERSION = "^1.0.
|
|
1157
|
+
var KIT_DEV_DEP_VERSION = "^1.0.5";
|
|
1135
1158
|
function templateDevDependencies() {
|
|
1136
1159
|
return {
|
|
1137
1160
|
[KIT_DEV_DEP]: KIT_DEV_DEP_VERSION,
|