@bikdotai/bik-component-library 0.0.840-beta.0 → 0.0.840-tools-beta.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.
Files changed (225) hide show
  1. package/dist/cjs/assets/icons/BigCommerce.svg.js +2 -0
  2. package/dist/cjs/assets/icons/BigCommerce.svg.js.map +1 -0
  3. package/dist/cjs/assets/icons/ShipStation.svg.js +2 -0
  4. package/dist/cjs/assets/icons/ShipStation.svg.js.map +1 -0
  5. package/dist/cjs/components/BikGiftedChat/GiftedChat/GiftedChat.js +1 -1
  6. package/dist/cjs/components/BikGiftedChat/GiftedChat/GiftedChat.js.map +1 -1
  7. package/dist/cjs/components/SearchFilter/index.js +1 -1
  8. package/dist/cjs/components/SearchFilter/index.js.map +1 -1
  9. package/dist/cjs/components/agent-builder/AgentBuilder.js +1 -1
  10. package/dist/cjs/components/agent-builder/AgentBuilder.js.map +1 -1
  11. package/dist/cjs/components/agent-builder/AgentBuilder.styled.js +39 -51
  12. package/dist/cjs/components/agent-builder/AgentBuilder.styled.js.map +1 -1
  13. package/dist/cjs/components/agent-builder/components/AgentBuilderFooter.js +1 -1
  14. package/dist/cjs/components/agent-builder/components/AgentBuilderFooter.js.map +1 -1
  15. package/dist/cjs/components/agent-builder/components/AgentBuilderTopBar.js +1 -1
  16. package/dist/cjs/components/agent-builder/components/AgentBuilderTopBar.js.map +1 -1
  17. package/dist/cjs/components/agent-builder/components/ConfigToolPanel.js +2 -2
  18. package/dist/cjs/components/agent-builder/components/ConfigToolPanel.js.map +1 -1
  19. package/dist/cjs/components/agent-builder/components/CreateSubAgentPanel.js +1 -1
  20. package/dist/cjs/components/agent-builder/components/CreateSubAgentPanel.js.map +1 -1
  21. package/dist/cjs/components/agent-builder/components/DiscardModal.js +1 -1
  22. package/dist/cjs/components/agent-builder/components/DiscardModal.js.map +1 -1
  23. package/dist/cjs/components/agent-builder/components/GoLiveModal.js +1 -1
  24. package/dist/cjs/components/agent-builder/components/GoLiveModal.js.map +1 -1
  25. package/dist/cjs/components/agent-builder/components/MentionEditor.js +1 -1
  26. package/dist/cjs/components/agent-builder/components/MentionEditor.js.map +1 -1
  27. package/dist/cjs/components/agent-builder/components/MentionPicker.js +22 -22
  28. package/dist/cjs/components/agent-builder/components/MentionPicker.js.map +1 -1
  29. package/dist/cjs/components/agent-builder/components/RestApiToolPanel.js +4 -4
  30. package/dist/cjs/components/agent-builder/components/RestApiToolPanel.js.map +1 -1
  31. package/dist/cjs/components/agent-builder/components/SelectableListSection.js +6 -6
  32. package/dist/cjs/components/agent-builder/components/SelectableListSection.js.map +1 -1
  33. package/dist/cjs/components/agent-builder/components/StepSectionHeader.js +1 -1
  34. package/dist/cjs/components/agent-builder/components/StepSectionHeader.js.map +1 -1
  35. package/dist/cjs/components/agent-builder/constants/tools.js +1 -1
  36. package/dist/cjs/components/agent-builder/constants/tools.js.map +1 -1
  37. package/dist/cjs/components/agent-builder/context/AgentBuilderContext.js +1 -1
  38. package/dist/cjs/components/agent-builder/context/AgentBuilderContext.js.map +1 -1
  39. package/dist/cjs/components/agent-builder/steps/Step2WhenItStepsIn.js +1 -3
  40. package/dist/cjs/components/agent-builder/steps/Step2WhenItStepsIn.js.map +1 -1
  41. package/dist/cjs/components/agent-builder/steps/Step3HowItResponds.js +1 -1
  42. package/dist/cjs/components/agent-builder/steps/Step3HowItResponds.js.map +1 -1
  43. package/dist/cjs/components/agent-builder/steps/Step4HandoverRules.js +1 -1
  44. package/dist/cjs/components/agent-builder/steps/Step4HandoverRules.js.map +1 -1
  45. package/dist/cjs/components/agent-builder/utils/mentionSerialization.js +3 -5
  46. package/dist/cjs/components/agent-builder/utils/mentionSerialization.js.map +1 -1
  47. package/dist/cjs/components/agent-builder/utils/sourceIcons.js +1 -1
  48. package/dist/cjs/components/agent-builder/utils/sourceIcons.js.map +1 -1
  49. package/dist/cjs/components/agent-listing/AgentListing.js +1 -1
  50. package/dist/cjs/components/agent-listing/AgentListing.js.map +1 -1
  51. package/dist/cjs/components/agent-listing/AgentTable.js +1 -1
  52. package/dist/cjs/components/agent-listing/AgentTable.js.map +1 -1
  53. package/dist/cjs/components/agent-listing/AgentTableRow.js +1 -1
  54. package/dist/cjs/components/agent-listing/AgentTableRow.js.map +1 -1
  55. package/dist/cjs/components/agent-listing/DeleteAgentModal.js +1 -1
  56. package/dist/cjs/components/agent-listing/DeleteAgentModal.js.map +1 -1
  57. package/dist/cjs/components/analytics-chips-and-dropdowns/AnalyticsChip.js +1 -1
  58. package/dist/cjs/components/analytics-chips-and-dropdowns/AnalyticsChip.js.map +1 -1
  59. package/dist/cjs/components/button/Button.styled.js +0 -1
  60. package/dist/cjs/components/button/Button.styled.js.map +1 -1
  61. package/dist/cjs/components/button/themes.js +11 -11
  62. package/dist/cjs/components/button/themes.js.map +1 -1
  63. package/dist/cjs/components/dashboard-review-popup/DashboardReviewPopUp.js +1 -1
  64. package/dist/cjs/components/dashboard-review-popup/DashboardReviewPopUp.js.map +1 -1
  65. package/dist/cjs/components/dropdown/Dropdown.js +1 -1
  66. package/dist/cjs/components/dropdown/Dropdown.js.map +1 -1
  67. package/dist/cjs/components/dropdown-button/DropdownButton.js +1 -1
  68. package/dist/cjs/components/dropdown-button/DropdownButton.js.map +1 -1
  69. package/dist/cjs/components/input/Input.js +1 -1
  70. package/dist/cjs/components/input/Input.js.map +1 -1
  71. package/dist/cjs/components/multi-level-dropdown/MenuItem.js +1 -1
  72. package/dist/cjs/components/multi-level-dropdown/MenuItem.js.map +1 -1
  73. package/dist/cjs/components/radioButton/RadioButton.js +1 -1
  74. package/dist/cjs/components/radioButton/RadioButton.js.map +1 -1
  75. package/dist/cjs/components/radioList/RadioList.js +1 -1
  76. package/dist/cjs/components/radioList/RadioList.js.map +1 -1
  77. package/dist/cjs/components/searchBar/searchBar.js +1 -1
  78. package/dist/cjs/components/searchBar/searchBar.js.map +1 -1
  79. package/dist/cjs/components/side-modal/SideModal.js +1 -1
  80. package/dist/cjs/components/side-modal/SideModal.js.map +1 -1
  81. package/dist/cjs/components/star-rating/Star.js +1 -1
  82. package/dist/cjs/components/star-rating/Star.js.map +1 -1
  83. package/dist/cjs/components/star-rating/StarRating.js +2 -2
  84. package/dist/cjs/components/star-rating/StarRating.js.map +1 -1
  85. package/dist/cjs/components/template-preview/TemplatePreview.js +1 -1
  86. package/dist/cjs/components/template-preview/TemplatePreview.js.map +1 -1
  87. package/dist/cjs/components/thumbnail/Thumbnail.js +1 -1
  88. package/dist/cjs/components/thumbnail/Thumbnail.js.map +1 -1
  89. package/dist/cjs/components/zeroState/ZeroState.js +3 -3
  90. package/dist/cjs/components/zeroState/ZeroState.js.map +1 -1
  91. package/dist/cjs/editor/BikEditor.js +1 -1
  92. package/dist/cjs/editor/BikEditor.js.map +1 -1
  93. package/dist/cjs/editor/BikEditor.styles.js +54 -97
  94. package/dist/cjs/editor/BikEditor.styles.js.map +1 -1
  95. package/dist/cjs/editor/extensions/jsonHighlight/JsonHighlightExtension.js +3 -3
  96. package/dist/cjs/editor/extensions/jsonHighlight/JsonHighlightExtension.js.map +1 -1
  97. package/dist/cjs/icons/index.js +1 -1
  98. package/dist/esm/assets/icons/BigCommerce.svg.js +6 -0
  99. package/dist/esm/assets/icons/BigCommerce.svg.js.map +1 -0
  100. package/dist/esm/assets/icons/ShipStation.svg.js +6 -0
  101. package/dist/esm/assets/icons/ShipStation.svg.js.map +1 -0
  102. package/dist/esm/components/BikGiftedChat/GiftedChat/GiftedChat.js +61 -66
  103. package/dist/esm/components/BikGiftedChat/GiftedChat/GiftedChat.js.map +1 -1
  104. package/dist/esm/components/SearchFilter/index.js +10 -11
  105. package/dist/esm/components/SearchFilter/index.js.map +1 -1
  106. package/dist/esm/components/agent-builder/AgentBuilder.js +102 -106
  107. package/dist/esm/components/agent-builder/AgentBuilder.js.map +1 -1
  108. package/dist/esm/components/agent-builder/AgentBuilder.model.d.ts +7 -0
  109. package/dist/esm/components/agent-builder/AgentBuilder.styled.d.ts +6 -3
  110. package/dist/esm/components/agent-builder/AgentBuilder.styled.js +106 -118
  111. package/dist/esm/components/agent-builder/AgentBuilder.styled.js.map +1 -1
  112. package/dist/esm/components/agent-builder/components/AgentBuilderFooter.js +21 -29
  113. package/dist/esm/components/agent-builder/components/AgentBuilderFooter.js.map +1 -1
  114. package/dist/esm/components/agent-builder/components/AgentBuilderTopBar.js +26 -27
  115. package/dist/esm/components/agent-builder/components/AgentBuilderTopBar.js.map +1 -1
  116. package/dist/esm/components/agent-builder/components/ConfigToolPanel.js +25 -25
  117. package/dist/esm/components/agent-builder/components/ConfigToolPanel.js.map +1 -1
  118. package/dist/esm/components/agent-builder/components/CreateSubAgentPanel.js +23 -24
  119. package/dist/esm/components/agent-builder/components/CreateSubAgentPanel.js.map +1 -1
  120. package/dist/esm/components/agent-builder/components/DiscardModal.d.ts +1 -3
  121. package/dist/esm/components/agent-builder/components/DiscardModal.js +24 -33
  122. package/dist/esm/components/agent-builder/components/DiscardModal.js.map +1 -1
  123. package/dist/esm/components/agent-builder/components/GoLiveModal.js +21 -23
  124. package/dist/esm/components/agent-builder/components/GoLiveModal.js.map +1 -1
  125. package/dist/esm/components/agent-builder/components/MentionEditor.js +19 -19
  126. package/dist/esm/components/agent-builder/components/MentionEditor.js.map +1 -1
  127. package/dist/esm/components/agent-builder/components/MentionPicker.js +147 -177
  128. package/dist/esm/components/agent-builder/components/MentionPicker.js.map +1 -1
  129. package/dist/esm/components/agent-builder/components/RestApiToolPanel.d.ts +0 -2
  130. package/dist/esm/components/agent-builder/components/RestApiToolPanel.js +105 -111
  131. package/dist/esm/components/agent-builder/components/RestApiToolPanel.js.map +1 -1
  132. package/dist/esm/components/agent-builder/components/SelectableListSection.d.ts +4 -13
  133. package/dist/esm/components/agent-builder/components/SelectableListSection.js +148 -173
  134. package/dist/esm/components/agent-builder/components/SelectableListSection.js.map +1 -1
  135. package/dist/esm/components/agent-builder/components/StepSectionHeader.js +7 -7
  136. package/dist/esm/components/agent-builder/components/StepSectionHeader.js.map +1 -1
  137. package/dist/esm/components/agent-builder/constants/tools.d.ts +2 -0
  138. package/dist/esm/components/agent-builder/constants/tools.js +22 -17
  139. package/dist/esm/components/agent-builder/constants/tools.js.map +1 -1
  140. package/dist/esm/components/agent-builder/context/AgentBuilderContext.js +103 -104
  141. package/dist/esm/components/agent-builder/context/AgentBuilderContext.js.map +1 -1
  142. package/dist/esm/components/agent-builder/steps/Step2WhenItStepsIn.js +102 -101
  143. package/dist/esm/components/agent-builder/steps/Step2WhenItStepsIn.js.map +1 -1
  144. package/dist/esm/components/agent-builder/steps/Step3HowItResponds.js +142 -144
  145. package/dist/esm/components/agent-builder/steps/Step3HowItResponds.js.map +1 -1
  146. package/dist/esm/components/agent-builder/steps/Step4HandoverRules.js +79 -23
  147. package/dist/esm/components/agent-builder/steps/Step4HandoverRules.js.map +1 -1
  148. package/dist/esm/components/agent-builder/utils/mentionSerialization.js +23 -35
  149. package/dist/esm/components/agent-builder/utils/mentionSerialization.js.map +1 -1
  150. package/dist/esm/components/agent-builder/utils/sourceIcons.js +20 -16
  151. package/dist/esm/components/agent-builder/utils/sourceIcons.js.map +1 -1
  152. package/dist/esm/components/agent-listing/AgentListing.js +65 -70
  153. package/dist/esm/components/agent-listing/AgentListing.js.map +1 -1
  154. package/dist/esm/components/agent-listing/AgentTable.d.ts +0 -2
  155. package/dist/esm/components/agent-listing/AgentTable.js +15 -16
  156. package/dist/esm/components/agent-listing/AgentTable.js.map +1 -1
  157. package/dist/esm/components/agent-listing/AgentTableRow.js +11 -11
  158. package/dist/esm/components/agent-listing/AgentTableRow.js.map +1 -1
  159. package/dist/esm/components/agent-listing/DeleteAgentModal.js +8 -8
  160. package/dist/esm/components/agent-listing/DeleteAgentModal.js.map +1 -1
  161. package/dist/esm/components/analytics-chips-and-dropdowns/AnalyticsChip.js +10 -11
  162. package/dist/esm/components/analytics-chips-and-dropdowns/AnalyticsChip.js.map +1 -1
  163. package/dist/esm/components/button/Button.styled.js +19 -25
  164. package/dist/esm/components/button/Button.styled.js.map +1 -1
  165. package/dist/esm/components/button/themes.d.ts +0 -1
  166. package/dist/esm/components/button/themes.js +51 -61
  167. package/dist/esm/components/button/themes.js.map +1 -1
  168. package/dist/esm/components/dashboard-review-popup/DashboardReviewPopUp.js +21 -28
  169. package/dist/esm/components/dashboard-review-popup/DashboardReviewPopUp.js.map +1 -1
  170. package/dist/esm/components/dropdown/Dropdown.js +13 -18
  171. package/dist/esm/components/dropdown/Dropdown.js.map +1 -1
  172. package/dist/esm/components/dropdown-button/DropdownButton.js +13 -13
  173. package/dist/esm/components/dropdown-button/DropdownButton.js.map +1 -1
  174. package/dist/esm/components/input/Input.js +34 -35
  175. package/dist/esm/components/input/Input.js.map +1 -1
  176. package/dist/esm/components/input/Input.model.d.ts +0 -1
  177. package/dist/esm/components/multi-level-dropdown/MenuItem.js +27 -28
  178. package/dist/esm/components/multi-level-dropdown/MenuItem.js.map +1 -1
  179. package/dist/esm/components/radioButton/RadioButton.js +9 -10
  180. package/dist/esm/components/radioButton/RadioButton.js.map +1 -1
  181. package/dist/esm/components/radioList/RadioList.js +19 -28
  182. package/dist/esm/components/radioList/RadioList.js.map +1 -1
  183. package/dist/esm/components/searchBar/searchBar.js +10 -11
  184. package/dist/esm/components/searchBar/searchBar.js.map +1 -1
  185. package/dist/esm/components/side-modal/SideModal.js +5 -13
  186. package/dist/esm/components/side-modal/SideModal.js.map +1 -1
  187. package/dist/esm/components/star-rating/Star.d.ts +0 -1
  188. package/dist/esm/components/star-rating/Star.js +27 -32
  189. package/dist/esm/components/star-rating/Star.js.map +1 -1
  190. package/dist/esm/components/star-rating/StarRating.js +16 -17
  191. package/dist/esm/components/star-rating/StarRating.js.map +1 -1
  192. package/dist/esm/components/template-preview/TemplatePreview.js +40 -41
  193. package/dist/esm/components/template-preview/TemplatePreview.js.map +1 -1
  194. package/dist/esm/components/thumbnail/Thumbnail.js +3 -3
  195. package/dist/esm/components/thumbnail/Thumbnail.js.map +1 -1
  196. package/dist/esm/components/zeroState/ZeroState.js +13 -20
  197. package/dist/esm/components/zeroState/ZeroState.js.map +1 -1
  198. package/dist/esm/editor/BikEditor.js +160 -173
  199. package/dist/esm/editor/BikEditor.js.map +1 -1
  200. package/dist/esm/editor/BikEditor.styles.d.ts +3 -20
  201. package/dist/esm/editor/BikEditor.styles.js +57 -102
  202. package/dist/esm/editor/BikEditor.styles.js.map +1 -1
  203. package/dist/esm/editor/extensions/jsonHighlight/JsonHighlightExtension.d.ts +8 -5
  204. package/dist/esm/editor/extensions/jsonHighlight/JsonHighlightExtension.js +68 -87
  205. package/dist/esm/editor/extensions/jsonHighlight/JsonHighlightExtension.js.map +1 -1
  206. package/dist/esm/icons/Media/Visual/index.d.ts +0 -2
  207. package/dist/esm/icons/index.d.ts +25 -25
  208. package/dist/esm/icons/index.js +416 -420
  209. package/dist/esm/icons/index.js.map +1 -1
  210. package/package.json +1 -1
  211. package/dist/cjs/components/agent-listing/AgentTableShimmer.js +0 -2
  212. package/dist/cjs/components/agent-listing/AgentTableShimmer.js.map +0 -1
  213. package/dist/cjs/icons/Media/Visual/FormkitNeutral.js +0 -2
  214. package/dist/cjs/icons/Media/Visual/FormkitNeutral.js.map +0 -1
  215. package/dist/cjs/icons/Media/Visual/FormkitSad.js +0 -2
  216. package/dist/cjs/icons/Media/Visual/FormkitSad.js.map +0 -1
  217. package/dist/esm/components/agent-builder/__fixtures__/agentValue.d.ts +0 -11
  218. package/dist/esm/components/agent-listing/AgentTableShimmer.d.ts +0 -12
  219. package/dist/esm/components/agent-listing/AgentTableShimmer.js +0 -20
  220. package/dist/esm/components/agent-listing/AgentTableShimmer.js.map +0 -1
  221. package/dist/esm/components/agent-listing/__fixtures__/agents.d.ts +0 -3
  222. package/dist/esm/icons/Media/Visual/FormkitNeutral.js +0 -58
  223. package/dist/esm/icons/Media/Visual/FormkitNeutral.js.map +0 -1
  224. package/dist/esm/icons/Media/Visual/FormkitSad.js +0 -61
  225. package/dist/esm/icons/Media/Visual/FormkitSad.js.map +0 -1
