@edifice.io/react 2.6.10 → 2.6.11
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.
|
@@ -9,6 +9,6 @@ export interface UseZendeskGuideAPI {
|
|
|
9
9
|
/**
|
|
10
10
|
* Add Zendesk Guide
|
|
11
11
|
*
|
|
12
|
-
* @param headerColor Overrides the widget panel's
|
|
12
|
+
* @param headerColor Overrides the widget panel's header color.
|
|
13
13
|
*/
|
|
14
14
|
export default function useZendeskGuide(headerColor?: string): UseZendeskGuideAPI;
|
|
@@ -143,9 +143,9 @@ const DEFAULT_INPUT_MAX_LENGTH = 60, DEFAULT_TEXTAREA_MAX_LENGTH = 400, Resource
|
|
|
143
143
|
maxLength: textareaMaxLength
|
|
144
144
|
}), placeholder: ((_f = customT.placeholder) == null ? void 0 : _f.description) ?? t("explorer.resource.editModal.description.placeholder"), size: "md", maxLength: textareaMaxLength, showCounter: !0 })
|
|
145
145
|
] }),
|
|
146
|
-
application === "blog" && hasOptionalCommentRepliesWorkflow === !0 && /* @__PURE__ */ jsxs(
|
|
147
|
-
/* @__PURE__ */ jsx(
|
|
148
|
-
/* @__PURE__ */ jsx(
|
|
146
|
+
application === "blog" && hasOptionalCommentRepliesWorkflow === !0 && /* @__PURE__ */ jsxs("div", { className: "form-check d-flex align-items-center gap-8 mt-16 mb-8", children: [
|
|
147
|
+
/* @__PURE__ */ jsx("input", { id: "allowReplies", type: "checkbox", className: "form-check-input mt-0", defaultChecked: isUpdating ? resource.allowReplies : !0, ...register("allowReplies") }),
|
|
148
|
+
/* @__PURE__ */ jsx("label", { htmlFor: "allowReplies", className: "form-check-label mb-0", children: t("explorer.resource.editModal.comments.allowReplies") })
|
|
149
149
|
] })
|
|
150
150
|
] })
|
|
151
151
|
] }),
|
|
@@ -4,8 +4,7 @@ import SvgIconCopy from "../../../icons/components/IconCopy.js";
|
|
|
4
4
|
import { useSlug } from "../hooks/useSlug.js";
|
|
5
5
|
import Heading from "../../../../components/Heading/Heading.js";
|
|
6
6
|
import Alert from "../../../../components/Alert/Alert.js";
|
|
7
|
-
import
|
|
8
|
-
import Input from "../../../../components/Input/Input.js";
|
|
7
|
+
import Switch from "../../../../components/Switch/Switch.js";
|
|
9
8
|
import Button from "../../../../components/Button/Button.js";
|
|
10
9
|
const BlogPublic = ({
|
|
11
10
|
appCode,
|
|
@@ -34,18 +33,15 @@ const BlogPublic = ({
|
|
|
34
33
|
appCode
|
|
35
34
|
] }),
|
|
36
35
|
/* @__PURE__ */ jsx(Alert, { type: "info", children: t("explorer.resource.editModal.access.alert") }),
|
|
37
|
-
/* @__PURE__ */
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
}), className: "form-check-input mt-0", size: "md" }),
|
|
45
|
-
/* @__PURE__ */ jsx(FormControl.Label, { className: "form-check-label mb-0", children: t("explorer.resource.editModal.access.flexSwitchCheckDefault.label") })
|
|
46
|
-
] }),
|
|
36
|
+
/* @__PURE__ */ jsx(Switch, { id: "flexSwitchCheckDefault", role: "switch", className: "mt-16 mb-8", label: t("explorer.resource.editModal.access.flexSwitchCheckDefault.label"), defaultChecked: isUpdating ? resource.public : !1, ...register("enablePublic", {
|
|
37
|
+
disabled: !resourceName,
|
|
38
|
+
onChange: (event) => {
|
|
39
|
+
const checked = event.target.checked;
|
|
40
|
+
onPublicChange(checked);
|
|
41
|
+
}
|
|
42
|
+
}) }),
|
|
47
43
|
isPublic && /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
48
|
-
/* @__PURE__ */ jsx(
|
|
44
|
+
/* @__PURE__ */ jsx("input", { type: "hidden", defaultValue: isUpdating ? slug : "", ...register("formSlug") }, slug),
|
|
49
45
|
/* @__PURE__ */ jsxs("div", { className: "d-flex flex-wrap align-items-center gap-4", children: [
|
|
50
46
|
/* @__PURE__ */ jsxs("p", { className: "text-break", children: [
|
|
51
47
|
window.location.origin,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@edifice.io/react",
|
|
3
|
-
"version": "2.6.
|
|
3
|
+
"version": "2.6.11",
|
|
4
4
|
"description": "Edifice React Library",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"react",
|
|
@@ -140,9 +140,9 @@
|
|
|
140
140
|
"swiper": "10.1.0",
|
|
141
141
|
"ua-parser-js": "1.0.36",
|
|
142
142
|
"zustand": "4.5.7",
|
|
143
|
-
"@edifice.io/
|
|
144
|
-
"@edifice.io/utilities": "2.6.
|
|
145
|
-
"@edifice.io/
|
|
143
|
+
"@edifice.io/tiptap-extensions": "2.6.11",
|
|
144
|
+
"@edifice.io/utilities": "2.6.11",
|
|
145
|
+
"@edifice.io/bootstrap": "2.6.11"
|
|
146
146
|
},
|
|
147
147
|
"devDependencies": {
|
|
148
148
|
"@babel/plugin-transform-react-pure-annotations": "7.27.1",
|
|
@@ -173,8 +173,8 @@
|
|
|
173
173
|
"vite": "5.4.14",
|
|
174
174
|
"vite-plugin-dts": "4.5.4",
|
|
175
175
|
"vite-tsconfig-paths": "5.1.4",
|
|
176
|
-
"@edifice.io/client": "2.6.
|
|
177
|
-
"@edifice.io/config": "2.6.
|
|
176
|
+
"@edifice.io/client": "2.6.11",
|
|
177
|
+
"@edifice.io/config": "2.6.11"
|
|
178
178
|
},
|
|
179
179
|
"peerDependencies": {
|
|
180
180
|
"@react-spring/web": "9.7.5",
|