@caspeco/casper-ui-library 12.1.0 → 12.1.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.
- package/dist/_virtual/builtin_esm-external-require-react.js +1 -1
- package/dist/components/combobox/combobox.d.ts.map +1 -1
- package/dist/components/combobox/combobox.js +88 -93
- package/dist/components/image-upload/image-cropper.js +1 -1
- package/dist/components/image-upload/image-upload-dropzone.js +2 -6
- package/dist/components/menu/menu-group.js +0 -1
- package/dist/components/rich-text-editor/rich-text-editor-control.js +2 -6
- package/dist/components/table/table.d.ts.map +1 -1
- package/dist/components/table/table.js +1 -1
- package/dist/node_modules/@dnd-kit/abstract/index.js +1 -1
- package/dist/node_modules/@dnd-kit/dom/index.js +11 -16
- package/dist/node_modules/@dnd-kit/dom/sortable.js +4 -4
- package/dist/node_modules/@dnd-kit/dom/utilities.js +2 -6
- package/dist/node_modules/@dnd-kit/react/hooks.js +2 -5
- package/dist/node_modules/@dnd-kit/react/sortable.js +4 -4
- package/dist/node_modules/@tanstack/table-core/build/lib/index.js +16 -30
- package/dist/node_modules/@tanstack/virtual-core/dist/esm/index.js +9 -18
- package/dist/node_modules/@tiptap/core/dist/index.js +838 -790
- package/dist/node_modules/@tiptap/extension-code/dist/index.js +14 -3
- package/dist/node_modules/@tiptap/extension-link/dist/index.js +114 -97
- package/dist/node_modules/@tiptap/extension-list/dist/index.js +133 -120
- package/dist/node_modules/@tiptap/extensions/dist/index.js +33 -33
- package/dist/node_modules/country-flag-icons/modules/react/3x2/index.js +1 -2
- package/dist/node_modules/date-fns/_lib/getTimezoneOffsetInMilliseconds.js +1 -1
- package/dist/node_modules/date-fns/getISOWeek.js +1 -1
- package/dist/node_modules/date-fns/getWeek.js +1 -1
- package/dist/node_modules/libphonenumber-js/es6-modern/metadata.js +1 -1
- package/dist/node_modules/prosemirror-commands/dist/index.js +1 -1
- package/dist/node_modules/prosemirror-gapcursor/dist/index.js +2 -6
- package/dist/node_modules/prosemirror-history/dist/index.js +27 -22
- package/dist/node_modules/prosemirror-model/dist/index.js +32 -35
- package/dist/node_modules/prosemirror-view/dist/index.js +10 -11
- package/dist/packages/casper-ui-library/node_modules/@tiptap/react/dist/index.js +74 -57
- package/package.json +13 -13
|
@@ -109,15 +109,14 @@ var y = class {
|
|
|
109
109
|
e.forEach((e) => {
|
|
110
110
|
let t = () => {
|
|
111
111
|
let t = e.target, n = this.indexFromElement(t);
|
|
112
|
-
if (
|
|
112
|
+
if (t.isConnected) this.isIndexInRange(n) && this.shouldMeasureDuringScroll(n) && this.resizeItem(n, this.options.measureElement(t, e, this));
|
|
113
|
+
else {
|
|
113
114
|
this.observer.unobserve(t);
|
|
114
115
|
for (let [e, n] of this.elementsCache) if (n === t) {
|
|
115
116
|
this.elementsCache.delete(e);
|
|
116
117
|
break;
|
|
117
118
|
}
|
|
118
|
-
return;
|
|
119
119
|
}
|
|
120
|
-
this.isIndexInRange(n) && this.shouldMeasureDuringScroll(n) && this.resizeItem(n, this.options.measureElement(t, e, this));
|
|
121
120
|
};
|
|
122
121
|
this.options.useAnimationFrameWithResizeObserver ? requestAnimationFrame(t) : t();
|
|
123
122
|
});
|
|
@@ -239,7 +238,7 @@ var y = class {
|
|
|
239
238
|
let e = this.scrollElement, t = () => {
|
|
240
239
|
this._iosTouching = !0, this._iosJustTouchEnded = !1, this._iosTouchEndTimerId !== null && this.targetWindow != null && (this.targetWindow.clearTimeout(this._iosTouchEndTimerId), this._iosTouchEndTimerId = null);
|
|
241
240
|
}, n = () => {
|
|
242
|
-
this._iosTouching = !1,
|
|
241
|
+
this._iosTouching = !1, s() && this.targetWindow != null && (this._iosJustTouchEnded = !0, this._iosTouchEndTimerId = this.targetWindow.setTimeout(() => {
|
|
243
242
|
this._iosJustTouchEnded = !1, this._iosTouchEndTimerId = null, this._flushIosDeferredIfReady();
|
|
244
243
|
}, 150));
|
|
245
244
|
};
|
|
@@ -526,14 +525,10 @@ var y = class {
|
|
|
526
525
|
behavior: t
|
|
527
526
|
}), this.scheduleScrollReconcile();
|
|
528
527
|
}, this.scrollToEnd = ({ behavior: e = "auto" } = {}) => {
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
});
|
|
534
|
-
return;
|
|
535
|
-
}
|
|
536
|
-
this.scrollToOffset(Math.max(this.getTotalSize() - this.getSize(), 0), { behavior: e });
|
|
528
|
+
this.options.count > 0 ? this.scrollToIndex(this.options.count - 1, {
|
|
529
|
+
align: "end",
|
|
530
|
+
behavior: e
|
|
531
|
+
}) : this.scrollToOffset(Math.max(this.getTotalSize() - this.getSize(), 0), { behavior: e });
|
|
537
532
|
}, this.getTotalSize = () => {
|
|
538
533
|
let e = this.getMeasurements(), t;
|
|
539
534
|
if (e.length === 0) t = this.options.paddingStart;
|
|
@@ -586,13 +581,9 @@ var y = class {
|
|
|
586
581
|
}
|
|
587
582
|
}
|
|
588
583
|
scheduleScrollReconcile() {
|
|
589
|
-
|
|
590
|
-
this.scrollState = null;
|
|
591
|
-
return;
|
|
592
|
-
}
|
|
593
|
-
this.rafId ??= this.targetWindow.requestAnimationFrame(() => {
|
|
584
|
+
this.targetWindow ? this.rafId ??= this.targetWindow.requestAnimationFrame(() => {
|
|
594
585
|
this.rafId = null, this.reconcileScroll();
|
|
595
|
-
});
|
|
586
|
+
}) : this.scrollState = null;
|
|
596
587
|
}
|
|
597
588
|
reconcileScroll() {
|
|
598
589
|
if (!this.scrollState || !this.scrollElement) return;
|