@ohhwells/bridge 0.1.174-next.464 → 0.1.174-next.465
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.cjs +17 -6
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +8 -2
- package/dist/index.d.ts +8 -2
- package/dist/index.js +16 -6
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -90,6 +90,7 @@ __export(index_exports, {
|
|
|
90
90
|
applyLogoVersionsFromContent: () => applyLogoVersionsFromContent,
|
|
91
91
|
applyStickySearchParams: () => applyStickySearchParams,
|
|
92
92
|
blockPathFromEditKey: () => blockPathFromEditKey,
|
|
93
|
+
brandColorVars: () => brandColorVars,
|
|
93
94
|
buildDefaultFooterTree: () => buildDefaultFooterTree,
|
|
94
95
|
buildTarget: () => buildTarget,
|
|
95
96
|
canRemoveAiBlock: () => canRemoveAiBlock,
|
|
@@ -8596,8 +8597,10 @@ var LEGACY_BRAND_VAR_NAMES = [
|
|
|
8596
8597
|
"border",
|
|
8597
8598
|
"on-primary",
|
|
8598
8599
|
"on-primary-muted",
|
|
8599
|
-
"on-primary-faint"
|
|
8600
|
-
|
|
8600
|
+
"on-primary-faint",
|
|
8601
|
+
"on-accent",
|
|
8602
|
+
"on-accent-muted"
|
|
8603
|
+
].map((role) => `--brand-${role}`).concat(["--on-primary", "--on-accent"]);
|
|
8601
8604
|
var FONT_VARS = {
|
|
8602
8605
|
heading: ["--font-heading", "--font-display", "--brand-font-heading"],
|
|
8603
8606
|
body: ["--font-body", "--brand-font-body"]
|
|
@@ -8724,6 +8727,7 @@ function brandColorVars(palette) {
|
|
|
8724
8727
|
const border = mix(light, 85, dark);
|
|
8725
8728
|
const muted = mix(dark, 62, light);
|
|
8726
8729
|
const onPrimary = onPrimaryInk(primary, light, dark);
|
|
8730
|
+
const onAccent = onPrimaryInk(accent, light, dark);
|
|
8727
8731
|
return {
|
|
8728
8732
|
[`${BRAND_VAR_PREFIX}primary`]: primary,
|
|
8729
8733
|
[`${BRAND_VAR_PREFIX}accent`]: accent,
|
|
@@ -8745,7 +8749,13 @@ function brandColorVars(palette) {
|
|
|
8745
8749
|
// Muted and faint are template literals (cream at 75% / 55%) the kit has to follow too.
|
|
8746
8750
|
"--brand-on-primary": onPrimary,
|
|
8747
8751
|
"--brand-on-primary-muted": `color-mix(in srgb, ${onPrimary} 75%, transparent)`,
|
|
8748
|
-
"--brand-on-primary-faint": `color-mix(in srgb, ${onPrimary} 55%, transparent)
|
|
8752
|
+
"--brand-on-primary-faint": `color-mix(in srgb, ${onPrimary} 55%, transparent)`,
|
|
8753
|
+
// Same rule for anything painted Accent (drserene, salon, tutor surfaces). Templates bake
|
|
8754
|
+
// these in from their build-time palette, so an Accent changed in the editor kept the old ink.
|
|
8755
|
+
"--brand-on-accent": onAccent,
|
|
8756
|
+
"--brand-on-accent-muted": `color-mix(in srgb, ${onAccent} 75%, transparent)`,
|
|
8757
|
+
"--on-primary": onPrimary,
|
|
8758
|
+
"--on-accent": onAccent
|
|
8749
8759
|
};
|
|
8750
8760
|
}
|
|
8751
8761
|
function onPrimaryInk(primary, light, dark) {
|
|
@@ -19423,7 +19433,7 @@ function apiBase() {
|
|
|
19423
19433
|
function bridgeVersion() {
|
|
19424
19434
|
try {
|
|
19425
19435
|
if (true) {
|
|
19426
|
-
return "0.1.174-next.
|
|
19436
|
+
return "0.1.174-next.465";
|
|
19427
19437
|
}
|
|
19428
19438
|
} catch {
|
|
19429
19439
|
}
|
|
@@ -19437,7 +19447,7 @@ function stampBridgeVersionOnDocument() {
|
|
|
19437
19447
|
return;
|
|
19438
19448
|
}
|
|
19439
19449
|
try {
|
|
19440
|
-
const v = true ? "0.1.174-next.
|
|
19450
|
+
const v = true ? "0.1.174-next.465" : "";
|
|
19441
19451
|
if (v) {
|
|
19442
19452
|
document.documentElement.setAttribute("data-ohw-bridge-version", v);
|
|
19443
19453
|
window.__OHW_BRIDGE_VERSION__ = v;
|
|
@@ -34822,7 +34832,7 @@ function OhhwellsBridge() {
|
|
|
34822
34832
|
postToParent2({
|
|
34823
34833
|
type: "ow:ready",
|
|
34824
34834
|
version: "1",
|
|
34825
|
-
bridgeVersion: "0.1.174-next.
|
|
34835
|
+
bridgeVersion: "0.1.174-next.465",
|
|
34826
34836
|
path: pathname,
|
|
34827
34837
|
nodes: collectEditableNodes(editContentRef.current),
|
|
34828
34838
|
sections
|
|
@@ -36236,6 +36246,7 @@ function EmptySection({ title, homeHref = "/", eyebrowKey, titleKey, subtitleKey
|
|
|
36236
36246
|
applyLogoVersionsFromContent,
|
|
36237
36247
|
applyStickySearchParams,
|
|
36238
36248
|
blockPathFromEditKey,
|
|
36249
|
+
brandColorVars,
|
|
36239
36250
|
buildDefaultFooterTree,
|
|
36240
36251
|
buildTarget,
|
|
36241
36252
|
canRemoveAiBlock,
|