dn-react-router-toolkit 0.7.7 → 0.7.9

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 (93) hide show
  1. package/dist/api/create_api_handler.d.mts +5 -5
  2. package/dist/api/create_api_handler.d.ts +5 -5
  3. package/dist/client/env_loader.d.mts +2 -2
  4. package/dist/client/env_loader.d.ts +2 -2
  5. package/dist/client/env_loader.js +2 -12
  6. package/dist/client/env_loader.mjs +2 -2
  7. package/dist/client/file_input.d.mts +3 -2
  8. package/dist/client/file_input.d.ts +3 -2
  9. package/dist/client/file_input.js +30 -37
  10. package/dist/client/file_input.mjs +33 -28
  11. package/dist/client/index.d.mts +1 -0
  12. package/dist/client/index.d.ts +1 -0
  13. package/dist/client/index.js +38 -44
  14. package/dist/client/index.mjs +39 -33
  15. package/dist/client/store_text_editor.d.mts +2 -2
  16. package/dist/client/store_text_editor.d.ts +2 -2
  17. package/dist/client/store_text_editor.js +3 -12
  18. package/dist/client/store_text_editor.mjs +3 -2
  19. package/dist/crud/crud_form.d.mts +5 -4
  20. package/dist/crud/crud_form.d.ts +5 -4
  21. package/dist/crud/crud_form.js +83 -72
  22. package/dist/crud/crud_form.mjs +88 -62
  23. package/dist/crud/crud_form_provider.d.mts +10 -8
  24. package/dist/crud/crud_form_provider.d.ts +10 -8
  25. package/dist/crud/crud_form_provider.js +2 -12
  26. package/dist/crud/crud_form_provider.mjs +6 -3
  27. package/dist/crud/crud_loader.d.mts +1 -1
  28. package/dist/crud/crud_loader.d.ts +1 -1
  29. package/dist/crud/crud_page.d.mts +10 -6
  30. package/dist/crud/crud_page.d.ts +10 -6
  31. package/dist/crud/crud_page.js +281 -409
  32. package/dist/crud/crud_page.mjs +286 -399
  33. package/dist/crud/generate_pages.d.mts +10 -2
  34. package/dist/crud/generate_pages.d.ts +10 -2
  35. package/dist/crud/generate_pages.js +17 -14
  36. package/dist/crud/generate_pages.mjs +17 -4
  37. package/dist/crud/index.d.mts +2 -1
  38. package/dist/crud/index.d.ts +2 -1
  39. package/dist/crud/index.js +299 -404
  40. package/dist/crud/index.mjs +304 -404
  41. package/dist/form/create_form_component.d.mts +3 -2
  42. package/dist/form/create_form_component.d.ts +3 -2
  43. package/dist/form/create_form_component.js +3 -12
  44. package/dist/form/create_form_component.mjs +3 -2
  45. package/dist/form/form_components.d.mts +5 -4
  46. package/dist/form/form_components.d.ts +5 -4
  47. package/dist/form/form_components.js +3 -12
  48. package/dist/form/form_components.mjs +3 -2
  49. package/dist/form/index.d.mts +1 -0
  50. package/dist/form/index.d.ts +1 -0
  51. package/dist/form/index.js +3 -12
  52. package/dist/form/index.mjs +3 -2
  53. package/dist/post/editor_toolbar.d.mts +4 -3
  54. package/dist/post/editor_toolbar.d.ts +4 -3
  55. package/dist/post/editor_toolbar.js +116 -273
  56. package/dist/post/editor_toolbar.mjs +123 -263
  57. package/dist/post/index.d.mts +1 -0
  58. package/dist/post/index.d.ts +1 -0
  59. package/dist/post/index.js +329 -411
  60. package/dist/post/index.mjs +337 -409
  61. package/dist/post/post_form_page.d.mts +5 -4
  62. package/dist/post/post_form_page.d.ts +5 -4
  63. package/dist/post/post_form_page.js +331 -413
  64. package/dist/post/post_form_page.mjs +337 -409
  65. package/dist/post/thumbnail_picker.d.mts +3 -2
  66. package/dist/post/thumbnail_picker.d.ts +3 -2
  67. package/dist/post/thumbnail_picker.js +14 -23
  68. package/dist/post/thumbnail_picker.mjs +14 -13
  69. package/dist/seo/index.d.mts +1 -1
  70. package/dist/seo/index.d.ts +1 -1
  71. package/dist/seo/index.js +2 -2
  72. package/dist/seo/index.mjs +2 -2
  73. package/dist/seo/seo.d.mts +2 -2
  74. package/dist/seo/seo.d.ts +2 -2
  75. package/dist/seo/seo.js +2 -2
  76. package/dist/seo/seo.mjs +2 -2
  77. package/dist/table/buttons.d.mts +2 -2
  78. package/dist/table/buttons.d.ts +2 -2
  79. package/dist/table/buttons.js +42 -57
  80. package/dist/table/buttons.mjs +42 -47
  81. package/dist/table/index.d.mts +1 -0
  82. package/dist/table/index.d.ts +1 -0
  83. package/dist/table/index.js +185 -338
  84. package/dist/table/index.mjs +185 -328
  85. package/dist/table/page.d.mts +5 -4
  86. package/dist/table/page.d.ts +5 -4
  87. package/dist/table/page.js +185 -338
  88. package/dist/table/page.mjs +185 -328
  89. package/dist/table/table.d.mts +5 -4
  90. package/dist/table/table.d.ts +5 -4
  91. package/dist/table/table.js +77 -237
  92. package/dist/table/table.mjs +77 -227
  93. package/package.json +7 -5
