astro-md-editor 0.0.1

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 (87) hide show
  1. package/.output/nitro.json +17 -0
  2. package/.output/public/assets/index-Cc7yKB0o.js +19 -0
  3. package/.output/public/assets/inter-cyrillic-ext-wght-normal-BOeWTOD4.woff2 +0 -0
  4. package/.output/public/assets/inter-cyrillic-wght-normal-DqGufNeO.woff2 +0 -0
  5. package/.output/public/assets/inter-greek-ext-wght-normal-DlzME5K_.woff2 +0 -0
  6. package/.output/public/assets/inter-greek-wght-normal-CkhJZR-_.woff2 +0 -0
  7. package/.output/public/assets/inter-latin-ext-wght-normal-DO1Apj_S.woff2 +0 -0
  8. package/.output/public/assets/inter-latin-wght-normal-Dx4kXJAl.woff2 +0 -0
  9. package/.output/public/assets/inter-vietnamese-wght-normal-CBcvBZtf.woff2 +0 -0
  10. package/.output/public/assets/main-DDBjVFnt.js +17 -0
  11. package/.output/public/assets/styles-ggfdUHMo.css +1 -0
  12. package/.output/public/favicon.ico +0 -0
  13. package/.output/public/logo192.png +0 -0
  14. package/.output/public/logo512.png +0 -0
  15. package/.output/public/manifest.json +25 -0
  16. package/.output/public/robots.txt +3 -0
  17. package/.output/server/__root-C09LBXMv.mjs +40 -0
  18. package/.output/server/_chunks/ssr-renderer.mjs +21 -0
  19. package/.output/server/_libs/ajv-formats.mjs +330 -0
  20. package/.output/server/_libs/ajv.mjs +5484 -0
  21. package/.output/server/_libs/base-ui__react.mjs +8712 -0
  22. package/.output/server/_libs/base-ui__utils.mjs +980 -0
  23. package/.output/server/_libs/class-variance-authority.mjs +44 -0
  24. package/.output/server/_libs/clsx.mjs +16 -0
  25. package/.output/server/_libs/cookie-es.mjs +58 -0
  26. package/.output/server/_libs/croner.mjs +1 -0
  27. package/.output/server/_libs/crossws.mjs +1 -0
  28. package/.output/server/_libs/date-fns.mjs +1716 -0
  29. package/.output/server/_libs/date-fns__tz.mjs +217 -0
  30. package/.output/server/_libs/extend-shallow.mjs +35 -0
  31. package/.output/server/_libs/fast-deep-equal.mjs +38 -0
  32. package/.output/server/_libs/fast-uri.mjs +725 -0
  33. package/.output/server/_libs/floating-ui__core.mjs +663 -0
  34. package/.output/server/_libs/floating-ui__dom.mjs +624 -0
  35. package/.output/server/_libs/floating-ui__react-dom.mjs +279 -0
  36. package/.output/server/_libs/floating-ui__utils.mjs +322 -0
  37. package/.output/server/_libs/gray-matter.mjs +393 -0
  38. package/.output/server/_libs/h3-v2.mjs +276 -0
  39. package/.output/server/_libs/h3.mjs +400 -0
  40. package/.output/server/_libs/hookable.mjs +1 -0
  41. package/.output/server/_libs/is-extendable.mjs +13 -0
  42. package/.output/server/_libs/isbot.mjs +20 -0
  43. package/.output/server/_libs/js-yaml.mjs +2822 -0
  44. package/.output/server/_libs/json-schema-traverse.mjs +91 -0
  45. package/.output/server/_libs/kind-of.mjs +125 -0
  46. package/.output/server/_libs/lucide-react.mjs +177 -0
  47. package/.output/server/_libs/ohash.mjs +1 -0
  48. package/.output/server/_libs/react-day-picker.mjs +2216 -0
  49. package/.output/server/_libs/react-dom.mjs +10779 -0
  50. package/.output/server/_libs/react-resizable-panels.mjs +2024 -0
  51. package/.output/server/_libs/react.mjs +513 -0
  52. package/.output/server/_libs/reselect.mjs +326 -0
  53. package/.output/server/_libs/rou3.mjs +8 -0
  54. package/.output/server/_libs/section-matter.mjs +112 -0
  55. package/.output/server/_libs/seroval-plugins.mjs +58 -0
  56. package/.output/server/_libs/seroval.mjs +1765 -0
  57. package/.output/server/_libs/srvx.mjs +736 -0
  58. package/.output/server/_libs/strip-bom-string.mjs +16 -0
  59. package/.output/server/_libs/tabbable.mjs +342 -0
  60. package/.output/server/_libs/tailwind-merge.mjs +3175 -0
  61. package/.output/server/_libs/tanstack__history.mjs +217 -0
  62. package/.output/server/_libs/tanstack__react-router.mjs +1464 -0
  63. package/.output/server/_libs/tanstack__react-store.mjs +1 -0
  64. package/.output/server/_libs/tanstack__router-core.mjs +4912 -0
  65. package/.output/server/_libs/tanstack__store.mjs +1 -0
  66. package/.output/server/_libs/tiny-invariant.mjs +12 -0
  67. package/.output/server/_libs/tiny-warning.mjs +5 -0
  68. package/.output/server/_libs/ufo.mjs +54 -0
  69. package/.output/server/_libs/unctx.mjs +1 -0
  70. package/.output/server/_libs/unstorage.mjs +1 -0
  71. package/.output/server/_libs/use-sync-external-store.mjs +139 -0
  72. package/.output/server/_libs/zod.mjs +3634 -0
  73. package/.output/server/_libs/zustand.mjs +43 -0
  74. package/.output/server/_ssr/RightSidebar-RSY9M7XF.mjs +218 -0
  75. package/.output/server/_ssr/collections.server-D6U2tEsT.mjs +120 -0
  76. package/.output/server/_ssr/createServerRpc-29xaFZcb.mjs +12 -0
  77. package/.output/server/_ssr/index-BaqV4cZC.mjs +2083 -0
  78. package/.output/server/_ssr/index-sQBM6rwN.mjs +115 -0
  79. package/.output/server/_ssr/index.mjs +1448 -0
  80. package/.output/server/_ssr/router-D4G1DGr3.mjs +155 -0
  81. package/.output/server/_ssr/start-HYkvq4Ni.mjs +4 -0
  82. package/.output/server/_tanstack-start-manifest_v-CYEHh_qB.mjs +4 -0
  83. package/.output/server/index.mjs +451 -0
  84. package/README.md +118 -0
  85. package/index.mjs +21 -0
  86. package/package.json +86 -0
  87. package/scripts/bootstrap-collections.mjs +1201 -0
