@tempots/beatui 0.90.0 → 0.91.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.
- package/dist/{ar-MUKILk4c.js → ar-8Cko5i-Z.js} +18 -10
- package/dist/{ar-CBrjAlIY.cjs → ar-D2DjoXta.cjs} +1 -1
- package/dist/auth/index.cjs.js +1 -1
- package/dist/auth/index.es.js +1 -1
- package/dist/{auth-divider-DvVmqjnk.js → auth-divider-B4n8lGx5.js} +7 -7
- package/dist/{auth-divider-Cj-xJxF_.cjs → auth-divider-VzrKnv2d.cjs} +1 -1
- package/dist/beatui.css +31 -28
- package/dist/beatui.tailwind.css +31 -28
- package/dist/better-auth/index.cjs.js +1 -1
- package/dist/better-auth/index.es.js +5 -5
- package/dist/{de-CEsW1rVX.js → de-Bt-d2iKj.js} +12 -4
- package/dist/{de-CrBw41po.cjs → de-Cdf3432J.cjs} +1 -1
- package/dist/{deep-merge-OvVqSLSN.js → deep-merge-BdRgguFO.js} +38 -38
- package/dist/deep-merge-CI1g9sjh.cjs +1 -0
- package/dist/{duration-input-BCXujp0V.js → duration-input-BZhzeELL.js} +4 -4
- package/dist/{duration-input-MJz6UO6E.cjs → duration-input-a1fCTfKl.cjs} +1 -1
- package/dist/{editor-toolbar-group-Cnta0SOa.js → editor-toolbar-group-CzdBZ1yr.js} +2 -2
- package/dist/{editor-toolbar-group-BgWLVgMZ.cjs → editor-toolbar-group-DhKJdqER.cjs} +1 -1
- package/dist/{es-ChP-aFwC.js → es-2llfNFX2.js} +10 -2
- package/dist/{es-Ca5xT3NE.cjs → es-6fFPkKHL.cjs} +1 -1
- package/dist/{fa-CNsrlIqh.js → fa-CQVIBjKP.js} +18 -10
- package/dist/{fa-DhZJYuC6.cjs → fa-GXyNzAXz.cjs} +1 -1
- package/dist/{fr-1nSKSIlw.cjs → fr-C6EYTwSH.cjs} +1 -1
- package/dist/{fr-DgEFKpML.js → fr-CC3smTlW.js} +19 -11
- package/dist/{he-DhcurPt5.cjs → he-CJUgxvi8.cjs} +1 -1
- package/dist/{he-B4TqfISZ.js → he-CZilsN75.js} +16 -8
- package/dist/{hi-TSoDsngT.js → hi-CAZjwGv-.js} +16 -8
- package/dist/{hi-CxsIxbfM.cjs → hi-DqIR4VtX.cjs} +1 -1
- package/dist/{index-D4ZFV8Rs.cjs → index-B-cwxUsP.cjs} +1 -1
- package/dist/{index-DOc1_-Nm.js → index-BFzxpY7y.js} +1 -1
- package/dist/{index-D3QVPAme.cjs → index-BOC0cVoY.cjs} +2 -2
- package/dist/{index-D_aTUfqS.js → index-DJ9YIJcG.js} +6 -6
- package/dist/index.cjs.js +2 -2
- package/dist/index.es.js +1847 -1822
- package/dist/{input-container-BBWCDGTv.js → input-container-9r1F3KuX.js} +1 -1
- package/dist/{input-container-B31Seozh.cjs → input-container-DiYEl_y8.cjs} +1 -1
- package/dist/{it-D_IcaYxp.cjs → it-BvHsJ7fH.cjs} +1 -1
- package/dist/{it-BrbebXg4.js → it-D6RXFIL6.js} +19 -11
- package/dist/{ja-CMGqpPo7.cjs → ja-B2gP7OHY.cjs} +1 -1
- package/dist/{ja-DcfOktrV.js → ja-D7zsz4Ij.js} +15 -7
- package/dist/json-schema/index.cjs.js +1 -1
- package/dist/json-schema/index.es.js +11 -12
- package/dist/json-schema-display/index.cjs.js +1 -1
- package/dist/json-schema-display/index.es.js +1 -1
- package/dist/json-structure/index.cjs.js +1 -1
- package/dist/json-structure/index.es.js +6 -6
- package/dist/{ko-BPl5rP97.cjs → ko-BddhddIA.cjs} +1 -1
- package/dist/{ko-73e6t369.js → ko-taN2Npr4.js} +12 -4
- package/dist/lexical/index.cjs.js +30 -30
- package/dist/lexical/index.es.js +5741 -5527
- package/dist/lexical.css +31 -28
- package/dist/{modal-jJMS0ZlW.cjs → modal-C-d5Btti.cjs} +1 -1
- package/dist/{modal-BBJWY7NB.js → modal-DTz98Dk7.js} +3 -3
- package/dist/{nl-BSfaHFt0.cjs → nl-COrtZUnH.cjs} +1 -1
- package/dist/{nl-Bq-1-ulc.js → nl-CRC6r4Q4.js} +22 -14
- package/dist/{notice-9lpZ-VDn.cjs → notice-BDTfBGtx.cjs} +1 -1
- package/dist/{notice-AUVH8Lho.js → notice-CZuh-h6a.js} +4 -4
- package/dist/{oneof-branch-detection-BsGhMslW.cjs → oneof-branch-detection-D6Xa8qNR.cjs} +1 -1
- package/dist/{oneof-branch-detection-BQnRjp9P.js → oneof-branch-detection-DCPwyutI.js} +1 -1
- package/dist/{pl-D-O4sCnr.cjs → pl-BHI4zBgV.cjs} +1 -1
- package/dist/{pl-Du9-VCfW.js → pl-C6qNs0Lq.js} +19 -11
- package/dist/prosemirror/index.cjs.js +1 -1
- package/dist/prosemirror/index.es.js +1 -1
- package/dist/{pt-chEEYLlt.cjs → pt-BGzC9MhU.cjs} +1 -1
- package/dist/{pt-B2UqqSAB.js → pt-CcWPLqBh.js} +20 -12
- package/dist/{ru-B46hVpFF.cjs → ru-CXeFbIPb.cjs} +1 -1
- package/dist/{ru-DiWa2inw.js → ru-Dt9-9m0E.js} +20 -12
- package/dist/tailwind/vite-plugin.es.js +0 -1
- package/dist/{text-input-6FD7p7hN.js → text-input-BgPx8BbG.js} +1 -1
- package/dist/{text-input-w0eVcqk5.cjs → text-input-DUnhBUd6.cjs} +1 -1
- package/dist/{toolbar-Cr0JGj5h.js → toolbar-DKOh_gbA.js} +1 -1
- package/dist/{toolbar-BR8In7O0.cjs → toolbar-Dkc2y1dI.cjs} +1 -1
- package/dist/{tr-Culcm2Zb.js → tr-CDTWeRY0.js} +14 -6
- package/dist/{tr-CaMaflJL.cjs → tr-CdOtQAtA.cjs} +1 -1
- package/dist/{translations-CZ0KOii3.cjs → translations-BdCtLBZt.cjs} +1 -1
- package/dist/{translations-uEUkO6gJ.js → translations-CiBhB2FV.js} +135 -127
- package/dist/translations-Cy9hoMGV.cjs +1 -0
- package/dist/{translations-Cttn6w0G.js → translations-NBY7SubC.js} +1 -1
- package/dist/types/beatui-i18n/default.d.ts +8 -0
- package/dist/types/beatui-i18n/locales/en.d.ts +8 -0
- package/dist/types/beatui-i18n/translations.d.ts +8 -0
- package/dist/types/components/form/input/index.d.ts +2 -0
- package/dist/types/components/form/input/nullable-color-input.d.ts +31 -0
- package/dist/types/components/form/input/nullable-color-swatch-input.d.ts +39 -0
- package/dist/types/components/lexical/table/table-controls.d.ts +3 -1
- package/dist/types/components/lexical/toolbar/index.d.ts +1 -0
- package/dist/types/components/lexical/toolbar/toolbar-registry.d.ts +16 -0
- package/dist/types/lexical/index.d.ts +2 -1
- package/dist/types/lexical/plugins/element-style.d.ts +29 -0
- package/dist/types/lexical/plugins/index.d.ts +1 -0
- package/dist/types/lexical/types.d.ts +43 -2
- package/dist/{ur-CvGP14xo.cjs → ur-C7itXvnC.cjs} +1 -1
- package/dist/{ur-Deb-uH6b.js → ur-CLrK5FPQ.js} +16 -8
- package/dist/{use-form-lg6-7Brc.js → use-form-Cd8YFWaN.js} +3 -3
- package/dist/{use-form-i97PToWB.cjs → use-form-DQVN_Zjb.cjs} +2 -2
- package/dist/{vi-CUsCVh3n.js → vi-B1_QDUQJ.js} +21 -13
- package/dist/{vi-Df4WZe9y.cjs → vi-CQrUWB3y.cjs} +1 -1
- package/dist/{widget-customization-CDD72zYs.js → widget-customization-BY4Ox_4e.js} +25 -25
- package/dist/{widget-customization-BLvD4Lqt.cjs → widget-customization-eyQ2pxvu.cjs} +1 -1
- package/dist/{zh-C5a9NGFW.cjs → zh-DWswYYTS.cjs} +1 -1
- package/dist/{zh-Dil2Jft8.js → zh-rDtQ92Pp.js} +12 -4
- package/package.json +1 -1
- package/dist/deep-merge-Dgy9xj6w.cjs +0 -1
- package/dist/translations-gVgMyNno.cjs +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { f as i } from "./translations-
|
|
1
|
+
import { f as i } from "./translations-CiBhB2FV.js";
|
|
2
2
|
const d = {
|
|
3
3
|
loadingExtended: "טוען, אנא המתן",
|
|
4
4
|
loadingShort: "טוען...",
|
|
@@ -58,19 +58,19 @@ const d = {
|
|
|
58
58
|
// inputs reset
|
|
59
59
|
clearValue: "נקה ערך",
|
|
60
60
|
unknownType: "סוג לא ידוע",
|
|
61
|
-
filesInputInstructions: (e, o,
|
|
62
|
-
let
|
|
61
|
+
filesInputInstructions: (e, o, l) => {
|
|
62
|
+
let n = e == null || e > 1 ? "לחץ לבחירה או גרור קבצים כאן" : "לחץ לבחירה או גרור קובץ כאן";
|
|
63
63
|
if (e || o) {
|
|
64
64
|
const t = [];
|
|
65
|
-
if (e != null && e > 1 && t.push(`עד ${e} קבצים`), o &&
|
|
65
|
+
if (e != null && e > 1 && t.push(`עד ${e} קבצים`), o && l) {
|
|
66
66
|
const a = i(o, {
|
|
67
|
-
units:
|
|
67
|
+
units: l
|
|
68
68
|
});
|
|
69
69
|
t.push(`מקסימום ${a} כל אחד`);
|
|
70
70
|
}
|
|
71
|
-
t.length > 0 && (
|
|
71
|
+
t.length > 0 && (n += ` (${t.join(", ")})`);
|
|
72
72
|
}
|
|
73
|
-
return
|
|
73
|
+
return n;
|
|
74
74
|
},
|
|
75
75
|
// Pagination
|
|
76
76
|
paginationLabel: "עימוד",
|
|
@@ -144,7 +144,15 @@ const d = {
|
|
|
144
144
|
noCommandsFound: "לא נמצאו פקודות",
|
|
145
145
|
changeBlockType: "שנה סוג בלוק",
|
|
146
146
|
blockTypes: "סוגי בלוקים",
|
|
147
|
-
enterUrl: "הכנס כתובת URL:"
|
|
147
|
+
enterUrl: "הכנס כתובת URL:",
|
|
148
|
+
tableActions: "Table actions",
|
|
149
|
+
insertRowAbove: "Insert row above",
|
|
150
|
+
insertRowBelow: "Insert row below",
|
|
151
|
+
insertColumnLeft: "Insert column left",
|
|
152
|
+
insertColumnRight: "Insert column right",
|
|
153
|
+
deleteRow: "Delete row",
|
|
154
|
+
deleteColumn: "Delete column",
|
|
155
|
+
deleteTable: "Delete table"
|
|
148
156
|
},
|
|
149
157
|
// prosemirror
|
|
150
158
|
prosemirror: {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { f as i } from "./translations-
|
|
1
|
+
import { f as i } from "./translations-CiBhB2FV.js";
|
|
2
2
|
const d = {
|
|
3
3
|
loadingExtended: "लोड हो रहा है, कृपया प्रतीक्षा करें",
|
|
4
4
|
loadingShort: "लोड हो रहा है...",
|
|
@@ -58,19 +58,19 @@ const d = {
|
|
|
58
58
|
// inputs reset
|
|
59
59
|
clearValue: "वृद्धि मान",
|
|
60
60
|
unknownType: "अज्ञात प्रकार",
|
|
61
|
-
filesInputInstructions: (e, o,
|
|
62
|
-
let
|
|
61
|
+
filesInputInstructions: (e, o, l) => {
|
|
62
|
+
let n = e == null || e > 1 ? "चुनने के लिए क्लिक करें या फ़ाइलें यहाँ खींचें" : "चुनने के लिए क्लिक करें या फ़ाइल यहाँ खींचें";
|
|
63
63
|
if (e || o) {
|
|
64
64
|
const t = [];
|
|
65
|
-
if (e != null && e > 1 && t.push(`अधिकतम ${e} फ़ाइलें`), o &&
|
|
65
|
+
if (e != null && e > 1 && t.push(`अधिकतम ${e} फ़ाइलें`), o && l) {
|
|
66
66
|
const a = i(o, {
|
|
67
|
-
units:
|
|
67
|
+
units: l
|
|
68
68
|
});
|
|
69
69
|
t.push(`प्रत्येक अधिकतम ${a}`);
|
|
70
70
|
}
|
|
71
|
-
t.length > 0 && (
|
|
71
|
+
t.length > 0 && (n += ` (${t.join(", ")})`);
|
|
72
72
|
}
|
|
73
|
-
return
|
|
73
|
+
return n;
|
|
74
74
|
},
|
|
75
75
|
// Pagination
|
|
76
76
|
paginationLabel: "पृष्ठांकन",
|
|
@@ -144,7 +144,15 @@ const d = {
|
|
|
144
144
|
noCommandsFound: "कोई कमांड नहीं मिला",
|
|
145
145
|
changeBlockType: "ब्लॉक प्रकार बदलें",
|
|
146
146
|
blockTypes: "ब्लॉक प्रकार",
|
|
147
|
-
enterUrl: "URL दर्ज करें:"
|
|
147
|
+
enterUrl: "URL दर्ज करें:",
|
|
148
|
+
tableActions: "Table actions",
|
|
149
|
+
insertRowAbove: "Insert row above",
|
|
150
|
+
insertRowBelow: "Insert row below",
|
|
151
|
+
insertColumnLeft: "Insert column left",
|
|
152
|
+
insertColumnRight: "Insert column right",
|
|
153
|
+
deleteRow: "Delete row",
|
|
154
|
+
deleteColumn: "Delete column",
|
|
155
|
+
deleteTable: "Delete table"
|
|
148
156
|
},
|
|
149
157
|
// prosemirror
|
|
150
158
|
prosemirror: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("./translations-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("./translations-Cy9hoMGV.cjs"),r={loadingExtended:"लोड हो रहा है, कृपया प्रतीक्षा करें",loadingShort:"लोड हो रहा है...",locale:"स्थानीय",iconDescription:"आइकन",loadingIcon:"लोडिंग आइकन",failedToLoadIcon:"आइकन लोड करने में विफल",editLabel:"संपादित करें",selectOne:"एक चुनें",selectNone:"कोई नहीं",selectMany:"बहुत चुनें",noResults:"कोई परिणाम नहीं",passwordPlaceholderText:"गुप्त पासवर्ड",togglePasswordVisibility:"पासवर्ड दृश्यता टॉगल करें",toggleMenu:"मेनू टॉगल करें",toggleAside:"साइड पैनल टॉगल करें",mainNavigation:"मुख्य नेवीगेशन",sidebar:"साइडबार",closeDrawer:"ड्रॉअर बंद करें",closeModal:"मॉडल बंद करें",confirm:"पुष्टि करें",cancel:"रद्द करें",addLabel:"जोड़ें",removeItem:"आइटम हटाएं",currentLocale:"हिंदी",ar:"अरबी",de:"जर्मन",en:"अंग्रेज़ी",es:"स्पेनिश",fr:"फ्रेंच",hi:"हिन्दी",it:"इतालवी",ja:"जापानी",ko:"कोरियाई",nl:"डच",pl:"पोलिश",pt:"पोर्तुगीज",ru:"रूसी",tr:"तुर्की",vi:"वियतनामी",zh:"चीनी",he:"हिब्रू",fa:"फारसी",ur:"उर्दू",emailPlaceholderText:"अपना ईमेल दर्ज करें",incrementValue:"वृद्धि मान",decrementValue:"घटाना मान",dropZoneInstructions:e=>e?"चुनने के लिए क्लिक करें या फ़ाइलें यहाँ खींचें, या फाइल चयनकर्ता खोलने के लिए Enter या Space दबाएं":"फ़ाइलें यहाँ खींचें",fileSizeUnits:["बाइट्स","KB","MB","GB","TB"],removeFile:"फ़ाइल हटाएं",clearAllFiles:"सभी फ़ाइलें हटाएं",clearValue:"वृद्धि मान",unknownType:"अज्ञात प्रकार",filesInputInstructions:(e,o,n)=>{let l=e==null||e>1?"चुनने के लिए क्लिक करें या फ़ाइलें यहाँ खींचें":"चुनने के लिए क्लिक करें या फ़ाइल यहाँ खींचें";if(e||o){const t=[];if(e!=null&&e>1&&t.push(`अधिकतम ${e} फ़ाइलें`),o&&n){const a=i.formatFileSize(o,{units:n});t.push(`प्रत्येक अधिकतम ${a}`)}t.length>0&&(l+=` (${t.join(", ")})`)}return l},paginationLabel:"पृष्ठांकन",firstPage:"पहला पृष्ठ",previousPage:"पिछला पृष्ठ",nextPage:"अगला पृष्ठ",lastPage:"अंतिम पृष्ठ",breadcrumbs:"ब्रेडक्रम्ब",commandPalette:"कमांड पैलेट",typeACommand:"कमांड टाइप करें...",noResultsFound:"कोई परिणाम नहीं मिला",noMatchingCommands:"कोई मेल खाने वाला कमांड नहीं",appearanceSystem:"सिस्टम",appearanceLight:"लाइट",appearanceDark:"डार्क",ok:"OK",changeTypeConfirmation:"प्रकार बदलने से वर्तमान मान मिट जाएगा। जारी रखें?",notifications:"सूचनाएं",markAllAsRead:"सभी को पढ़ा हुआ चिह्नित करें",noNotifications:"कोई सूचना नहीं",schemaConflictsDetected:"स्कीमा विरोध पाए गए",schemaViolationsDetected:"स्कीमा उल्लंघन पाए गए",properties:"गुण",uploading:"अपलोड हो रहा है...",dropFilesOrBrowse:"फ़ाइलें यहाँ छोड़ें या ब्राउज़ करने के लिए क्लिक करें",acceptedTypes:e=>`स्वीकृत प्रकार: ${e}`,enterUrlPrompt:"URL दर्ज करें:",exceeded:"(सीमा पार)",pdfPreview:"PDF पूर्वावलोकन",lexical:{fontFamily:"फ़ॉन्ट परिवार",fontSize:"फ़ॉन्ट आकार",fontColor:"फ़ॉन्ट रंग",highlightColor:"हाइलाइट रंग",backgroundColor:"पृष्ठभूमि रंग",bold:"बोल्ड",italic:"इटैलिक",underline:"रेखांकित",strikethrough:"स्ट्राइकथ्रू",code:"कोड",clearFormatting:"फ़ॉर्मेटिंग साफ़ करें",normal:"सामान्य",heading:e=>`शीर्षक ${e}`,bulletList:"बुलेट सूची",orderedList:"क्रमांकित सूची",checkList:"चेक सूची",indent:"इंडेंट",outdent:"आउटडेंट",blockquote:"उद्धरण",codeBlock:"कोड ब्लॉक",horizontalRule:"क्षैतिज रेखा",insertTable:"तालिका डालें",link:"लिंक",undo:"पूर्ववत करें",redo:"फिर से करें",cut:"काटें",copy:"कॉपी करें",paste:"चिपकाएं",defaultOption:"डिफ़ॉल्ट",slashCommands:"स्लैश कमांड",noCommandsFound:"कोई कमांड नहीं मिला",changeBlockType:"ब्लॉक प्रकार बदलें",blockTypes:"ब्लॉक प्रकार",enterUrl:"URL दर्ज करें:",tableActions:"Table actions",insertRowAbove:"Insert row above",insertRowBelow:"Insert row below",insertColumnLeft:"Insert column left",insertColumnRight:"Insert column right",deleteRow:"Delete row",deleteColumn:"Delete column",deleteTable:"Delete table"},prosemirror:{bold:"Bold",italic:"Italic",code:"Code",link:"Link",removeLink:"Remove Link",heading:e=>`Heading ${e}`,bulletList:"Bullet List",orderedList:"Ordered List",blockquote:"Blockquote",codeBlock:"Code Block",horizontalRule:"Horizontal Rule",linkUrlPlaceholder:"https://example.com"},pdfPageViewer:{loading:"Loading PDF...",loadFailed:"Failed to load PDF",invalidPdf:"Invalid PDF file",pageOutOfRange:(e,o)=>`Page ${e} is out of range (1-${o})`,renderFailed:"Failed to render PDF page"}};exports.default=r;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./index-BOC0cVoY.cjs");function S(f,t=null){return function(e,n){let{$from:o,$to:l}=e.selection,i=o.blockRange(l);if(!i)return!1;let d=n?e.tr:null;return h(d,i,f,t)?(n&&n(d.scrollIntoView()),!0):!1}}function h(f,t,e,n=null){let o=!1,l=t,i=t.$from.doc;if(t.depth>=2&&t.$from.node(t.depth-1).type.compatibleContent(e)&&t.startIndex==0){if(t.$from.index(t.depth-1)==0)return!1;let u=i.resolve(t.start-2);l=new r.NodeRange(u,u,t.depth),t.endIndex<t.parent.childCount&&(t=new r.NodeRange(t.$from,i.resolve(t.$to.end(t.depth)),t.depth)),o=!0}let d=r.findWrapping(l,e,n,t);return d?(f&&$(f,t,d,o,e),!0):!1}function $(f,t,e,n,o){let l=r.Fragment.empty;for(let p=e.length-1;p>=0;p--)l=r.Fragment.from(e[p].type.create(e[p].attrs,l));f.step(new r.ReplaceAroundStep(t.start-(n?2:0),t.end,t.start,t.end,new r.Slice(l,0,0),e.length,!0));let i=0;for(let p=0;p<e.length;p++)e[p].type==o&&(i=p+1);let d=e.length-i,u=t.start+e.length-(n?2:0),m=t.parent;for(let p=t.startIndex,s=t.endIndex,c=!0;p<s;p++,c=!1)!c&&r.canSplit(f.doc,u,d)&&(f.split(u,d),u+=2*d),u+=m.child(p).nodeSize;return f}function R(f){return function(t,e){let{$from:n,$to:o}=t.selection,l=n.blockRange(o,i=>i.childCount>0&&i.firstChild.type==f);return l?e?n.node(l.depth-1).type==f?x(t,e,f,l):F(t,e,l):!0:!1}}function x(f,t,e,n){let o=f.tr,l=n.end,i=n.$to.end(n.depth);l<i&&(o.step(new r.ReplaceAroundStep(l-1,i,l,i,new r.Slice(r.Fragment.from(e.create(null,n.parent.copy())),1,0),1,!0)),n=new r.NodeRange(o.doc.resolve(n.$from.pos),o.doc.resolve(i),n.depth));const d=r.liftTarget(n);if(d==null)return!1;o.lift(n,d);let u=o.doc.resolve(o.mapping.map(l,-1)-1);return r.canJoin(o.doc,u.pos)&&u.nodeBefore.type==u.nodeAfter.type&&o.join(u.pos),t(o.scrollIntoView()),!0}function F(f,t,e){let n=f.tr,o=e.parent;for(let a=e.end,I=e.endIndex-1,y=e.startIndex;I>y;I--)a-=o.child(I).nodeSize,n.delete(a-1,a+1);let l=n.doc.resolve(e.start),i=l.nodeAfter;if(n.mapping.map(e.end)!=e.start+l.nodeAfter.nodeSize)return!1;let d=e.startIndex==0,u=e.endIndex==o.childCount,m=l.node(-1),p=l.index(-1);if(!m.canReplace(p+(d?0:1),p+1,i.content.append(u?r.Fragment.empty:r.Fragment.from(o))))return!1;let s=l.pos,c=s+i.nodeSize;return n.step(new r.ReplaceAroundStep(s-(d?1:0),c+(u?1:0),s+1,c-1,new r.Slice((d?r.Fragment.empty:r.Fragment.from(o.copy(r.Fragment.empty))).append(u?r.Fragment.empty:r.Fragment.from(o.copy(r.Fragment.empty))),d?0:1,u?0:1),d?0:1)),t(n.scrollIntoView()),!0}exports.liftListItem=R;exports.wrapInList=S;exports.wrapRangeInList=h;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { R as $, S as x, F as u, N as I, l as S, c as w, f as R, a as L } from "./index-
|
|
1
|
+
import { R as $, S as x, F as u, N as I, l as S, c as w, f as R, a as L } from "./index-DJ9YIJcG.js";
|
|
2
2
|
function b(d, t = null) {
|
|
3
3
|
return function(e, n) {
|
|
4
4
|
let { $from: o, $to: l } = e.selection, f = o.blockRange(l);
|