@@ -1,9 +1,7 @@
1
1
  "use strict";
2
- var __create = Object.create;
3
2
  var __defProp = Object.defineProperty;
4
3
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
4
  var __getOwnPropNames = Object.getOwnPropertyNames;
6
- var __getProtoOf = Object.getPrototypeOf;
7
5
  var __hasOwnProp = Object.prototype.hasOwnProperty;
8
6
  var __export = (target, all) => {
9
7
  for (var name in all)
@@ -17,14 +15,6 @@ var __copyProps = (to, from, except, desc) => {
17
15
  }
18
16
  return to;
19
17
  };
20
- var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
21
- // If the importer is in node compatibility mode or this is not an ESM
22
- // file that has been converted to a CommonJS file using a Babel-
23
- // compatible transform (i.e. "__esModule" has not been set), then set
24
- // "default" to the CommonJS "module.exports" for node compatibility.
25
- isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
26
- mod
27
- ));
28
18
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
19
 
30
20
  // src/post/editor_toolbar.tsx
@@ -34,169 +24,15 @@ __export(editor_toolbar_exports, {
34
24
  });
35
25
  module.exports = __toCommonJS(editor_toolbar_exports);
36
26
  var import_utils = require("dn-react-toolkit/utils");
37
-
38
- // node_modules/react-icons/lib/iconBase.mjs
39
- var import_react2 = __toESM(require("react"), 1);
40
-
41
- // node_modules/react-icons/lib/iconContext.mjs
42
- var import_react = __toESM(require("react"), 1);
43
- var DefaultContext = {
44
- color: void 0,
45
- size: void 0,
46
- className: void 0,
47
- style: void 0,
48
- attr: void 0
49
- };
50
- var IconContext = import_react.default.createContext && /* @__PURE__ */ import_react.default.createContext(DefaultContext);
51
-
52
- // node_modules/react-icons/lib/iconBase.mjs
53
- var _excluded = ["attr", "size", "title"];
54
- function _objectWithoutProperties(source, excluded) {
55
- if (source == null) return {};
56
- var target = _objectWithoutPropertiesLoose(source, excluded);
57
- var key, i;
58
- if (Object.getOwnPropertySymbols) {
59
- var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
60
- for (i = 0; i < sourceSymbolKeys.length; i++) {
61
- key = sourceSymbolKeys[i];
62
- if (excluded.indexOf(key) >= 0) continue;
63
- if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
64
- target[key] = source[key];
65
- }
66
- }
67
- return target;
68
- }
69
- function _objectWithoutPropertiesLoose(source, excluded) {
70
- if (source == null) return {};
71
- var target = {};
72
- for (var key in source) {
73
- if (Object.prototype.hasOwnProperty.call(source, key)) {
74
- if (excluded.indexOf(key) >= 0) continue;
75
- target[key] = source[key];
76
- }
77
- }
78
- return target;
79
- }
80
- function _extends() {
81
- _extends = Object.assign ? Object.assign.bind() : function(target) {
82
- for (var i = 1; i < arguments.length; i++) {
83
- var source = arguments[i];
84
- for (var key in source) {
85
- if (Object.prototype.hasOwnProperty.call(source, key)) {
86
- target[key] = source[key];
87
- }
88
- }
89
- }
90
- return target;
91
- };
92
- return _extends.apply(this, arguments);
93
- }
94
- function ownKeys(e, r) {
95
- var t = Object.keys(e);
96
- if (Object.getOwnPropertySymbols) {
97
- var o = Object.getOwnPropertySymbols(e);
98
- r && (o = o.filter(function(r2) {
99
- return Object.getOwnPropertyDescriptor(e, r2).enumerable;
100
- })), t.push.apply(t, o);
101
- }
102
- return t;
103
- }
104
- function _objectSpread(e) {
105
- for (var r = 1; r < arguments.length; r++) {
106
- var t = null != arguments[r] ? arguments[r] : {};
107
- r % 2 ? ownKeys(Object(t), true).forEach(function(r2) {
108
- _defineProperty(e, r2, t[r2]);
109
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function(r2) {
110
- Object.defineProperty(e, r2, Object.getOwnPropertyDescriptor(t, r2));
111
- });
112
- }
113
- return e;
114
- }
115
- function _defineProperty(obj, key, value) {
116
- key = _toPropertyKey(key);
117
- if (key in obj) {
118
- Object.defineProperty(obj, key, { value, enumerable: true, configurable: true, writable: true });
119
- } else {
120
- obj[key] = value;
121
- }
122
- return obj;
123
- }
124
- function _toPropertyKey(t) {
125
- var i = _toPrimitive(t, "string");
126
- return "symbol" == typeof i ? i : i + "";
127
- }
128
- function _toPrimitive(t, r) {
129
- if ("object" != typeof t || !t) return t;
130
- var e = t[Symbol.toPrimitive];
131
- if (void 0 !== e) {
132
- var i = e.call(t, r || "default");
133
- if ("object" != typeof i) return i;
134
- throw new TypeError("@@toPrimitive must return a primitive value.");
135
- }
136
- return ("string" === r ? String : Number)(t);
137
- }
138
- function Tree2Element(tree) {
139
- return tree && tree.map((node, i) => /* @__PURE__ */ import_react2.default.createElement(node.tag, _objectSpread({
140
- key: i
141
- }, node.attr), Tree2Element(node.child)));
142
- }
143
- function GenIcon(data) {
144
- return (props) => /* @__PURE__ */ import_react2.default.createElement(IconBase, _extends({
145
- attr: _objectSpread({}, data.attr)
146
- }, props), Tree2Element(data.child));
147
- }
148
- function IconBase(props) {
149
- var elem = (conf) => {
150
- var {
151
- attr,
152
- size,
153
- title
154
- } = props, svgProps = _objectWithoutProperties(props, _excluded);
155
- var computedSize = size || conf.size || "1em";
156
- var className;
157
- if (conf.className) className = conf.className;
158
- if (props.className) className = (className ? className + " " : "") + props.className;
159
- return /* @__PURE__ */ import_react2.default.createElement("svg", _extends({
160
- stroke: "currentColor",
161
- fill: "currentColor",
162
- strokeWidth: "0"
163
- }, conf.attr, attr, svgProps, {
164
- className,
165
- style: _objectSpread(_objectSpread({
166
- color: props.color || conf.color
167
- }, conf.style), props.style),
168
- height: computedSize,
169
- width: computedSize,
170
- xmlns: "http://www.w3.org/2000/svg"
171
- }), title && /* @__PURE__ */ import_react2.default.createElement("title", null, title), props.children);
172
- };
173
- return IconContext !== void 0 ? /* @__PURE__ */ import_react2.default.createElement(IconContext.Consumer, null, (conf) => elem(conf)) : elem(DefaultContext);
174
- }
175
-
176
- // node_modules/react-icons/go/index.mjs
177
- function GoFileMedia(props) {
178
- return GenIcon({ "tag": "svg", "attr": { "viewBox": "0 0 24 24" }, "child": [{ "tag": "path", "attr": { "d": "M21.75 21.5H2.25A1.75 1.75 0 0 1 .5 19.75V4.25c0-.966.784-1.75 1.75-1.75h19.5c.966 0 1.75.784 1.75 1.75v15.5a1.75 1.75 0 0 1-1.75 1.75ZM2.25 4a.25.25 0 0 0-.25.25v15.5c0 .138.112.25.25.25h3.178L14 10.977a1.749 1.749 0 0 1 2.506-.032L22 16.44V4.25a.25.25 0 0 0-.25-.25ZM22 19.75v-1.19l-6.555-6.554a.248.248 0 0 0-.18-.073.247.247 0 0 0-.178.077L7.497 20H21.75a.25.25 0 0 0 .25-.25ZM10.5 9.25a3.25 3.25 0 1 1-6.5 0 3.25 3.25 0 0 1 6.5 0Zm-1.5 0a1.75 1.75 0 1 0-3.501.001A1.75 1.75 0 0 0 9 9.25Z" }, "child": [] }] })(props);
179
- }
180
- function GoLink(props) {
181
- return GenIcon({ "tag": "svg", "attr": { "viewBox": "0 0 24 24" }, "child": [{ "tag": "path", "attr": { "d": "M14.78 3.653a3.936 3.936 0 1 1 5.567 5.567l-3.627 3.627a3.936 3.936 0 0 1-5.88-.353.75.75 0 0 0-1.18.928 5.436 5.436 0 0 0 8.12.486l3.628-3.628a5.436 5.436 0 1 0-7.688-7.688l-3 3a.75.75 0 0 0 1.06 1.061l3-3Z" }, "child": [] }, { "tag": "path", "attr": { "d": "M7.28 11.153a3.936 3.936 0 0 1 5.88.353.75.75 0 0 0 1.18-.928 5.436 5.436 0 0 0-8.12-.486L2.592 13.72a5.436 5.436 0 1 0 7.688 7.688l3-3a.75.75 0 1 0-1.06-1.06l-3 3a3.936 3.936 0 0 1-5.567-5.568l3.627-3.627Z" }, "child": [] }] })(props);
182
- }
183
- function GoListOrdered(props) {
184
- return GenIcon({ "tag": "svg", "attr": { "viewBox": "0 0 24 24" }, "child": [{ "tag": "path", "attr": { "d": "M3.604 3.089A.75.75 0 0 1 4 3.75V8.5h.75a.75.75 0 0 1 0 1.5h-3a.75.75 0 1 1 0-1.5h.75V5.151l-.334.223a.75.75 0 0 1-.832-1.248l1.5-1a.75.75 0 0 1 .77-.037ZM8.75 5.5a.75.75 0 0 0 0 1.5h11.5a.75.75 0 0 0 0-1.5H8.75Zm0 6a.75.75 0 0 0 0 1.5h11.5a.75.75 0 0 0 0-1.5H8.75Zm0 6a.75.75 0 0 0 0 1.5h11.5a.75.75 0 0 0 0-1.5H8.75ZM5.5 15.75c0-.704-.271-1.286-.72-1.686a2.302 2.302 0 0 0-1.53-.564c-.535 0-1.094.178-1.53.565-.449.399-.72.982-.72 1.685a.75.75 0 0 0 1.5 0c0-.296.104-.464.217-.564A.805.805 0 0 1 3.25 15c.215 0 .406.072.533.185.113.101.217.268.217.565 0 .332-.069.48-.21.657-.092.113-.216.24-.403.419l-.147.14c-.152.144-.33.313-.52.504l-1.5 1.5a.75.75 0 0 0-.22.53v.25c0 .414.336.75.75.75H5A.75.75 0 0 0 5 19H3.31l.47-.47c.176-.176.333-.324.48-.465l.165-.156a5.98 5.98 0 0 0 .536-.566c.358-.447.539-.925.539-1.593Z" }, "child": [] }] })(props);
185
- }
186
- function GoListUnordered(props) {
187
- return GenIcon({ "tag": "svg", "attr": { "viewBox": "0 0 24 24" }, "child": [{ "tag": "path", "attr": { "d": "M8.75 5.5h11.5a.75.75 0 0 1 0 1.5H8.75a.75.75 0 0 1 0-1.5Zm0 6h11.5a.75.75 0 0 1 0 1.5H8.75a.75.75 0 0 1 0-1.5Zm0 6h11.5a.75.75 0 0 1 0 1.5H8.75a.75.75 0 0 1 0-1.5ZM5 12a1 1 0 1 1-2 0 1 1 0 0 1 2 0ZM4 7a1 1 0 1 1 0-2 1 1 0 0 1 0 2Zm0 12a1 1 0 1 1 0-2 1 1 0 0 1 0 2Z" }, "child": [] }] })(props);
188
- }
189
-
190
- // src/post/editor_toolbar.tsx
191
- var import_react7 = __toESM(require("react"));
27
+ var import_go = require("react-icons/go");
192
28
 
193
29
  // src/client/env_loader.tsx
194
- var import_react3 = __toESM(require("react"));
195
30
  var import_react_router = require("react-router");
31
+ var import_jsx_runtime = require("react/jsx-runtime");
196
32
 
197
33
  // src/client/file_input.tsx
198
- var import_react4 = require("react");
199
- var import_react5 = __toESM(require("react"));
34
+ var import_react = require("react");
35
+ var import_jsx_runtime2 = require("react/jsx-runtime");
200
36
  function FileInput({
201
37
  buttonRef,
202
38
  className,
@@ -206,35 +42,38 @@ function FileInput({
206
42
  onChange,
207
43
  ...props
208
44
  }) {
209
- const inputRef = import_react5.default.useRef(null);
210
- return /* @__PURE__ */ import_react5.default.createElement(import_react5.default.Fragment, null, /* @__PURE__ */ import_react5.default.createElement(
211
- "button",
212
- {
213
- ref: buttonRef,
214
- className,
215
- type: "button",
216
- onClick: () => {
217
- inputRef.current?.click();
45
+ const inputRef = (0, import_react.useRef)(null);
46
+ return /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(import_jsx_runtime2.Fragment, { children: [
47
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
48
+ "button",
49
+ {
50
+ ref: buttonRef,
51
+ className,
52
+ type: "button",
53
+ onClick: () => {
54
+ inputRef.current?.click();
55
+ },
56
+ children
218
57
  }
219
- },
220
- children
221
- ), /* @__PURE__ */ import_react5.default.createElement(
222
- "input",
223
- {
224
- ...props,
225
- type: "file",
226
- ref: inputRef,
227
- style: {
228
- display: "none"
229
- },
230
- onChange: async (e) => {
231
- await onChange?.(e);
232
- if (inputRef.current) {
233
- inputRef.current.value = "";
58
+ ),
59
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
60
+ "input",
61
+ {
62
+ ...props,
63
+ type: "file",
64
+ ref: inputRef,
65
+ style: {
66
+ display: "none"
67
+ },
68
+ onChange: async (e) => {
69
+ await onChange?.(e);
70
+ if (inputRef.current) {
71
+ inputRef.current.value = "";
72
+ }
234
73
  }
235
74
  }
236
- }
237
- ));
75
+ )
76
+ ] });
238
77
  }
239
78
 
240
79
  // src/client/use_user_agent.tsx
@@ -243,98 +82,102 @@ var import_react_router2 = require("react-router");
243
82
  // src/client/store_text_editor.tsx
244
83
  var import_dn_react_text_editor = require("dn-react-text-editor");
245
84
  var import_react_store_input = require("react-store-input");
246
- var import_react6 = __toESM(require("react"));
85
+ var import_react2 = require("react");
86
+ var import_jsx_runtime3 = require("react/jsx-runtime");
247
87
 
248
88
  // src/client/editor.tsx
249
89
  var import_client = require("dn-react-toolkit/file/client");
250
90
 
251
91
  // src/post/editor_toolbar.tsx
92
+ var import_jsx_runtime4 = require("react/jsx-runtime");
252
93
  function EditorToolbar({
253
94
  textEditorRef,
254
95
  className
255
96
  }) {
256
- return /* @__PURE__ */ import_react7.default.createElement(
97
+ return /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(
257
98
  "div",
258
99
  {
259
- className: (0, import_utils.cn)("w-full h-12 flex items-center gap-0.5 px-1", className)
260
- },
261
- /* @__PURE__ */ import_react7.default.createElement(
262
- FileInput,
263
- {
264
- className: "button-icon-base text-[18px]",
265
- onChange: async (e) => {
266
- const files = e.target.files;
267
- if (!files || files.length === 0) {
268
- return;
100
+ className: (0, import_utils.cn)("w-full h-12 flex items-center gap-0.5 px-1", className),
101
+ children: [
102
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
103
+ FileInput,
104
+ {
105
+ className: "button-icon-base text-[18px]",
106
+ onChange: async (e) => {
107
+ const files = e.target.files;
108
+ if (!files || files.length === 0) {
109
+ return;
110
+ }
111
+ textEditorRef.current?.commands.attachFile(Array.from(files));
112
+ },
113
+ children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_go.GoFileMedia, {})
269
114
  }
270
- textEditorRef.current?.commands.attachFile(Array.from(files));
271
- }
272
- },
273
- /* @__PURE__ */ import_react7.default.createElement(GoFileMedia, null)
274
- ),
275
- /* @__PURE__ */ import_react7.default.createElement(
276
- "button",
277
- {
278
- type: "button",
279
- onClick: () => {
280
- const href = prompt("\uB9C1\uD06C URL\uC744 \uC785\uB825\uD558\uC138\uC694");
281
- if (!href) {
282
- return;
115
+ ),
116
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
117
+ "button",
118
+ {
119
+ type: "button",
120
+ onClick: () => {
121
+ const href = prompt("\uB9C1\uD06C URL\uC744 \uC785\uB825\uD558\uC138\uC694");
122
+ if (!href) {
123
+ return;
124
+ }
125
+ textEditorRef.current?.commands.toggleMark("link", { href });
126
+ },
127
+ className: "button-icon-base text-[20px]",
128
+ children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_go.GoLink, {})
283
129
  }
284
- textEditorRef.current?.commands.toggleMark("link", { href });
285
- },
286
- className: "button-icon-base text-[20px]"
287
- },
288
- /* @__PURE__ */ import_react7.default.createElement(GoLink, null)
289
- ),
290
- /* @__PURE__ */ import_react7.default.createElement(
291
- "button",
292
- {
293
- type: "button",
294
- onClick: () => {
295
- textEditorRef.current?.commands.toggleBlockType("heading", {
296
- level: 2
297
- });
298
- },
299
- className: "button-icon-base text-[18px]"
300
- },
301
- /* @__PURE__ */ import_react7.default.createElement("span", null, "H2")
302
- ),
303
- /* @__PURE__ */ import_react7.default.createElement(
304
- "button",
305
- {
306
- type: "button",
307
- onClick: () => {
308
- textEditorRef.current?.commands.toggleBlockType("heading", {
309
- level: 3
310
- });
311
- },
312
- className: "button-icon-base text-[18px]"
313
- },
314
- /* @__PURE__ */ import_react7.default.createElement("span", null, "H3")
315
- ),
316
- /* @__PURE__ */ import_react7.default.createElement(
317
- "button",
318
- {
319
- type: "button",
320
- onClick: () => {
321
- textEditorRef.current?.commands.wrapInList("ordered_list");
322
- },
323
- className: "button-icon-base text-[20px]"
324
- },
325
- /* @__PURE__ */ import_react7.default.createElement(GoListOrdered, null)
326
- ),
327
- /* @__PURE__ */ import_react7.default.createElement(
328
- "button",
329
- {
330
- type: "button",
331
- onClick: () => {
332
- textEditorRef.current?.commands.wrapInList("bullet_list");
333
- },
334
- className: "button-icon-base text-[20px]"
335
- },
336
- /* @__PURE__ */ import_react7.default.createElement(GoListUnordered, null)
337
- )
130
+ ),
131
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
132
+ "button",
133
+ {
134
+ type: "button",
135
+ onClick: () => {
136
+ textEditorRef.current?.commands.toggleBlockType("heading", {
137
+ level: 2
138
+ });
139
+ },
140
+ className: "button-icon-base text-[18px]",
141
+ children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("span", { children: "H2" })
142
+ }
143
+ ),
144
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
145
+ "button",
146
+ {
147
+ type: "button",
148
+ onClick: () => {
149
+ textEditorRef.current?.commands.toggleBlockType("heading", {
150
+ level: 3
151
+ });
152
+ },
153
+ className: "button-icon-base text-[18px]",
154
+ children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("span", { children: "H3" })
155
+ }
156
+ ),
157
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
158
+ "button",
159
+ {
160
+ type: "button",
161
+ onClick: () => {
162
+ textEditorRef.current?.commands.wrapInList("ordered_list");
163
+ },
164
+ className: "button-icon-base text-[20px]",
165
+ children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_go.GoListOrdered, {})
166
+ }
167
+ ),
168
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
169
+ "button",
170
+ {
171
+ type: "button",
172
+ onClick: () => {
173
+ textEditorRef.current?.commands.wrapInList("bullet_list");
174
+ },
175
+ className: "button-icon-base text-[20px]",
176
+ children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_go.GoListUnordered, {})
177
+ }
178
+ )
179
+ ]
180
+ }
338
181
  );
339
182
  }
340
183
  // Annotate the CommonJS export names for ESM import in node: