camox 0.16.1 → 0.17.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.
@@ -8,6 +8,7 @@ import * as React from "react";
8
8
  import { Fragment, jsx, jsxs } from "react/jsx-runtime";
9
9
  import { LexicalComposer } from "@lexical/react/LexicalComposer";
10
10
  import { useLexicalComposerContext } from "@lexical/react/LexicalComposerContext";
11
+ import { HistoryPlugin } from "@lexical/react/LexicalHistoryPlugin";
11
12
  import { OnChangePlugin } from "@lexical/react/LexicalOnChangePlugin";
12
13
  import { RichTextPlugin } from "@lexical/react/LexicalRichTextPlugin";
13
14
  import { COMMAND_PRIORITY_LOW, INSERT_LINE_BREAK_COMMAND, KEY_ENTER_COMMAND, KEY_ESCAPE_COMMAND } from "lexical";
@@ -15,9 +16,9 @@ import { COMMAND_PRIORITY_LOW, INSERT_LINE_BREAK_COMMAND, KEY_ENTER_COMMAND, KEY
15
16
  //#region src/core/components/lexical/InlineLexicalEditor.tsx
16
17
  function ExternalStateSync(t0) {
17
18
  const $ = c(8);
18
- if ($[0] !== "501972792dc9ac4710accbc9f8bc483460af3c973ab4f8c292c292dcf4408e7e") {
19
+ if ($[0] !== "435680a4713929aba824818ce88b5223b6bc9c695f9ef76328babca1fa1431e0") {
19
20
  for (let $i = 0; $i < 8; $i += 1) $[$i] = Symbol.for("react.memo_cache_sentinel");
20
- $[0] = "501972792dc9ac4710accbc9f8bc483460af3c973ab4f8c292c292dcf4408e7e";
21
+ $[0] = "435680a4713929aba824818ce88b5223b6bc9c695f9ef76328babca1fa1431e0";
21
22
  }
22
23
  const { externalState } = t0;
23
24
  const [editor] = useLexicalComposerContext();
@@ -74,9 +75,9 @@ function ExternalStateSync(t0) {
74
75
  }
75
76
  function EscapeHandler() {
76
77
  const $ = c(4);
77
- if ($[0] !== "501972792dc9ac4710accbc9f8bc483460af3c973ab4f8c292c292dcf4408e7e") {
78
+ if ($[0] !== "435680a4713929aba824818ce88b5223b6bc9c695f9ef76328babca1fa1431e0") {
78
79
  for (let $i = 0; $i < 4; $i += 1) $[$i] = Symbol.for("react.memo_cache_sentinel");
79
- $[0] = "501972792dc9ac4710accbc9f8bc483460af3c973ab4f8c292c292dcf4408e7e";
80
+ $[0] = "435680a4713929aba824818ce88b5223b6bc9c695f9ef76328babca1fa1431e0";
80
81
  }
81
82
  const [editor] = useLexicalComposerContext();
82
83
  let t0;
@@ -99,9 +100,9 @@ function EscapeHandler() {
99
100
  }
100
101
  function EnterAsLineBreakHandler() {
101
102
  const $ = c(4);
102
- if ($[0] !== "501972792dc9ac4710accbc9f8bc483460af3c973ab4f8c292c292dcf4408e7e") {
103
+ if ($[0] !== "435680a4713929aba824818ce88b5223b6bc9c695f9ef76328babca1fa1431e0") {
103
104
  for (let $i = 0; $i < 4; $i += 1) $[$i] = Symbol.for("react.memo_cache_sentinel");
104
- $[0] = "501972792dc9ac4710accbc9f8bc483460af3c973ab4f8c292c292dcf4408e7e";
105
+ $[0] = "435680a4713929aba824818ce88b5223b6bc9c695f9ef76328babca1fa1431e0";
105
106
  }
106
107
  const [editor] = useLexicalComposerContext();
107
108
  let t0;
@@ -125,9 +126,9 @@ function EnterAsLineBreakHandler() {
125
126
  }
126
127
  function FocusBlurHandler(t0) {
127
128
  const $ = c(6);
128
- if ($[0] !== "501972792dc9ac4710accbc9f8bc483460af3c973ab4f8c292c292dcf4408e7e") {
129
+ if ($[0] !== "435680a4713929aba824818ce88b5223b6bc9c695f9ef76328babca1fa1431e0") {
129
130
  for (let $i = 0; $i < 6; $i += 1) $[$i] = Symbol.for("react.memo_cache_sentinel");
130
- $[0] = "501972792dc9ac4710accbc9f8bc483460af3c973ab4f8c292c292dcf4408e7e";
131
+ $[0] = "435680a4713929aba824818ce88b5223b6bc9c695f9ef76328babca1fa1431e0";
131
132
  }
132
133
  const { onFocus, onBlur } = t0;
133
134
  const [editor] = useLexicalComposerContext();
@@ -193,6 +194,7 @@ function InlineLexicalEditor({ initialState, externalState, onChange, onFocus, o
193
194
  ErrorBoundary: LexicalErrorBoundary
194
195
  }),
195
196
  /* @__PURE__ */ jsx(OnChangePlugin, { onChange: handleChange }),
197
+ /* @__PURE__ */ jsx(HistoryPlugin, {}),
196
198
  /* @__PURE__ */ jsx(ExternalStateSync, { externalState }),
197
199
  /* @__PURE__ */ jsx(EscapeHandler, {}),
198
200
  /* @__PURE__ */ jsx(EnterAsLineBreakHandler, {}),
@@ -206,9 +208,9 @@ function InlineLexicalEditor({ initialState, externalState, onChange, onFocus, o
206
208
  }
207
209
  function LexicalErrorBoundary(t0) {
208
210
  const $ = c(3);
209
- if ($[0] !== "501972792dc9ac4710accbc9f8bc483460af3c973ab4f8c292c292dcf4408e7e") {
211
+ if ($[0] !== "435680a4713929aba824818ce88b5223b6bc9c695f9ef76328babca1fa1431e0") {
210
212
  for (let $i = 0; $i < 3; $i += 1) $[$i] = Symbol.for("react.memo_cache_sentinel");
211
- $[0] = "501972792dc9ac4710accbc9f8bc483460af3c973ab4f8c292c292dcf4408e7e";
213
+ $[0] = "435680a4713929aba824818ce88b5223b6bc9c695f9ef76328babca1fa1431e0";
212
214
  }
213
215
  const { children } = t0;
214
216
  let t1;
@@ -6,6 +6,7 @@ import * as React from "react";
6
6
  import { Fragment, jsx, jsxs } from "react/jsx-runtime";
7
7
  import { LexicalComposer } from "@lexical/react/LexicalComposer";
8
8
  import { useLexicalComposerContext } from "@lexical/react/LexicalComposerContext";
9
+ import { HistoryPlugin } from "@lexical/react/LexicalHistoryPlugin";
9
10
  import { OnChangePlugin } from "@lexical/react/LexicalOnChangePlugin";
10
11
  import { RichTextPlugin } from "@lexical/react/LexicalRichTextPlugin";
11
12
  import { COMMAND_PRIORITY_LOW, INSERT_LINE_BREAK_COMMAND, KEY_ENTER_COMMAND } from "lexical";
@@ -14,9 +15,9 @@ import { ContentEditable } from "@lexical/react/LexicalContentEditable";
14
15
  //#region src/core/components/lexical/SidebarLexicalEditor.tsx
15
16
  function EnterAsLineBreakHandler() {
16
17
  const $ = c(4);
17
- if ($[0] !== "88f4e45c0dd3fbedb327bd420bf55680acba533a2c5c538f49f6920a8e97fd83") {
18
+ if ($[0] !== "9a1f0240935b013c9ac987c70099d7838c89696e79ef991f24c440416afce1d4") {
18
19
  for (let $i = 0; $i < 4; $i += 1) $[$i] = Symbol.for("react.memo_cache_sentinel");
19
- $[0] = "88f4e45c0dd3fbedb327bd420bf55680acba533a2c5c538f49f6920a8e97fd83";
20
+ $[0] = "9a1f0240935b013c9ac987c70099d7838c89696e79ef991f24c440416afce1d4";
20
21
  }
21
22
  const [editor] = useLexicalComposerContext();
22
23
  let t0;
@@ -40,9 +41,9 @@ function EnterAsLineBreakHandler() {
40
41
  }
41
42
  function ExternalStateSync(t0) {
42
43
  const $ = c(6);
43
- if ($[0] !== "88f4e45c0dd3fbedb327bd420bf55680acba533a2c5c538f49f6920a8e97fd83") {
44
+ if ($[0] !== "9a1f0240935b013c9ac987c70099d7838c89696e79ef991f24c440416afce1d4") {
44
45
  for (let $i = 0; $i < 6; $i += 1) $[$i] = Symbol.for("react.memo_cache_sentinel");
45
- $[0] = "88f4e45c0dd3fbedb327bd420bf55680acba533a2c5c538f49f6920a8e97fd83";
46
+ $[0] = "9a1f0240935b013c9ac987c70099d7838c89696e79ef991f24c440416afce1d4";
46
47
  }
47
48
  const { value, isSyncingRef } = t0;
48
49
  const [editor] = useLexicalComposerContext();
@@ -110,6 +111,7 @@ function SidebarLexicalEditor({ id, value, onChange, onFocus, onBlur }) {
110
111
  ErrorBoundary: LexicalErrorBoundary
111
112
  }),
112
113
  /* @__PURE__ */ jsx(OnChangePlugin, { onChange: handleChange }),
114
+ /* @__PURE__ */ jsx(HistoryPlugin, {}),
113
115
  /* @__PURE__ */ jsx(ExternalStateSync, {
114
116
  value,
115
117
  isSyncingRef
@@ -120,9 +122,9 @@ function SidebarLexicalEditor({ id, value, onChange, onFocus, onBlur }) {
120
122
  }
121
123
  function LexicalErrorBoundary(t0) {
122
124
  const $ = c(3);
123
- if ($[0] !== "88f4e45c0dd3fbedb327bd420bf55680acba533a2c5c538f49f6920a8e97fd83") {
125
+ if ($[0] !== "9a1f0240935b013c9ac987c70099d7838c89696e79ef991f24c440416afce1d4") {
124
126
  for (let $i = 0; $i < 3; $i += 1) $[$i] = Symbol.for("react.memo_cache_sentinel");
125
- $[0] = "88f4e45c0dd3fbedb327bd420bf55680acba533a2c5c538f49f6920a8e97fd83";
127
+ $[0] = "9a1f0240935b013c9ac987c70099d7838c89696e79ef991f24c440416afce1d4";
126
128
  }
127
129
  const { children } = t0;
128
130
  let t1;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "camox",
3
- "version": "0.16.1",
3
+ "version": "0.17.0",
4
4
  "bin": {
5
5
  "camox": "./bin/camox.mjs"
6
6
  },
@@ -98,9 +98,9 @@
98
98
  "react-og-preview": "^0.2.0",
99
99
  "shiki": "^4.0.2",
100
100
  "zod": "^4.3.6",
101
- "@camox/cli": "0.16.1",
102
- "@camox/api-contract": "0.16.1",
103
- "@camox/ui": "0.16.1"
101
+ "@camox/api-contract": "0.17.0",
102
+ "@camox/ui": "0.17.0",
103
+ "@camox/cli": "0.17.0"
104
104
  },
105
105
  "devDependencies": {
106
106
  "@babel/core": "^7.29.0",