@firecms/core 3.0.0-canary.223 → 3.0.0-canary.224

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/index.es.js CHANGED
@@ -21076,7 +21076,7 @@ function buildSideActions({
21076
21076
  ] });
21077
21077
  }
21078
21078
  function EntityJsonPreview(t0) {
21079
- const $ = c(9);
21079
+ const $ = c(6);
21080
21080
  const {
21081
21081
  values
21082
21082
  } = t0;
@@ -21093,55 +21093,16 @@ function EntityJsonPreview(t0) {
21093
21093
  mode
21094
21094
  } = useModeController();
21095
21095
  const preRef = useRef(null);
21096
- let t2;
21097
- if ($[2] === Symbol.for("react.memo_cache_sentinel")) {
21098
- t2 = (e) => {
21099
- if ((e.ctrlKey || e.metaKey) && e.key.toLowerCase() === "a") {
21100
- if (preRef.current) {
21101
- e.preventDefault();
21102
- e.stopPropagation();
21103
- const selection = window.getSelection();
21104
- const range = document.createRange();
21105
- range.selectNodeContents(preRef.current);
21106
- if (selection) {
21107
- selection.removeAllRanges();
21108
- selection.addRange(range);
21109
- }
21110
- }
21111
- }
21112
- };
21113
- $[2] = t2;
21114
- } else {
21115
- t2 = $[2];
21116
- }
21117
- const handleGlobalKeyDown = t2;
21096
+ const t2 = mode === "dark" ? themes.vsDark : themes.github;
21118
21097
  let t3;
21119
- let t4;
21120
- if ($[3] === Symbol.for("react.memo_cache_sentinel")) {
21121
- t3 = () => {
21122
- document.addEventListener("keydown", handleGlobalKeyDown);
21123
- return () => {
21124
- document.removeEventListener("keydown", handleGlobalKeyDown);
21125
- };
21126
- };
21127
- t4 = [handleGlobalKeyDown];
21128
- $[3] = t3;
21129
- $[4] = t4;
21130
- } else {
21131
- t3 = $[3];
21132
- t4 = $[4];
21133
- }
21134
- useEffect(t3, t4);
21135
- const t5 = mode === "dark" ? themes.vsDark : themes.github;
21136
- let t6;
21137
- if ($[5] === Symbol.for("react.memo_cache_sentinel")) {
21138
- t6 = (t72) => {
21098
+ if ($[2] === Symbol.for("react.memo_cache_sentinel")) {
21099
+ t3 = (t42) => {
21139
21100
  const {
21140
21101
  style,
21141
21102
  tokens,
21142
21103
  getLineProps,
21143
21104
  getTokenProps
21144
- } = t72;
21105
+ } = t42;
21145
21106
  return /* @__PURE__ */ jsx("pre", { ref: preRef, style: {
21146
21107
  ...style,
21147
21108
  backgroundColor: "inherit"
@@ -21151,20 +21112,20 @@ function EntityJsonPreview(t0) {
21151
21112
  token
21152
21113
  }), className: "word-break" }, key)) }, i)) });
21153
21114
  };
21154
- $[5] = t6;
21115
+ $[2] = t3;
21155
21116
  } else {
21156
- t6 = $[5];
21117
+ t3 = $[2];
21157
21118
  }
21158
- let t7;
21159
- if ($[6] !== code || $[7] !== t5) {
21160
- t7 = /* @__PURE__ */ jsx(Highlight, { theme: t5, code, language: "json", children: t6 });
21161
- $[6] = code;
21162
- $[7] = t5;
21163
- $[8] = t7;
21119
+ let t4;
21120
+ if ($[3] !== code || $[4] !== t2) {
21121
+ t4 = /* @__PURE__ */ jsx(Highlight, { theme: t2, code, language: "json", children: t3 });
21122
+ $[3] = code;
21123
+ $[4] = t2;
21124
+ $[5] = t4;
21164
21125
  } else {
21165
- t7 = $[8];
21126
+ t4 = $[5];
21166
21127
  }
21167
- return t7;
21128
+ return t4;
21168
21129
  }
21169
21130
  function createFormexStub(values) {
21170
21131
  const errorMessage = "You are in a read-only context. You cannot modify the formex controller.";