@@ -0,0 +1,16 @@
1
+ var stripBomString;
2
+ var hasRequiredStripBomString;
3
+ function requireStripBomString() {
4
+ if (hasRequiredStripBomString) return stripBomString;
5
+ hasRequiredStripBomString = 1;
6
+ stripBomString = function(str) {
7
+ if (typeof str === "string" && str.charAt(0) === "\uFEFF") {
8
+ return str.slice(1);
9
+ }
10
+ return str;
11
+ };
12
+ return stripBomString;
13
+ }
14
+ export {
15
+ requireStripBomString as r
16
+ };
@@ -0,0 +1,342 @@
1
+ var candidateSelectors = ["input:not([inert]):not([inert] *)", "select:not([inert]):not([inert] *)", "textarea:not([inert]):not([inert] *)", "a[href]:not([inert]):not([inert] *)", "button:not([inert]):not([inert] *)", "[tabindex]:not(slot):not([inert]):not([inert] *)", "audio[controls]:not([inert]):not([inert] *)", "video[controls]:not([inert]):not([inert] *)", '[contenteditable]:not([contenteditable="false"]):not([inert]):not([inert] *)', "details>summary:first-of-type:not([inert]):not([inert] *)", "details:not([inert]):not([inert] *)"];
2
+ var candidateSelector = /* @__PURE__ */ candidateSelectors.join(",");
3
+ var NoElement = typeof Element === "undefined";
4
+ var matches = NoElement ? function() {
5
+ } : Element.prototype.matches || Element.prototype.msMatchesSelector || Element.prototype.webkitMatchesSelector;
6
+ var getRootNode = !NoElement && Element.prototype.getRootNode ? function(element) {
7
+ var _element$getRootNode;
8
+ return element === null || element === void 0 ? void 0 : (_element$getRootNode = element.getRootNode) === null || _element$getRootNode === void 0 ? void 0 : _element$getRootNode.call(element);
9
+ } : function(element) {
10
+ return element === null || element === void 0 ? void 0 : element.ownerDocument;
11
+ };
12
+ var _isInert = function isInert(node, lookUp) {
13
+ var _node$getAttribute;
14
+ if (lookUp === void 0) {
15
+ lookUp = true;
16
+ }
17
+ var inertAtt = node === null || node === void 0 ? void 0 : (_node$getAttribute = node.getAttribute) === null || _node$getAttribute === void 0 ? void 0 : _node$getAttribute.call(node, "inert");
18
+ var inert = inertAtt === "" || inertAtt === "true";
19
+ var result = inert || lookUp && node && // closest does not exist on shadow roots, so we fall back to a manual
20
+ // lookup upward, in case it is not defined.
21
+ (typeof node.closest === "function" ? node.closest("[inert]") : _isInert(node.parentNode));
22
+ return result;
23
+ };
24
+ var isContentEditable = function isContentEditable2(node) {
25
+ var _node$getAttribute2;
26
+ var attValue = node === null || node === void 0 ? void 0 : (_node$getAttribute2 = node.getAttribute) === null || _node$getAttribute2 === void 0 ? void 0 : _node$getAttribute2.call(node, "contenteditable");
27
+ return attValue === "" || attValue === "true";
28
+ };
29
+ var getCandidates = function getCandidates2(el, includeContainer, filter) {
30
+ if (_isInert(el)) {
31
+ return [];
32
+ }
33
+ var candidates = Array.prototype.slice.apply(el.querySelectorAll(candidateSelector));
34
+ if (includeContainer && matches.call(el, candidateSelector)) {
35
+ candidates.unshift(el);
36
+ }
37
+ candidates = candidates.filter(filter);
38
+ return candidates;
39
+ };
40
+ var _getCandidatesIteratively = function getCandidatesIteratively(elements, includeContainer, options) {
41
+ var candidates = [];
42
+ var elementsToCheck = Array.from(elements);
43
+ while (elementsToCheck.length) {
44
+ var element = elementsToCheck.shift();
45
+ if (_isInert(element, false)) {
46
+ continue;
47
+ }
48
+ if (element.tagName === "SLOT") {
49
+ var assigned = element.assignedElements();
50
+ var content = assigned.length ? assigned : element.children;
51
+ var nestedCandidates = _getCandidatesIteratively(content, true, options);
52
+ if (options.flatten) {
53
+ candidates.push.apply(candidates, nestedCandidates);
54
+ } else {
55
+ candidates.push({
56
+ scopeParent: element,
57
+ candidates: nestedCandidates
58
+ });
59
+ }
60
+ } else {
61
+ var validCandidate = matches.call(element, candidateSelector);
62
+ if (validCandidate && options.filter(element) && (includeContainer || !elements.includes(element))) {
63
+ candidates.push(element);
64
+ }
65
+ var shadowRoot = element.shadowRoot || // check for an undisclosed shadow
66
+ typeof options.getShadowRoot === "function" && options.getShadowRoot(element);
67
+ var validShadowRoot = !_isInert(shadowRoot, false) && (!options.shadowRootFilter || options.shadowRootFilter(element));
68
+ if (shadowRoot && validShadowRoot) {
69
+ var _nestedCandidates = _getCandidatesIteratively(shadowRoot === true ? element.children : shadowRoot.children, true, options);
70
+ if (options.flatten) {
71
+ candidates.push.apply(candidates, _nestedCandidates);
72
+ } else {
73
+ candidates.push({
74
+ scopeParent: element,
75
+ candidates: _nestedCandidates
76
+ });
77
+ }
78
+ } else {
79
+ elementsToCheck.unshift.apply(elementsToCheck, element.children);
80
+ }
81
+ }
82
+ }
83
+ return candidates;
84
+ };
85
+ var hasTabIndex = function hasTabIndex2(node) {
86
+ return !isNaN(parseInt(node.getAttribute("tabindex"), 10));
87
+ };
88
+ var getTabIndex = function getTabIndex2(node) {
89
+ if (!node) {
90
+ throw new Error("No node provided");
91
+ }
92
+ if (node.tabIndex < 0) {
93
+ if ((/^(AUDIO|VIDEO|DETAILS)$/.test(node.tagName) || isContentEditable(node)) && !hasTabIndex(node)) {
94
+ return 0;
95
+ }
96
+ }
97
+ return node.tabIndex;
98
+ };
99
+ var getSortOrderTabIndex = function getSortOrderTabIndex2(node, isScope) {
100
+ var tabIndex = getTabIndex(node);
101
+ if (tabIndex < 0 && isScope && !hasTabIndex(node)) {
102
+ return 0;
103
+ }
104
+ return tabIndex;
105
+ };
106
+ var sortOrderedTabbables = function sortOrderedTabbables2(a, b) {
107
+ return a.tabIndex === b.tabIndex ? a.documentOrder - b.documentOrder : a.tabIndex - b.tabIndex;
108
+ };
109
+ var isInput = function isInput2(node) {
110
+ return node.tagName === "INPUT";
111
+ };
112
+ var isHiddenInput = function isHiddenInput2(node) {
113
+ return isInput(node) && node.type === "hidden";
114
+ };
115
+ var isDetailsWithSummary = function isDetailsWithSummary2(node) {
116
+ var r = node.tagName === "DETAILS" && Array.prototype.slice.apply(node.children).some(function(child) {
117
+ return child.tagName === "SUMMARY";
118
+ });
119
+ return r;
120
+ };
121
+ var getCheckedRadio = function getCheckedRadio2(nodes, form) {
122
+ for (var i = 0; i < nodes.length; i++) {
123
+ if (nodes[i].checked && nodes[i].form === form) {
124
+ return nodes[i];
125
+ }
126
+ }
127
+ };
128
+ var isTabbableRadio = function isTabbableRadio2(node) {
129
+ if (!node.name) {
130
+ return true;
131
+ }
132
+ var radioScope = node.form || getRootNode(node);
133
+ var queryRadios = function queryRadios2(name) {
134
+ return radioScope.querySelectorAll('input[type="radio"][name="' + name + '"]');
135
+ };
136
+ var radioSet;
137
+ if (typeof window !== "undefined" && typeof window.CSS !== "undefined" && typeof window.CSS.escape === "function") {
138
+ radioSet = queryRadios(window.CSS.escape(node.name));
139
+ } else {
140
+ try {
141
+ radioSet = queryRadios(node.name);
142
+ } catch (err) {
143
+ console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s", err.message);
144
+ return false;
145
+ }
146
+ }
147
+ var checked = getCheckedRadio(radioSet, node.form);
148
+ return !checked || checked === node;
149
+ };
150
+ var isRadio = function isRadio2(node) {
151
+ return isInput(node) && node.type === "radio";
152
+ };
153
+ var isNonTabbableRadio = function isNonTabbableRadio2(node) {
154
+ return isRadio(node) && !isTabbableRadio(node);
155
+ };
156
+ var isNodeAttached = function isNodeAttached2(node) {
157
+ var _nodeRoot;
158
+ var nodeRoot = node && getRootNode(node);
159
+ var nodeRootHost = (_nodeRoot = nodeRoot) === null || _nodeRoot === void 0 ? void 0 : _nodeRoot.host;
160
+ var attached = false;
161
+ if (nodeRoot && nodeRoot !== node) {
162
+ var _nodeRootHost, _nodeRootHost$ownerDo, _node$ownerDocument;
163
+ attached = !!((_nodeRootHost = nodeRootHost) !== null && _nodeRootHost !== void 0 && (_nodeRootHost$ownerDo = _nodeRootHost.ownerDocument) !== null && _nodeRootHost$ownerDo !== void 0 && _nodeRootHost$ownerDo.contains(nodeRootHost) || node !== null && node !== void 0 && (_node$ownerDocument = node.ownerDocument) !== null && _node$ownerDocument !== void 0 && _node$ownerDocument.contains(node));
164
+ while (!attached && nodeRootHost) {
165
+ var _nodeRoot2, _nodeRootHost2, _nodeRootHost2$ownerD;
166
+ nodeRoot = getRootNode(nodeRootHost);
167
+ nodeRootHost = (_nodeRoot2 = nodeRoot) === null || _nodeRoot2 === void 0 ? void 0 : _nodeRoot2.host;
168
+ attached = !!((_nodeRootHost2 = nodeRootHost) !== null && _nodeRootHost2 !== void 0 && (_nodeRootHost2$ownerD = _nodeRootHost2.ownerDocument) !== null && _nodeRootHost2$ownerD !== void 0 && _nodeRootHost2$ownerD.contains(nodeRootHost));
169
+ }
170
+ }
171
+ return attached;
172
+ };
173
+ var isZeroArea = function isZeroArea2(node) {
174
+ var _node$getBoundingClie = node.getBoundingClientRect(), width = _node$getBoundingClie.width, height = _node$getBoundingClie.height;
175
+ return width === 0 && height === 0;
176
+ };
177
+ var isHidden = function isHidden2(node, _ref) {
178
+ var displayCheck = _ref.displayCheck, getShadowRoot = _ref.getShadowRoot;
179
+ if (displayCheck === "full-native") {
180
+ if ("checkVisibility" in node) {
181
+ var visible = node.checkVisibility({
182
+ // Checking opacity might be desirable for some use cases, but natively,
183
+ // opacity zero elements _are_ focusable and tabbable.
184
+ checkOpacity: false,
185
+ opacityProperty: false,
186
+ contentVisibilityAuto: true,
187
+ visibilityProperty: true,
188
+ // This is an alias for `visibilityProperty`. Contemporary browsers
189
+ // support both. However, this alias has wider browser support (Chrome
190
+ // >= 105 and Firefox >= 106, vs. Chrome >= 121 and Firefox >= 122), so
191
+ // we include it anyway.
192
+ checkVisibilityCSS: true
193
+ });
194
+ return !visible;
195
+ }
196
+ }
197
+ if (getComputedStyle(node).visibility === "hidden") {
198
+ return true;
199
+ }
200
+ var isDirectSummary = matches.call(node, "details>summary:first-of-type");
201
+ var nodeUnderDetails = isDirectSummary ? node.parentElement : node;
202
+ if (matches.call(nodeUnderDetails, "details:not([open]) *")) {
203
+ return true;
204
+ }
205
+ if (!displayCheck || displayCheck === "full" || // full-native can run this branch when it falls through in case
206
+ // Element#checkVisibility is unsupported
207
+ displayCheck === "full-native" || displayCheck === "legacy-full") {
208
+ if (typeof getShadowRoot === "function") {
209
+ var originalNode = node;
210
+ while (node) {
211
+ var parentElement = node.parentElement;
212
+ var rootNode = getRootNode(node);
213
+ if (parentElement && !parentElement.shadowRoot && getShadowRoot(parentElement) === true) {
214
+ return isZeroArea(node);
215
+ } else if (node.assignedSlot) {
216
+ node = node.assignedSlot;
217
+ } else if (!parentElement && rootNode !== node.ownerDocument) {
218
+ node = rootNode.host;
219
+ } else {
220
+ node = parentElement;
221
+ }
222
+ }
223
+ node = originalNode;
224
+ }
225
+ if (isNodeAttached(node)) {
226
+ return !node.getClientRects().length;
227
+ }
228
+ if (displayCheck !== "legacy-full") {
229
+ return true;
230
+ }
231
+ } else if (displayCheck === "non-zero-area") {
232
+ return isZeroArea(node);
233
+ }
234
+ return false;
235
+ };
236
+ var isDisabledFromFieldset = function isDisabledFromFieldset2(node) {
237
+ if (/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(node.tagName)) {
238
+ var parentNode = node.parentElement;
239
+ while (parentNode) {
240
+ if (parentNode.tagName === "FIELDSET" && parentNode.disabled) {
241
+ for (var i = 0; i < parentNode.children.length; i++) {
242
+ var child = parentNode.children.item(i);
243
+ if (child.tagName === "LEGEND") {
244
+ return matches.call(parentNode, "fieldset[disabled] *") ? true : !child.contains(node);
245
+ }
246
+ }
247
+ return true;
248
+ }
249
+ parentNode = parentNode.parentElement;
250
+ }
251
+ }
252
+ return false;
253
+ };
254
+ var isNodeMatchingSelectorFocusable = function isNodeMatchingSelectorFocusable2(options, node) {
255
+ if (node.disabled || isHiddenInput(node) || isHidden(node, options) || // For a details element with a summary, the summary element gets the focus
256
+ isDetailsWithSummary(node) || isDisabledFromFieldset(node)) {
257
+ return false;
258
+ }
259
+ return true;
260
+ };
261
+ var isNodeMatchingSelectorTabbable = function isNodeMatchingSelectorTabbable2(options, node) {
262
+ if (isNonTabbableRadio(node) || getTabIndex(node) < 0 || !isNodeMatchingSelectorFocusable(options, node)) {
263
+ return false;
264
+ }
265
+ return true;
266
+ };
267
+ var isShadowRootTabbable = function isShadowRootTabbable2(shadowHostNode) {
268
+ var tabIndex = parseInt(shadowHostNode.getAttribute("tabindex"), 10);
269
+ if (isNaN(tabIndex) || tabIndex >= 0) {
270
+ return true;
271
+ }
272
+ return false;
273
+ };
274
+ var _sortByOrder = function sortByOrder(candidates) {
275
+ var regularTabbables = [];
276
+ var orderedTabbables = [];
277
+ candidates.forEach(function(item, i) {
278
+ var isScope = !!item.scopeParent;
279
+ var element = isScope ? item.scopeParent : item;
280
+ var candidateTabindex = getSortOrderTabIndex(element, isScope);
281
+ var elements = isScope ? _sortByOrder(item.candidates) : element;
282
+ if (candidateTabindex === 0) {
283
+ isScope ? regularTabbables.push.apply(regularTabbables, elements) : regularTabbables.push(element);
284
+ } else {
285
+ orderedTabbables.push({
286
+ documentOrder: i,
287
+ tabIndex: candidateTabindex,
288
+ item,
289
+ isScope,
290
+ content: elements
291
+ });
292
+ }
293
+ });
294
+ return orderedTabbables.sort(sortOrderedTabbables).reduce(function(acc, sortable) {
295
+ sortable.isScope ? acc.push.apply(acc, sortable.content) : acc.push(sortable.content);
296
+ return acc;
297
+ }, []).concat(regularTabbables);
298
+ };
299
+ var tabbable = function tabbable2(container, options) {
300
+ options = options || {};
301
+ var candidates;
302
+ if (options.getShadowRoot) {
303
+ candidates = _getCandidatesIteratively([container], options.includeContainer, {
304
+ filter: isNodeMatchingSelectorTabbable.bind(null, options),
305
+ flatten: false,
306
+ getShadowRoot: options.getShadowRoot,
307
+ shadowRootFilter: isShadowRootTabbable
308
+ });
309
+ } else {
310
+ candidates = getCandidates(container, options.includeContainer, isNodeMatchingSelectorTabbable.bind(null, options));
311
+ }
312
+ return _sortByOrder(candidates);
313
+ };
314
+ var focusable = function focusable2(container, options) {
315
+ options = options || {};
316
+ var candidates;
317
+ if (options.getShadowRoot) {
318
+ candidates = _getCandidatesIteratively([container], options.includeContainer, {
319
+ filter: isNodeMatchingSelectorFocusable.bind(null, options),
320
+ flatten: true,
321
+ getShadowRoot: options.getShadowRoot
322
+ });
323
+ } else {
324
+ candidates = getCandidates(container, options.includeContainer, isNodeMatchingSelectorFocusable.bind(null, options));
325
+ }
326
+ return candidates;
327
+ };
328
+ var isTabbable = function isTabbable2(node, options) {
329
+ options = options || {};
330
+ if (!node) {
331
+ throw new Error("No node provided");
332
+ }
333
+ if (matches.call(node, candidateSelector) === false) {
334
+ return false;
335
+ }
336
+ return isNodeMatchingSelectorTabbable(options, node);
337
+ };
338
+ export {
339
+ focusable as f,
340
+ isTabbable as i,
341
+ tabbable as t
342
+ };