beca-ui 2.0.19-beta.96 → 2.0.19-beta.98
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/beca-ui.js +82 -15
- package/package.json +2 -1
package/dist/beca-ui.js
CHANGED
|
@@ -568,19 +568,25 @@ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix
|
|
|
568
568
|
}, reactDom_development.version = "19.0.0", typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
|
|
569
569
|
}()), reactDom_development;
|
|
570
570
|
}
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
571
|
+
var hasRequiredReactDom;
|
|
572
|
+
function requireReactDom() {
|
|
573
|
+
if (hasRequiredReactDom)
|
|
574
|
+
return reactDom.exports;
|
|
575
|
+
hasRequiredReactDom = 1;
|
|
576
|
+
function a() {
|
|
577
|
+
if (!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ > "u" || typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE != "function")) {
|
|
578
|
+
if (process.env.NODE_ENV !== "production")
|
|
579
|
+
throw new Error("^_^");
|
|
580
|
+
try {
|
|
581
|
+
__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(a);
|
|
582
|
+
} catch (s) {
|
|
583
|
+
console.error(s);
|
|
584
|
+
}
|
|
579
585
|
}
|
|
580
586
|
}
|
|
587
|
+
return process.env.NODE_ENV === "production" ? (a(), reactDom.exports = requireReactDom_production()) : reactDom.exports = requireReactDom_development(), reactDom.exports;
|
|
581
588
|
}
|
|
582
|
-
|
|
583
|
-
var reactDomExports = reactDom.exports;
|
|
589
|
+
var reactDomExports = requireReactDom();
|
|
584
590
|
const ReactDOM = /* @__PURE__ */ getDefaultExportFromCjs$1(reactDomExports), ReactDOM$1 = /* @__PURE__ */ _mergeNamespaces({
|
|
585
591
|
__proto__: null,
|
|
586
592
|
default: ReactDOM
|
|
@@ -84648,7 +84654,7 @@ function requireReactDomClient_production() {
|
|
|
84648
84654
|
if (hasRequiredReactDomClient_production)
|
|
84649
84655
|
return reactDomClient_production;
|
|
84650
84656
|
hasRequiredReactDomClient_production = 1;
|
|
84651
|
-
var a = requireScheduler(), s = React__default$1, c =
|
|
84657
|
+
var a = requireScheduler(), s = React__default$1, c = requireReactDom();
|
|
84652
84658
|
function u(w) {
|
|
84653
84659
|
var O = "https://react.dev/errors/" + w;
|
|
84654
84660
|
if (1 < arguments.length) {
|
|
@@ -107098,7 +107104,7 @@ Check the render method of %s.`,
|
|
|
107098
107104
|
));
|
|
107099
107105
|
}
|
|
107100
107106
|
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());
|
|
107101
|
-
var _a = requireScheduler(), Zd = React__default$1, Vp =
|
|
107107
|
+
var _a = requireScheduler(), Zd = React__default$1, Vp = requireReactDom(), Up = Symbol.for("react.element"), vl = Symbol.for("react.transitional.element"), ad = Symbol.for("react.portal"), yl = Symbol.for("react.fragment"), x1 = Symbol.for("react.strict_mode"), S1 = Symbol.for("react.profiler"), Ar = Symbol.for("react.provider"), Zf = Symbol.for("react.consumer"), Bi = Symbol.for("react.context"), od = Symbol.for("react.forward_ref"), $1 = Symbol.for("react.suspense"), Jf = Symbol.for("react.suspense_list"), Yc = Symbol.for("react.memo"), jo = Symbol.for("react.lazy"), sd = Symbol.for("react.offscreen"), ys = Symbol.for("react.memo_cache_sentinel"), Vh = Symbol.iterator, Am = Symbol.for("react.client.reference"), Ht = Zd.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, wn = Object.assign, Zc = 0, dr, wa, co, nc, _1, w1, Qf;
|
|
107102
107108
|
k.__reactDisabledLog = !0;
|
|
107103
107109
|
var E1, Wp, ld = !1, e0 = new (typeof WeakMap == "function" ? WeakMap : Map)(), Ea = null, yi = !1, Qa = Array.isArray, er = Vp.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, ja = Object.freeze({
|
|
107104
107110
|
pending: !1,
|
|
@@ -115174,7 +115180,7 @@ Object.defineProperty(DraggableCore$2, "__esModule", {
|
|
|
115174
115180
|
value: !0
|
|
115175
115181
|
});
|
|
115176
115182
|
DraggableCore$2.default = void 0;
|
|
115177
|
-
var React$2 = _interopRequireWildcard$2(React__default$1), _propTypes$4 = _interopRequireDefault$K(propTypesExports), _reactDom = _interopRequireDefault$K(
|
|
115183
|
+
var React$2 = _interopRequireWildcard$2(React__default$1), _propTypes$4 = _interopRequireDefault$K(propTypesExports), _reactDom = _interopRequireDefault$K(requireReactDom()), _domFns = domFns, _positionFns = positionFns, _shims = shims, _log = _interopRequireDefault$K(log$1);
|
|
115178
115184
|
function _interopRequireDefault$K(a) {
|
|
115179
115185
|
return a && a.__esModule ? a : { default: a };
|
|
115180
115186
|
}
|
|
@@ -115490,7 +115496,7 @@ _defineProperty$6(DraggableCore$1, "defaultProps", {
|
|
|
115490
115496
|
return m.default;
|
|
115491
115497
|
}
|
|
115492
115498
|
}), a.default = void 0;
|
|
115493
|
-
var s = C(React__default$1), c = v(propTypesExports), u = v(
|
|
115499
|
+
var s = C(React__default$1), c = v(propTypesExports), u = v(requireReactDom()), d = v(require$$3), f = domFns, p = positionFns, h = shims, m = v(DraggableCore$2), g = v(log$1);
|
|
115494
115500
|
function v(A) {
|
|
115495
115501
|
return A && A.__esModule ? A : { default: A };
|
|
115496
115502
|
}
|
|
@@ -116711,6 +116717,7 @@ const ResizableComponent = Resizable, ResizableTitle = (a) => {
|
|
|
116711
116717
|
Button,
|
|
116712
116718
|
{
|
|
116713
116719
|
type: "primary",
|
|
116720
|
+
status: "default",
|
|
116714
116721
|
onClick: h,
|
|
116715
116722
|
...u,
|
|
116716
116723
|
className: classNames$1(
|
|
@@ -116955,7 +116962,10 @@ const InputNumber = (a) => {
|
|
|
116955
116962
|
const { popupClassName: s } = a;
|
|
116956
116963
|
let c = "beca-select-popup";
|
|
116957
116964
|
return s && (c += " " + s), c;
|
|
116958
|
-
}, labelAndValueFilterOption = (a, s) =>
|
|
116965
|
+
}, labelAndValueFilterOption = (a, s) => {
|
|
116966
|
+
var c;
|
|
116967
|
+
return (c = (s == null ? void 0 : s.label) ?? "") == null ? void 0 : c.toString().toLowerCase().includes(a == null ? void 0 : a.toString().toLowerCase());
|
|
116968
|
+
}, childrenAndValueFilterOption = (a, s) => {
|
|
116959
116969
|
var c, u, d;
|
|
116960
116970
|
return ((d = (u = (c = s == null ? void 0 : s.children) == null ? void 0 : c.toString()) == null ? void 0 : u.toLowerCase()) == null ? void 0 : d.indexOf(a.toLowerCase())) >= 0;
|
|
116961
116971
|
}, Select = forwardRef(
|
|
@@ -130945,6 +130955,56 @@ const undo = buildCommand(!1, !0), redo = buildCommand(!0, !0), History = Extens
|
|
|
130945
130955
|
"Shift-Mod-я": () => this.editor.commands.redo()
|
|
130946
130956
|
};
|
|
130947
130957
|
}
|
|
130958
|
+
}), HardBreak = Node.create({
|
|
130959
|
+
name: "hardBreak",
|
|
130960
|
+
addOptions() {
|
|
130961
|
+
return {
|
|
130962
|
+
keepMarks: !0,
|
|
130963
|
+
HTMLAttributes: {}
|
|
130964
|
+
};
|
|
130965
|
+
},
|
|
130966
|
+
inline: !0,
|
|
130967
|
+
group: "inline",
|
|
130968
|
+
selectable: !1,
|
|
130969
|
+
linebreakReplacement: !0,
|
|
130970
|
+
parseHTML() {
|
|
130971
|
+
return [
|
|
130972
|
+
{ tag: "br" }
|
|
130973
|
+
];
|
|
130974
|
+
},
|
|
130975
|
+
renderHTML({ HTMLAttributes: a }) {
|
|
130976
|
+
return ["br", mergeAttributes(this.options.HTMLAttributes, a)];
|
|
130977
|
+
},
|
|
130978
|
+
renderText() {
|
|
130979
|
+
return `
|
|
130980
|
+
`;
|
|
130981
|
+
},
|
|
130982
|
+
addCommands() {
|
|
130983
|
+
return {
|
|
130984
|
+
setHardBreak: () => ({ commands: a, chain: s, state: c, editor: u }) => a.first([
|
|
130985
|
+
() => a.exitCode(),
|
|
130986
|
+
() => a.command(() => {
|
|
130987
|
+
const { selection: d, storedMarks: f } = c;
|
|
130988
|
+
if (d.$from.parent.type.spec.isolating)
|
|
130989
|
+
return !1;
|
|
130990
|
+
const { keepMarks: p } = this.options, { splittableMarks: h } = u.extensionManager, m = f || d.$to.parentOffset && d.$from.marks();
|
|
130991
|
+
return s().insertContent({ type: this.name }).command(({ tr: g, dispatch: v }) => {
|
|
130992
|
+
if (v && m && p) {
|
|
130993
|
+
const b = m.filter((C) => h.includes(C.type.name));
|
|
130994
|
+
g.ensureMarks(b);
|
|
130995
|
+
}
|
|
130996
|
+
return !0;
|
|
130997
|
+
}).run();
|
|
130998
|
+
})
|
|
130999
|
+
])
|
|
131000
|
+
};
|
|
131001
|
+
},
|
|
131002
|
+
addKeyboardShortcuts() {
|
|
131003
|
+
return {
|
|
131004
|
+
"Mod-Enter": () => this.editor.commands.setHardBreak(),
|
|
131005
|
+
"Shift-Enter": () => this.editor.commands.setHardBreak()
|
|
131006
|
+
};
|
|
131007
|
+
}
|
|
130948
131008
|
}), starInputRegex$1 = /(?:^|\s)(\*\*(?!\s+\*\*)((?:[^*]+))\*\*(?!\s+\*\*))$/, starPasteRegex$1 = /(?:^|\s)(\*\*(?!\s+\*\*)((?:[^*]+))\*\*(?!\s+\*\*))/g, underscoreInputRegex$1 = /(?:^|\s)(__(?!\s+__)((?:[^_]+))__(?!\s+__))$/, underscorePasteRegex$1 = /(?:^|\s)(__(?!\s+__)((?:[^_]+))__(?!\s+__))/g, Bold = Mark.create({
|
|
130949
131009
|
name: "bold",
|
|
130950
131010
|
addOptions() {
|
|
@@ -137004,6 +137064,13 @@ const FontSize = Extension.create({
|
|
|
137004
137064
|
ResizableMedia,
|
|
137005
137065
|
FontSize,
|
|
137006
137066
|
AutoParagraph,
|
|
137067
|
+
HardBreak.extend({
|
|
137068
|
+
addKeyboardShortcuts() {
|
|
137069
|
+
return {
|
|
137070
|
+
"Shift-Enter": () => this.editor.commands.setHardBreak()
|
|
137071
|
+
};
|
|
137072
|
+
}
|
|
137073
|
+
}),
|
|
137007
137074
|
Placeholder.configure({
|
|
137008
137075
|
emptyEditorClass: "is-editor-empty",
|
|
137009
137076
|
placeholder: R
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "beca-ui",
|
|
3
|
-
"version": "2.0.19-beta.
|
|
3
|
+
"version": "2.0.19-beta.98",
|
|
4
4
|
"description": "Becawork UI",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": {
|
|
@@ -83,6 +83,7 @@
|
|
|
83
83
|
"@tiptap/extension-document": "2.10.3",
|
|
84
84
|
"@tiptap/extension-focus": "2.10.3",
|
|
85
85
|
"@tiptap/extension-font-family": "2.10.3",
|
|
86
|
+
"@tiptap/extension-hard-break": "^2.11.5",
|
|
86
87
|
"@tiptap/extension-heading": "2.11.5",
|
|
87
88
|
"@tiptap/extension-highlight": "2.10.3",
|
|
88
89
|
"@tiptap/extension-history": "^2.11.5",
|