@@ -1,8 +1,8 @@
1
- import { Extension as p } from "../../../node_modules/@tiptap/core/dist/index.js";
2
- import { Plugin as u, PluginKey as d, TextSelection as h } from "@tiptap/pm/state";
3
- import { Decoration as m, DecorationSet as f } from "@tiptap/pm/view";
4
- import { tokenizeJson as g } from "./tokenizeJson.js";
5
- const k = {
1
+ import { Extension as h } from "../../../node_modules/@tiptap/core/dist/index.js";
2
+ import { Plugin as d, PluginKey as p, TextSelection as m } from "@tiptap/pm/state";
3
+ import { Decoration as u, DecorationSet as g } from "@tiptap/pm/view";
4
+ import { tokenizeJson as k } from "./tokenizeJson.js";
5
+ const y = {
6
6
  key: "bik-json-key",
7
7
  string: "bik-json-string",
8
8
  number: "bik-json-number",
@@ -10,40 +10,11 @@ const k = {
10
10
  null: "bik-json-null",
11
11
  punctuation: "bik-json-punct"
12
12
  };
13
- function b(r) {
14
- return r.trim().length === 0 ? 0 : r.split(`
15
- `).length;
13
+ function f(s) {
14
+ const t = document.createElement("span");
15
+ return t.className = "bik-json-lineno", t.textContent = String(s), t.setAttribute("contenteditable", "false"), t;
16
16
  }
17
- class y {
18
- dom;
19
- contentDOM;
20
- gutter;
21
- constructor(n) {
22
- const t = document.createElement("pre"), e = document.createElement("div");
23
- e.className = "bik-json-gutter", e.contentEditable = "false";
24
- const o = document.createElement("code");
25
- t.appendChild(e), t.appendChild(o), this.dom = t, this.contentDOM = o, this.gutter = e, this.renderGutter(n);
26
- }
27
- renderGutter(n) {
28
- const t = b(n.textContent);
29
- if (this.gutter.childElementCount === t)
30
- return;
31
- const e = [];
32
- for (let o = 1; o <= t; o++) {
33
- const s = document.createElement("span");
34
- s.className = "bik-json-lineno", s.textContent = String(o), e.push(s);
35
- }
36
- this.gutter.replaceChildren(...e);
37
- }
38
- update(n) {
39
- return n.type.name !== "codeBlock" ? !1 : (this.renderGutter(n), !0);
40
- }
41
- // The gutter is ours to manage — never let ProseMirror parse it as content.
42
- ignoreMutation(n) {
43
- return this.gutter === n.target || this.gutter.contains(n.target);
44
- }
45
- }
46
- const E = p.create({
17
+ const w = h.create({
47
18
  name: "jsonHighlight",
48
19
  // Above CodeBlock (default 100) so our Backspace handler runs first and can
49
20
  // veto CodeBlock's own "clearNodes at start" shortcut (which would lift the
@@ -58,15 +29,15 @@ const E = p.create({
58
29
  // deleting a leading `\n` from line 2+) still works — those have
59
30
  // parentOffset > 0.
60
31
  Backspace: () => {
61
- const { selection: r } = this.editor.state, { empty: n, $from: t } = r;
62
- return n && t.parent.type.name === "codeBlock" && t.parentOffset === 0;
32
+ const { selection: s } = this.editor.state, { empty: t, $from: e } = s;
33
+ return t && e.parent.type.name === "codeBlock" && e.parentOffset === 0;
63
34
  }
64
35
  };
65
36
  },
66
37
  addProseMirrorPlugins() {
67
38
  return [
68
- new u({
69
- key: new d("jsonHighlightGuard"),
39
+ new d({
40
+ key: new p("jsonHighlightGuard"),
70
41
  // jsonMode invariant: the whole document is ONE codeBlock. Several
71
42
  // default Backspace paths can lift it to a plain paragraph — and one
72
43
  // of them, TipTap core's `clearDocument` appendTransaction (fired when
@@ -75,70 +46,80 @@ const E = p.create({
75
46
  // A paragraph has no gutter and no monospace rule, so the line numbers
76
47
  // and font vanish. Re-wrap the content back into a codeBlock whenever
77
48
  // something lifts it, restoring the invariant.
78
- appendTransaction(r, n, t) {
79
- if (!r.some((a) => a.docChanged))
49
+ appendTransaction(s, t, e) {
50
+ if (!s.some((a) => a.docChanged))
80
51
  return null;
81
- const { doc: e, schema: o } = t, s = o.nodes.codeBlock;
82
- if (!s || e.childCount === 1 && e.firstChild?.type === s)
52
+ const { doc: r, schema: i } = e, o = i.nodes.codeBlock;
53
+ if (!o || r.childCount === 1 && r.firstChild?.type === o)
83
54
  return null;
84
- let c = !1;
85
- if (e.forEach((a) => {
86
- a.type === s && (c = !0);
87
- }), c)
55
+ let l = !1;
56
+ if (r.forEach((a) => {
57
+ a.type === o && (l = !0);
58
+ }), l)
88
59
  return null;
89
- const l = e.textBetween(0, e.content.size, `
90
- `), i = t.tr;
91
- return i.replaceWith(
60
+ const n = r.textBetween(0, r.content.size, `
61
+ `), c = e.tr;
62
+ return c.replaceWith(
92
63
  0,
93
- e.content.size,
94
- s.create(null, l ? o.text(l) : null)
95
- ), i.setSelection(h.create(i.doc, 1)), i;
64
+ r.content.size,
65
+ o.create(null, n ? i.text(n) : null)
66
+ ), c.setSelection(m.create(c.doc, 1)), c;
96
67
  }
97
68
  }),
98
- new u({
99
- key: new d("jsonHighlight"),
69
+ new d({
70
+ key: new p("jsonHighlight"),
100
71
  props: {
101
- // The gutter is a node view, not a widget decoration — see
102
- // JsonCodeBlockView for why (MAP-7286).
103
- nodeViews: {
104
- codeBlock: (r) => new y(r)
105
- },
106
72
  // Paste beautify: if the clipboard text is valid JSON, drop in a
107
73
  // pretty-printed version (2-space indent, matching the Beautify
108
74
  // button) instead of the raw blob. Non-JSON pastes fall through to
109
75
  // the default handler untouched.
110
- handlePaste(r, n) {
111
- const t = n.clipboardData?.getData("text/plain");
112
- if (!t || !t.trim())
76
+ handlePaste(s, t) {
77
+ const e = t.clipboardData?.getData("text/plain");
78
+ if (!e || !e.trim())
113
79
  return !1;
114
- let e;
80
+ let r;
115
81
  try {
116
- e = JSON.parse(t);
82
+ r = JSON.parse(e);
117
83
  } catch {
118
84
  return !1;
119
85
  }
120
- const o = JSON.stringify(e, null, 2);
121
- if (o === t)
86
+ const i = JSON.stringify(r, null, 2);
87
+ if (i === e)
122
88
  return !1;
123
- const { state: s, dispatch: c } = r, { from: l, to: i } = s.selection;
124
- return c(s.tr.insertText(o, l, i).scrollIntoView()), !0;
89
+ const { state: o, dispatch: l } = s, { from: n, to: c } = o.selection;
90
+ return l(o.tr.insertText(i, n, c).scrollIntoView()), !0;
125
91
  },
126
- // Inline token colours only. Recolouring an inline span does not
127
- // disturb the caret (unlike the old gutter widgets).
128
- decorations(r) {
129
- const n = [];
130
- return r.doc.descendants((t, e) => {
131
- if (t.type.name !== "codeBlock") return;
132
- const o = t.textContent;
133
- if (o.length === 0) return;
134
- const s = e + 1;
135
- for (const c of g(o))
136
- n.push(
137
- m.inline(s + c.start, s + c.end, {
138
- class: k[c.type]
92
+ decorations(s) {
93
+ const t = [];
94
+ return s.doc.descendants((e, r) => {
95
+ if (e.type.name !== "codeBlock") return;
96
+ const i = e.textContent, o = r + 1;
97
+ for (const n of k(i))
98
+ t.push(
99
+ u.inline(o + n.start, o + n.end, {
100
+ class: y[n.type]
101
+ })
102
+ );
103
+ let l = 1;
104
+ t.push(
105
+ u.widget(o, () => f(1), {
106
+ side: -1,
107
+ key: "ln-1"
108
+ })
109
+ );
110
+ for (let n = 0; n < i.length; n++) {
111
+ if (i[n] !== `
112
+ `) continue;
113
+ l += 1;
114
+ const c = l;
115
+ t.push(
116
+ u.widget(o + n + 1, () => f(c), {
117
+ side: -1,
118
+ key: `ln-${c}`
139
119
  })
140
120
  );
141
- }), f.create(r.doc, n);
121
+ }
122
+ }), g.create(s.doc, t);
142
123
  }
143
124
  }
144
125
  })
@@ -146,6 +127,6 @@ const E = p.create({
146
127
  }
147
128
  });
148
129
  export {
149
- E as JsonHighlightExtension
130
+ w as JsonHighlightExtension
150
131
  };
151
132
  //# sourceMappingURL=JsonHighlightExtension.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"JsonHighlightExtension.js","sources":["../../../../../src/editor/extensions/jsonHighlight/JsonHighlightExtension.ts"],"sourcesContent":["import { Extension } from '@tiptap/core';\nimport type { Node as ProseMirrorNode } from '@tiptap/pm/model';\nimport { Plugin, PluginKey, TextSelection } from '@tiptap/pm/state';\nimport type { NodeView } from '@tiptap/pm/view';\nimport { Decoration, DecorationSet } from '@tiptap/pm/view';\nimport { JsonTokenType, tokenizeJson } from './tokenizeJson';\n\nconst CLASS_BY_TYPE: Record<JsonTokenType, string> = {\n\tkey: 'bik-json-key',\n\tstring: 'bik-json-string',\n\tnumber: 'bik-json-number',\n\tboolean: 'bik-json-boolean',\n\tnull: 'bik-json-null',\n\tpunctuation: 'bik-json-punct',\n};\n\n/**\n * Visual line count of a code block's text (0 → no gutter). Whitespace-only\n * content counts as 0: that's exactly when BikEditor shows the placeholder\n * overlay (`jsonEmpty = !text.trim()`), so the gutter must be empty too —\n * otherwise a blank field shows a stray \"1\" behind the placeholder.\n */\nfunction lineCount(text: string): number {\n\treturn text.trim().length === 0 ? 0 : text.split('\\n').length;\n}\n\n/**\n * Node view for the JSON `codeBlock` that renders the line-number gutter as a\n * `contenteditable=false` sibling of the editable `<code>` — NOT as ProseMirror\n * widget decorations.\n *\n * Why: widget decorations are re-inserted into the content flow on every\n * decoration recompute (i.e. every keystroke). Re-inserting a node next to the\n * caret reset the contenteditable selection to the line start, so typing a JSON\n * key and then its `:` dropped the caret to the start of the line (MAP-7286).\n * A node view lets us update the gutter DOM independently of `contentDOM`, so\n * the caret is never touched — and we only rebuild it when the line count\n * actually changes.\n */\nclass JsonCodeBlockView implements NodeView {\n\tdom: HTMLPreElement;\n\tcontentDOM: HTMLElement;\n\tprivate gutter: HTMLElement;\n\n\tconstructor(node: ProseMirrorNode) {\n\t\tconst pre = document.createElement('pre');\n\t\tconst gutter = document.createElement('div');\n\t\tgutter.className = 'bik-json-gutter';\n\t\tgutter.contentEditable = 'false';\n\t\tconst code = document.createElement('code');\n\t\t// Gutter is absolutely positioned into the reserved left padding, so its\n\t\t// order relative to <code> doesn't affect the code layout.\n\t\tpre.appendChild(gutter);\n\t\tpre.appendChild(code);\n\n\t\tthis.dom = pre;\n\t\tthis.contentDOM = code;\n\t\tthis.gutter = gutter;\n\t\tthis.renderGutter(node);\n\t}\n\n\tprivate renderGutter(node: ProseMirrorNode): void {\n\t\tconst count = lineCount(node.textContent);\n\t\t// Nothing to do while the line count is unchanged — this is the common case\n\t\t// (typing within a line) and skipping it avoids touching the gutter DOM.\n\t\tif (this.gutter.childElementCount === count) {\n\t\t\treturn;\n\t\t}\n\t\tconst numbers: HTMLElement[] = [];\n\t\tfor (let n = 1; n <= count; n++) {\n\t\t\tconst span = document.createElement('span');\n\t\t\tspan.className = 'bik-json-lineno';\n\t\t\tspan.textContent = String(n);\n\t\t\tnumbers.push(span);\n\t\t}\n\t\tthis.gutter.replaceChildren(...numbers);\n\t}\n\n\tupdate(node: ProseMirrorNode): boolean {\n\t\tif (node.type.name !== 'codeBlock') {\n\t\t\treturn false;\n\t\t}\n\t\tthis.renderGutter(node);\n\t\treturn true;\n\t}\n\n\t// The gutter is ours to manage — never let ProseMirror parse it as content.\n\tignoreMutation(mutation: MutationRecord | { target: Node }): boolean {\n\t\treturn (\n\t\t\tthis.gutter === mutation.target || this.gutter.contains(mutation.target)\n\t\t);\n\t}\n}\n\n/**\n * Colours JSON tokens inside `codeBlock` nodes and renders a line-number gutter\n * (via {@link JsonCodeBlockView}). A code block stores its whole multi-line body\n * in a single text node, so token offsets map 1:1 onto document positions\n * (`nodeStart + offset`) — no cross-node bookkeeping needed.\n *\n * Purely decorative: the document text is never rewritten, so undo/redo,\n * character count and the cursor all behave exactly as with plain text.\n */\nexport const JsonHighlightExtension = Extension.create({\n\tname: 'jsonHighlight',\n\t// Above CodeBlock (default 100) so our Backspace handler runs first and can\n\t// veto CodeBlock's own \"clearNodes at start\" shortcut (which would lift the\n\t// block to a paragraph).\n\tpriority: 1000,\n\taddKeyboardShortcuts() {\n\t\treturn {\n\t\t\t// In JSON mode the document is a single code block. A Backspace at its very\n\t\t\t// start would lift it to a plain paragraph (killing the highlight, the\n\t\t\t// line-number gutter and the monospace font). There's nothing to delete\n\t\t\t// before the caret there anyway, so swallow it. Mid-text Backspace (and\n\t\t\t// deleting a leading `\\n` from line 2+) still works — those have\n\t\t\t// parentOffset > 0.\n\t\t\tBackspace: () => {\n\t\t\t\tconst { selection } = this.editor.state;\n\t\t\t\tconst { empty, $from } = selection;\n\t\t\t\treturn (\n\t\t\t\t\tempty &&\n\t\t\t\t\t$from.parent.type.name === 'codeBlock' &&\n\t\t\t\t\t$from.parentOffset === 0\n\t\t\t\t);\n\t\t\t},\n\t\t};\n\t},\n\taddProseMirrorPlugins() {\n\t\treturn [\n\t\t\tnew Plugin({\n\t\t\t\tkey: new PluginKey('jsonHighlightGuard'),\n\t\t\t\t// jsonMode invariant: the whole document is ONE codeBlock. Several\n\t\t\t\t// default Backspace paths can lift it to a plain paragraph — and one\n\t\t\t\t// of them, TipTap core's `clearDocument` appendTransaction (fired when\n\t\t\t\t// the whole doc is selected then deleted, e.g. Cmd-A → Backspace),\n\t\t\t\t// runs AFTER our Backspace shortcut, so a keymap veto can't stop it.\n\t\t\t\t// A paragraph has no gutter and no monospace rule, so the line numbers\n\t\t\t\t// and font vanish. Re-wrap the content back into a codeBlock whenever\n\t\t\t\t// something lifts it, restoring the invariant.\n\t\t\t\tappendTransaction(transactions, _oldState, newState) {\n\t\t\t\t\tif (!transactions.some((tr) => tr.docChanged)) {\n\t\t\t\t\t\treturn null;\n\t\t\t\t\t}\n\t\t\t\t\tconst { doc, schema } = newState;\n\t\t\t\t\tconst codeBlock = schema.nodes['codeBlock'];\n\t\t\t\t\tif (!codeBlock) {\n\t\t\t\t\t\treturn null;\n\t\t\t\t\t}\n\t\t\t\t\t// Common case: already a single codeBlock → nothing to do.\n\t\t\t\t\tif (doc.childCount === 1 && doc.firstChild?.type === codeBlock) {\n\t\t\t\t\t\treturn null;\n\t\t\t\t\t}\n\t\t\t\t\t// If a codeBlock survives anywhere, leave it alone (don't fight\n\t\t\t\t\t// legitimate multi-node edits that shouldn't happen in jsonMode).\n\t\t\t\t\tlet hasCodeBlock = false;\n\t\t\t\t\tdoc.forEach((node) => {\n\t\t\t\t\t\tif (node.type === codeBlock) {\n\t\t\t\t\t\t\thasCodeBlock = true;\n\t\t\t\t\t\t}\n\t\t\t\t\t});\n\t\t\t\t\tif (hasCodeBlock) {\n\t\t\t\t\t\treturn null;\n\t\t\t\t\t}\n\t\t\t\t\t// A lift happened: rebuild a single codeBlock from the text\n\t\t\t\t\t// (block boundaries preserved as newlines, matching JSON lines).\n\t\t\t\t\tconst text = doc.textBetween(0, doc.content.size, '\\n');\n\t\t\t\t\tconst tr = newState.tr;\n\t\t\t\t\ttr.replaceWith(\n\t\t\t\t\t\t0,\n\t\t\t\t\t\tdoc.content.size,\n\t\t\t\t\t\tcodeBlock.create(null, text ? schema.text(text) : null),\n\t\t\t\t\t);\n\t\t\t\t\ttr.setSelection(TextSelection.create(tr.doc, 1));\n\t\t\t\t\treturn tr;\n\t\t\t\t},\n\t\t\t}),\n\t\t\tnew Plugin({\n\t\t\t\tkey: new PluginKey('jsonHighlight'),\n\t\t\t\tprops: {\n\t\t\t\t\t// The gutter is a node view, not a widget decoration — see\n\t\t\t\t\t// JsonCodeBlockView for why (MAP-7286).\n\t\t\t\t\tnodeViews: {\n\t\t\t\t\t\tcodeBlock: (node) => new JsonCodeBlockView(node),\n\t\t\t\t\t},\n\t\t\t\t\t// Paste beautify: if the clipboard text is valid JSON, drop in a\n\t\t\t\t\t// pretty-printed version (2-space indent, matching the Beautify\n\t\t\t\t\t// button) instead of the raw blob. Non-JSON pastes fall through to\n\t\t\t\t\t// the default handler untouched.\n\t\t\t\t\thandlePaste(view, event) {\n\t\t\t\t\t\tconst raw = event.clipboardData?.getData('text/plain');\n\t\t\t\t\t\tif (!raw || !raw.trim()) {\n\t\t\t\t\t\t\treturn false;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tlet value: unknown;\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tvalue = JSON.parse(raw);\n\t\t\t\t\t\t} catch {\n\t\t\t\t\t\t\treturn false;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tconst pretty = JSON.stringify(value, null, 2);\n\t\t\t\t\t\t// No-op if it was already beautified (avoids a redundant tx).\n\t\t\t\t\t\tif (pretty === raw) {\n\t\t\t\t\t\t\treturn false;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tconst { state, dispatch } = view;\n\t\t\t\t\t\tconst { from, to } = state.selection;\n\t\t\t\t\t\tdispatch(state.tr.insertText(pretty, from, to).scrollIntoView());\n\t\t\t\t\t\treturn true;\n\t\t\t\t\t},\n\t\t\t\t\t// Inline token colours only. Recolouring an inline span does not\n\t\t\t\t\t// disturb the caret (unlike the old gutter widgets).\n\t\t\t\t\tdecorations(state) {\n\t\t\t\t\t\tconst decorations: Decoration[] = [];\n\t\t\t\t\t\tstate.doc.descendants((node, pos) => {\n\t\t\t\t\t\t\tif (node.type.name !== 'codeBlock') return;\n\t\t\t\t\t\t\tconst text = node.textContent;\n\t\t\t\t\t\t\tif (text.length === 0) return;\n\t\t\t\t\t\t\t// +1: step past the code-block node boundary into its text.\n\t\t\t\t\t\t\tconst base = pos + 1;\n\t\t\t\t\t\t\tfor (const tok of tokenizeJson(text)) {\n\t\t\t\t\t\t\t\tdecorations.push(\n\t\t\t\t\t\t\t\t\tDecoration.inline(base + tok.start, base + tok.end, {\n\t\t\t\t\t\t\t\t\t\tclass: CLASS_BY_TYPE[tok.type],\n\t\t\t\t\t\t\t\t\t}),\n\t\t\t\t\t\t\t\t);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t});\n\t\t\t\t\t\treturn DecorationSet.create(state.doc, decorations);\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t}),\n\t\t];\n\t},\n});\n"],"names":["CLASS_BY_TYPE","lineCount","text","JsonCodeBlockView","node","pre","gutter","code","count","numbers","n","span","mutation","JsonHighlightExtension","Extension","selection","empty","$from","Plugin","PluginKey","transactions","_oldState","newState","tr","doc","schema","codeBlock","hasCodeBlock","TextSelection","view","event","raw","value","pretty","state","dispatch","from","to","decorations","pos","base","tok","tokenizeJson","Decoration","DecorationSet"],"mappings":"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"}
1
+ {"version":3,"file":"JsonHighlightExtension.js","sources":["../../../../../src/editor/extensions/jsonHighlight/JsonHighlightExtension.ts"],"sourcesContent":["import { Extension } from '@tiptap/core';\nimport { Plugin, PluginKey, TextSelection } from '@tiptap/pm/state';\nimport { Decoration, DecorationSet } from '@tiptap/pm/view';\nimport { JsonTokenType, tokenizeJson } from './tokenizeJson';\n\nconst CLASS_BY_TYPE: Record<JsonTokenType, string> = {\n\tkey: 'bik-json-key',\n\tstring: 'bik-json-string',\n\tnumber: 'bik-json-number',\n\tboolean: 'bik-json-boolean',\n\tnull: 'bik-json-null',\n\tpunctuation: 'bik-json-punct',\n};\n\n/** Line-number widget rendered in the hanging gutter at each line start. */\nfunction lineNumberWidget(n: number): HTMLElement {\n\tconst span = document.createElement('span');\n\tspan.className = 'bik-json-lineno';\n\tspan.textContent = String(n);\n\tspan.setAttribute('contenteditable', 'false');\n\treturn span;\n}\n\n/**\n * Colours JSON tokens inside `codeBlock` nodes and renders a line-number gutter.\n * A code block stores its whole multi-line body in a single text node, so token\n * offsets map 1:1 onto document positions (`nodeStart + offset`) — no cross-node\n * bookkeeping needed, and lines are just the `\\n`-separated runs of that text.\n *\n * Purely decorative: the document text is never rewritten, so undo/redo,\n * character count and the cursor all behave exactly as with plain text. The\n * gutter numbers are `side: -1` widgets that hang into the code block's left\n * padding (see `.bik-json-lineno` in BikEditor.styles.ts), so they never enter\n * the document text or shift character offsets.\n */\nexport const JsonHighlightExtension = Extension.create({\n\tname: 'jsonHighlight',\n\t// Above CodeBlock (default 100) so our Backspace handler runs first and can\n\t// veto CodeBlock's own \"clearNodes at start\" shortcut (which would lift the\n\t// block to a paragraph).\n\tpriority: 1000,\n\taddKeyboardShortcuts() {\n\t\treturn {\n\t\t\t// In JSON mode the document is a single code block. A Backspace at its very\n\t\t\t// start would lift it to a plain paragraph (killing the highlight, the\n\t\t\t// line-number gutter and the monospace font). There's nothing to delete\n\t\t\t// before the caret there anyway, so swallow it. Mid-text Backspace (and\n\t\t\t// deleting a leading `\\n` from line 2+) still works — those have\n\t\t\t// parentOffset > 0.\n\t\t\tBackspace: () => {\n\t\t\t\tconst { selection } = this.editor.state;\n\t\t\t\tconst { empty, $from } = selection;\n\t\t\t\treturn (\n\t\t\t\t\tempty &&\n\t\t\t\t\t$from.parent.type.name === 'codeBlock' &&\n\t\t\t\t\t$from.parentOffset === 0\n\t\t\t\t);\n\t\t\t},\n\t\t};\n\t},\n\taddProseMirrorPlugins() {\n\t\treturn [\n\t\t\tnew Plugin({\n\t\t\t\tkey: new PluginKey('jsonHighlightGuard'),\n\t\t\t\t// jsonMode invariant: the whole document is ONE codeBlock. Several\n\t\t\t\t// default Backspace paths can lift it to a plain paragraph — and one\n\t\t\t\t// of them, TipTap core's `clearDocument` appendTransaction (fired when\n\t\t\t\t// the whole doc is selected then deleted, e.g. Cmd-A → Backspace),\n\t\t\t\t// runs AFTER our Backspace shortcut, so a keymap veto can't stop it.\n\t\t\t\t// A paragraph has no gutter and no monospace rule, so the line numbers\n\t\t\t\t// and font vanish. Re-wrap the content back into a codeBlock whenever\n\t\t\t\t// something lifts it, restoring the invariant.\n\t\t\t\tappendTransaction(transactions, _oldState, newState) {\n\t\t\t\t\tif (!transactions.some((tr) => tr.docChanged)) {\n\t\t\t\t\t\treturn null;\n\t\t\t\t\t}\n\t\t\t\t\tconst { doc, schema } = newState;\n\t\t\t\t\tconst codeBlock = schema.nodes['codeBlock'];\n\t\t\t\t\tif (!codeBlock) {\n\t\t\t\t\t\treturn null;\n\t\t\t\t\t}\n\t\t\t\t\t// Common case: already a single codeBlock → nothing to do.\n\t\t\t\t\tif (doc.childCount === 1 && doc.firstChild?.type === codeBlock) {\n\t\t\t\t\t\treturn null;\n\t\t\t\t\t}\n\t\t\t\t\t// If a codeBlock survives anywhere, leave it alone (don't fight\n\t\t\t\t\t// legitimate multi-node edits that shouldn't happen in jsonMode).\n\t\t\t\t\tlet hasCodeBlock = false;\n\t\t\t\t\tdoc.forEach((node) => {\n\t\t\t\t\t\tif (node.type === codeBlock) {\n\t\t\t\t\t\t\thasCodeBlock = true;\n\t\t\t\t\t\t}\n\t\t\t\t\t});\n\t\t\t\t\tif (hasCodeBlock) {\n\t\t\t\t\t\treturn null;\n\t\t\t\t\t}\n\t\t\t\t\t// A lift happened: rebuild a single codeBlock from the text\n\t\t\t\t\t// (block boundaries preserved as newlines, matching JSON lines).\n\t\t\t\t\tconst text = doc.textBetween(0, doc.content.size, '\\n');\n\t\t\t\t\tconst tr = newState.tr;\n\t\t\t\t\ttr.replaceWith(\n\t\t\t\t\t\t0,\n\t\t\t\t\t\tdoc.content.size,\n\t\t\t\t\t\tcodeBlock.create(null, text ? schema.text(text) : null),\n\t\t\t\t\t);\n\t\t\t\t\ttr.setSelection(TextSelection.create(tr.doc, 1));\n\t\t\t\t\treturn tr;\n\t\t\t\t},\n\t\t\t}),\n\t\t\tnew Plugin({\n\t\t\t\tkey: new PluginKey('jsonHighlight'),\n\t\t\t\tprops: {\n\t\t\t\t\t// Paste beautify: if the clipboard text is valid JSON, drop in a\n\t\t\t\t\t// pretty-printed version (2-space indent, matching the Beautify\n\t\t\t\t\t// button) instead of the raw blob. Non-JSON pastes fall through to\n\t\t\t\t\t// the default handler untouched.\n\t\t\t\t\thandlePaste(view, event) {\n\t\t\t\t\t\tconst raw = event.clipboardData?.getData('text/plain');\n\t\t\t\t\t\tif (!raw || !raw.trim()) {\n\t\t\t\t\t\t\treturn false;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tlet value: unknown;\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tvalue = JSON.parse(raw);\n\t\t\t\t\t\t} catch {\n\t\t\t\t\t\t\treturn false;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tconst pretty = JSON.stringify(value, null, 2);\n\t\t\t\t\t\t// No-op if it was already beautified (avoids a redundant tx).\n\t\t\t\t\t\tif (pretty === raw) {\n\t\t\t\t\t\t\treturn false;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tconst { state, dispatch } = view;\n\t\t\t\t\t\tconst { from, to } = state.selection;\n\t\t\t\t\t\tdispatch(state.tr.insertText(pretty, from, to).scrollIntoView());\n\t\t\t\t\t\treturn true;\n\t\t\t\t\t},\n\t\t\t\t\tdecorations(state) {\n\t\t\t\t\t\tconst decorations: Decoration[] = [];\n\t\t\t\t\t\tstate.doc.descendants((node, pos) => {\n\t\t\t\t\t\t\tif (node.type.name !== 'codeBlock') return;\n\t\t\t\t\t\t\tconst text = node.textContent;\n\t\t\t\t\t\t\t// +1: step past the code-block node boundary into its text.\n\t\t\t\t\t\t\tconst base = pos + 1;\n\n\t\t\t\t\t\t\tfor (const tok of tokenizeJson(text)) {\n\t\t\t\t\t\t\t\tdecorations.push(\n\t\t\t\t\t\t\t\t\tDecoration.inline(base + tok.start, base + tok.end, {\n\t\t\t\t\t\t\t\t\t\tclass: CLASS_BY_TYPE[tok.type],\n\t\t\t\t\t\t\t\t\t}),\n\t\t\t\t\t\t\t\t);\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t// One line number per `\\n`-separated line (line 1 at offset 0,\n\t\t\t\t\t\t\t// then one after every newline). `white-space: pre` on the block\n\t\t\t\t\t\t\t// disables wrapping, so logical lines == visual lines.\n\t\t\t\t\t\t\tlet line = 1;\n\t\t\t\t\t\t\tdecorations.push(\n\t\t\t\t\t\t\t\tDecoration.widget(base, () => lineNumberWidget(1), {\n\t\t\t\t\t\t\t\t\tside: -1,\n\t\t\t\t\t\t\t\t\tkey: 'ln-1',\n\t\t\t\t\t\t\t\t}),\n\t\t\t\t\t\t\t);\n\t\t\t\t\t\t\tfor (let i = 0; i < text.length; i++) {\n\t\t\t\t\t\t\t\tif (text[i] !== '\\n') continue;\n\t\t\t\t\t\t\t\tline += 1;\n\t\t\t\t\t\t\t\tconst n = line;\n\t\t\t\t\t\t\t\tdecorations.push(\n\t\t\t\t\t\t\t\t\tDecoration.widget(base + i + 1, () => lineNumberWidget(n), {\n\t\t\t\t\t\t\t\t\t\tside: -1,\n\t\t\t\t\t\t\t\t\t\tkey: `ln-${n}`,\n\t\t\t\t\t\t\t\t\t}),\n\t\t\t\t\t\t\t\t);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t});\n\t\t\t\t\t\treturn DecorationSet.create(state.doc, decorations);\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t}),\n\t\t];\n\t},\n});\n"],"names":["CLASS_BY_TYPE","lineNumberWidget","n","span","JsonHighlightExtension","Extension","selection","empty","$from","Plugin","PluginKey","transactions","_oldState","newState","tr","doc","schema","codeBlock","hasCodeBlock","node","text","TextSelection","view","event","raw","value","pretty","state","dispatch","from","to","decorations","pos","base","tok","tokenizeJson","Decoration","line","i","DecorationSet"],"mappings":"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"}
@@ -5,8 +5,6 @@ export { default as Crop } from './Crop';
5
5
  export { default as FlashOff } from './FlashOff';
6
6
  export { default as FlashOn } from './FlashOn';
7
7
  export { default as FormkitHappy } from './FormkitHappy';
8
- export { default as FormkitNeutral } from './FormkitNeutral';
9
- export { default as FormkitSad } from './FormkitSad';
10
8
  export { default as IconTrailing } from './IconTrailing';
11
9
  export { default as Image } from './Image';
12
10
  export { default as ImageAdd } from './ImageAdd';
@@ -1,44 +1,44 @@
1
- export { Send, Activate, Code, Cross, Deactivate, Delete, Edit, Forward, Fullscreen, LinkSimpleHorizontal, Minus, Plus, ProductTour, RestApi, Save, SendAirplane, ShareAndroid, Shortcut, Task, } from './Actions/Common actions';
2
- export { CheckboxIcon, Copy, DecreaseIndent, Dropdown, IncreaseIndent, MultiLine, MultiSelect, Number, NumberList, Quotes, Subscript, Superscript, TextBold, Text, TextAlignCenter, TextAlignLeft, TextAlignRight, TextItalics, TextJustify, TextStrikethrough, TextUnderline, Textbox, } from './Actions/Formatting';
3
- export { ArrowRedo, ArrowUndo, LogIn, LogOut, OpenNewWindow, Refresh, Rewind, Sync, Whatsapp, } from './Actions/Navigation';
1
+ export { Send, Activate, Code, Cross, Deactivate, Delete, Edit, Forward, Fullscreen, LinkSimpleHorizontal, Minus, Plus, ProductTour, RestApi, Save, SendAirplane, ShareAndroid, Shortcut, Task } from './Actions/Common actions';
2
+ export { CheckboxIcon, Copy, DecreaseIndent, Dropdown, IncreaseIndent, MultiLine, MultiSelect, Number, NumberList, Quotes, Subscript, Superscript, TextBold, Text, TextAlignCenter, TextAlignLeft, TextAlignRight, TextItalics, TextJustify, TextStrikethrough, TextUnderline, Textbox } from './Actions/Formatting';
3
+ export { ArrowRedo, ArrowUndo, LogIn, LogOut, OpenNewWindow, Refresh, Rewind, Sync, Whatsapp } from './Actions/Navigation';
4
4
  export { HandleDrag, SingleChoice } from './Actions/Selection';
5
5
  export { CaratDown, CaratLeft, CaratRight, CaratUp } from './Arrows/Carat';
6
- export { ChevronDown, ChevronLeft, ChevronRight, ChevronUp, } from './Arrows/Chevron';
7
- export { ChevronDoubleDown, ChevronDoubleLeft, ChevronDoubleRight, ChevronDoubleUp, } from './Arrows/Double chevron';
8
- export { ArrowDown, ArrowDownLeft, ArrowDownRight, ArrowLeft, ArrowRight, ArrowUp, ArrowUpLeft, ArrowUpRight, } from './Arrows/Normal arrows';
6
+ export { ChevronDown, ChevronLeft, ChevronRight, ChevronUp } from './Arrows/Chevron';
7
+ export { ChevronDoubleDown, ChevronDoubleLeft, ChevronDoubleRight, ChevronDoubleUp } from './Arrows/Double chevron';
8
+ export { ArrowDown, ArrowDownLeft, ArrowDownRight, ArrowLeft, ArrowRight, ArrowUp, ArrowUpLeft, ArrowUpRight } from './Arrows/Normal arrows';
9
9
  export { ArrowSwitch } from './Arrows/Special';
10
- export { AiIcon, Webhook, AiEmoji, AiRobot, Expand, Frame27389, Frame27597, Frame27598, Frame27599, GeminiSparkle, ManifestSparkle, PricePlease, Shape, Shorter, Sparkling2Line, WandSparkles, Write, } from './BIK AI specific';
11
- export { Bell, BellSync, Bulb, Forms, MenuHamburger, MessageSearch, MoreHorizontal, MoreVertical, Placeholder, Search, Settings, Training, } from './Informational/Common UI';
12
- export { Chat, ChatCheck, ChatQuestion, ChatStar, Email, LiveChat, Phone, } from './Informational/Communication';
13
- export { ClipboardCheck, Experimental, Help, Percent, Purchase, Services, ShoppingCart, Unsatisfactory, UserSound, } from './Informational/Customer intent';
10
+ export { AiIcon, Webhook, AiEmoji, AiRobot, Expand, Frame27389, Frame27597, Frame27598, Frame27599, GeminiSparkle, ManifestSparkle, PricePlease, Shape, Shorter, Sparkling2Line, WandSparkles, Write } from './BIK AI specific';
11
+ export { Bell, BellSync, Bulb, Forms, MenuHamburger, MessageSearch, MoreHorizontal, MoreVertical, Placeholder, Search, Settings, Training } from './Informational/Common UI';
12
+ export { Chat, ChatCheck, ChatQuestion, ChatStar, Email, LiveChat, Phone } from './Informational/Communication';
13
+ export { ClipboardCheck, Experimental, Help, Percent, Purchase, Services, ShoppingCart, Unsatisfactory, UserSound } from './Informational/Customer intent';
14
14
  export { SingleChoice as SingleChoice2 } from './Informational/Customer intent';
15
- export { CalendarCheck, Calendar, CalendarAdd, Clock, HourGlass, WorkingHours, } from './Informational/Date and time';
16
- export { AddLabel, Click, Filter, Gift1, GiftMinus, GiftPlus, Promocode, Receipt, ShieldCheck, ShoppingBag, ShoppingBasket, } from './Informational/eCommerce';
15
+ export { CalendarCheck, Calendar, CalendarAdd, Clock, HourGlass, WorkingHours } from './Informational/Date and time';
16
+ export { AddLabel, Click, Filter, Gift1, GiftMinus, GiftPlus, Promocode, Receipt, ShieldCheck, ShoppingBag, ShoppingBasket } from './Informational/eCommerce';
17
17
  export { ShoppingCart as ShoppingCart2 } from './Informational/eCommerce';
18
- export { Archive1, Excel, File, FileCsv, FilePage, FilePdf, Folder, MediaMessage, Move, OrderHistory, PrivateNote, TextMessage, Unarchive, } from './Informational/Files and folders';
19
- export { Bank, CashOnDelivery, ChartLine, CreditCard, Growth, Money1, NoCredits, Rupee, TablerTicket, Wallet, } from './Informational/Finance';
18
+ export { Archive1, Excel, File, FileCsv, FilePage, FilePdf, Folder, MediaMessage, Move, OrderHistory, PrivateNote, TextMessage, Unarchive } from './Informational/Files and folders';
19
+ export { Bank, CashOnDelivery, ChartLine, CreditCard, Growth, Money1, NoCredits, Rupee, TablerTicket, Wallet } from './Informational/Finance';
20
20
  export { Percent as Percent2 } from './Informational/Finance';
21
- export { BookOpenText, TicketV2, AlertTriangle, Check, CheckDouble, CloseTicket1, Error, FailDoc, HourglassFilled, IcList, Info, Merge, NewTicket, RoundCheck, Slash, } from './Informational/General';
21
+ export { BookOpenText, TicketV2, AlertTriangle, Check, CheckDouble, CloseTicket1, Error, FailDoc, HourglassFilled, IcList, Info, Merge, NewTicket, RoundCheck, Slash } from './Informational/General';
22
22
  export { Help as Help2 } from './Informational/General';
23
- export { User, Chatbot, Contacts, Group, IdCard, Person, Robot, Union, Union1, UserMinus1, UserPlus, } from './Informational/Identity';
24
- export { Address, LanguageChange, MapPin, Truck, } from './Informational/Location';
25
- export { AllProduct, Clipboard, CustomerReport, Head112, InventoryReport, LegalBalance, OrderReport, PaymentReport, Store, StoreSync, TicketForm, } from './Informational/Store related';
23
+ export { User, Chatbot, Contacts, Group, IdCard, Person, Robot, Union, Union1, UserMinus1, UserPlus } from './Informational/Identity';
24
+ export { Address, LanguageChange, MapPin, Truck } from './Informational/Location';
25
+ export { AllProduct, Clipboard, CustomerReport, Head112, InventoryReport, LegalBalance, OrderReport, PaymentReport, Store, StoreSync, TicketForm } from './Informational/Store related';
26
26
  export { ClipboardCheck as ClipboardCheck2 } from './Informational/Store related';
27
27
  export { Box, Box2 } from './Legacy - Bikayi specific/Categories';
28
28
  export { Journeys } from './Legacy - Bikayi specific/Navigation';
29
29
  export { Services as Services2 } from './Legacy - Bikayi specific/Navigation';
30
30
  export { PlanUltimate } from './Legacy - Bikayi specific/Plans';
31
- export { Businesscard, Customdomain, LoudSpeaker, Marketing, PaymentLink, Theme, } from './Legacy - Bikayi specific/Services';
32
- export { Microphone, Pause, Play, Sleep, VolumeMute, VolumeOneline, VolumeTwoline, } from './Media/Audio';
31
+ export { Businesscard, Customdomain, LoudSpeaker, Marketing, PaymentLink, Theme } from './Legacy - Bikayi specific/Services';
32
+ export { Microphone, Pause, Play, Sleep, VolumeMute, VolumeOneline, VolumeTwoline } from './Media/Audio';
33
33
  export { Desktop, Smartphone } from './Media/Devices';
34
- export { BarcodeScan, Download, EmojiSmile, Paperclip, Upload, } from './Media/Others';
35
- export { Frame26086263, Camera, CameraAdd, Crop, FlashOff, FlashOn, FormkitHappy, FormkitNeutral, FormkitSad, IconTrailing, Image, ImageAdd, Images, Maximize, RotateAnticlockwise, RotateClockwise, VideoCamcorder, VideoFilm, } from './Media/Visual';
36
- export { EmailMarketingV2, EmailV2, FacebookCommentV2, FacebookV2, GmailV2, InstagramCommentV2, InstagramV2, MessengerV2, PhoneV2, RcsV2, SmsV2, TaskV2, WebpushV2, WhatsAppCallV2, WhatsAppV2, Bigcommerce, EmailMarketing, Facebook, FacebookComment, Instagram, InstagramIcon, Messenger, MonoFacebookComment, MonoFacebook, MonoInstagram, MonoInstagramComment, MonoMail, MonoMessenger, MonoPhone, MonoTasks, MonoWhatsapp, ShopifyBrand, Tasks, WebPush, WhatsApp, } from './Social/Channels';
34
+ export { BarcodeScan, Download, EmojiSmile, Paperclip, Upload } from './Media/Others';
35
+ export { Frame26086263, Camera, CameraAdd, Crop, FlashOff, FlashOn, FormkitHappy, IconTrailing, Image, ImageAdd, Images, Maximize, RotateAnticlockwise, RotateClockwise, VideoCamcorder, VideoFilm } from './Media/Visual';
36
+ export { EmailMarketingV2, EmailV2, FacebookCommentV2, FacebookV2, GmailV2, InstagramCommentV2, InstagramV2, MessengerV2, PhoneV2, RcsV2, SmsV2, TaskV2, WebpushV2, WhatsAppCallV2, WhatsAppV2, Bigcommerce, EmailMarketing, Facebook, FacebookComment, Instagram, InstagramIcon, Messenger, MonoFacebookComment, MonoFacebook, MonoInstagram, MonoInstagramComment, MonoMail, MonoMessenger, MonoPhone, MonoTasks, MonoWhatsapp, ShopifyBrand, Tasks, WebPush, WhatsApp } from './Social/Channels';
37
37
  export { Email as Email2 } from './Social/Channels';
38
- export { SlackIcon, BigCommerce, Google, Gorgias, Kustomer, Rcs, ShopifyDefault, Twitter, Website, WooCommerce, Youtube, Zendesk, } from './Social/Social';
38
+ export { SlackIcon, BigCommerce, Google, Gorgias, Kustomer, Rcs, ShopifyDefault, Twitter, Website, WooCommerce, Youtube, Zendesk } from './Social/Social';
39
39
  export { EmailMarketing as EmailMarketing2 } from './Social/Social';
40
40
  export { Facebook as Facebook2 } from './Social/Social';
41
41
  export { Instagram as Instagram2 } from './Social/Social';
42
42
  export { Messenger as Messenger2 } from './Social/Social';
43
43
  export { Whatsapp as Whatsapp2 } from './Social/Social';
44
- export { Eye, EyeClosed, EyeOff, HeartEmpty, HeartFilled, Lock, StarEmpty, StarFilled, StarHalf, Unlock, } from './Toggles/General';
44
+ export { Eye, EyeClosed, EyeOff, HeartEmpty, HeartFilled, Lock, StarEmpty, StarFilled, StarHalf, Unlock } from './Toggles/General';