@plitzi/sdk-elements 0.36.1 → 0.37.0
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/CHANGELOG.md +80 -0
- package/dist/Element/ElementParentContext.d.ts +13 -0
- package/dist/Element/ElementParentContext.mjs +6 -0
- package/dist/Element/LayoutBody.d.ts +21 -0
- package/dist/Element/LayoutBody.mjs +24 -0
- package/dist/Element/hocs/withElement.mjs +104 -87
- package/dist/Element/hooks/useElementDataSource.mjs +1 -1
- package/dist/Element/hooks/useElementInternal.mjs +24 -24
- package/dist/Element/hooks/useInternalItems.mjs +42 -39
- package/dist/Element/hooks/useLayoutChain.d.ts +10 -0
- package/dist/Element/hooks/useLayoutChain.mjs +20 -0
- package/dist/Element/hooks/useRootElementInteractions.mjs +45 -44
- package/dist/dataSource/GlobalSources.mjs +60 -59
- package/dist/dataSource/pathFields.d.ts +7 -0
- package/dist/dataSource/pathFields.mjs +8 -0
- package/dist/elements/advanced/Custom/declaration.d.ts +7 -9
- package/dist/elements/advanced/Custom/index.d.ts +1 -7
- package/dist/elements/advanced/Reference/Reference.mjs +93 -89
- package/dist/elements/advanced/Reference/declaration.d.ts +1 -1
- package/dist/elements/advanced/Reference/index.d.ts +1 -1
- package/dist/elements/basic/Button/Button.d.ts +9 -1
- package/dist/elements/basic/Button/Button.mjs +19 -20
- package/dist/elements/basic/Button/Settings.d.ts +2 -1
- package/dist/elements/basic/Button/Settings.mjs +13 -6
- package/dist/elements/basic/Button/declaration.d.ts +1 -0
- package/dist/elements/basic/Button/index.d.ts +1 -0
- package/dist/elements/declarations/index.d.ts +6 -9
- package/dist/elements/form/FormControl/declaration.d.ts +2 -0
- package/dist/elements/internal/LayoutContainer/LayoutContainer.d.ts +6 -0
- package/dist/elements/internal/LayoutContainer/LayoutContainer.mjs +31 -23
- package/dist/elements/internal/LayoutContainer/Settings.d.ts +4 -1
- package/dist/elements/internal/LayoutContainer/Settings.mjs +78 -64
- package/dist/elements/internal/LayoutContainer/declaration.d.ts +2 -0
- package/dist/elements/internal/LayoutContainer/index.d.ts +2 -0
- package/dist/elements/internal/LayoutPicker/LayoutPicker.d.ts +10 -0
- package/dist/elements/internal/LayoutPicker/LayoutPicker.mjs +35 -0
- package/dist/elements/internal/LayoutPicker/index.d.ts +3 -0
- package/dist/elements/internal/LayoutPicker/index.mjs +5 -0
- package/dist/elements/internal/Page/Page.mjs +49 -48
- package/dist/elements/internal/Page/Settings.mjs +101 -119
- package/dist/elements/provider/ApiContainer/ApiContainer.mjs +58 -66
- package/dist/elements/provider/ApiContainer/declaration.mjs +1 -1
- package/dist/elements/provider/ApiContainer/hooks/useApi.d.ts +8 -0
- package/dist/elements/provider/ApiContainer/hooks/useApi.mjs +52 -48
- package/dist/elements/structure/Container/Container.d.ts +1 -1
- package/dist/elements/structure/Container/Settings.d.ts +1 -1
- package/dist/elements/structure/Container/Settings.mjs +4 -0
- package/dist/elements/structure/Container/declaration.d.ts +1 -1
- package/dist/elements/structure/Container/index.d.ts +1 -1
- package/dist/elements/structure/DialogContainer/DialogContainer.mjs +17 -25
- package/dist/elements/structure/ModalContainer/ModalContainer.mjs +15 -23
- package/dist/index.d.ts +6 -9
- package/package.json +38 -10
|
@@ -1,31 +1,36 @@
|
|
|
1
|
-
import e from "../../../Element/
|
|
2
|
-
import t from "../../../Element/
|
|
3
|
-
import
|
|
4
|
-
import r from "
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import {
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import {
|
|
1
|
+
import e from "../../../Element/LayoutBody.mjs";
|
|
2
|
+
import t from "../../../Element/hocs/withElement.mjs";
|
|
3
|
+
import n from "../../../Element/hooks/useElement.mjs";
|
|
4
|
+
import { RootElement as r } from "../../../Element/RootElement.mjs";
|
|
5
|
+
import i from "../LayoutContainer/index.mjs";
|
|
6
|
+
import a from "../../../Element/hooks/useLayoutChain.mjs";
|
|
7
|
+
import { use as o, useEffect as s, useMemo as c } from "react";
|
|
8
|
+
import l from "@plitzi/sdk-shared/hooks/usePlitziServiceContext";
|
|
9
|
+
import { useSdkStore as u } from "@plitzi/sdk-shared/store";
|
|
10
|
+
import { jsx as d, jsxs as f } from "react/jsx-runtime";
|
|
11
|
+
import p from "clsx";
|
|
12
|
+
import { Helmet as m } from "@dr.pogodin/react-helmet";
|
|
11
13
|
//#region src/elements/internal/Page/Page.tsx
|
|
12
|
-
var
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
14
|
+
var h = (e) => e.map((e) => ({
|
|
15
|
+
...e,
|
|
16
|
+
plitziElementLayout: {
|
|
17
|
+
containerId: e.slot,
|
|
18
|
+
rootId: e.slot,
|
|
19
|
+
type: "layout"
|
|
20
|
+
}
|
|
21
|
+
})), g = (t, n, r) => t.reduce((t, { layout: r, slot: a, plitziElementLayout: o }) => /* @__PURE__ */ d(e, {
|
|
22
|
+
body: t,
|
|
23
|
+
children: /* @__PURE__ */ d(i, { internalProps: {
|
|
24
|
+
id: r,
|
|
25
|
+
rootId: n,
|
|
26
|
+
plitziElementLayout: o
|
|
27
|
+
} })
|
|
28
|
+
}, a), r), _ = ({ ref: e, seoEnabled: t = !1, seoPageTitle: i = "Title", seoPageDescription: _ = "Description", className: v = "", layout: y = "", layoutContainer: b = "", children: x }) => {
|
|
29
|
+
let { id: S } = n(), { settings: { previewMode: C }, contexts: { InteractionsContext: w } } = l(), { interactionsManager: T } = o(w), [[E, D]] = u(["navigation.routeParams", "navigation.queryParams"]), O = a(y, b), k = c(() => h(O), [O]), A = c(() => g(k, S, x), [
|
|
30
|
+
k,
|
|
31
|
+
S,
|
|
32
|
+
x
|
|
33
|
+
]), j = c(() => ({ onPageLoad: {
|
|
29
34
|
action: "onPageLoad",
|
|
30
35
|
title: "On Page Load",
|
|
31
36
|
type: "trigger",
|
|
@@ -36,35 +41,31 @@ var p = ({ ref: e, seoEnabled: p = !1, seoPageTitle: m = "Title", seoPageDescrip
|
|
|
36
41
|
queryParams: ""
|
|
37
42
|
}
|
|
38
43
|
} }), []);
|
|
39
|
-
return
|
|
44
|
+
return s(() => {
|
|
40
45
|
let e = !1;
|
|
41
46
|
return queueMicrotask(() => {
|
|
42
|
-
e ||
|
|
43
|
-
pageId:
|
|
44
|
-
routeParams:
|
|
45
|
-
queryParams:
|
|
47
|
+
e || T.interactionTrigger(S, "onPageLoad", {
|
|
48
|
+
pageId: S,
|
|
49
|
+
routeParams: E,
|
|
50
|
+
queryParams: D
|
|
46
51
|
});
|
|
47
52
|
}), () => {
|
|
48
53
|
e = !0;
|
|
49
54
|
};
|
|
50
55
|
}, [
|
|
51
|
-
|
|
52
|
-
C,
|
|
56
|
+
S,
|
|
53
57
|
T,
|
|
54
|
-
|
|
55
|
-
|
|
58
|
+
D,
|
|
59
|
+
E
|
|
60
|
+
]), /* @__PURE__ */ f(r, {
|
|
56
61
|
ref: e,
|
|
57
|
-
className:
|
|
58
|
-
interactionTriggers:
|
|
59
|
-
children: [
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
})] }),
|
|
64
|
-
_ && /* @__PURE__ */ l(r, { internalProps: E }, v || _),
|
|
65
|
-
!_ && y
|
|
66
|
-
]
|
|
62
|
+
className: p("plitzi-component__page", v),
|
|
63
|
+
interactionTriggers: j,
|
|
64
|
+
children: [t && C && /* @__PURE__ */ f(m, { children: [!!i && /* @__PURE__ */ d("title", { children: i }), !!_ && /* @__PURE__ */ d("meta", {
|
|
65
|
+
name: "description",
|
|
66
|
+
content: _
|
|
67
|
+
})] }), A]
|
|
67
68
|
});
|
|
68
|
-
},
|
|
69
|
+
}, v = t(_);
|
|
69
70
|
//#endregion
|
|
70
|
-
export {
|
|
71
|
+
export { _ as Page, v as default };
|
|
@@ -1,228 +1,210 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import l from "@plitzi/
|
|
7
|
-
import u from "@plitzi/plitzi-ui/
|
|
8
|
-
import d from "@plitzi/plitzi-ui/
|
|
9
|
-
import f from "@plitzi/plitzi-ui/
|
|
10
|
-
import p from "@plitzi/plitzi-ui/
|
|
11
|
-
import m from "@plitzi/plitzi-ui/
|
|
1
|
+
import e from "../LayoutPicker/index.mjs";
|
|
2
|
+
import { useCallback as t, useMemo as n } from "react";
|
|
3
|
+
import { useCommonStore as r } from "@plitzi/sdk-shared/store";
|
|
4
|
+
import { get as i, pick as a } from "@plitzi/plitzi-ui/helpers";
|
|
5
|
+
import { Fragment as o, jsx as s, jsxs as c } from "react/jsx-runtime";
|
|
6
|
+
import { getPageFullPath as l } from "@plitzi/sdk-navigation/NavigationHelper";
|
|
7
|
+
import u from "@plitzi/plitzi-ui/Alert";
|
|
8
|
+
import d from "@plitzi/plitzi-ui/Checkbox";
|
|
9
|
+
import f from "@plitzi/plitzi-ui/Input";
|
|
10
|
+
import p from "@plitzi/plitzi-ui/TextArea";
|
|
11
|
+
import m from "@plitzi/plitzi-ui/Select";
|
|
12
|
+
import h from "@plitzi/plitzi-ui/Select2";
|
|
12
13
|
//#region src/elements/internal/Page/Settings.tsx
|
|
13
|
-
var
|
|
14
|
-
let [[
|
|
14
|
+
var g = ({ id: g = "", seoEnabled: _ = !1, enabled: v = !0, name: y = "", folder: b = "", seoPageTitle: x = "Title", seoPageDescription: S = "Description", slug: C = "", layout: w = "", layoutContainer: T = "", accessLevel: E = "", unauthorizedBehaviour: D = "", unauthorizedPageRedirect: O = "", onUpdate: k }) => {
|
|
15
|
+
let [[A, j, M]] = r([
|
|
15
16
|
"schema.flat",
|
|
16
17
|
"schema.pages",
|
|
17
18
|
"schema.pageFolders"
|
|
18
|
-
]),
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
]),
|
|
23
|
-
|
|
24
|
-
let t =
|
|
25
|
-
(!
|
|
19
|
+
]), N = n(() => Object.values(a(A, j.filter((e) => e !== g))), [
|
|
20
|
+
A,
|
|
21
|
+
g,
|
|
22
|
+
j
|
|
23
|
+
]), P = t((e) => (t) => k?.(e, t), [k]), F = t((e) => {
|
|
24
|
+
k?.("name", e);
|
|
25
|
+
let t = y.replaceAll(" ", "-").toLowerCase().replaceAll(/([^a-z0-9]+)/gi, "");
|
|
26
|
+
(!C || C === t) && k?.("slug", e.replaceAll(" ", "-").toLowerCase().replaceAll(/([^a-z0-9-]+)/gi, ""));
|
|
26
27
|
}, [
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
]),
|
|
28
|
+
k,
|
|
29
|
+
C,
|
|
30
|
+
y
|
|
31
|
+
]), I = t((e) => {
|
|
31
32
|
if (/^[a-zA-Z0-9:*/_-]+$/gim.test(e) || !e) {
|
|
32
33
|
let t = e.replaceAll("//", "/");
|
|
33
|
-
|
|
34
|
+
k?.("slug", t);
|
|
34
35
|
}
|
|
35
|
-
}, [
|
|
36
|
-
|
|
37
|
-
}, [
|
|
38
|
-
O?.("accessLevel", e), O?.("unauthorizedBehaviour", ""), O?.("unauthorizedPageRedirect", "");
|
|
39
|
-
}, [O]), B = e((e) => O?.("seoEnabled", e.target.checked), [O]), V = e((e) => O?.("enabled", e.target.checked), [O]), H = e((e) => O?.("folder", e?.value ?? ""), [O]), U = t(() => [{
|
|
36
|
+
}, [k]), L = t((e) => {
|
|
37
|
+
k?.("accessLevel", e), k?.("unauthorizedBehaviour", ""), k?.("unauthorizedPageRedirect", "");
|
|
38
|
+
}, [k]), R = t((e) => k?.("seoEnabled", e.target.checked), [k]), z = t((e) => k?.("enabled", e.target.checked), [k]), B = t((e) => k?.("folder", e?.value ?? ""), [k]), V = n(() => [{
|
|
40
39
|
value: "",
|
|
41
40
|
label: "None"
|
|
42
|
-
}, ...
|
|
41
|
+
}, ...M.map(({ id: e, name: t }) => ({
|
|
43
42
|
value: e,
|
|
44
43
|
label: t
|
|
45
|
-
}))], [
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
44
|
+
}))], [M]), H = n(() => l(A, M, g, !0), [
|
|
45
|
+
A,
|
|
46
|
+
M,
|
|
47
|
+
g
|
|
49
48
|
]);
|
|
50
|
-
return /* @__PURE__ */
|
|
49
|
+
return /* @__PURE__ */ c("div", {
|
|
51
50
|
className: "flex flex-col gap-4 py-2",
|
|
52
51
|
children: [
|
|
53
|
-
!
|
|
52
|
+
!v && /* @__PURE__ */ s(u, {
|
|
54
53
|
intent: "info",
|
|
55
54
|
size: "xs",
|
|
56
55
|
solid: !1,
|
|
57
|
-
children: /* @__PURE__ */
|
|
56
|
+
children: /* @__PURE__ */ s("span", {
|
|
58
57
|
className: "text-xs",
|
|
59
58
|
children: "When this option is disable, this page wont be accesible"
|
|
60
59
|
})
|
|
61
60
|
}),
|
|
62
|
-
/* @__PURE__ */
|
|
61
|
+
/* @__PURE__ */ s(d, {
|
|
63
62
|
label: " Page Enabled",
|
|
64
|
-
checked:
|
|
65
|
-
onChange:
|
|
63
|
+
checked: v,
|
|
64
|
+
onChange: z,
|
|
66
65
|
size: "xs"
|
|
67
66
|
}),
|
|
68
|
-
/* @__PURE__ */
|
|
69
|
-
value:
|
|
67
|
+
/* @__PURE__ */ s(f, {
|
|
68
|
+
value: y,
|
|
70
69
|
label: "Page Name",
|
|
71
|
-
onChange:
|
|
70
|
+
onChange: F,
|
|
72
71
|
size: "xs"
|
|
73
72
|
}),
|
|
74
|
-
/* @__PURE__ */
|
|
73
|
+
/* @__PURE__ */ s(u, {
|
|
75
74
|
intent: "info",
|
|
76
75
|
size: "xs",
|
|
77
76
|
solid: !1,
|
|
78
|
-
children: /* @__PURE__ */
|
|
77
|
+
children: /* @__PURE__ */ s("span", {
|
|
79
78
|
className: "text-xs",
|
|
80
79
|
children: "Slug is a combination of letters, numbers and _ - : / *"
|
|
81
80
|
})
|
|
82
81
|
}),
|
|
83
|
-
/* @__PURE__ */
|
|
82
|
+
/* @__PURE__ */ c("div", {
|
|
84
83
|
className: "flex flex-col",
|
|
85
|
-
children: [/* @__PURE__ */
|
|
86
|
-
value:
|
|
87
|
-
onChange:
|
|
84
|
+
children: [/* @__PURE__ */ s(f, {
|
|
85
|
+
value: C,
|
|
86
|
+
onChange: I,
|
|
88
87
|
label: "Slug / Path",
|
|
89
88
|
className: { inputContainer: "rounded-none rounded-tl rounded-tr" },
|
|
90
89
|
size: "xs"
|
|
91
|
-
}), /* @__PURE__ */
|
|
90
|
+
}), /* @__PURE__ */ c("div", {
|
|
92
91
|
className: "truncate rounded-b border-x border-b border-gray-200 px-1 py-0.5 text-xs",
|
|
93
|
-
title:
|
|
94
|
-
children: ["Full Path: ", /* @__PURE__ */
|
|
92
|
+
title: H,
|
|
93
|
+
children: ["Full Path: ", /* @__PURE__ */ s("span", {
|
|
95
94
|
className: "font-bold",
|
|
96
|
-
children:
|
|
95
|
+
children: H
|
|
97
96
|
})]
|
|
98
97
|
})]
|
|
99
98
|
}),
|
|
100
|
-
/* @__PURE__ */
|
|
99
|
+
/* @__PURE__ */ s(h, {
|
|
101
100
|
label: "Folder",
|
|
102
|
-
value:
|
|
103
|
-
options:
|
|
101
|
+
value: b,
|
|
102
|
+
options: V,
|
|
104
103
|
placeholder: "None",
|
|
105
|
-
onChange:
|
|
104
|
+
onChange: B,
|
|
106
105
|
size: "xs"
|
|
107
106
|
}),
|
|
108
|
-
/* @__PURE__ */
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
onChange: R,
|
|
113
|
-
size: "xs",
|
|
114
|
-
children: M.map(({ id: e, definition: { label: t } }) => /* @__PURE__ */ o("option", {
|
|
115
|
-
value: e,
|
|
116
|
-
children: t
|
|
117
|
-
}, e))
|
|
118
|
-
}),
|
|
119
|
-
C && /* @__PURE__ */ o(p, {
|
|
120
|
-
value: w,
|
|
121
|
-
placeholder: "None",
|
|
122
|
-
label: "Layout Container Body",
|
|
123
|
-
onChange: F("layoutContainer"),
|
|
124
|
-
size: "xs",
|
|
125
|
-
children: N.map(({ id: e, definition: { label: t } }) => /* @__PURE__ */ o("option", {
|
|
126
|
-
value: e,
|
|
127
|
-
children: t
|
|
128
|
-
}, e))
|
|
107
|
+
/* @__PURE__ */ s(e, {
|
|
108
|
+
layout: w,
|
|
109
|
+
layoutContainer: T,
|
|
110
|
+
onUpdate: k
|
|
129
111
|
}),
|
|
130
|
-
/* @__PURE__ */
|
|
131
|
-
value:
|
|
112
|
+
/* @__PURE__ */ c(m, {
|
|
113
|
+
value: E,
|
|
132
114
|
label: "Restrict Access",
|
|
133
|
-
onChange:
|
|
115
|
+
onChange: L,
|
|
134
116
|
placeholder: "None",
|
|
135
117
|
size: "xs",
|
|
136
|
-
children: [/* @__PURE__ */
|
|
118
|
+
children: [/* @__PURE__ */ s("option", {
|
|
137
119
|
value: "public",
|
|
138
120
|
children: "Public"
|
|
139
|
-
}), /* @__PURE__ */
|
|
121
|
+
}), /* @__PURE__ */ s("option", {
|
|
140
122
|
value: "authenticated",
|
|
141
123
|
children: "Authenticated"
|
|
142
124
|
})]
|
|
143
125
|
}),
|
|
144
|
-
|
|
126
|
+
E === "" && /* @__PURE__ */ s(u, {
|
|
145
127
|
intent: "info",
|
|
146
128
|
solid: !1,
|
|
147
129
|
size: "xs",
|
|
148
|
-
children: /* @__PURE__ */
|
|
130
|
+
children: /* @__PURE__ */ s("span", {
|
|
149
131
|
className: "text-xs",
|
|
150
132
|
children: "Anyone on the internet can access this page"
|
|
151
133
|
})
|
|
152
134
|
}),
|
|
153
|
-
|
|
135
|
+
E === "public" && /* @__PURE__ */ s(u, {
|
|
154
136
|
intent: "info",
|
|
155
137
|
solid: !1,
|
|
156
138
|
size: "xs",
|
|
157
|
-
children: /* @__PURE__ */
|
|
139
|
+
children: /* @__PURE__ */ s("span", {
|
|
158
140
|
className: "text-xs",
|
|
159
141
|
children: "Only Guest can access this page"
|
|
160
142
|
})
|
|
161
143
|
}),
|
|
162
|
-
|
|
144
|
+
E !== "" && /* @__PURE__ */ s(m, {
|
|
163
145
|
label: "Unauthorized Behaviour",
|
|
164
|
-
value:
|
|
165
|
-
onChange:
|
|
146
|
+
value: D,
|
|
147
|
+
onChange: P("unauthorizedBehaviour"),
|
|
166
148
|
placeholder: "None",
|
|
167
149
|
size: "xs",
|
|
168
|
-
children: /* @__PURE__ */
|
|
150
|
+
children: /* @__PURE__ */ s("option", {
|
|
169
151
|
value: "redirect",
|
|
170
152
|
children: "Redirect"
|
|
171
153
|
})
|
|
172
154
|
}),
|
|
173
|
-
|
|
174
|
-
value:
|
|
155
|
+
D === "redirect" && /* @__PURE__ */ s(m, {
|
|
156
|
+
value: O,
|
|
175
157
|
label: "Redirect Page",
|
|
176
|
-
onChange:
|
|
158
|
+
onChange: P("unauthorizedPageRedirect"),
|
|
177
159
|
placeholder: "None",
|
|
178
160
|
size: "xs",
|
|
179
|
-
children:
|
|
161
|
+
children: N.map((e) => /* @__PURE__ */ s("option", {
|
|
180
162
|
value: e.id,
|
|
181
|
-
children:
|
|
163
|
+
children: i(e, "attributes.name")
|
|
182
164
|
}, e.id))
|
|
183
165
|
}),
|
|
184
|
-
/* @__PURE__ */
|
|
166
|
+
/* @__PURE__ */ s(d, {
|
|
185
167
|
label: " SEO Enabled",
|
|
186
|
-
checked:
|
|
187
|
-
onChange:
|
|
168
|
+
checked: _,
|
|
169
|
+
onChange: R,
|
|
188
170
|
size: "xs"
|
|
189
171
|
}),
|
|
190
|
-
|
|
191
|
-
/* @__PURE__ */
|
|
192
|
-
value:
|
|
172
|
+
_ && /* @__PURE__ */ c(o, { children: [
|
|
173
|
+
/* @__PURE__ */ s(f, {
|
|
174
|
+
value: x,
|
|
193
175
|
label: "SEO Title",
|
|
194
|
-
onChange:
|
|
176
|
+
onChange: P("seoPageTitle"),
|
|
195
177
|
size: "xs"
|
|
196
178
|
}),
|
|
197
|
-
/* @__PURE__ */
|
|
179
|
+
/* @__PURE__ */ s(p, {
|
|
198
180
|
label: "SEO Description",
|
|
199
|
-
value:
|
|
200
|
-
onChange:
|
|
181
|
+
value: S,
|
|
182
|
+
onChange: P("seoPageDescription"),
|
|
201
183
|
rows: 3,
|
|
202
184
|
size: "xs"
|
|
203
185
|
}),
|
|
204
|
-
/* @__PURE__ */
|
|
186
|
+
/* @__PURE__ */ c("div", {
|
|
205
187
|
className: "flex flex-col",
|
|
206
188
|
children: [
|
|
207
|
-
/* @__PURE__ */
|
|
189
|
+
/* @__PURE__ */ s("p", {
|
|
208
190
|
className: "mb-4 text-xs",
|
|
209
191
|
children: "Specify this page's title and description. You can see how they'll look in search engine results pages (SERPs) in the preview below."
|
|
210
192
|
}),
|
|
211
|
-
/* @__PURE__ */
|
|
212
|
-
/* @__PURE__ */
|
|
193
|
+
/* @__PURE__ */ s("label", { children: "Search Result Preview" }),
|
|
194
|
+
/* @__PURE__ */ c("div", {
|
|
213
195
|
className: "rounded border border-gray-300 px-2 py-1",
|
|
214
196
|
children: [
|
|
215
|
-
/* @__PURE__ */
|
|
197
|
+
/* @__PURE__ */ s("div", {
|
|
216
198
|
className: "mb-1 pt-1 text-xl text-[#1a0dab]",
|
|
217
|
-
children: /* @__PURE__ */
|
|
199
|
+
children: /* @__PURE__ */ s("label", { children: x })
|
|
218
200
|
}),
|
|
219
|
-
/* @__PURE__ */
|
|
201
|
+
/* @__PURE__ */ s("div", {
|
|
220
202
|
className: "text-sm text-[#006621]",
|
|
221
|
-
children: /* @__PURE__ */
|
|
203
|
+
children: /* @__PURE__ */ s("span", { children: "www.url.com" })
|
|
222
204
|
}),
|
|
223
|
-
/* @__PURE__ */
|
|
205
|
+
/* @__PURE__ */ s("div", {
|
|
224
206
|
className: "settings-seo__description mb-1 pt-1 text-sm",
|
|
225
|
-
children: `${
|
|
207
|
+
children: `${S.slice(0, 160)}...`
|
|
226
208
|
})
|
|
227
209
|
]
|
|
228
210
|
})
|
|
@@ -233,4 +215,4 @@ var h = ({ id: h = "", seoEnabled: g = !1, enabled: _ = !0, name: v = "", folder
|
|
|
233
215
|
});
|
|
234
216
|
};
|
|
235
217
|
//#endregion
|
|
236
|
-
export {
|
|
218
|
+
export { g as default };
|