@sevenfold/setto-client 0.2.8 → 0.2.9
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.
|
@@ -10,9 +10,7 @@ interface PublishDialogProps {
|
|
|
10
10
|
onComplete: () => void;
|
|
11
11
|
}
|
|
12
12
|
/**
|
|
13
|
-
|
|
14
13
|
* Centered modal showing publish progress (Committed → Building → Deployed).
|
|
15
|
-
|
|
16
14
|
*/
|
|
17
15
|
export declare function PublishDialog({ row, status, onClose, onComplete, }: PublishDialogProps): import("react/jsx-runtime").JSX.Element;
|
|
18
16
|
export {};
|
package/dist/setto-client.js
CHANGED
|
@@ -21880,16 +21880,6 @@ function PublishDialog({
|
|
|
21880
21880
|
return /* @__PURE__ */ jsx(EditOverlay, { onClose: void 0, children: isReady ? /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
21881
21881
|
/* @__PURE__ */ jsx("h2", { style: { margin: "0 0 12px", fontSize: 18, fontWeight: 600 }, children: "Publisert" }),
|
|
21882
21882
|
/* @__PURE__ */ jsx("p", { style: { margin: "0 0 20px", fontSize: 14, lineHeight: 1.5, color: "#444" }, children: "Endringene dine er live." }),
|
|
21883
|
-
row?.url ? /* @__PURE__ */ jsx(
|
|
21884
|
-
"a",
|
|
21885
|
-
{
|
|
21886
|
-
href: row.url,
|
|
21887
|
-
target: "_blank",
|
|
21888
|
-
rel: "noreferrer",
|
|
21889
|
-
style: { ...linkStyle$1, display: "block", marginBottom: 16 },
|
|
21890
|
-
children: "Åpne publisert side →"
|
|
21891
|
-
}
|
|
21892
|
-
) : null,
|
|
21893
21883
|
/* @__PURE__ */ jsx("button", { type: "button", onClick: onComplete, style: primaryBtnStyle, children: "OK" })
|
|
21894
21884
|
] }) : errored ? /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
21895
21885
|
/* @__PURE__ */ jsx("h2", { style: { margin: "0 0 12px", fontSize: 18, fontWeight: 600, color: "#dc2626" }, children: "Publisering feilet" }),
|
|
@@ -21927,11 +21917,6 @@ const secondaryBtnStyle = {
|
|
|
21927
21917
|
color: "#666",
|
|
21928
21918
|
border: "1px solid #ddd"
|
|
21929
21919
|
};
|
|
21930
|
-
const linkStyle$1 = {
|
|
21931
|
-
color: "#640AFF",
|
|
21932
|
-
fontSize: 14,
|
|
21933
|
-
textDecoration: "none"
|
|
21934
|
-
};
|
|
21935
21920
|
function guessLangFromPath(path, languages) {
|
|
21936
21921
|
for (const lng of languages) {
|
|
21937
21922
|
if (path.includes(`/${lng}.`) || path.includes(`/${lng}/`)) return lng;
|