@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 theme color.
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(FormControl, { id: "allowReplies", className: "d-flex gap-8 mt-16 mb-8", children: [
147
- /* @__PURE__ */ jsx(FormControl.Input, { type: "checkbox", defaultChecked: isUpdating ? resource.allowReplies : !0, ...register("allowReplies"), className: "form-check-input mt-0", size: "sm" }),
148
- /* @__PURE__ */ jsx(FormControl.Label, { className: "form-check-label mb-0", children: t("explorer.resource.editModal.comments.allowReplies") })
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 FormControl from "../../../../components/Form/FormControl.js";
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__ */ jsxs(FormControl, { id: "flexSwitchCheckDefault", className: "form-switch d-flex gap-8 mt-16 mb-8", children: [
38
- /* @__PURE__ */ jsx(FormControl.Input, { type: "checkbox", role: "switch", defaultChecked: isUpdating ? resource.public : !1, ...register("enablePublic", {
39
- disabled: !resourceName,
40
- onChange: (event) => {
41
- const checked = event.target.checked;
42
- onPublicChange(checked);
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(FormControl, { id: "formSlug", children: /* @__PURE__ */ jsx(Input, { type: "text", hidden: !0, defaultValue: isUpdating ? slug : "", ...register("formSlug"), size: "sm" }) }, slug),
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.10",
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/bootstrap": "2.6.10",
144
- "@edifice.io/utilities": "2.6.10",
145
- "@edifice.io/tiptap-extensions": "2.6.10"
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.10",
177
- "@edifice.io/config": "2.6.10"
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",