@sevenfold/setto-client 0.8.3 → 0.8.4
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/setto-client.js +23 -6
- package/dist/setto-client.js.map +1 -1
- package/package.json +1 -1
package/dist/setto-client.js
CHANGED
|
@@ -21410,6 +21410,13 @@ function SettoPreviewBar() {
|
|
|
21410
21410
|
const signIn = () => {
|
|
21411
21411
|
window.location.href = "/setto";
|
|
21412
21412
|
};
|
|
21413
|
+
const next = () => {
|
|
21414
|
+
if (window.parent !== window) {
|
|
21415
|
+
window.parent.postMessage({ type: "setto:next", siteId: config.siteId }, "*");
|
|
21416
|
+
return;
|
|
21417
|
+
}
|
|
21418
|
+
signIn();
|
|
21419
|
+
};
|
|
21413
21420
|
const publish = async () => {
|
|
21414
21421
|
setBusy(true);
|
|
21415
21422
|
setError(null);
|
|
@@ -21459,11 +21466,8 @@ function SettoPreviewBar() {
|
|
|
21459
21466
|
/* @__PURE__ */ jsx("button", { type: "button", style: primaryStyle, onClick: publish, disabled: busy, children: busy ? "Åpner betaling …" : "Publiser" })
|
|
21460
21467
|
] }) : /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
21461
21468
|
/* @__PURE__ */ jsx("span", { style: dotStyle, "aria-hidden": true }),
|
|
21462
|
-
/* @__PURE__ */
|
|
21463
|
-
|
|
21464
|
-
name
|
|
21465
|
-
] }),
|
|
21466
|
-
/* @__PURE__ */ jsx("button", { type: "button", style: primaryStyle, onClick: signIn, children: "Rediger" })
|
|
21469
|
+
/* @__PURE__ */ jsx("span", { style: labelStyle, children: "Forhåndsvisning" }),
|
|
21470
|
+
/* @__PURE__ */ jsx("button", { type: "button", style: primaryStyle, onClick: next, children: "Neste" })
|
|
21467
21471
|
] })
|
|
21468
21472
|
}
|
|
21469
21473
|
),
|
|
@@ -21487,7 +21491,20 @@ const barStyle = {
|
|
|
21487
21491
|
fontFamily: 'system-ui, -apple-system, "Segoe UI", sans-serif',
|
|
21488
21492
|
fontSize: 14,
|
|
21489
21493
|
lineHeight: 1.3,
|
|
21490
|
-
boxShadow: "0 18px 40px -18px rgba(0, 0, 0, 0.65)"
|
|
21494
|
+
boxShadow: "0 18px 40px -18px rgba(0, 0, 0, 0.65)",
|
|
21495
|
+
/*
|
|
21496
|
+
* A frosted rim, so the pill reads as an object on any page.
|
|
21497
|
+
*
|
|
21498
|
+
* The bar sits on sites Setto did not choose the colours for: on a dark hero
|
|
21499
|
+
* a dark pill disappears, and on a pale section its shadow is all that holds
|
|
21500
|
+
* it. A translucent white border with `padding-box` clipping lets the page
|
|
21501
|
+
* show through the rim itself, which separates the pill from either ground
|
|
21502
|
+
* without picking a side.
|
|
21503
|
+
*/
|
|
21504
|
+
border: "5px solid rgba(255, 255, 255, 0.22)",
|
|
21505
|
+
backgroundClip: "padding-box",
|
|
21506
|
+
backdropFilter: "blur(10px)",
|
|
21507
|
+
WebkitBackdropFilter: "blur(10px)"
|
|
21491
21508
|
};
|
|
21492
21509
|
const dotStyle = {
|
|
21493
21510
|
width: 7,
|