@chaibuilder/sdk 4.0.0-beta.48 → 4.0.0-beta.49
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/{2SSKDMRQ-DqwAKdGS.cjs → 2SSKDMRQ-CjvuNdPo.cjs} +1 -1
- package/dist/{2SSKDMRQ-CLLNh3td.js → 2SSKDMRQ-Dvf9zadl.js} +2 -2
- package/dist/{AP7HFJJL-BA2SSB20.cjs → AP7HFJJL-DYFttFoI.cjs} +1 -1
- package/dist/{AP7HFJJL-wgsmCJDJ.js → AP7HFJJL-q4dJdyFs.js} +1 -1
- package/dist/{IconPicker-DsT0ONLh.js → IconPicker-Bf163F7t.js} +1 -1
- package/dist/{IconPicker-BQy4V5jA.cjs → IconPicker-JWhYq2Gp.cjs} +1 -1
- package/dist/{WDYDFRGG-DyEYv-Y5.cjs → WDYDFRGG-BEksfGMC.cjs} +1 -1
- package/dist/{WDYDFRGG-EEb06kwn.js → WDYDFRGG-O9GIrtX0.js} +2 -2
- package/dist/{actions-registery-2natwC9b.cjs → actions-registery-BHbZHkE3.cjs} +10 -2
- package/dist/{actions-registery-wRY05tEE.js → actions-registery-gJb_wq2F.js} +24 -12
- package/dist/actions.cjs +1 -1
- package/dist/actions.d.ts +10 -3
- package/dist/actions.js +6 -4
- package/dist/{active-in-another-tab-DE2fn30l.js → active-in-another-tab-B4Ur0JP7.js} +2 -2
- package/dist/{active-in-another-tab-p0hkvIFc.cjs → active-in-another-tab-BPdx4lWh.cjs} +1 -1
- package/dist/{add-new-language-page-f2wam593.cjs → add-new-language-page-BfUp5Ua2.cjs} +1 -1
- package/dist/{add-new-language-page-CH7GtcqC.js → add-new-language-page-CRR93tLq.js} +3 -3
- package/dist/{add-new-page-CV7A1XJQ.cjs → add-new-page-B8NGK6WS.cjs} +1 -1
- package/dist/{add-new-page-8d0Nn-zI.js → add-new-page-Ppy5-y5j.js} +2 -2
- package/dist/{ai-panel-default-lang-Dcm4e1o8.js → ai-panel-default-lang-BXYQye3N.js} +6 -5
- package/dist/{ai-panel-default-lang-BJLeTdw3.cjs → ai-panel-default-lang-VhgmHFoQ.cjs} +3 -3
- package/dist/{ai-panel-other-lang-B48Y5C8z.js → ai-panel-other-lang-DaCf-cq4.js} +36 -35
- package/dist/ai-panel-other-lang-Ds0EXeUC.cjs +1 -0
- package/dist/{ai-prompt-input-DhVfzVhy.js → ai-prompt-input-7iWk72w5.js} +2 -2
- package/dist/{ai-prompt-input-C1yoNntS.cjs → ai-prompt-input-nZ5_Dm7X.cjs} +1 -1
- package/dist/{ai-translation-prompt-CUYVv2jG.js → ai-translation-prompt-1OUs1P7n.js} +1 -1
- package/dist/{ai-translation-prompt-mj26BpgQ.cjs → ai-translation-prompt-B16cK-1Q.cjs} +1 -1
- package/dist/{change-password-modal-DiEQWZez.js → change-password-modal-CdvJR1Ln.js} +2 -2
- package/dist/{change-password-modal-DFupkIGx.cjs → change-password-modal-D5eXjiYq.cjs} +1 -1
- package/dist/{code-editor-CazbxsDv.js → code-editor-CyLjDiEp.js} +1 -1
- package/dist/{code-editor-BiLiryYr.cjs → code-editor-SWbfFj1E.cjs} +1 -1
- package/dist/{continue-editing-in-this-client-CpKDDW6u.js → continue-editing-in-this-client-BrSvK-Ay.js} +2 -2
- package/dist/{continue-editing-in-this-client-C3NoncEN.cjs → continue-editing-in-this-client-Cmi-GkYZ.cjs} +1 -1
- package/dist/core.cjs +1 -1
- package/dist/core.js +1 -1
- package/dist/{css-import-modal-DFdZ471B.cjs → css-import-modal-Bdwgd05S.cjs} +1 -1
- package/dist/{css-import-modal-BOQr_e6S.js → css-import-modal-Be47CBJn.js} +1 -1
- package/dist/{delete-page-DIZhbU2t.js → delete-page-C99K2qzS.js} +2 -2
- package/dist/{delete-page-D8Vr-1aC.cjs → delete-page-DLohaU-U.cjs} +1 -1
- package/dist/{design-token-usage-Co5Lj1HN.js → design-token-usage-D1lWCJ3L.js} +1 -1
- package/dist/{design-token-usage-N5DLBdWf.cjs → design-token-usage-eY2wQ0l3.cjs} +1 -1
- package/dist/{digital-asset-manager-CObQa_0R.js → digital-asset-manager-BZMb6sC7.js} +3 -3
- package/dist/{digital-asset-manager-uXP27Dou.cjs → digital-asset-manager-Z5aJxkq0.cjs} +1 -1
- package/dist/{duplicate-page-xpV-pRVU.js → duplicate-page-CDc2X0eW.js} +3 -3
- package/dist/{duplicate-page-DomSAvnp.cjs → duplicate-page-D5Gtvqdv.cjs} +1 -1
- package/dist/{dynamic-page-selector-CYZv-SlK.cjs → dynamic-page-selector-DZHhX008.cjs} +1 -1
- package/dist/{dynamic-page-selector-Bl5kYPWG.js → dynamic-page-selector-DvNBXo6o.js} +2 -2
- package/dist/{image-editor-CDFnNWAz.js → image-editor-BBvvi9Vm.js} +1 -1
- package/dist/{image-editor-pOsT95KQ.cjs → image-editor-DwhTYkVR.cjs} +1 -1
- package/dist/{index-j-XsKW-V.cjs → index-BVwFJWDq.cjs} +3 -3
- package/dist/{index-DonDtb8f.cjs → index-DCJDQs1a.cjs} +8 -8
- package/dist/{index-Cyz_Iww4.js → index-LBTm1Jmk.js} +35 -26
- package/dist/{index-BbkBlCE2.js → index-OuHV9Ann.js} +7 -6
- package/dist/{json-diff-viewer-CoEViavL.cjs → json-diff-viewer-Cb1CmRqP.cjs} +1 -1
- package/dist/{json-diff-viewer-amjoEZ5K.js → json-diff-viewer-DG6qMOBS.js} +2 -2
- package/dist/{lang-panel-DPpIXFl4.js → lang-panel-B3USOxGq.js} +3 -3
- package/dist/{lang-panel-BzWstLZ-.cjs → lang-panel-DxoJ0v4y.cjs} +1 -1
- package/dist/{manage-design-tokens-BVfEFOrN.js → manage-design-tokens-6YGIctip.js} +2 -2
- package/dist/{manage-design-tokens-modal-m3D2luIa.cjs → manage-design-tokens-modal-BSSCXH8Y.cjs} +1 -1
- package/dist/{manage-design-tokens-modal-CBOw_Dg6.js → manage-design-tokens-modal-CzsnN49F.js} +2 -2
- package/dist/{manage-design-tokens-CIiwBv2v.cjs → manage-design-tokens-udLBvkHA.cjs} +1 -1
- package/dist/{mark-as-template-C2-S_aA2.cjs → mark-as-template-B9yLcasI.cjs} +1 -1
- package/dist/{mark-as-template-CQjchLk7.js → mark-as-template-CP_F9ZQ4.js} +2 -2
- package/dist/{nested-path-selector-content-BtsI3H0i.js → nested-path-selector-content-DmtCI3q9.js} +1 -1
- package/dist/{nested-path-selector-content-Dd3NzUE0.cjs → nested-path-selector-content-aTdu-o0e.cjs} +1 -1
- package/dist/{no-language-page-content-CggJC14_.cjs → no-language-page-content-C-MCdPXt.cjs} +1 -1
- package/dist/{no-language-page-content-BrDAjkdi.js → no-language-page-content-D8t5dfgh.js} +2 -2
- package/dist/{no-language-page-dialog-DSbcLM8f.js → no-language-page-dialog-C_fHI2zI.js} +2 -2
- package/dist/{no-language-page-dialog-Dkxdu99i.cjs → no-language-page-dialog-D4QIAHnE.cjs} +1 -1
- package/dist/{page-creator-DqKFL1sB.cjs → page-creator-Cz_ah-qE.cjs} +1 -1
- package/dist/{page-creator-CR-FbJ7C.js → page-creator-DKEkuGCO.js} +3 -3
- package/dist/{page-lock-CwzMBdD-.js → page-lock-CwZKJ4IE.js} +2 -2
- package/dist/{page-lock-D4Anxwpy.cjs → page-lock-DdCvtA-I.cjs} +1 -1
- package/dist/{page-locked-dialog-UrTgnXd6.cjs → page-locked-dialog-CrTDBoC4.cjs} +1 -1
- package/dist/{page-locked-dialog-Dv_unUwx.js → page-locked-dialog-DqLlooUz.js} +2 -2
- package/dist/{page-manager-new-DuqhyqMY.cjs → page-manager-new-ah6QYar2.cjs} +1 -1
- package/dist/{page-manager-new-DpCTazS0.js → page-manager-new-ttsrxdW9.js} +3 -3
- package/dist/{page-manager-search-and-filter-Yt0pjK_r.cjs → page-manager-search-and-filter-D7AupT6_.cjs} +1 -1
- package/dist/{page-manager-search-and-filter-B6F-ZvdQ.js → page-manager-search-and-filter-bsqZ6wnI.js} +2 -2
- package/dist/{page-revisions-content-C2VMkAt4.cjs → page-revisions-content-B6hsIla7.cjs} +1 -1
- package/dist/{page-revisions-content-CUPsMEVU.js → page-revisions-content-C5O8_Fms.js} +3 -3
- package/dist/pages.cjs +1 -1
- package/dist/pages.d.ts +16 -10
- package/dist/pages.js +1 -1
- package/dist/{publish-pages-content-BrjDksNY.cjs → publish-pages-content-BrajJUcP.cjs} +1 -1
- package/dist/{publish-pages-content-CK0ahL2t.js → publish-pages-content-KZVMHT6V.js} +3 -3
- package/dist/{rte-widget-modal-Dktetdg4.cjs → rte-widget-modal-CiTwsXTr.cjs} +1 -1
- package/dist/{rte-widget-modal-DgEF73WC.js → rte-widget-modal-IU8JzPuZ.js} +1 -1
- package/dist/{save-to-lib-Bs6-wr2u.js → save-to-lib-DMnv7ENo.js} +2 -2
- package/dist/{save-to-lib-CuVYPtm-.cjs → save-to-lib-Dc700Aop.cjs} +1 -1
- package/dist/{selected-block-display-BCcwnFzJ.cjs → selected-block-display-CAFEOrLV.cjs} +1 -1
- package/dist/{selected-block-display-D-lzXUfE.js → selected-block-display-CidmQ-wz.js} +2 -2
- package/dist/{seo-panel-By-TlhHK.js → seo-panel-Br8gxDxu.js} +155 -165
- package/dist/{seo-panel-DTqsu3I0.cjs → seo-panel-CMY-adM-.cjs} +2 -2
- package/dist/{shared-json-ld-C_vaAxgT.cjs → shared-json-ld-CMH-eRUq.cjs} +1 -1
- package/dist/{shared-json-ld-CMCwFEI0.js → shared-json-ld-uvMmwCYp.js} +2 -2
- package/dist/{slug-input-DCmvuN69.cjs → slug-input-CiHC5l3r.cjs} +1 -1
- package/dist/{slug-input-bhZSv9VS.js → slug-input-DLWTMTsO.js} +1 -1
- package/dist/supabase-actions.cjs +1 -1
- package/dist/supabase-actions.js +1 -1
- package/dist/{take-over-request-BGvKpN5m.cjs → take-over-request-IRLgF1dG.cjs} +1 -1
- package/dist/{take-over-request-f0dbfkLe.js → take-over-request-KdR1_h_K.js} +2 -2
- package/dist/{translation-warning-modal-_0YmCcU8.cjs → translation-warning-modal-CLZ9tC1F.cjs} +1 -1
- package/dist/{translation-warning-modal-D0-WNJnG.js → translation-warning-modal-CzNt6LDO.js} +1 -1
- package/dist/types.d.ts +6 -0
- package/dist/{unmark-as-template-WE3WJ-RJ.js → unmark-as-template-C5ovsEBP.js} +2 -2
- package/dist/{unmark-as-template-BE1BO8Z0.cjs → unmark-as-template-F7TdgWjI.cjs} +1 -1
- package/dist/{unpublish-page-B4A-GQEz.js → unpublish-page-0fR1o0b7.js} +2 -2
- package/dist/{unpublish-page-DrZnWLVM.cjs → unpublish-page-CUr8Xub6.cjs} +1 -1
- package/dist/{unpublished-partials-modal-CGK-4WJ3.js → unpublished-partials-modal-BhNAub_z.js} +1 -1
- package/dist/{unpublished-partials-modal-KFXm1fG4.cjs → unpublished-partials-modal-Cv5R9-hi.cjs} +1 -1
- package/dist/{web-preview-ClV1a6hl.cjs → web-preview-CuMYekVJ.cjs} +1 -1
- package/dist/{web-preview-BSmef-RL.js → web-preview-D9pXonAv.js} +1 -1
- package/package.json +1 -1
- package/dist/ai-panel-other-lang-Ch0RHXqZ.cjs +0 -1
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { j as ve, ar as xe, aq as Ne, A as we, L as ee, av as Se, aL as De, aM as Oe, g as be, ax as je, aN as Le, aO as Ie, aP as T, aQ as Ee, aF as
|
|
3
|
-
import { d as z, D as ke, e as Te, f as Ce, g as Fe, o as Ae, n as Je, ax as Pe, ay as Re, az as qe, aA as $, p as S, T as
|
|
1
|
+
import { jsx as s, jsxs as o } from "react/jsx-runtime";
|
|
2
|
+
import { j as ve, ar as xe, aq as Ne, A as we, L as ee, av as Se, aL as De, aM as Oe, g as be, ax as je, aN as Le, aO as Ie, aP as T, aQ as Ee, aF as se } from "./index-LBTm1Jmk.js";
|
|
3
|
+
import { d as z, D as ke, e as Te, f as Ce, g as Fe, o as Ae, n as Je, ax as Pe, ay as Re, az as qe, aA as $, p as S, T as te } from "./index-OuHV9Ann.js";
|
|
4
4
|
import { find as Be, get as g, isEqual as ne, isEmpty as Ue } from "lodash-es";
|
|
5
|
-
import { useMemo as _e, useRef as ae, useState as
|
|
6
|
-
import { B as
|
|
5
|
+
import { useMemo as _e, useRef as ae, useState as F, useEffect as oe } from "react";
|
|
6
|
+
import { B as J, D as Ve, F as Ge, z as A } from "./register-chai-top-bar-D6GjnauV.js";
|
|
7
7
|
import { useTranslation as Me } from "react-i18next";
|
|
8
8
|
import { toast as b } from "sonner";
|
|
9
9
|
import { useMutation as He } from "@tanstack/react-query";
|
|
@@ -22,7 +22,7 @@ const ze = () => {
|
|
|
22
22
|
});
|
|
23
23
|
const n = a.querySelectorAll("h1, h2, h3, h4, h5, h6, p");
|
|
24
24
|
return Array.from(n).map((m) => `<${m.tagName.toLowerCase()}>${m.innerHTML}</${m.tagName.toLowerCase()}>`).join(" ").replace(/<p>Partial block. Double click to edit.<\/p>/, "");
|
|
25
|
-
},
|
|
25
|
+
}, B = ({
|
|
26
26
|
keyword: e,
|
|
27
27
|
onComplete: l,
|
|
28
28
|
field: r
|
|
@@ -49,8 +49,8 @@ const ze = () => {
|
|
|
49
49
|
l({ fieldValue: null, error: j.message });
|
|
50
50
|
}
|
|
51
51
|
});
|
|
52
|
-
return /* @__PURE__ */
|
|
53
|
-
|
|
52
|
+
return /* @__PURE__ */ s(
|
|
53
|
+
J,
|
|
54
54
|
{
|
|
55
55
|
disabled: p,
|
|
56
56
|
type: "button",
|
|
@@ -58,7 +58,7 @@ const ze = () => {
|
|
|
58
58
|
variant: "ghost",
|
|
59
59
|
size: "sm",
|
|
60
60
|
onClick: () => m(),
|
|
61
|
-
children: p ? /* @__PURE__ */
|
|
61
|
+
children: p ? /* @__PURE__ */ s($e, { className: "h-3 w-3 animate-spin text-yellow-500" }) : /* @__PURE__ */ s(We, { className: "text-yellow-500" })
|
|
62
62
|
}
|
|
63
63
|
);
|
|
64
64
|
}, h = (e, l) => {
|
|
@@ -190,9 +190,9 @@ const Qe = ({
|
|
|
190
190
|
toLanguage: y
|
|
191
191
|
}) => {
|
|
192
192
|
const m = ee[c] || c, p = ee[y] || y;
|
|
193
|
-
return /* @__PURE__ */
|
|
193
|
+
return /* @__PURE__ */ s(ke, { open: e, onOpenChange: l, children: /* @__PURE__ */ o(Te, { className: "sm:max-w-[425px]", children: [
|
|
194
194
|
/* @__PURE__ */ o(Ce, { children: [
|
|
195
|
-
/* @__PURE__ */
|
|
195
|
+
/* @__PURE__ */ s(Fe, { children: "Unsaved SEO Changes" }),
|
|
196
196
|
/* @__PURE__ */ o(Ae, { children: [
|
|
197
197
|
'You have unsaved changes in the SEO for "',
|
|
198
198
|
m,
|
|
@@ -202,8 +202,8 @@ const Qe = ({
|
|
|
202
202
|
] })
|
|
203
203
|
] }),
|
|
204
204
|
/* @__PURE__ */ o("div", { className: "flex justify-end gap-3 pt-4", children: [
|
|
205
|
-
/* @__PURE__ */
|
|
206
|
-
/* @__PURE__ */
|
|
205
|
+
/* @__PURE__ */ s(J, { variant: "outline", onClick: a, disabled: n, children: "Discard Changes" }),
|
|
206
|
+
/* @__PURE__ */ s(J, { onClick: r, disabled: n, children: n ? "Saving..." : "Save & Switch" })
|
|
207
207
|
] })
|
|
208
208
|
] }) });
|
|
209
209
|
}, Ye = (e) => {
|
|
@@ -221,7 +221,7 @@ const Qe = ({
|
|
|
221
221
|
newCursorPos: j
|
|
222
222
|
};
|
|
223
223
|
}, Ze = () => {
|
|
224
|
-
const { t: e } = Me(), [, l] = Je(), { data: r } = Se(), { data: a } = De(), { data: n, isFetching: c } = ze(), y = n == null ? void 0 : n.seo, m = ae(null), [p, j] =
|
|
224
|
+
const { t: e } = Me(), [, l] = Je(), { data: r } = Se(), { data: a } = De(), { data: n, isFetching: c } = ze(), y = n == null ? void 0 : n.seo, m = ae(null), [p, j] = F("seo"), P = r == null ? void 0 : r.id, le = r == null ? void 0 : r.pageType, I = Oe(le), { selectedLang: K, fallbackLang: re } = z(), f = K || re, [Q, U] = F(!1), [ce, Y] = F(!1), [ie, _] = F(!1), [D, V] = F(null), [i, O] = F({
|
|
225
225
|
keyword: "",
|
|
226
226
|
title: "",
|
|
227
227
|
description: "",
|
|
@@ -239,8 +239,8 @@ const Qe = ({
|
|
|
239
239
|
...y
|
|
240
240
|
}), C = ae({}), { mutate: de, isPending: G } = be(), x = G || Q || ce, { hasPermission: ue } = Pe(), d = ue(je.EDIT_SEO), [he] = Le(), me = g(he, "flags.resetSeoToDefault", !1), X = !K || i.jsonLD !== "{}";
|
|
241
241
|
oe(() => {
|
|
242
|
-
if (!c && y &&
|
|
243
|
-
const
|
|
242
|
+
if (!c && y && P) {
|
|
243
|
+
const t = {
|
|
244
244
|
keyword: "",
|
|
245
245
|
title: "",
|
|
246
246
|
description: "",
|
|
@@ -257,36 +257,36 @@ const Qe = ({
|
|
|
257
257
|
metaOther: "",
|
|
258
258
|
...y
|
|
259
259
|
};
|
|
260
|
-
O(
|
|
260
|
+
O(t), C.current[f] = t;
|
|
261
261
|
}
|
|
262
|
-
}, [c, y, f,
|
|
263
|
-
const
|
|
264
|
-
const { fromLang: v, toLang:
|
|
265
|
-
(M ? !ne(M, i) : !1) ? (V({ fromLang: v, toLang:
|
|
262
|
+
}, [c, y, f, P]), oe(() => {
|
|
263
|
+
const t = (u) => {
|
|
264
|
+
const { fromLang: v, toLang: q, switchHandler: w } = u.detail, M = C.current[f];
|
|
265
|
+
(M ? !ne(M, i) : !1) ? (V({ fromLang: v, toLang: q, switchHandler: w }), _(!0)) : w();
|
|
266
266
|
};
|
|
267
|
-
return window.addEventListener("seo-language-switch-check",
|
|
268
|
-
window.removeEventListener("seo-language-switch-check",
|
|
267
|
+
return window.addEventListener("seo-language-switch-check", t), () => {
|
|
268
|
+
window.removeEventListener("seo-language-switch-check", t);
|
|
269
269
|
};
|
|
270
|
-
}, [
|
|
270
|
+
}, [P, i, f]);
|
|
271
271
|
const pe = async () => {
|
|
272
272
|
if (!(!I || !f))
|
|
273
273
|
try {
|
|
274
274
|
U(!0);
|
|
275
|
-
const
|
|
275
|
+
const t = W(I, f), u = {
|
|
276
276
|
...i,
|
|
277
|
-
keyword: g(
|
|
278
|
-
title: g(
|
|
279
|
-
description: g(
|
|
280
|
-
cononicalUrl: g(
|
|
281
|
-
noIndex: g(
|
|
282
|
-
noFollow: g(
|
|
283
|
-
ogTitle: g(
|
|
284
|
-
ogDescription: g(
|
|
277
|
+
keyword: g(t, "seo.keyword", ""),
|
|
278
|
+
title: g(t, "seo.title", ""),
|
|
279
|
+
description: g(t, "seo.description", ""),
|
|
280
|
+
cononicalUrl: g(t, "seo.canonicalUrl", ""),
|
|
281
|
+
noIndex: g(t, "seo.noIndex", !1),
|
|
282
|
+
noFollow: g(t, "seo.noFollow", !1),
|
|
283
|
+
ogTitle: g(t, "seo.ogTitle", ""),
|
|
284
|
+
ogDescription: g(t, "seo.ogDescription", "")
|
|
285
285
|
// Keep jsonLD as is
|
|
286
286
|
};
|
|
287
287
|
O(u), b.success(e("SEO fields reset to defaults"));
|
|
288
|
-
} catch (
|
|
289
|
-
b.error(e("Failed to reset SEO fields")), console.error("Reset SEO error:",
|
|
288
|
+
} catch (t) {
|
|
289
|
+
b.error(e("Failed to reset SEO fields")), console.error("Reset SEO error:", t);
|
|
290
290
|
} finally {
|
|
291
291
|
U(!1);
|
|
292
292
|
}
|
|
@@ -294,13 +294,13 @@ const Qe = ({
|
|
|
294
294
|
if (!(!I || !f))
|
|
295
295
|
try {
|
|
296
296
|
Y(!0);
|
|
297
|
-
const
|
|
297
|
+
const t = W(I, f), u = {
|
|
298
298
|
...i,
|
|
299
|
-
jsonLD: g(
|
|
299
|
+
jsonLD: g(t, "seo.jsonLD", "")
|
|
300
300
|
};
|
|
301
301
|
O(u), b.success(e("JSON-LD reset to default"));
|
|
302
|
-
} catch (
|
|
303
|
-
b.error(e("Failed to reset JSON-LD")), console.error("Reset JSON-LD error:",
|
|
302
|
+
} catch (t) {
|
|
303
|
+
b.error(e("Failed to reset JSON-LD")), console.error("Reset JSON-LD error:", t);
|
|
304
304
|
} finally {
|
|
305
305
|
Y(!1);
|
|
306
306
|
}
|
|
@@ -308,39 +308,39 @@ const Qe = ({
|
|
|
308
308
|
if (!(!I || !f))
|
|
309
309
|
try {
|
|
310
310
|
U(!0);
|
|
311
|
-
const
|
|
311
|
+
const t = W(I, f), u = {
|
|
312
312
|
...i,
|
|
313
|
-
ogTitle: g(
|
|
314
|
-
ogDescription: g(
|
|
315
|
-
ogImage: g(
|
|
316
|
-
ogImageId: g(
|
|
317
|
-
metaOther: g(
|
|
313
|
+
ogTitle: g(t, "seo.ogTitle", ""),
|
|
314
|
+
ogDescription: g(t, "seo.ogDescription", ""),
|
|
315
|
+
ogImage: g(t, "seo.ogImage", ""),
|
|
316
|
+
ogImageId: g(t, "seo.ogImageId", ""),
|
|
317
|
+
metaOther: g(t, "seo.metaOther", "{}")
|
|
318
318
|
};
|
|
319
319
|
O(u), b.success(e("Meta Tag fields reset to defaults"));
|
|
320
|
-
} catch (
|
|
321
|
-
b.error(e("Failed to reset Meta Tag fields")), console.error("Reset Meta Tag error:",
|
|
320
|
+
} catch (t) {
|
|
321
|
+
b.error(e("Failed to reset Meta Tag fields")), console.error("Reset Meta Tag error:", t);
|
|
322
322
|
} finally {
|
|
323
323
|
U(!1);
|
|
324
324
|
}
|
|
325
325
|
}, Z = async () => {
|
|
326
326
|
de(
|
|
327
|
-
{ id: n == null ? void 0 : n.id, seo: i, primaryPage:
|
|
327
|
+
{ id: n == null ? void 0 : n.id, seo: i, primaryPage: P },
|
|
328
328
|
{
|
|
329
329
|
onSuccess: () => {
|
|
330
330
|
console.log("SEO & JSON-LD updated successfully", i), C.current[f] = i, b.success("SEO & JSON-LD updated successfully");
|
|
331
331
|
}
|
|
332
332
|
}
|
|
333
333
|
);
|
|
334
|
-
}, L = (
|
|
334
|
+
}, L = (t, u) => {
|
|
335
335
|
const v = document.getElementById(u);
|
|
336
336
|
if (v) {
|
|
337
|
-
const { value:
|
|
337
|
+
const { value: q, newCursorPos: w } = Xe(v, t);
|
|
338
338
|
m.current = {
|
|
339
339
|
id: u,
|
|
340
340
|
position: w
|
|
341
|
-
}, v.tagName.toLowerCase() === "input" ? (v.value =
|
|
341
|
+
}, v.tagName.toLowerCase() === "input" ? (v.value = q, O((k) => ({
|
|
342
342
|
...k,
|
|
343
|
-
[v.name]:
|
|
343
|
+
[v.name]: q
|
|
344
344
|
})), v.focus(), v.setSelectionRange(w, w), [0, 10, 50, 100, 200].forEach((k) => {
|
|
345
345
|
setTimeout(() => {
|
|
346
346
|
const H = document.getElementById(u);
|
|
@@ -348,7 +348,7 @@ const Qe = ({
|
|
|
348
348
|
}, k);
|
|
349
349
|
})) : (O((E) => ({
|
|
350
350
|
...E,
|
|
351
|
-
[v.name]:
|
|
351
|
+
[v.name]: q
|
|
352
352
|
})), requestAnimationFrame(() => {
|
|
353
353
|
const E = document.getElementById(u);
|
|
354
354
|
E && (E.focus(), E.setSelectionRange(w, w), setTimeout(() => {
|
|
@@ -357,75 +357,75 @@ const Qe = ({
|
|
|
357
357
|
}, 50));
|
|
358
358
|
}));
|
|
359
359
|
}
|
|
360
|
-
}, N = (
|
|
360
|
+
}, N = (t) => {
|
|
361
361
|
const u = {
|
|
362
362
|
...i,
|
|
363
|
-
[
|
|
363
|
+
[t.target.name]: t.target.name === "noIndex" || t.target.name === "noFollow" ? t.target.checked : t.target.value
|
|
364
364
|
};
|
|
365
365
|
O(u);
|
|
366
|
-
},
|
|
366
|
+
}, R = (t) => (u) => {
|
|
367
367
|
if (!Ue(u.fieldValue)) {
|
|
368
368
|
const v = h(
|
|
369
369
|
u.fieldValue,
|
|
370
|
-
|
|
370
|
+
t
|
|
371
371
|
);
|
|
372
372
|
v.success ? N({
|
|
373
373
|
target: {
|
|
374
|
-
name:
|
|
374
|
+
name: t,
|
|
375
375
|
value: v.value
|
|
376
376
|
}
|
|
377
377
|
}) : b.error(
|
|
378
378
|
/* @__PURE__ */ o("div", { children: [
|
|
379
|
-
/* @__PURE__ */
|
|
380
|
-
/* @__PURE__ */
|
|
379
|
+
/* @__PURE__ */ s("h2", { children: "Failed to process AI response:" }),
|
|
380
|
+
/* @__PURE__ */ s("p", { children: v.error })
|
|
381
381
|
] })
|
|
382
382
|
);
|
|
383
383
|
}
|
|
384
384
|
u.error && b.error(
|
|
385
385
|
/* @__PURE__ */ o("div", { children: [
|
|
386
|
-
/* @__PURE__ */
|
|
387
|
-
/* @__PURE__ */
|
|
386
|
+
/* @__PURE__ */ s("h2", { children: "Failed to generate:" }),
|
|
387
|
+
/* @__PURE__ */ s("p", { children: u.error })
|
|
388
388
|
] })
|
|
389
389
|
);
|
|
390
390
|
}, ye = () => {
|
|
391
|
-
const
|
|
392
|
-
if ((
|
|
391
|
+
const t = g(r, "seo.jsonLD", "{}");
|
|
392
|
+
if ((t == null ? void 0 : t.trim()) === "{}") {
|
|
393
393
|
b.error("Default page JSON-LD is empty");
|
|
394
394
|
return;
|
|
395
395
|
}
|
|
396
|
-
N({ target: { name: "jsonLD", value:
|
|
396
|
+
N({ target: { name: "jsonLD", value: t } });
|
|
397
397
|
};
|
|
398
398
|
return /* @__PURE__ */ o("div", { className: "relative flex h-full flex-col", "data-panel-id": "seo", children: [
|
|
399
|
-
!d && /* @__PURE__ */
|
|
399
|
+
!d && /* @__PURE__ */ s("div", { className: "absolute inset-0 z-10 flex items-center justify-center backdrop-blur-sm", children: /* @__PURE__ */ s(Ve, { variant: "default", className: "w-[80%] max-w-md text-xs", children: /* @__PURE__ */ s(Ge, { children: e("You don't have permission to edit SEO settings. Contact your administrator for access.") }) }) }),
|
|
400
400
|
/* @__PURE__ */ o("div", { className: "no-scrollbar flex-grow overflow-y-auto px-2 pb-20", children: [
|
|
401
401
|
/* @__PURE__ */ o("div", { className: "mb-4 flex w-full items-center justify-between rounded-md bg-gray-100 px-2 py-1 text-left text-sm", children: [
|
|
402
402
|
/* @__PURE__ */ o("span", { children: [
|
|
403
|
-
/* @__PURE__ */
|
|
404
|
-
/* @__PURE__ */
|
|
403
|
+
/* @__PURE__ */ s("div", { className: "font-medium", children: n == null ? void 0 : n.name }),
|
|
404
|
+
/* @__PURE__ */ s("span", { className: "font-mono text-xs leading-tight text-gray-500", children: n == null ? void 0 : n.slug })
|
|
405
405
|
] }),
|
|
406
|
-
/* @__PURE__ */
|
|
406
|
+
/* @__PURE__ */ s(Ie, { showAdd: !1 })
|
|
407
407
|
] }),
|
|
408
|
-
/* @__PURE__ */
|
|
408
|
+
/* @__PURE__ */ s("form", { className: "space-y-8", children: /* @__PURE__ */ o(Re, { value: p, onValueChange: j, className: "w-full", children: [
|
|
409
409
|
/* @__PURE__ */ o(qe, { className: "mb-4 grid w-full grid-cols-3", children: [
|
|
410
|
-
/* @__PURE__ */
|
|
411
|
-
/* @__PURE__ */
|
|
412
|
-
/* @__PURE__ */
|
|
410
|
+
/* @__PURE__ */ s($, { value: "seo", children: e("SEO") }),
|
|
411
|
+
/* @__PURE__ */ s($, { value: "opengraph", children: e("Meta Tags") }),
|
|
412
|
+
/* @__PURE__ */ s($, { value: "jsonld", children: e("JSON-LD") })
|
|
413
413
|
] }),
|
|
414
|
-
/* @__PURE__ */
|
|
414
|
+
/* @__PURE__ */ s("div", { className: p === "seo" ? "" : "sr-only", children: /* @__PURE__ */ o("div", { className: "space-y-4", children: [
|
|
415
415
|
/* @__PURE__ */ o("div", { className: "space-y-1", children: [
|
|
416
416
|
/* @__PURE__ */ o("div", { className: "flex items-center justify-between", children: [
|
|
417
|
-
/* @__PURE__ */
|
|
418
|
-
d && /* @__PURE__ */
|
|
417
|
+
/* @__PURE__ */ s(S, { className: "text-xs", htmlFor: "keyword", children: e("Keyword") }),
|
|
418
|
+
d && /* @__PURE__ */ s(
|
|
419
419
|
T,
|
|
420
420
|
{
|
|
421
421
|
dataType: "value",
|
|
422
422
|
data: a ?? {},
|
|
423
|
-
onSelect: (
|
|
423
|
+
onSelect: (t) => L(t, "keyword")
|
|
424
424
|
}
|
|
425
425
|
)
|
|
426
426
|
] }),
|
|
427
|
-
/* @__PURE__ */
|
|
428
|
-
|
|
427
|
+
/* @__PURE__ */ s(
|
|
428
|
+
A,
|
|
429
429
|
{
|
|
430
430
|
type: "text",
|
|
431
431
|
id: "keyword",
|
|
@@ -440,21 +440,21 @@ const Qe = ({
|
|
|
440
440
|
] }),
|
|
441
441
|
/* @__PURE__ */ o("div", { className: "space-y-1", children: [
|
|
442
442
|
/* @__PURE__ */ o("div", { className: "flex items-center justify-between", children: [
|
|
443
|
-
/* @__PURE__ */
|
|
443
|
+
/* @__PURE__ */ s(S, { className: "text-xs", htmlFor: "title", children: e("SEO Title") }),
|
|
444
444
|
/* @__PURE__ */ o("div", { className: "flex items-center justify-end gap-2", children: [
|
|
445
|
-
/* @__PURE__ */
|
|
446
|
-
d && /* @__PURE__ */
|
|
445
|
+
/* @__PURE__ */ s(B, { keyword: i.keyword, onComplete: R("title"), field: "title" }),
|
|
446
|
+
d && /* @__PURE__ */ s(
|
|
447
447
|
T,
|
|
448
448
|
{
|
|
449
449
|
dataType: "value",
|
|
450
450
|
data: a ?? {},
|
|
451
|
-
onSelect: (
|
|
451
|
+
onSelect: (t) => L(t, "title")
|
|
452
452
|
}
|
|
453
453
|
)
|
|
454
454
|
] })
|
|
455
455
|
] }),
|
|
456
|
-
/* @__PURE__ */
|
|
457
|
-
|
|
456
|
+
/* @__PURE__ */ s(
|
|
457
|
+
A,
|
|
458
458
|
{
|
|
459
459
|
type: "text",
|
|
460
460
|
id: "title",
|
|
@@ -469,27 +469,27 @@ const Qe = ({
|
|
|
469
469
|
] }),
|
|
470
470
|
/* @__PURE__ */ o("div", { className: "space-y-1", children: [
|
|
471
471
|
/* @__PURE__ */ o("div", { className: "flex items-center justify-between", children: [
|
|
472
|
-
/* @__PURE__ */
|
|
472
|
+
/* @__PURE__ */ s(S, { className: "text-xs", htmlFor: "description", children: e("SEO Description") }),
|
|
473
473
|
/* @__PURE__ */ o("div", { className: "flex items-center gap-2", children: [
|
|
474
|
-
/* @__PURE__ */
|
|
475
|
-
|
|
474
|
+
/* @__PURE__ */ s(
|
|
475
|
+
B,
|
|
476
476
|
{
|
|
477
477
|
keyword: i.keyword,
|
|
478
|
-
onComplete:
|
|
478
|
+
onComplete: R("description"),
|
|
479
479
|
field: "description"
|
|
480
480
|
}
|
|
481
481
|
),
|
|
482
|
-
d && /* @__PURE__ */
|
|
482
|
+
d && /* @__PURE__ */ s(
|
|
483
483
|
T,
|
|
484
484
|
{
|
|
485
485
|
data: a ?? {},
|
|
486
|
-
onSelect: (
|
|
486
|
+
onSelect: (t) => L(t, "description")
|
|
487
487
|
}
|
|
488
488
|
)
|
|
489
489
|
] })
|
|
490
490
|
] }),
|
|
491
|
-
/* @__PURE__ */
|
|
492
|
-
|
|
491
|
+
/* @__PURE__ */ s(
|
|
492
|
+
te,
|
|
493
493
|
{
|
|
494
494
|
id: "description",
|
|
495
495
|
name: "description",
|
|
@@ -504,18 +504,18 @@ const Qe = ({
|
|
|
504
504
|
] }),
|
|
505
505
|
/* @__PURE__ */ o("div", { className: "space-y-1", children: [
|
|
506
506
|
/* @__PURE__ */ o("div", { className: "flex items-center justify-between", children: [
|
|
507
|
-
/* @__PURE__ */
|
|
508
|
-
d && /* @__PURE__ */
|
|
507
|
+
/* @__PURE__ */ s(S, { className: "text-xs", htmlFor: "title", children: e("Canonical URL") }),
|
|
508
|
+
d && /* @__PURE__ */ s(
|
|
509
509
|
T,
|
|
510
510
|
{
|
|
511
511
|
dataType: "value",
|
|
512
512
|
data: a ?? {},
|
|
513
|
-
onSelect: (
|
|
513
|
+
onSelect: (t) => L(t, "canonicalUrl")
|
|
514
514
|
}
|
|
515
515
|
)
|
|
516
516
|
] }),
|
|
517
|
-
/* @__PURE__ */
|
|
518
|
-
|
|
517
|
+
/* @__PURE__ */ s(
|
|
518
|
+
A,
|
|
519
519
|
{
|
|
520
520
|
type: "text",
|
|
521
521
|
id: "canonicalUrl",
|
|
@@ -530,8 +530,8 @@ const Qe = ({
|
|
|
530
530
|
] }),
|
|
531
531
|
/* @__PURE__ */ o("div", { className: "", children: [
|
|
532
532
|
/* @__PURE__ */ o("div", { className: "flex items-center gap-x-2", children: [
|
|
533
|
-
/* @__PURE__ */
|
|
534
|
-
|
|
533
|
+
/* @__PURE__ */ s(
|
|
534
|
+
A,
|
|
535
535
|
{
|
|
536
536
|
type: "checkbox",
|
|
537
537
|
id: "noIndex",
|
|
@@ -542,14 +542,14 @@ const Qe = ({
|
|
|
542
542
|
className: "h-4 w-4"
|
|
543
543
|
}
|
|
544
544
|
),
|
|
545
|
-
/* @__PURE__ */
|
|
545
|
+
/* @__PURE__ */ s(S, { className: "pb-1 text-xs", htmlFor: "noIndex", children: e("No Index") })
|
|
546
546
|
] }),
|
|
547
|
-
/* @__PURE__ */
|
|
547
|
+
/* @__PURE__ */ s("p", { className: "mt-0 text-[10px] font-light leading-4 text-gray-400", children: e("Check this if you don't want search engines to index this page.") })
|
|
548
548
|
] }),
|
|
549
549
|
/* @__PURE__ */ o("div", { className: "", children: [
|
|
550
550
|
/* @__PURE__ */ o("div", { className: "flex items-center gap-x-2", children: [
|
|
551
|
-
/* @__PURE__ */
|
|
552
|
-
|
|
551
|
+
/* @__PURE__ */ s(
|
|
552
|
+
A,
|
|
553
553
|
{
|
|
554
554
|
type: "checkbox",
|
|
555
555
|
id: "noFollow",
|
|
@@ -560,38 +560,38 @@ const Qe = ({
|
|
|
560
560
|
className: "h-4 w-4"
|
|
561
561
|
}
|
|
562
562
|
),
|
|
563
|
-
/* @__PURE__ */
|
|
563
|
+
/* @__PURE__ */ s(S, { className: "pb-1 text-xs", htmlFor: "noIndex", children: e("No Follow") })
|
|
564
564
|
] }),
|
|
565
|
-
/* @__PURE__ */
|
|
565
|
+
/* @__PURE__ */ s("p", { className: "text-[10px] font-light leading-4 text-gray-400", children: e("Check this if you don't want search engines to follow links on this page.") })
|
|
566
566
|
] })
|
|
567
567
|
] }) }),
|
|
568
|
-
/* @__PURE__ */
|
|
569
|
-
/* @__PURE__ */
|
|
568
|
+
/* @__PURE__ */ s("div", { className: p === "opengraph" ? "" : "sr-only", children: /* @__PURE__ */ s("div", { className: "space-y-4", children: /* @__PURE__ */ o("div", { children: [
|
|
569
|
+
/* @__PURE__ */ s("h3", { className: "mb-4 font-semibold text-slate-700", children: e("Open Graph") }),
|
|
570
570
|
/* @__PURE__ */ o("div", { className: "space-y-4", children: [
|
|
571
571
|
/* @__PURE__ */ o("div", { className: "space-y-1", children: [
|
|
572
572
|
/* @__PURE__ */ o("div", { className: "flex items-center justify-between", children: [
|
|
573
|
-
/* @__PURE__ */
|
|
573
|
+
/* @__PURE__ */ s(S, { className: "text-xs", htmlFor: "ogTitle", children: e("OG Title") }),
|
|
574
574
|
/* @__PURE__ */ o("div", { className: "flex items-center gap-2", children: [
|
|
575
|
-
/* @__PURE__ */
|
|
576
|
-
|
|
575
|
+
/* @__PURE__ */ s(
|
|
576
|
+
B,
|
|
577
577
|
{
|
|
578
578
|
keyword: i.keyword,
|
|
579
|
-
onComplete:
|
|
579
|
+
onComplete: R("ogTitle"),
|
|
580
580
|
field: "ogTitle"
|
|
581
581
|
}
|
|
582
582
|
),
|
|
583
|
-
d && /* @__PURE__ */
|
|
583
|
+
d && /* @__PURE__ */ s(
|
|
584
584
|
T,
|
|
585
585
|
{
|
|
586
586
|
dataType: "value",
|
|
587
587
|
data: a ?? {},
|
|
588
|
-
onSelect: (
|
|
588
|
+
onSelect: (t) => L(t, "ogTitle")
|
|
589
589
|
}
|
|
590
590
|
)
|
|
591
591
|
] })
|
|
592
592
|
] }),
|
|
593
|
-
/* @__PURE__ */
|
|
594
|
-
|
|
593
|
+
/* @__PURE__ */ s(
|
|
594
|
+
A,
|
|
595
595
|
{
|
|
596
596
|
type: "text",
|
|
597
597
|
id: "ogTitle",
|
|
@@ -606,28 +606,28 @@ const Qe = ({
|
|
|
606
606
|
] }),
|
|
607
607
|
/* @__PURE__ */ o("div", { className: "space-y-1", children: [
|
|
608
608
|
/* @__PURE__ */ o("div", { className: "flex items-center justify-between", children: [
|
|
609
|
-
/* @__PURE__ */
|
|
609
|
+
/* @__PURE__ */ s(S, { className: "text-xs", htmlFor: "ogDescription", children: e("OG Description") }),
|
|
610
610
|
/* @__PURE__ */ o("div", { className: "flex items-center gap-2", children: [
|
|
611
|
-
/* @__PURE__ */
|
|
612
|
-
|
|
611
|
+
/* @__PURE__ */ s(
|
|
612
|
+
B,
|
|
613
613
|
{
|
|
614
614
|
keyword: i.keyword,
|
|
615
|
-
onComplete:
|
|
615
|
+
onComplete: R("ogDescription"),
|
|
616
616
|
field: "ogDescription"
|
|
617
617
|
}
|
|
618
618
|
),
|
|
619
|
-
d && /* @__PURE__ */
|
|
619
|
+
d && /* @__PURE__ */ s(
|
|
620
620
|
T,
|
|
621
621
|
{
|
|
622
622
|
dataType: "value",
|
|
623
623
|
data: a ?? {},
|
|
624
|
-
onSelect: (
|
|
624
|
+
onSelect: (t) => L(t, "ogDescription")
|
|
625
625
|
}
|
|
626
626
|
)
|
|
627
627
|
] })
|
|
628
628
|
] }),
|
|
629
|
-
/* @__PURE__ */
|
|
630
|
-
|
|
629
|
+
/* @__PURE__ */ s(
|
|
630
|
+
te,
|
|
631
631
|
{
|
|
632
632
|
id: "ogDescription",
|
|
633
633
|
name: "ogDescription",
|
|
@@ -642,32 +642,32 @@ const Qe = ({
|
|
|
642
642
|
] }),
|
|
643
643
|
/* @__PURE__ */ o("div", { className: "space-y-1", children: [
|
|
644
644
|
/* @__PURE__ */ o("div", { className: "flex items-center justify-between", children: [
|
|
645
|
-
/* @__PURE__ */
|
|
646
|
-
d && /* @__PURE__ */
|
|
645
|
+
/* @__PURE__ */ s(S, { className: "text-xs", htmlFor: "ogImage", children: e("OG Image") }),
|
|
646
|
+
d && /* @__PURE__ */ s(
|
|
647
647
|
T,
|
|
648
648
|
{
|
|
649
649
|
dataType: "value",
|
|
650
650
|
data: a ?? {},
|
|
651
|
-
onSelect: (
|
|
651
|
+
onSelect: (t) => {
|
|
652
652
|
O({
|
|
653
653
|
...i,
|
|
654
|
-
ogImage: `{{${
|
|
654
|
+
ogImage: `{{${t}}}`,
|
|
655
655
|
ogImageId: ""
|
|
656
656
|
});
|
|
657
657
|
}
|
|
658
658
|
}
|
|
659
659
|
)
|
|
660
660
|
] }),
|
|
661
|
-
/* @__PURE__ */
|
|
661
|
+
/* @__PURE__ */ s(
|
|
662
662
|
Ee,
|
|
663
663
|
{
|
|
664
664
|
assetId: i.ogImageId,
|
|
665
665
|
assetUrl: i.ogImage,
|
|
666
|
-
onChange: (
|
|
666
|
+
onChange: (t) => {
|
|
667
667
|
O({
|
|
668
668
|
...i,
|
|
669
|
-
ogImage:
|
|
670
|
-
ogImageId:
|
|
669
|
+
ogImage: t.url,
|
|
670
|
+
ogImageId: t.id
|
|
671
671
|
});
|
|
672
672
|
},
|
|
673
673
|
disabled: x || !d,
|
|
@@ -677,25 +677,15 @@ const Qe = ({
|
|
|
677
677
|
)
|
|
678
678
|
] }),
|
|
679
679
|
/* @__PURE__ */ o("div", { className: "space-y-1", children: [
|
|
680
|
-
/* @__PURE__ */
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
P,
|
|
684
|
-
{
|
|
685
|
-
keyword: i.keyword,
|
|
686
|
-
onComplete: F("metaOther"),
|
|
687
|
-
field: "metaOther"
|
|
688
|
-
}
|
|
689
|
-
) })
|
|
690
|
-
] }),
|
|
691
|
-
/* @__PURE__ */ t(
|
|
692
|
-
te,
|
|
680
|
+
/* @__PURE__ */ s("div", { className: "flex items-center justify-between", children: /* @__PURE__ */ s(S, { className: "text-xs", htmlFor: "metaOther", children: e("Meta Tags") }) }),
|
|
681
|
+
/* @__PURE__ */ s(
|
|
682
|
+
se,
|
|
693
683
|
{
|
|
694
684
|
id: "metaOther",
|
|
695
685
|
value: i.metaOther,
|
|
696
|
-
onChange: (
|
|
686
|
+
onChange: (t) => {
|
|
697
687
|
N({
|
|
698
|
-
target: { name: "metaOther", value:
|
|
688
|
+
target: { name: "metaOther", value: t }
|
|
699
689
|
});
|
|
700
690
|
},
|
|
701
691
|
placeholder: e("Enter Meta Tags JSON"),
|
|
@@ -709,19 +699,19 @@ const Qe = ({
|
|
|
709
699
|
] })
|
|
710
700
|
] })
|
|
711
701
|
] }) }) }),
|
|
712
|
-
/* @__PURE__ */
|
|
702
|
+
/* @__PURE__ */ s("div", { className: p === "jsonld" ? "" : "sr-only", children: /* @__PURE__ */ s("div", { className: "space-y-4", children: /* @__PURE__ */ o("div", { className: "space-y-1", children: [
|
|
713
703
|
/* @__PURE__ */ o("div", { className: "flex items-center justify-between", children: [
|
|
714
|
-
/* @__PURE__ */
|
|
715
|
-
X && /* @__PURE__ */
|
|
704
|
+
/* @__PURE__ */ s(S, { className: "text-xs", htmlFor: "jsonLD", children: e("JSON-LD") }),
|
|
705
|
+
X && /* @__PURE__ */ s("div", { className: "flex items-center gap-2", children: /* @__PURE__ */ s(B, { keyword: i.keyword, onComplete: R("jsonLD"), field: "jsonLD" }) })
|
|
716
706
|
] }),
|
|
717
|
-
/* @__PURE__ */
|
|
718
|
-
/* @__PURE__ */
|
|
719
|
-
|
|
707
|
+
/* @__PURE__ */ s("div", { className: "hidden", children: JSON.stringify(a) }),
|
|
708
|
+
/* @__PURE__ */ s(
|
|
709
|
+
se,
|
|
720
710
|
{
|
|
721
711
|
id: "jsonLD",
|
|
722
712
|
value: i.jsonLD,
|
|
723
|
-
onChange: (
|
|
724
|
-
N({ target: { name: "jsonLD", value:
|
|
713
|
+
onChange: (t) => {
|
|
714
|
+
N({ target: { name: "jsonLD", value: t } });
|
|
725
715
|
},
|
|
726
716
|
placeholder: e("Enter JSON-LD"),
|
|
727
717
|
disabled: x || !d,
|
|
@@ -737,8 +727,8 @@ const Qe = ({
|
|
|
737
727
|
] }) })
|
|
738
728
|
] }),
|
|
739
729
|
d && /* @__PURE__ */ o("div", { className: "fixed bottom-0 left-0 right-0 flex w-full flex-shrink-0 items-center justify-between border-t bg-background p-4", children: [
|
|
740
|
-
me ? /* @__PURE__ */
|
|
741
|
-
|
|
730
|
+
me ? /* @__PURE__ */ s(
|
|
731
|
+
J,
|
|
742
732
|
{
|
|
743
733
|
type: "button",
|
|
744
734
|
variant: "ghost",
|
|
@@ -749,18 +739,18 @@ const Qe = ({
|
|
|
749
739
|
disabled: x || !d || !I,
|
|
750
740
|
children: e(Q ? "Resetting..." : `Reset to ${p === "jsonld" ? "Default JSON-LD" : p === "opengraph" ? "Default Open Graph" : "Default SEO"}`)
|
|
751
741
|
}
|
|
752
|
-
) : /* @__PURE__ */
|
|
742
|
+
) : /* @__PURE__ */ s("div", {}),
|
|
753
743
|
/* @__PURE__ */ o("div", { className: "flex items-center gap-4", children: [
|
|
754
|
-
/* @__PURE__ */
|
|
755
|
-
|
|
744
|
+
/* @__PURE__ */ s(
|
|
745
|
+
J,
|
|
756
746
|
{
|
|
757
747
|
onClick: Z,
|
|
758
748
|
disabled: !Ye(i == null ? void 0 : i.jsonLD) || (C.current[f] ? ne(C.current[f], i) : !1) || x || !d,
|
|
759
749
|
children: e(G ? "Saving..." : "Save")
|
|
760
750
|
}
|
|
761
751
|
),
|
|
762
|
-
/* @__PURE__ */
|
|
763
|
-
|
|
752
|
+
/* @__PURE__ */ s(
|
|
753
|
+
J,
|
|
764
754
|
{
|
|
765
755
|
variant: "link",
|
|
766
756
|
className: "text-gray-500 hover:text-gray-700",
|
|
@@ -770,7 +760,7 @@ const Qe = ({
|
|
|
770
760
|
)
|
|
771
761
|
] })
|
|
772
762
|
] }),
|
|
773
|
-
/* @__PURE__ */
|
|
763
|
+
/* @__PURE__ */ s(
|
|
774
764
|
Qe,
|
|
775
765
|
{
|
|
776
766
|
isOpen: ie,
|
|
@@ -782,8 +772,8 @@ const Qe = ({
|
|
|
782
772
|
},
|
|
783
773
|
onDiscard: () => {
|
|
784
774
|
if (D) {
|
|
785
|
-
const
|
|
786
|
-
|
|
775
|
+
const t = C.current[f];
|
|
776
|
+
t && O(t), D.switchHandler(), _(!1), V(null);
|
|
787
777
|
}
|
|
788
778
|
},
|
|
789
779
|
isSaving: G,
|