@caspeco/casper-ui-library 10.4.0 → 10.5.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/_virtual/_rolldown/runtime.js +11 -0
- package/dist/_virtual/builtin_esm-external-require-react.js +9 -0
- package/dist/components/accordion/accordion-context.js +5 -6
- package/dist/components/accordion/accordion-item.js +28 -40
- package/dist/components/accordion/accordion-panel.js +17 -14
- package/dist/components/accordion/accordion-recipe.js +85 -120
- package/dist/components/accordion/accordion.js +23 -20
- package/dist/components/alert/alert.js +80 -59
- package/dist/components/alert/helper.js +30 -42
- package/dist/components/alert/types.d.ts.map +1 -1
- package/dist/components/badge/badge-recipe.js +57 -49
- package/dist/components/badge/badge.js +66 -71
- package/dist/components/badge/helper.js +8 -9
- package/dist/components/box/box.js +14 -11
- package/dist/components/breadcrumbs/breadcrumb-item.js +21 -17
- package/dist/components/breadcrumbs/breadcrumb-link.js +21 -20
- package/dist/components/breadcrumbs/breadcrumbs.js +123 -90
- package/dist/components/button/button-recipe.js +280 -315
- package/dist/components/button/button.js +39 -40
- package/dist/components/checkbox/checkbox-icon.js +38 -46
- package/dist/components/checkbox/checkbox-recipe.js +176 -204
- package/dist/components/checkbox/checkbox.js +43 -36
- package/dist/components/checkbox/icons/check.js +5 -5
- package/dist/components/checkbox/icons/minus.js +5 -5
- package/dist/components/checkbox/icons/plus.js +5 -5
- package/dist/components/checkbox-group/checkbox-group.js +17 -16
- package/dist/components/collapsible/collapsible.js +117 -101
- package/dist/components/collapsible/translations.js +29 -29
- package/dist/components/combobox/combobox-button.js +173 -143
- package/dist/components/combobox/combobox-item.js +45 -23
- package/dist/components/combobox/combobox-menu.js +240 -190
- package/dist/components/combobox/combobox-recipe.js +69 -103
- package/dist/components/combobox/combobox.js +243 -273
- package/dist/components/combobox/translations.js +49 -50
- package/dist/components/date-picker/base-date-picker.js +238 -248
- package/dist/components/date-picker/date-cell-recipe.js +149 -179
- package/dist/components/date-picker/date-multi-picker.js +35 -29
- package/dist/components/date-picker/date-picker-date-cell.js +109 -114
- package/dist/components/date-picker/date-picker-header.js +152 -170
- package/dist/components/date-picker/date-picker-week-cell.js +41 -43
- package/dist/components/date-picker/date-picker.js +32 -29
- package/dist/components/date-picker/date-range-picker.js +29 -24
- package/dist/components/date-picker/date-week-picker.js +29 -22
- package/dist/components/date-picker/datepicker-week-recipe.js +75 -91
- package/dist/components/date-picker/helper.js +11 -16
- package/dist/components/divider/divider-recipe.js +9 -11
- package/dist/components/divider/divider.js +19 -18
- package/dist/components/drawer/drawer-recipe.js +21 -50
- package/dist/components/drawer/drawer.js +45 -41
- package/dist/components/drawer/inline-drawer.js +69 -66
- package/dist/components/drawer/use-drawer-key-down.js +20 -20
- package/dist/components/fieldset/fieldset-error-text.js +15 -15
- package/dist/components/fieldset/fieldset-helper-text.js +15 -15
- package/dist/components/fieldset/fieldset-legend.js +15 -15
- package/dist/components/fieldset/fieldset-recipe.js +14 -24
- package/dist/components/fieldset/fieldset.js +17 -17
- package/dist/components/flex/flex.js +15 -15
- package/dist/components/form-control/form-control-recipe.js +42 -46
- package/dist/components/form-control/form-control.js +19 -19
- package/dist/components/form-control/form-error-message.js +15 -15
- package/dist/components/form-control/form-helper-text.js +15 -15
- package/dist/components/form-control/form-label.js +24 -26
- package/dist/components/grid/grid-item.js +15 -15
- package/dist/components/grid/grid.js +15 -15
- package/dist/components/heading/heading.js +24 -23
- package/dist/components/highlight/highlight.js +22 -21
- package/dist/components/icon/create-icon.js +27 -26
- package/dist/components/icon/icons/absence-icon.js +5 -5
- package/dist/components/icon/icons/accessibility-icon.js +5 -5
- package/dist/components/icon/icons/add-absence-icon.js +5 -5
- package/dist/components/icon/icons/add-emoji-icon.js +5 -5
- package/dist/components/icon/icons/add-icon.js +5 -5
- package/dist/components/icon/icons/apple-icon.js +5 -5
- package/dist/components/icon/icons/apps-icon.js +5 -5
- package/dist/components/icon/icons/archive-icon.js +6 -6
- package/dist/components/icon/icons/area-icon.js +5 -5
- package/dist/components/icon/icons/at-icon.js +5 -5
- package/dist/components/icon/icons/attachment-icon.js +5 -5
- package/dist/components/icon/icons/baby-icon.js +5 -5
- package/dist/components/icon/icons/back-icon.js +5 -5
- package/dist/components/icon/icons/backspace-icon.js +5 -5
- package/dist/components/icon/icons/bank-icon.js +5 -5
- package/dist/components/icon/icons/bank-id-icon.js +5 -5
- package/dist/components/icon/icons/barcode-icon.js +5 -5
- package/dist/components/icon/icons/bell-icon.js +5 -5
- package/dist/components/icon/icons/bolt-icon.js +7 -7
- package/dist/components/icon/icons/calendar-icon.js +5 -5
- package/dist/components/icon/icons/camera-icon.js +5 -5
- package/dist/components/icon/icons/cancel-icon.js +5 -5
- package/dist/components/icon/icons/card-icon.js +5 -5
- package/dist/components/icon/icons/cart-icon.js +5 -5
- package/dist/components/icon/icons/caspeco-icon.js +7 -7
- package/dist/components/icon/icons/channels-icon.js +5 -5
- package/dist/components/icon/icons/chart-icon.js +5 -5
- package/dist/components/icon/icons/chart-line-icon.js +5 -5
- package/dist/components/icon/icons/chart-mixed-icon.js +5 -5
- package/dist/components/icon/icons/chart-pie-icon.js +5 -5
- package/dist/components/icon/icons/chart-scatter-icon.js +5 -5
- package/dist/components/icon/icons/check-icon.js +5 -5
- package/dist/components/icon/icons/checkbox-icon.js +5 -5
- package/dist/components/icon/icons/chevron-left-icon.js +5 -5
- package/dist/components/icon/icons/chevron-right-icon.js +5 -5
- package/dist/components/icon/icons/child-icon.js +5 -5
- package/dist/components/icon/icons/circle-info-icon.js +5 -5
- package/dist/components/icon/icons/circle-parking-icon.js +5 -5
- package/dist/components/icon/icons/circle-question-icon.js +5 -5
- package/dist/components/icon/icons/circle-select-icon.js +5 -5
- package/dist/components/icon/icons/circle-success-icon.js +5 -5
- package/dist/components/icon/icons/circle-user-icon.js +5 -5
- package/dist/components/icon/icons/clear-icon.js +5 -5
- package/dist/components/icon/icons/close-icon.js +5 -5
- package/dist/components/icon/icons/closed-icon.js +5 -5
- package/dist/components/icon/icons/collapse-icon.js +5 -5
- package/dist/components/icon/icons/color-icon.js +5 -5
- package/dist/components/icon/icons/columns-icon.js +5 -5
- package/dist/components/icon/icons/comment-add-icon.js +5 -5
- package/dist/components/icon/icons/comment-icon.js +5 -5
- package/dist/components/icon/icons/cookies-icon.js +5 -5
- package/dist/components/icon/icons/copy-icon.js +5 -5
- package/dist/components/icon/icons/date-icon.js +5 -5
- package/dist/components/icon/icons/decrease-icon.js +4 -4
- package/dist/components/icon/icons/delete-icon.js +5 -5
- package/dist/components/icon/icons/deliverect-icon.js +5 -5
- package/dist/components/icon/icons/delivery-icon.js +5 -5
- package/dist/components/icon/icons/description-icon.js +5 -5
- package/dist/components/icon/icons/discount-icon.js +5 -5
- package/dist/components/icon/icons/distribute-evenly-icon.js +5 -5
- package/dist/components/icon/icons/door-closed-icon.js +5 -5
- package/dist/components/icon/icons/door-open-icon.js +5 -5
- package/dist/components/icon/icons/down-icon.js +5 -5
- package/dist/components/icon/icons/eat-in-icon.js +5 -5
- package/dist/components/icon/icons/edit-icon.js +5 -5
- package/dist/components/icon/icons/email-icon.js +5 -5
- package/dist/components/icon/icons/error-icon.js +5 -5
- package/dist/components/icon/icons/expand-icon.js +5 -5
- package/dist/components/icon/icons/export-icon.js +5 -5
- package/dist/components/icon/icons/extract-icon.js +5 -5
- package/dist/components/icon/icons/facebook-icon.js +5 -5
- package/dist/components/icon/icons/failed-print-icon.js +5 -5
- package/dist/components/icon/icons/file-icon.js +5 -5
- package/dist/components/icon/icons/filter-icon.js +5 -5
- package/dist/components/icon/icons/folder-icon.js +5 -5
- package/dist/components/icon/icons/foodora-icon.js +5 -5
- package/dist/components/icon/icons/forward-icon.js +5 -5
- package/dist/components/icon/icons/glovo-icon.js +7 -7
- package/dist/components/icon/icons/goal-icon.js +5 -5
- package/dist/components/icon/icons/google-icon.js +5 -5
- package/dist/components/icon/icons/grip-more-icon.js +5 -5
- package/dist/components/icon/icons/hash-icon.js +5 -5
- package/dist/components/icon/icons/hexagon-error-icon.js +5 -5
- package/dist/components/icon/icons/hide-icon.js +5 -5
- package/dist/components/icon/icons/history-icon.js +5 -5
- package/dist/components/icon/icons/icon-picker-anchor-icon.js +5 -5
- package/dist/components/icon/icons/icon-picker-asterisk-icon.js +5 -5
- package/dist/components/icon/icons/icon-picker-beer-icon.js +5 -5
- package/dist/components/icon/icons/icon-picker-bicycle-icon.js +5 -5
- package/dist/components/icon/icons/icon-picker-binoculars-icon.js +5 -5
- package/dist/components/icon/icons/icon-picker-bomb-icon.js +5 -5
- package/dist/components/icon/icons/icon-picker-car-icon.js +5 -5
- package/dist/components/icon/icons/icon-picker-cocktail-icon.js +5 -5
- package/dist/components/icon/icons/icon-picker-gem-icon.js +5 -5
- package/dist/components/icon/icons/icon-picker-heart-full-icon.js +5 -5
- package/dist/components/icon/icons/icon-picker-heart-icon.js +5 -5
- package/dist/components/icon/icons/icon-picker-magnet-icon.js +5 -5
- package/dist/components/icon/icons/icon-picker-money-icon.js +5 -5
- package/dist/components/icon/icons/icon-picker-moon-icon.js +5 -5
- package/dist/components/icon/icons/icon-picker-music-icon.js +5 -5
- package/dist/components/icon/icons/icon-picker-star-full-icon.js +5 -5
- package/dist/components/icon/icons/icon-picker-star-half-icon.js +5 -5
- package/dist/components/icon/icons/icon-picker-star-icon.js +5 -5
- package/dist/components/icon/icons/icon-picker-tint-icon.js +5 -5
- package/dist/components/icon/icons/icon-picker-tree-icon.js +5 -5
- package/dist/components/icon/icons/icon-picker-utensils-icon.js +5 -5
- package/dist/components/icon/icons/icon-picker-wheelchair-icon.js +5 -5
- package/dist/components/icon/icons/image-icon.js +5 -5
- package/dist/components/icon/icons/import-icon.js +5 -5
- package/dist/components/icon/icons/inbox-icon.js +5 -5
- package/dist/components/icon/icons/increase-icon.js +5 -5
- package/dist/components/icon/icons/indeterminate-icon.js +4 -4
- package/dist/components/icon/icons/info-icon.js +5 -5
- package/dist/components/icon/icons/inheritance-icon.js +5 -5
- package/dist/components/icon/icons/just-eat-icon.js +5 -5
- package/dist/components/icon/icons/karma-icon.js +5 -5
- package/dist/components/icon/icons/key-command-icon.js +5 -5
- package/dist/components/icon/icons/key-enter-icon.js +5 -5
- package/dist/components/icon/icons/key-icon.js +5 -5
- package/dist/components/icon/icons/key-option-icon.js +5 -5
- package/dist/components/icon/icons/language-icon.js +5 -5
- package/dist/components/icon/icons/link-broken-icon.js +5 -5
- package/dist/components/icon/icons/link-external-icon.js +5 -5
- package/dist/components/icon/icons/link-icon.js +5 -5
- package/dist/components/icon/icons/list-ol-icon.js +5 -5
- package/dist/components/icon/icons/list-ul-icon.js +5 -5
- package/dist/components/icon/icons/loading-icon.js +5 -5
- package/dist/components/icon/icons/location-icon.js +5 -5
- package/dist/components/icon/icons/lock-icon.js +5 -5
- package/dist/components/icon/icons/log-in-icon.js +5 -5
- package/dist/components/icon/icons/log-out-icon.js +5 -5
- package/dist/components/icon/icons/map-icon.js +5 -5
- package/dist/components/icon/icons/maximize-icon.js +5 -5
- package/dist/components/icon/icons/members-icon.js +5 -5
- package/dist/components/icon/icons/menu-hide-icon.js +5 -5
- package/dist/components/icon/icons/menu-icon.js +5 -5
- package/dist/components/icon/icons/menu-show-icon.js +5 -5
- package/dist/components/icon/icons/message-add-icon.js +5 -5
- package/dist/components/icon/icons/message-icon.js +5 -5
- package/dist/components/icon/icons/message-lines-icon.js +5 -5
- package/dist/components/icon/icons/minimize-icon.js +5 -5
- package/dist/components/icon/icons/minimize-window-icon.js +5 -5
- package/dist/components/icon/icons/mobile-rotate-icon.js +5 -5
- package/dist/components/icon/icons/module-accounting-icon.js +5 -5
- package/dist/components/icon/icons/module-ai-forecast-icon.js +5 -5
- package/dist/components/icon/icons/module-app-icon.js +5 -5
- package/dist/components/icon/icons/module-articles-icon.js +5 -5
- package/dist/components/icon/icons/module-benchmark-icon.js +5 -5
- package/dist/components/icon/icons/module-booking-icon.js +5 -5
- package/dist/components/icon/icons/module-cai-icon.js +5 -5
- package/dist/components/icon/icons/module-campaigns-icon.js +5 -5
- package/dist/components/icon/icons/module-cashier-icon.js +5 -5
- package/dist/components/icon/icons/module-communication-icon.js +5 -5
- package/dist/components/icon/icons/module-copilot-icon.js +5 -5
- package/dist/components/icon/icons/module-dashboard-icon.js +5 -5
- package/dist/components/icon/icons/module-document-icon.js +5 -5
- package/dist/components/icon/icons/module-employees-icon.js +5 -5
- package/dist/components/icon/icons/module-feed-icon.js +5 -5
- package/dist/components/icon/icons/module-history-icon.js +5 -5
- package/dist/components/icon/icons/module-home-icon.js +5 -5
- package/dist/components/icon/icons/module-insights-icon.js +5 -5
- package/dist/components/icon/icons/module-kds-icon.js +5 -5
- package/dist/components/icon/icons/module-members-icon.js +5 -5
- package/dist/components/icon/icons/module-menus-icon.js +5 -5
- package/dist/components/icon/icons/module-my-city-icon.js +5 -5
- package/dist/components/icon/icons/module-notification-center-icon.js +5 -5
- package/dist/components/icon/icons/module-online-order-icon.js +5 -5
- package/dist/components/icon/icons/module-organisation-icon.js +5 -5
- package/dist/components/icon/icons/module-pos-icon.js +5 -5
- package/dist/components/icon/icons/module-pulse-icon.js +5 -5
- package/dist/components/icon/icons/module-result-icon.js +5 -5
- package/dist/components/icon/icons/module-salary-icon.js +5 -5
- package/dist/components/icon/icons/module-schedule-icon.js +5 -5
- package/dist/components/icon/icons/module-settings-alt-icon.js +5 -5
- package/dist/components/icon/icons/module-settings-icon.js +5 -5
- package/dist/components/icon/icons/module-support-icon.js +5 -5
- package/dist/components/icon/icons/module-survey-icon.js +5 -5
- package/dist/components/icon/icons/module-table-map-icon.js +6 -6
- package/dist/components/icon/icons/module-tablet-icon.js +5 -5
- package/dist/components/icon/icons/module-time-icon.js +5 -5
- package/dist/components/icon/icons/module-timeline-icon.js +5 -5
- package/dist/components/icon/icons/module-tip-icon.js +5 -5
- package/dist/components/icon/icons/module-to-do-icon.js +5 -5
- package/dist/components/icon/icons/module-tools-icon.js +5 -5
- package/dist/components/icon/icons/module-top-list-icon.js +5 -5
- package/dist/components/icon/icons/module-web-charts-icon.js +5 -5
- package/dist/components/icon/icons/module-web-icon.js +5 -5
- package/dist/components/icon/icons/more-horizontal-icon.js +5 -5
- package/dist/components/icon/icons/more-vertical-icon.js +5 -5
- package/dist/components/icon/icons/nfc-icon.js +5 -5
- package/dist/components/icon/icons/no-cart-icon.js +5 -5
- package/dist/components/icon/icons/note-icon.js +5 -5
- package/dist/components/icon/icons/number-icon.js +6 -6
- package/dist/components/icon/icons/open-modal-icon.js +5 -5
- package/dist/components/icon/icons/parking-icon.js +5 -5
- package/dist/components/icon/icons/party-horn-icon.js +5 -5
- package/dist/components/icon/icons/paste-icon.js +5 -5
- package/dist/components/icon/icons/pause-icon.js +5 -5
- package/dist/components/icon/icons/payment-card-icon.js +5 -5
- package/dist/components/icon/icons/payment-cash-icon.js +5 -5
- package/dist/components/icon/icons/payment-generic-icon.js +5 -5
- package/dist/components/icon/icons/payment-giftcard-icon.js +5 -5
- package/dist/components/icon/icons/payment-hotel-icon.js +5 -5
- package/dist/components/icon/icons/payment-invoice-icon.js +5 -5
- package/dist/components/icon/icons/percentage-icon.js +5 -5
- package/dist/components/icon/icons/phone-icon.js +5 -5
- package/dist/components/icon/icons/pin-icon.js +5 -5
- package/dist/components/icon/icons/pin-map-icon.js +5 -5
- package/dist/components/icon/icons/play-icon.js +5 -5
- package/dist/components/icon/icons/preview-icon.js +5 -5
- package/dist/components/icon/icons/print-icon.js +5 -5
- package/dist/components/icon/icons/privacy-icon.js +5 -5
- package/dist/components/icon/icons/product-admin-icon.js +5 -5
- package/dist/components/icon/icons/product-analytics-icon.js +5 -5
- package/dist/components/icon/icons/product-booking-icon.js +5 -5
- package/dist/components/icon/icons/product-checkout-icon.js +5 -5
- package/dist/components/icon/icons/product-my-pages-icon.js +5 -5
- package/dist/components/icon/icons/product-staff-icon.js +5 -5
- package/dist/components/icon/icons/puck-icon.js +5 -5
- package/dist/components/icon/icons/qr-code-icon.js +5 -5
- package/dist/components/icon/icons/question-icon.js +5 -5
- package/dist/components/icon/icons/radio-icon.js +5 -5
- package/dist/components/icon/icons/receipt-icon.js +5 -5
- package/dist/components/icon/icons/redo-icon.js +5 -5
- package/dist/components/icon/icons/refund-icon.js +5 -5
- package/dist/components/icon/icons/remove-icon.js +5 -5
- package/dist/components/icon/icons/replace-icon.js +5 -5
- package/dist/components/icon/icons/schedule-icon.js +5 -5
- package/dist/components/icon/icons/search-icon.js +5 -5
- package/dist/components/icon/icons/select-icon.js +4 -4
- package/dist/components/icon/icons/send-icon.js +5 -5
- package/dist/components/icon/icons/share-icon.js +5 -5
- package/dist/components/icon/icons/show-icon.js +5 -5
- package/dist/components/icon/icons/shuffle-icon.js +5 -5
- package/dist/components/icon/icons/sidebar-hide-icon.js +4 -4
- package/dist/components/icon/icons/sidebar-left-icon.js +4 -4
- package/dist/components/icon/icons/sidebar-right-icon.js +5 -5
- package/dist/components/icon/icons/sidebar-show-icon.js +5 -5
- package/dist/components/icon/icons/sliders-icon.js +5 -5
- package/dist/components/icon/icons/slightly-sad-icon.js +5 -5
- package/dist/components/icon/icons/smile-icon.js +5 -5
- package/dist/components/icon/icons/sort-asc-icon.js +5 -5
- package/dist/components/icon/icons/sort-desc-icon.js +5 -5
- package/dist/components/icon/icons/split-icon.js +5 -5
- package/dist/components/icon/icons/status-icon.js +5 -5
- package/dist/components/icon/icons/stop-icon.js +5 -5
- package/dist/components/icon/icons/submenu-icon.js +5 -5
- package/dist/components/icon/icons/success-icon.js +5 -5
- package/dist/components/icon/icons/swap-icon.js +5 -5
- package/dist/components/icon/icons/swatch-icon.js +5 -5
- package/dist/components/icon/icons/sweat-icon.js +5 -5
- package/dist/components/icon/icons/table-icon.js +5 -5
- package/dist/components/icon/icons/table-map-icon.js +5 -5
- package/dist/components/icon/icons/take-away-dot-com-icon.js +5 -5
- package/dist/components/icon/icons/take-away-icon.js +5 -5
- package/dist/components/icon/icons/talk-icon.js +5 -5
- package/dist/components/icon/icons/thumbtack-icon.js +5 -5
- package/dist/components/icon/icons/time-icon.js +5 -5
- package/dist/components/icon/icons/timeline-icon.js +5 -5
- package/dist/components/icon/icons/tip-icon.js +5 -5
- package/dist/components/icon/icons/title-icon.js +5 -5
- package/dist/components/icon/icons/translate-icon.js +5 -5
- package/dist/components/icon/icons/tree-view-collapse-icon.js +4 -4
- package/dist/components/icon/icons/tree-view-expand-icon.js +4 -4
- package/dist/components/icon/icons/tree-view-last-icon.js +4 -4
- package/dist/components/icon/icons/trend-down-icon.js +5 -5
- package/dist/components/icon/icons/trend-up-icon.js +5 -5
- package/dist/components/icon/icons/triangle-warning-icon.js +5 -5
- package/dist/components/icon/icons/trivec-icon.js +6 -6
- package/dist/components/icon/icons/uber-eats-icon.js +5 -5
- package/dist/components/icon/icons/undo-icon.js +5 -5
- package/dist/components/icon/icons/unlock-icon.js +5 -5
- package/dist/components/icon/icons/unwrap-content-icon.js +5 -5
- package/dist/components/icon/icons/up-icon.js +5 -5
- package/dist/components/icon/icons/user-group-icon.js +5 -5
- package/dist/components/icon/icons/user-icon.js +5 -5
- package/dist/components/icon/icons/user-permissions-icon.js +5 -5
- package/dist/components/icon/icons/user-wait-icon.js +5 -5
- package/dist/components/icon/icons/users-icon.js +5 -5
- package/dist/components/icon/icons/version-control-icon.js +5 -5
- package/dist/components/icon/icons/volume-high-icon.js +5 -5
- package/dist/components/icon/icons/volume-icon.js +5 -5
- package/dist/components/icon/icons/volume-low-icon.js +5 -5
- package/dist/components/icon/icons/volume-off-icon.js +5 -5
- package/dist/components/icon/icons/warning-icon.js +5 -5
- package/dist/components/icon/icons/waste-icon.js +5 -5
- package/dist/components/icon/icons/wifi-icon.js +5 -5
- package/dist/components/icon/icons/wifi-off-icon.js +5 -5
- package/dist/components/icon/icons/wolt-icon.js +5 -5
- package/dist/components/icon/icons/wrap-content-icon.js +5 -5
- package/dist/components/icon-button/icon-button.js +37 -39
- package/dist/components/image/image.js +12 -14
- package/dist/components/image-upload/image-cropper.helper.js +74 -82
- package/dist/components/image-upload/image-cropper.js +156 -183
- package/dist/components/image-upload/image-upload-dropzone.js +134 -112
- package/dist/components/image-upload/image-upload-helper.js +15 -19
- package/dist/components/image-upload/image-upload-icons.js +52 -20
- package/dist/components/image-upload/image-upload-modal.js +131 -106
- package/dist/components/image-upload/image-upload.js +96 -86
- package/dist/components/image-upload/translations.js +65 -65
- package/dist/components/image-upload/types.js +6 -4
- package/dist/components/input/helper.js +18 -29
- package/dist/components/input/input-addon-recipe.js +37 -43
- package/dist/components/input/input-recipe.js +124 -133
- package/dist/components/input/input.js +78 -83
- package/dist/components/link/link-recipe.js +18 -22
- package/dist/components/link/link.js +14 -14
- package/dist/components/list/list-item.js +15 -15
- package/dist/components/list/list.js +19 -20
- package/dist/components/menu/helper.js +12 -16
- package/dist/components/menu/menu-box-button.js +22 -18
- package/dist/components/menu/menu-button.js +18 -16
- package/dist/components/menu/menu-divider.js +31 -28
- package/dist/components/menu/menu-group.js +138 -142
- package/dist/components/menu/menu-icon-button.js +13 -11
- package/dist/components/menu/menu-item.js +44 -45
- package/dist/components/menu/menu-list.js +14 -15
- package/dist/components/menu/menu-recipe.js +67 -81
- package/dist/components/menu/menu.js +34 -41
- package/dist/components/message/message.js +52 -38
- package/dist/components/modal/modal-body-context.js +6 -7
- package/dist/components/modal/modal-body.js +17 -17
- package/dist/components/modal/modal-close-button.js +23 -18
- package/dist/components/modal/modal-footer.js +29 -32
- package/dist/components/modal/modal-header.js +17 -17
- package/dist/components/modal/modal-recipe.js +110 -141
- package/dist/components/modal/modal.js +54 -58
- package/dist/components/navigation-list/navigation-list-item.js +76 -88
- package/dist/components/navigation-list/navigation-list.js +23 -17
- package/dist/components/paginator/paginator-recipe.js +34 -40
- package/dist/components/paginator/paginator.js +65 -70
- package/dist/components/paginator/translations.js +35 -35
- package/dist/components/phone-input/country-data.js +31 -36
- package/dist/components/phone-input/country-list.js +45 -25
- package/dist/components/phone-input/country-selector.js +167 -115
- package/dist/components/phone-input/phone-input-helpers.js +91 -119
- package/dist/components/phone-input/phone-input.js +47 -42
- package/dist/components/phone-input/translations.js +53 -53
- package/dist/components/phone-input/use-phone-input.js +110 -137
- package/dist/components/quantity-button/minus-button.js +18 -16
- package/dist/components/quantity-button/plus-button.js +18 -16
- package/dist/components/quantity-button/quantity-button.js +72 -40
- package/dist/components/radio/check-icon.js +5 -5
- package/dist/components/radio/hover-styles.js +21 -36
- package/dist/components/radio/radio-group-context.js +5 -6
- package/dist/components/radio/radio-group-recipe.js +124 -142
- package/dist/components/radio/radio-group.js +30 -28
- package/dist/components/radio/radio.js +72 -55
- package/dist/components/radio-card/hover-styles.js +21 -36
- package/dist/components/radio-card/radio-card-group.js +24 -25
- package/dist/components/radio-card/radio-card.js +87 -67
- package/dist/components/rich-text-editor/boolean-control.js +51 -54
- package/dist/components/rich-text-editor/extensions.js +39 -34
- package/dist/components/rich-text-editor/index.js +26 -22
- package/dist/components/rich-text-editor/rich-text-editor-context.js +9 -11
- package/dist/components/rich-text-editor/rich-text-editor-control.js +290 -284
- package/dist/components/rich-text-editor/rich-text-editor-recipe.js +71 -83
- package/dist/components/rich-text-editor/rich-text-editor.js +72 -69
- package/dist/components/rich-text-editor/rich-text-renderer.js +32 -32
- package/dist/components/rich-text-editor/translations.js +119 -119
- package/dist/components/rich-text-editor/use-rich-text-editor.js +22 -29
- package/dist/components/segmented-control/segmented-control-item.js +24 -25
- package/dist/components/segmented-control/segmented-control.js +49 -40
- package/dist/components/select/select-recipe.js +91 -106
- package/dist/components/select/select.js +27 -29
- package/dist/components/skeleton/skeleton-text.js +18 -19
- package/dist/components/skeleton/skeleton.js +19 -20
- package/dist/components/spinner/spinner.js +44 -28
- package/dist/components/stack/stack.js +18 -18
- package/dist/components/stepper/check-icon.js +5 -5
- package/dist/components/stepper/step-context.js +5 -5
- package/dist/components/stepper/step.js +111 -106
- package/dist/components/stepper/stepper.js +42 -43
- package/dist/components/stepper/times-icon.js +5 -5
- package/dist/components/switch/hover-styles.js +30 -44
- package/dist/components/switch/switch-recipe.js +76 -84
- package/dist/components/switch/switch.d.ts +3 -3
- package/dist/components/switch/switch.d.ts.map +1 -1
- package/dist/components/switch/switch.js +30 -31
- package/dist/components/switch/types.d.ts +4 -2
- package/dist/components/switch/types.d.ts.map +1 -1
- package/dist/components/table/helper.d.ts +6 -0
- package/dist/components/table/helper.d.ts.map +1 -1
- package/dist/components/table/helper.js +29 -9
- package/dist/components/table/index.d.ts +1 -1
- package/dist/components/table/index.d.ts.map +1 -1
- package/dist/components/table/table-cell.d.ts.map +1 -1
- package/dist/components/table/table-cell.js +136 -122
- package/dist/components/table/table-column-resize-handle.d.ts +12 -0
- package/dist/components/table/table-column-resize-handle.d.ts.map +1 -0
- package/dist/components/table/table-column-resize-handle.js +69 -0
- package/dist/components/table/table-content.d.ts.map +1 -1
- package/dist/components/table/table-content.js +174 -98
- package/dist/components/table/table-context-provider.d.ts +7 -2
- package/dist/components/table/table-context-provider.d.ts.map +1 -1
- package/dist/components/table/table-context-provider.js +203 -151
- package/dist/components/table/table-context.d.ts +24 -0
- package/dist/components/table/table-context.d.ts.map +1 -1
- package/dist/components/table/table-context.js +18 -11
- package/dist/components/table/table-filter.js +170 -118
- package/dist/components/table/table-header-dropdown.js +131 -89
- package/dist/components/table/table-header-row.d.ts.map +1 -1
- package/dist/components/table/table-header-row.js +202 -140
- package/dist/components/table/table-recipe.d.ts.map +1 -1
- package/dist/components/table/table-recipe.js +75 -96
- package/dist/components/table/table-row-expand-toggle-button.js +28 -35
- package/dist/components/table/table-row.d.ts.map +1 -1
- package/dist/components/table/table-row.js +51 -41
- package/dist/components/table/table-toolbar-actions.js +19 -19
- package/dist/components/table/table-toolbar-add-button.js +18 -13
- package/dist/components/table/table-toolbar-search.js +17 -12
- package/dist/components/table/table-toolbar-settings.js +180 -133
- package/dist/components/table/table-toolbar.js +72 -51
- package/dist/components/table/table.composition.d.ts +1 -0
- package/dist/components/table/table.composition.d.ts.map +1 -1
- package/dist/components/table/table.constants.d.ts +4 -0
- package/dist/components/table/table.constants.d.ts.map +1 -1
- package/dist/components/table/table.constants.js +9 -4
- package/dist/components/table/table.d.ts +1 -1
- package/dist/components/table/table.d.ts.map +1 -1
- package/dist/components/table/table.js +41 -37
- package/dist/components/table/translations.d.ts +7 -0
- package/dist/components/table/translations.d.ts.map +1 -1
- package/dist/components/table/translations.js +199 -194
- package/dist/components/table/types.d.ts +33 -2
- package/dist/components/table/types.d.ts.map +1 -1
- package/dist/components/tabs/tab-list.js +16 -17
- package/dist/components/tabs/tab-panel.js +14 -14
- package/dist/components/tabs/tab-panels.js +15 -15
- package/dist/components/tabs/tab-with-image.js +60 -53
- package/dist/components/tabs/tab.js +26 -22
- package/dist/components/tabs/tabs-recipe.js +96 -116
- package/dist/components/tabs/tabs.js +25 -24
- package/dist/components/tag/tag-recipe.js +225 -252
- package/dist/components/tag/tag.js +121 -62
- package/dist/components/text/text-recipe.js +3 -8
- package/dist/components/text/text.js +26 -27
- package/dist/components/textarea/textarea-recipe.js +90 -96
- package/dist/components/textarea/textarea.js +19 -19
- package/dist/components/toaster/toast-store.d.ts +2 -2
- package/dist/components/toaster/toast-store.d.ts.map +1 -1
- package/dist/components/toaster/toast-store.js +25 -32
- package/dist/components/toaster/toaster.js +39 -34
- package/dist/components/toggle-button/toggle-button.js +23 -25
- package/dist/components/toggle-button/use-button-children.js +36 -35
- package/dist/components/tooltip/tooltip.js +43 -47
- package/dist/hooks/use-color-mode.js +17 -22
- package/dist/hooks/use-disclosure.js +10 -13
- package/dist/hooks/use-measured-width.js +21 -21
- package/dist/hooks/use-remove-attributes.js +25 -24
- package/dist/index.js +396 -802
- package/dist/node_modules/@dnd-kit/abstract/index.js +658 -1185
- package/dist/node_modules/@dnd-kit/collision/dist/index.js +51 -90
- package/dist/node_modules/@dnd-kit/dom/index.js +1256 -1518
- package/dist/node_modules/@dnd-kit/dom/sortable.js +529 -654
- package/dist/node_modules/@dnd-kit/dom/utilities.js +772 -940
- package/dist/node_modules/@dnd-kit/geometry/dist/index.js +228 -196
- package/dist/node_modules/@dnd-kit/react/hooks.js +51 -63
- package/dist/node_modules/@dnd-kit/react/index.js +175 -235
- package/dist/node_modules/@dnd-kit/react/sortable.js +67 -142
- package/dist/node_modules/@dnd-kit/react/utilities.js +7 -9
- package/dist/node_modules/@dnd-kit/state/dist/index.js +157 -172
- package/dist/node_modules/@floating-ui/core/dist/floating-ui.core.js +154 -243
- package/dist/node_modules/@floating-ui/dom/dist/floating-ui.dom.js +294 -369
- package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.js +95 -133
- package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.js +96 -122
- package/dist/node_modules/@preact/signals-core/dist/signals-core.module.js +249 -264
- package/dist/node_modules/@tanstack/react-table/build/lib/index.js +34 -88
- package/dist/node_modules/@tanstack/react-virtual/dist/esm/index.js +74 -88
- package/dist/node_modules/@tanstack/table-core/build/lib/index.js +1463 -1822
- package/dist/node_modules/@tanstack/virtual-core/dist/esm/index.js +633 -768
- package/dist/node_modules/@tanstack/virtual-core/dist/esm/lazy-measurements.js +30 -32
- package/dist/node_modules/@tanstack/virtual-core/dist/esm/utils.js +35 -48
- package/dist/node_modules/@tiptap/core/dist/index.js +3433 -3946
- package/dist/node_modules/@tiptap/core/dist/jsx-runtime/jsx-runtime.js +19 -19
- package/dist/node_modules/@tiptap/extension-blockquote/dist/index.js +73 -1498
- package/dist/node_modules/@tiptap/extension-bold/dist/index.js +71 -84
- package/dist/node_modules/@tiptap/extension-code/dist/index.js +65 -70
- package/dist/node_modules/@tiptap/extension-code-block/dist/index.js +155 -216
- package/dist/node_modules/@tiptap/extension-document/dist/index.js +9 -11
- package/dist/node_modules/@tiptap/extension-hard-break/dist/index.js +48 -60
- package/dist/node_modules/@tiptap/extension-heading/dist/index.js +65 -66
- package/dist/node_modules/@tiptap/extension-horizontal-rule/dist/index.js +47 -55
- package/dist/node_modules/@tiptap/extension-italic/dist/index.js +68 -82
- package/dist/node_modules/@tiptap/extension-link/dist/index.js +365 -334
- package/dist/node_modules/@tiptap/extension-list/dist/index.js +936 -1105
- package/dist/node_modules/@tiptap/extension-paragraph/dist/index.js +43 -48
- package/dist/node_modules/@tiptap/extension-strike/dist/index.js +53 -65
- package/dist/node_modules/@tiptap/extension-text/dist/index.js +12 -12
- package/dist/node_modules/@tiptap/extension-underline/dist/index.js +60 -64
- package/dist/node_modules/@tiptap/extensions/dist/index.js +439 -462
- package/dist/node_modules/@tiptap/react/dist/index.js +314 -0
- package/dist/node_modules/@tiptap/starter-kit/dist/index.js +23 -24
- package/dist/node_modules/country-flag-icons/modules/countries.json.js +4 -4
- package/dist/node_modules/country-flag-icons/modules/hasFlag.js +6 -6
- package/dist/node_modules/country-flag-icons/modules/react/3x2/index.js +5469 -6298
- package/dist/node_modules/country-flag-icons/react/3x2/index.js +273 -269
- package/dist/node_modules/date-fns/_lib/addLeadingZeros.js +5 -6
- package/dist/node_modules/date-fns/_lib/defaultOptions.js +6 -6
- package/dist/node_modules/date-fns/_lib/format/formatters.js +385 -544
- package/dist/node_modules/date-fns/_lib/format/lightFormatters.js +42 -57
- package/dist/node_modules/date-fns/_lib/format/longFormatters.js +37 -48
- package/dist/node_modules/date-fns/_lib/getTimezoneOffsetInMilliseconds.js +7 -17
- package/dist/node_modules/date-fns/_lib/normalizeDates.js +6 -9
- package/dist/node_modules/date-fns/_lib/protectedTokens.js +19 -16
- package/dist/node_modules/date-fns/addDays.js +8 -8
- package/dist/node_modules/date-fns/addMonths.js +11 -18
- package/dist/node_modules/date-fns/addWeeks.js +6 -6
- package/dist/node_modules/date-fns/constants.js +10 -6
- package/dist/node_modules/date-fns/constructFrom.js +6 -6
- package/dist/node_modules/date-fns/constructNow.js +6 -6
- package/dist/node_modules/date-fns/differenceInCalendarDays.js +10 -14
- package/dist/node_modules/date-fns/endOfDay.js +7 -7
- package/dist/node_modules/date-fns/endOfMonth.js +7 -7
- package/dist/node_modules/date-fns/format.js +57 -55
- package/dist/node_modules/date-fns/getDayOfYear.js +9 -9
- package/dist/node_modules/date-fns/getISOWeek.js +10 -10
- package/dist/node_modules/date-fns/getISOWeekYear.js +13 -13
- package/dist/node_modules/date-fns/getWeek.js +10 -10
- package/dist/node_modules/date-fns/getWeekYear.js +14 -14
- package/dist/node_modules/date-fns/isBefore.js +6 -6
- package/dist/node_modules/date-fns/isDate.js +5 -5
- package/dist/node_modules/date-fns/isPast.js +6 -6
- package/dist/node_modules/date-fns/isSameDay.js +8 -12
- package/dist/node_modules/date-fns/isSameMonth.js +7 -11
- package/dist/node_modules/date-fns/isSameWeek.js +8 -12
- package/dist/node_modules/date-fns/isSameYear.js +7 -11
- package/dist/node_modules/date-fns/isToday.js +7 -10
- package/dist/node_modules/date-fns/isValid.js +7 -7
- package/dist/node_modules/date-fns/locale/_lib/buildFormatLongFn.js +8 -8
- package/dist/node_modules/date-fns/locale/_lib/buildLocalizeFn.js +16 -17
- package/dist/node_modules/date-fns/locale/_lib/buildMatchFn.js +19 -28
- package/dist/node_modules/date-fns/locale/_lib/buildMatchPatternFn.js +17 -14
- package/dist/node_modules/date-fns/locale/da/_lib/formatDistance.js +68 -69
- package/dist/node_modules/date-fns/locale/da/_lib/formatLong.js +31 -32
- package/dist/node_modules/date-fns/locale/da/_lib/formatRelative.js +11 -11
- package/dist/node_modules/date-fns/locale/da/_lib/localize.js +193 -142
- package/dist/node_modules/date-fns/locale/da/_lib/match.js +123 -109
- package/dist/node_modules/date-fns/locale/da.js +17 -17
- package/dist/node_modules/date-fns/locale/en-GB/_lib/formatLong.js +31 -32
- package/dist/node_modules/date-fns/locale/en-GB.js +18 -18
- package/dist/node_modules/date-fns/locale/en-US/_lib/formatDistance.js +68 -69
- package/dist/node_modules/date-fns/locale/en-US/_lib/formatLong.js +31 -32
- package/dist/node_modules/date-fns/locale/en-US/_lib/formatRelative.js +11 -11
- package/dist/node_modules/date-fns/locale/en-US/_lib/localize.js +200 -153
- package/dist/node_modules/date-fns/locale/en-US/_lib/match.js +123 -109
- package/dist/node_modules/date-fns/locale/en-US.js +18 -18
- package/dist/node_modules/date-fns/locale/es/_lib/formatDistance.js +68 -69
- package/dist/node_modules/date-fns/locale/es/_lib/formatLong.js +31 -32
- package/dist/node_modules/date-fns/locale/es/_lib/formatRelative.js +18 -18
- package/dist/node_modules/date-fns/locale/es/_lib/localize.js +192 -141
- package/dist/node_modules/date-fns/locale/es/_lib/match.js +127 -114
- package/dist/node_modules/date-fns/locale/es.js +18 -18
- package/dist/node_modules/date-fns/locale/et/_lib/formatDistance.js +161 -162
- package/dist/node_modules/date-fns/locale/et/_lib/formatLong.js +31 -32
- package/dist/node_modules/date-fns/locale/et/_lib/formatRelative.js +11 -11
- package/dist/node_modules/date-fns/locale/et/_lib/localize.js +196 -152
- package/dist/node_modules/date-fns/locale/et/_lib/match.js +109 -107
- package/dist/node_modules/date-fns/locale/et.js +19 -19
- package/dist/node_modules/date-fns/locale/fi/_lib/formatDistance.js +101 -101
- package/dist/node_modules/date-fns/locale/fi/_lib/formatLong.js +31 -32
- package/dist/node_modules/date-fns/locale/fi/_lib/formatRelative.js +11 -11
- package/dist/node_modules/date-fns/locale/fi/_lib/localize.js +192 -140
- package/dist/node_modules/date-fns/locale/fi/_lib/match.js +122 -108
- package/dist/node_modules/date-fns/locale/fi.js +18 -18
- package/dist/node_modules/date-fns/locale/fr/_lib/formatDistance.js +68 -69
- package/dist/node_modules/date-fns/locale/fr/_lib/formatLong.js +31 -32
- package/dist/node_modules/date-fns/locale/fr/_lib/formatRelative.js +11 -11
- package/dist/node_modules/date-fns/locale/fr/_lib/localize.js +176 -120
- package/dist/node_modules/date-fns/locale/fr/_lib/match.js +122 -108
- package/dist/node_modules/date-fns/locale/fr.js +18 -18
- package/dist/node_modules/date-fns/locale/lt/_lib/formatDistance.js +93 -109
- package/dist/node_modules/date-fns/locale/lt/_lib/formatLong.js +31 -32
- package/dist/node_modules/date-fns/locale/lt/_lib/formatRelative.js +11 -11
- package/dist/node_modules/date-fns/locale/lt/_lib/localize.js +298 -195
- package/dist/node_modules/date-fns/locale/lt/_lib/match.js +154 -121
- package/dist/node_modules/date-fns/locale/lt.js +19 -19
- package/dist/node_modules/date-fns/locale/lv/_lib/formatDistance.js +226 -120
- package/dist/node_modules/date-fns/locale/lv/_lib/formatLong.js +31 -32
- package/dist/node_modules/date-fns/locale/lv/_lib/formatRelative.js +22 -22
- package/dist/node_modules/date-fns/locale/lv/_lib/localize.js +298 -221
- package/dist/node_modules/date-fns/locale/lv/_lib/match.js +138 -112
- package/dist/node_modules/date-fns/locale/lv.js +18 -18
- package/dist/node_modules/date-fns/locale/nb/_lib/formatDistance.js +68 -69
- package/dist/node_modules/date-fns/locale/nb/_lib/formatLong.js +31 -32
- package/dist/node_modules/date-fns/locale/nb/_lib/formatRelative.js +11 -11
- package/dist/node_modules/date-fns/locale/nb/_lib/localize.js +159 -108
- package/dist/node_modules/date-fns/locale/nb/_lib/match.js +112 -108
- package/dist/node_modules/date-fns/locale/nb.js +18 -18
- package/dist/node_modules/date-fns/locale/nl/_lib/formatDistance.js +68 -69
- package/dist/node_modules/date-fns/locale/nl/_lib/formatLong.js +31 -32
- package/dist/node_modules/date-fns/locale/nl/_lib/formatRelative.js +11 -11
- package/dist/node_modules/date-fns/locale/nl/_lib/localize.js +160 -109
- package/dist/node_modules/date-fns/locale/nl/_lib/match.js +120 -108
- package/dist/node_modules/date-fns/locale/nl-BE/_lib/formatDistance.js +68 -69
- package/dist/node_modules/date-fns/locale/nl-BE/_lib/formatLong.js +31 -32
- package/dist/node_modules/date-fns/locale/nl-BE/_lib/formatRelative.js +11 -11
- package/dist/node_modules/date-fns/locale/nl-BE/_lib/localize.js +160 -109
- package/dist/node_modules/date-fns/locale/nl-BE/_lib/match.js +120 -108
- package/dist/node_modules/date-fns/locale/nl-BE.js +18 -18
- package/dist/node_modules/date-fns/locale/nl.js +18 -18
- package/dist/node_modules/date-fns/locale/sv/_lib/formatDistance.js +82 -86
- package/dist/node_modules/date-fns/locale/sv/_lib/formatLong.js +31 -32
- package/dist/node_modules/date-fns/locale/sv/_lib/formatRelative.js +11 -11
- package/dist/node_modules/date-fns/locale/sv/_lib/localize.js +199 -142
- package/dist/node_modules/date-fns/locale/sv/_lib/match.js +109 -107
- package/dist/node_modules/date-fns/locale/sv.js +18 -18
- package/dist/node_modules/date-fns/startOfDay.js +7 -7
- package/dist/node_modules/date-fns/startOfISOWeek.js +9 -6
- package/dist/node_modules/date-fns/startOfISOWeekYear.js +9 -9
- package/dist/node_modules/date-fns/startOfMonth.js +7 -7
- package/dist/node_modules/date-fns/startOfWeek.js +8 -8
- package/dist/node_modules/date-fns/startOfWeekYear.js +10 -10
- package/dist/node_modules/date-fns/startOfYear.js +7 -7
- package/dist/node_modules/date-fns/subDays.js +6 -6
- package/dist/node_modules/date-fns/subMonths.js +6 -6
- package/dist/node_modules/date-fns/subWeeks.js +6 -6
- package/dist/node_modules/date-fns/toDate.js +6 -6
- package/dist/node_modules/fast-equals/dist/es/index.js +239 -298
- package/dist/node_modules/libphonenumber-js/es6/ParseError.js +116 -89
- package/dist/node_modules/libphonenumber-js/es6/PhoneNumber.js +155 -183
- package/dist/node_modules/libphonenumber-js/es6/constants.js +4 -10
- package/dist/node_modules/libphonenumber-js/es6/format.js +70 -91
- package/dist/node_modules/libphonenumber-js/es6/getCountries.js +5 -5
- package/dist/node_modules/libphonenumber-js/es6/helpers/RFC3966.js +8 -10
- package/dist/node_modules/libphonenumber-js/es6/helpers/applyInternationalSeparatorStyle.js +5 -5
- package/dist/node_modules/libphonenumber-js/es6/helpers/checkNumberLength.js +19 -14
- package/dist/node_modules/libphonenumber-js/es6/helpers/extension/createExtensionPattern.js +9 -9
- package/dist/node_modules/libphonenumber-js/es6/helpers/extension/extractExtension.js +15 -17
- package/dist/node_modules/libphonenumber-js/es6/helpers/extractCountryCallingCode.js +35 -45
- package/dist/node_modules/libphonenumber-js/es6/helpers/extractCountryCallingCodeFromInternationalNumberWithoutPlusSign.js +20 -26
- package/dist/node_modules/libphonenumber-js/es6/helpers/extractFormattedPhoneNumberFromPossibleRfc3966NumberUri.js +17 -22
- package/dist/node_modules/libphonenumber-js/es6/helpers/extractNationalNumber.js +24 -36
- package/dist/node_modules/libphonenumber-js/es6/helpers/extractNationalNumberFromPossiblyIncompleteNumber.js +26 -30
- package/dist/node_modules/libphonenumber-js/es6/helpers/extractPhoneContext.js +13 -21
- package/dist/node_modules/libphonenumber-js/es6/helpers/formatNationalNumberUsingFormat.js +10 -24
- package/dist/node_modules/libphonenumber-js/es6/helpers/getCountryAndCallingCodeFromOneOfThem.js +10 -11
- package/dist/node_modules/libphonenumber-js/es6/helpers/getCountryByCallingCode.js +6 -8
- package/dist/node_modules/libphonenumber-js/es6/helpers/getCountryByNationalNumber.js +39 -39
- package/dist/node_modules/libphonenumber-js/es6/helpers/getIddPrefix.js +9 -11
- package/dist/node_modules/libphonenumber-js/es6/helpers/getNumberType.js +56 -47
- package/dist/node_modules/libphonenumber-js/es6/helpers/getPossibleCountriesForNumber.js +12 -12
- package/dist/node_modules/libphonenumber-js/es6/helpers/isCallingCode.js +5 -5
- package/dist/node_modules/libphonenumber-js/es6/helpers/isCountryCode.js +5 -5
- package/dist/node_modules/libphonenumber-js/es6/helpers/isObject.js +6 -6
- package/dist/node_modules/libphonenumber-js/es6/helpers/isViablePhoneNumber.js +9 -17
- package/dist/node_modules/libphonenumber-js/es6/helpers/matchesEntirely.js +5 -5
- package/dist/node_modules/libphonenumber-js/es6/helpers/mergeArrays.js +39 -0
- package/dist/node_modules/libphonenumber-js/es6/helpers/parseDigits.js +46 -77
- package/dist/node_modules/libphonenumber-js/es6/helpers/stripIddPrefix.js +17 -18
- package/dist/node_modules/libphonenumber-js/es6/isPossible.js +29 -32
- package/dist/node_modules/libphonenumber-js/es6/isValid.js +12 -13
- package/dist/node_modules/libphonenumber-js/es6/isValidPhoneNumber.js +55 -52
- package/dist/node_modules/libphonenumber-js/es6/metadata.js +462 -482
- package/dist/node_modules/libphonenumber-js/es6/normalizeArguments.js +97 -95
- package/dist/node_modules/libphonenumber-js/es6/parse.js +98 -133
- package/dist/node_modules/libphonenumber-js/es6/parseIncompletePhoneNumber.js +43 -35
- package/dist/node_modules/libphonenumber-js/es6/parsePhoneNumber.js +8 -8
- package/dist/node_modules/libphonenumber-js/es6/parsePhoneNumberWithError_.js +51 -48
- package/dist/node_modules/libphonenumber-js/es6/parsePhoneNumber_.js +59 -55
- package/dist/node_modules/libphonenumber-js/es6/tools/semver-compare.js +13 -13
- package/dist/node_modules/libphonenumber-js/metadata.min.json.js +7437 -3
- package/dist/node_modules/libphonenumber-js/min/exports/getCountries.js +6 -6
- package/dist/node_modules/libphonenumber-js/min/exports/getCountryCallingCode.js +6 -6
- package/dist/node_modules/libphonenumber-js/min/exports/isSupportedCountry.js +7 -7
- package/dist/node_modules/libphonenumber-js/min/exports/isValidPhoneNumber.js +6 -6
- package/dist/node_modules/libphonenumber-js/min/exports/parsePhoneNumber.js +7 -7
- package/dist/node_modules/libphonenumber-js/min/exports/withMetadataArgument.js +6 -6
- package/dist/node_modules/linkifyjs/dist/linkify.js +486 -679
- package/dist/node_modules/next-themes/dist/index.js +120 -85
- package/dist/node_modules/orderedmap/dist/index.js +64 -100
- package/dist/node_modules/prosemirror-commands/dist/index.js +313 -368
- package/dist/node_modules/prosemirror-dropcursor/dist/index.js +109 -84
- package/dist/node_modules/prosemirror-gapcursor/dist/index.js +162 -195
- package/dist/node_modules/prosemirror-history/dist/index.js +203 -239
- package/dist/node_modules/prosemirror-keymap/dist/index.js +45 -57
- package/dist/node_modules/prosemirror-model/dist/index.js +1783 -2735
- package/dist/node_modules/prosemirror-schema-list/dist/index.js +66 -81
- package/dist/node_modules/prosemirror-state/dist/index.js +517 -814
- package/dist/node_modules/prosemirror-transform/dist/index.js +1104 -1505
- package/dist/node_modules/prosemirror-view/dist/index.js +3274 -3782
- package/dist/node_modules/react/cjs/react-compiler-runtime.development.js +15 -21
- package/dist/node_modules/react/cjs/react-compiler-runtime.production.js +12 -14
- package/dist/node_modules/react/compiler-runtime.js +10 -10
- package/dist/node_modules/rope-sequence/dist/index.js +82 -99
- package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.development.js +55 -58
- package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.production.js +53 -57
- package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.development.js +53 -58
- package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.production.js +45 -46
- package/dist/node_modules/use-sync-external-store/shim/index.js +10 -10
- package/dist/node_modules/use-sync-external-store/shim/with-selector.js +10 -10
- package/dist/node_modules/w3c-keyname/index.js +87 -92
- package/dist/theme/component-recipes.js +52 -53
- package/dist/theme/theme-casper-ui.js +179 -420
- package/dist/theme/theme-helper.js +4 -4
- package/dist/theme/theme-provider.js +33 -34
- package/dist/theme/theme-style-props.d.ts.map +1 -1
- package/dist/theme/theme-tokens.js +22 -12
- package/dist/theme/theme-types.js +22 -12
- package/dist/theme/theme.js +213 -268
- package/package.json +30 -29
- package/dist/_virtual/compiler-runtime.js +0 -5
- package/dist/_virtual/compiler-runtime2.js +0 -4
- package/dist/_virtual/index.js +0 -5
- package/dist/_virtual/index2.js +0 -4
- package/dist/_virtual/react-compiler-runtime.development.js +0 -4
- package/dist/_virtual/react-compiler-runtime.production.js +0 -4
- package/dist/_virtual/use-sync-external-store-shim.development.js +0 -4
- package/dist/_virtual/use-sync-external-store-shim.production.js +0 -4
- package/dist/_virtual/with-selector.development.js +0 -4
- package/dist/_virtual/with-selector.js +0 -5
- package/dist/_virtual/with-selector.production.js +0 -4
- package/dist/_virtual/with-selector2.js +0 -4
- package/dist/packages/casper-ui-library/node_modules/@tiptap/react/dist/index.js +0 -506
|
@@ -1,506 +0,0 @@
|
|
|
1
|
-
import o, { useState as p, useDebugValue as m, useRef as R, useEffect as f, useLayoutEffect as C, forwardRef as N, createContext as d, useContext as v, useMemo as l } from "react";
|
|
2
|
-
import T from "react-dom";
|
|
3
|
-
import { s as b } from "../../../../../../_virtual/index.js";
|
|
4
|
-
import { jsxs as D, Fragment as g, jsx as a } from "react/jsx-runtime";
|
|
5
|
-
import { Editor as M } from "../../../../../../node_modules/@tiptap/core/dist/index.js";
|
|
6
|
-
import { CommandManager as re, Extendable as ne, Extension as ie, InputRule as se, MappablePosition as oe, Mark as ae, Node as de, NodePos as ue, PasteRule as ce, callOrReturn as le, canInsertNode as he, combineTransactionSteps as pe, commands as me, createAtomBlockMarkdownSpec as fe, createBlockMarkdownSpec as ve, createChainableState as be, createDocument as ge, createInlineMarkdownSpec as Se, createMappablePosition as Ee, createNodeFromContent as ye, createStyleTag as we, defaultBlockAt as xe, deleteProps as Re, elementFromString as Ce, extensions as Ne, findChildrenInRange as Te, findDuplicates as De, findParentNode as Me, findParentNodeClosestToPos as _e, flattenExtensions as Ie, fromString as Pe, generateHTML as Ae, generateJSON as Oe, getAttributes as ke, getAttributesFromExtensions as Be, getChangedRanges as Fe, getExtensionField as Ve, getHTMLFromFragment as je, getMarkAttributes as Ue, getMarkRange as qe, getMarkType as Le, getMarksBetween as ze, getNodeAtPosition as We, getNodeAttributes as He, getNodeType as Je, getRenderedAttributes as Ke, getSchema as Ge, getSchemaByResolvedExtensions as Qe, getSchemaTypeByName as Xe, getSchemaTypeNameByName as Ye, getSplittedAttributes as Ze, getText as $e, getTextBetween as et, getTextContentFromNodes as tt, getTextSerializersFromSchema as rt, getUpdatedPosition as nt, injectExtensionAttributesToParseRule as it, inputRulesPlugin as st, isActive as ot, isAndroid as at, isAtEndOfNode as dt, isAtStartOfNode as ut, isEmptyObject as ct, isExtensionRulesEnabled as lt, isFunction as ht, isList as pt, isMacOS as mt, isMarkActive as ft, isNodeActive as vt, isNodeEmpty as bt, isNodeSelection as gt, isNumber as St, isPlainObject as Et, isRegExp as yt, isSafari as wt, isTextSelection as xt, isiOS as Rt, markInputRule as Ct, markPasteRule as Nt, markdown as Tt, mergeAttributes as Dt, mergeDeep as Mt, minMax as _t, nodeInputRule as It, objectIncludes as Pt, parseAttributes as At, parseIndentedBlocks as Ot, pasteRulesPlugin as kt, removeDuplicates as Bt, renderNestedMarkdownContent as Ft, resolveExtensions as Vt, resolveFocusPosition as jt, selectionToInsertionEnd as Ut, serializeAttributes as qt, sortExtensions as Lt, splitExtensions as zt, textblockTypeInputRule as Wt, updateMarkViewAttributes as Ht, wrappingInputRule as Jt } from "../../../../../../node_modules/@tiptap/core/dist/index.js";
|
|
7
|
-
import { deepEqual as _ } from "../../../../../../node_modules/fast-equals/dist/es/index.js";
|
|
8
|
-
import { w as I } from "../../../../../../_virtual/with-selector.js";
|
|
9
|
-
var P = (...r) => (e) => {
|
|
10
|
-
r.forEach((t) => {
|
|
11
|
-
typeof t == "function" ? t(e) : t && (t.current = e);
|
|
12
|
-
});
|
|
13
|
-
}, A = ({ contentComponent: r }) => {
|
|
14
|
-
const e = b.useSyncExternalStore(
|
|
15
|
-
r.subscribe,
|
|
16
|
-
r.getSnapshot,
|
|
17
|
-
r.getServerSnapshot
|
|
18
|
-
);
|
|
19
|
-
return /* @__PURE__ */ a(g, { children: Object.values(e) });
|
|
20
|
-
};
|
|
21
|
-
function O() {
|
|
22
|
-
const r = /* @__PURE__ */ new Set();
|
|
23
|
-
let e = {};
|
|
24
|
-
return {
|
|
25
|
-
/**
|
|
26
|
-
* Subscribe to the editor instance's changes.
|
|
27
|
-
*/
|
|
28
|
-
subscribe(t) {
|
|
29
|
-
return r.add(t), () => {
|
|
30
|
-
r.delete(t);
|
|
31
|
-
};
|
|
32
|
-
},
|
|
33
|
-
getSnapshot() {
|
|
34
|
-
return e;
|
|
35
|
-
},
|
|
36
|
-
getServerSnapshot() {
|
|
37
|
-
return e;
|
|
38
|
-
},
|
|
39
|
-
/**
|
|
40
|
-
* Adds a new NodeView Renderer to the editor.
|
|
41
|
-
*/
|
|
42
|
-
setRenderer(t, n) {
|
|
43
|
-
e = {
|
|
44
|
-
...e,
|
|
45
|
-
[t]: T.createPortal(n.reactElement, n.element, t)
|
|
46
|
-
}, r.forEach((i) => i());
|
|
47
|
-
},
|
|
48
|
-
/**
|
|
49
|
-
* Removes a NodeView Renderer from the editor.
|
|
50
|
-
*/
|
|
51
|
-
removeRenderer(t) {
|
|
52
|
-
const n = { ...e };
|
|
53
|
-
delete n[t], e = n, r.forEach((i) => i());
|
|
54
|
-
}
|
|
55
|
-
};
|
|
56
|
-
}
|
|
57
|
-
var k = class extends o.Component {
|
|
58
|
-
constructor(r) {
|
|
59
|
-
super(r), this.editorContentRef = o.createRef();
|
|
60
|
-
}
|
|
61
|
-
componentDidMount() {
|
|
62
|
-
this.init();
|
|
63
|
-
}
|
|
64
|
-
componentDidUpdate() {
|
|
65
|
-
this.init();
|
|
66
|
-
}
|
|
67
|
-
init() {
|
|
68
|
-
var r;
|
|
69
|
-
const e = this.props.editor;
|
|
70
|
-
if (e && !e.isDestroyed && ((r = e.view.dom) != null && r.parentNode)) {
|
|
71
|
-
if (e.contentComponent)
|
|
72
|
-
return;
|
|
73
|
-
const t = this.editorContentRef.current;
|
|
74
|
-
t.append(...e.view.dom.parentNode.childNodes), e.setOptions({
|
|
75
|
-
element: t
|
|
76
|
-
}), e.contentComponent = O(), e.createNodeViews(), e.isEditorContentInitialized = !0, this.forceUpdate();
|
|
77
|
-
}
|
|
78
|
-
}
|
|
79
|
-
componentWillUnmount() {
|
|
80
|
-
var r;
|
|
81
|
-
const e = this.props.editor;
|
|
82
|
-
if (e) {
|
|
83
|
-
e.isEditorContentInitialized = !1, e.isDestroyed || e.view.setProps({
|
|
84
|
-
nodeViews: {}
|
|
85
|
-
}), e.contentComponent = null;
|
|
86
|
-
try {
|
|
87
|
-
if (!((r = e.view.dom) != null && r.parentNode))
|
|
88
|
-
return;
|
|
89
|
-
const t = document.createElement("div");
|
|
90
|
-
t.append(...e.view.dom.parentNode.childNodes), e.setOptions({
|
|
91
|
-
element: t
|
|
92
|
-
});
|
|
93
|
-
} catch {
|
|
94
|
-
}
|
|
95
|
-
}
|
|
96
|
-
}
|
|
97
|
-
render() {
|
|
98
|
-
const { editor: r, innerRef: e, ...t } = this.props;
|
|
99
|
-
return /* @__PURE__ */ D(g, { children: [
|
|
100
|
-
/* @__PURE__ */ a("div", { ref: P(e, this.editorContentRef), ...t }),
|
|
101
|
-
r?.contentComponent && /* @__PURE__ */ a(A, { contentComponent: r.contentComponent })
|
|
102
|
-
] });
|
|
103
|
-
}
|
|
104
|
-
}, B = N(
|
|
105
|
-
(r, e) => {
|
|
106
|
-
const t = o.useMemo(() => Math.floor(Math.random() * 4294967295).toString(), [r.editor]);
|
|
107
|
-
return o.createElement(k, {
|
|
108
|
-
key: t,
|
|
109
|
-
innerRef: e,
|
|
110
|
-
...r
|
|
111
|
-
});
|
|
112
|
-
}
|
|
113
|
-
), F = o.memo(B), V = typeof window < "u" ? C : f, j = class {
|
|
114
|
-
constructor(r) {
|
|
115
|
-
this.transactionNumber = 0, this.lastTransactionNumber = 0, this.subscribers = /* @__PURE__ */ new Set(), this.editor = r, this.lastSnapshot = { editor: r, transactionNumber: 0 }, this.getSnapshot = this.getSnapshot.bind(this), this.getServerSnapshot = this.getServerSnapshot.bind(this), this.watch = this.watch.bind(this), this.subscribe = this.subscribe.bind(this);
|
|
116
|
-
}
|
|
117
|
-
/**
|
|
118
|
-
* Get the current editor instance.
|
|
119
|
-
*/
|
|
120
|
-
getSnapshot() {
|
|
121
|
-
return this.transactionNumber === this.lastTransactionNumber ? this.lastSnapshot : (this.lastTransactionNumber = this.transactionNumber, this.lastSnapshot = { editor: this.editor, transactionNumber: this.transactionNumber }, this.lastSnapshot);
|
|
122
|
-
}
|
|
123
|
-
/**
|
|
124
|
-
* Always disable the editor on the server-side.
|
|
125
|
-
*/
|
|
126
|
-
getServerSnapshot() {
|
|
127
|
-
return { editor: null, transactionNumber: 0 };
|
|
128
|
-
}
|
|
129
|
-
/**
|
|
130
|
-
* Subscribe to the editor instance's changes.
|
|
131
|
-
*/
|
|
132
|
-
subscribe(r) {
|
|
133
|
-
return this.subscribers.add(r), () => {
|
|
134
|
-
this.subscribers.delete(r);
|
|
135
|
-
};
|
|
136
|
-
}
|
|
137
|
-
/**
|
|
138
|
-
* Watch the editor instance for changes.
|
|
139
|
-
*/
|
|
140
|
-
watch(r) {
|
|
141
|
-
if (this.editor = r, this.editor) {
|
|
142
|
-
const e = () => {
|
|
143
|
-
this.transactionNumber += 1, this.subscribers.forEach((n) => n());
|
|
144
|
-
}, t = this.editor;
|
|
145
|
-
return t.on("transaction", e), () => {
|
|
146
|
-
t.off("transaction", e);
|
|
147
|
-
};
|
|
148
|
-
}
|
|
149
|
-
}
|
|
150
|
-
};
|
|
151
|
-
function U(r) {
|
|
152
|
-
var e;
|
|
153
|
-
const [t] = p(() => new j(r.editor)), n = I.useSyncExternalStoreWithSelector(
|
|
154
|
-
t.subscribe,
|
|
155
|
-
t.getSnapshot,
|
|
156
|
-
t.getServerSnapshot,
|
|
157
|
-
r.selector,
|
|
158
|
-
(e = r.equalityFn) != null ? e : _
|
|
159
|
-
);
|
|
160
|
-
return V(() => t.watch(r.editor), [r.editor, t]), m(n), n;
|
|
161
|
-
}
|
|
162
|
-
var h = process.env.NODE_ENV !== "production", S = typeof window > "u", q = S || !!(typeof window < "u" && window.next), L = class E {
|
|
163
|
-
constructor(e) {
|
|
164
|
-
this.editor = null, this.subscriptions = /* @__PURE__ */ new Set(), this.isComponentMounted = !1, this.previousDeps = null, this.instanceId = "", this.options = e, this.subscriptions = /* @__PURE__ */ new Set(), this.setEditor(this.getInitialEditor()), this.scheduleDestroy(), this.getEditor = this.getEditor.bind(this), this.getServerSnapshot = this.getServerSnapshot.bind(this), this.subscribe = this.subscribe.bind(this), this.refreshEditorInstance = this.refreshEditorInstance.bind(this), this.scheduleDestroy = this.scheduleDestroy.bind(this), this.onRender = this.onRender.bind(this), this.createEditor = this.createEditor.bind(this);
|
|
165
|
-
}
|
|
166
|
-
setEditor(e) {
|
|
167
|
-
this.editor = e, this.instanceId = Math.random().toString(36).slice(2, 9), this.subscriptions.forEach((t) => t());
|
|
168
|
-
}
|
|
169
|
-
getInitialEditor() {
|
|
170
|
-
const e = this.options.current.immediatelyRender;
|
|
171
|
-
let t = e ?? !0;
|
|
172
|
-
return S ? (t && h && console.warn(
|
|
173
|
-
"SSR detected. `immediatelyRender` has been set to false to avoid hydration mismatches"
|
|
174
|
-
), t = !1) : q && e === void 0 && (t = !1, h && console.warn(
|
|
175
|
-
"Next.js detected. `immediatelyRender` defaults to false to avoid hydration mismatches. Pass `immediatelyRender: true` explicitly if you are rendering the editor only on the client."
|
|
176
|
-
)), t ? this.createEditor() : null;
|
|
177
|
-
}
|
|
178
|
-
/**
|
|
179
|
-
* Create a new editor instance. And attach event listeners.
|
|
180
|
-
*/
|
|
181
|
-
createEditor() {
|
|
182
|
-
const e = {
|
|
183
|
-
...this.options.current,
|
|
184
|
-
// Always call the most recent version of the callback function by default
|
|
185
|
-
onBeforeCreate: (...n) => {
|
|
186
|
-
var i, s;
|
|
187
|
-
return (s = (i = this.options.current).onBeforeCreate) == null ? void 0 : s.call(i, ...n);
|
|
188
|
-
},
|
|
189
|
-
onBlur: (...n) => {
|
|
190
|
-
var i, s;
|
|
191
|
-
return (s = (i = this.options.current).onBlur) == null ? void 0 : s.call(i, ...n);
|
|
192
|
-
},
|
|
193
|
-
onCreate: (...n) => {
|
|
194
|
-
var i, s;
|
|
195
|
-
return (s = (i = this.options.current).onCreate) == null ? void 0 : s.call(i, ...n);
|
|
196
|
-
},
|
|
197
|
-
onDestroy: (...n) => {
|
|
198
|
-
var i, s;
|
|
199
|
-
return (s = (i = this.options.current).onDestroy) == null ? void 0 : s.call(i, ...n);
|
|
200
|
-
},
|
|
201
|
-
onFocus: (...n) => {
|
|
202
|
-
var i, s;
|
|
203
|
-
return (s = (i = this.options.current).onFocus) == null ? void 0 : s.call(i, ...n);
|
|
204
|
-
},
|
|
205
|
-
onSelectionUpdate: (...n) => {
|
|
206
|
-
var i, s;
|
|
207
|
-
return (s = (i = this.options.current).onSelectionUpdate) == null ? void 0 : s.call(i, ...n);
|
|
208
|
-
},
|
|
209
|
-
onTransaction: (...n) => {
|
|
210
|
-
var i, s;
|
|
211
|
-
return (s = (i = this.options.current).onTransaction) == null ? void 0 : s.call(i, ...n);
|
|
212
|
-
},
|
|
213
|
-
onUpdate: (...n) => {
|
|
214
|
-
var i, s;
|
|
215
|
-
return (s = (i = this.options.current).onUpdate) == null ? void 0 : s.call(i, ...n);
|
|
216
|
-
},
|
|
217
|
-
onContentError: (...n) => {
|
|
218
|
-
var i, s;
|
|
219
|
-
return (s = (i = this.options.current).onContentError) == null ? void 0 : s.call(i, ...n);
|
|
220
|
-
},
|
|
221
|
-
onDrop: (...n) => {
|
|
222
|
-
var i, s;
|
|
223
|
-
return (s = (i = this.options.current).onDrop) == null ? void 0 : s.call(i, ...n);
|
|
224
|
-
},
|
|
225
|
-
onPaste: (...n) => {
|
|
226
|
-
var i, s;
|
|
227
|
-
return (s = (i = this.options.current).onPaste) == null ? void 0 : s.call(i, ...n);
|
|
228
|
-
},
|
|
229
|
-
onDelete: (...n) => {
|
|
230
|
-
var i, s;
|
|
231
|
-
return (s = (i = this.options.current).onDelete) == null ? void 0 : s.call(i, ...n);
|
|
232
|
-
}
|
|
233
|
-
};
|
|
234
|
-
return new M(e);
|
|
235
|
-
}
|
|
236
|
-
/**
|
|
237
|
-
* Get the current editor instance.
|
|
238
|
-
*/
|
|
239
|
-
getEditor() {
|
|
240
|
-
return this.editor;
|
|
241
|
-
}
|
|
242
|
-
/**
|
|
243
|
-
* Always disable the editor on the server-side.
|
|
244
|
-
*/
|
|
245
|
-
getServerSnapshot() {
|
|
246
|
-
return null;
|
|
247
|
-
}
|
|
248
|
-
/**
|
|
249
|
-
* Subscribe to the editor instance's changes.
|
|
250
|
-
*/
|
|
251
|
-
subscribe(e) {
|
|
252
|
-
return this.subscriptions.add(e), () => {
|
|
253
|
-
this.subscriptions.delete(e);
|
|
254
|
-
};
|
|
255
|
-
}
|
|
256
|
-
static compareOptions(e, t) {
|
|
257
|
-
return Object.keys(e).every((n) => [
|
|
258
|
-
"onCreate",
|
|
259
|
-
"onBeforeCreate",
|
|
260
|
-
"onDestroy",
|
|
261
|
-
"onUpdate",
|
|
262
|
-
"onTransaction",
|
|
263
|
-
"onFocus",
|
|
264
|
-
"onBlur",
|
|
265
|
-
"onSelectionUpdate",
|
|
266
|
-
"onContentError",
|
|
267
|
-
"onDrop",
|
|
268
|
-
"onPaste"
|
|
269
|
-
].includes(n) ? !0 : n === "extensions" && e.extensions && t.extensions ? e.extensions.length !== t.extensions.length ? !1 : e.extensions.every((i, s) => {
|
|
270
|
-
var c;
|
|
271
|
-
return i === ((c = t.extensions) == null ? void 0 : c[s]);
|
|
272
|
-
}) : e[n] === t[n]);
|
|
273
|
-
}
|
|
274
|
-
/**
|
|
275
|
-
* On each render, we will create, update, or destroy the editor instance.
|
|
276
|
-
* @param deps The dependencies to watch for changes
|
|
277
|
-
* @returns A cleanup function
|
|
278
|
-
*/
|
|
279
|
-
onRender(e) {
|
|
280
|
-
return () => (this.isComponentMounted = !0, clearTimeout(this.scheduledDestructionTimeout), this.editor && !this.editor.isDestroyed && e.length === 0 ? E.compareOptions(this.options.current, this.editor.options) || this.editor.setOptions({
|
|
281
|
-
...this.options.current,
|
|
282
|
-
editable: this.editor.isEditable
|
|
283
|
-
}) : this.refreshEditorInstance(e), () => {
|
|
284
|
-
this.isComponentMounted = !1, this.scheduleDestroy();
|
|
285
|
-
});
|
|
286
|
-
}
|
|
287
|
-
/**
|
|
288
|
-
* Recreate the editor instance if the dependencies have changed.
|
|
289
|
-
*/
|
|
290
|
-
refreshEditorInstance(e) {
|
|
291
|
-
if (this.editor && !this.editor.isDestroyed) {
|
|
292
|
-
if (this.previousDeps === null) {
|
|
293
|
-
this.previousDeps = e;
|
|
294
|
-
return;
|
|
295
|
-
}
|
|
296
|
-
if (this.previousDeps.length === e.length && this.previousDeps.every((n, i) => n === e[i]))
|
|
297
|
-
return;
|
|
298
|
-
}
|
|
299
|
-
this.editor && !this.editor.isDestroyed && this.editor.destroy(), this.setEditor(this.createEditor()), this.previousDeps = e;
|
|
300
|
-
}
|
|
301
|
-
/**
|
|
302
|
-
* Schedule the destruction of the editor instance.
|
|
303
|
-
* This will only destroy the editor if it was not mounted on the next tick.
|
|
304
|
-
* This is to avoid destroying the editor instance when it's actually still mounted.
|
|
305
|
-
*/
|
|
306
|
-
scheduleDestroy() {
|
|
307
|
-
const e = this.instanceId, t = this.editor;
|
|
308
|
-
this.scheduledDestructionTimeout = setTimeout(() => {
|
|
309
|
-
if (this.isComponentMounted && this.instanceId === e) {
|
|
310
|
-
t && t.setOptions(this.options.current);
|
|
311
|
-
return;
|
|
312
|
-
}
|
|
313
|
-
t && !t.isDestroyed && (t.destroy(), this.instanceId === e && this.setEditor(null));
|
|
314
|
-
}, 1);
|
|
315
|
-
}
|
|
316
|
-
};
|
|
317
|
-
function $(r = {}, e = []) {
|
|
318
|
-
const t = R(r);
|
|
319
|
-
t.current = r;
|
|
320
|
-
const [n] = p(() => new L(t)), i = b.useSyncExternalStore(
|
|
321
|
-
n.subscribe,
|
|
322
|
-
n.getEditor,
|
|
323
|
-
n.getServerSnapshot
|
|
324
|
-
);
|
|
325
|
-
return m(i), f(n.onRender(e)), U({
|
|
326
|
-
editor: i,
|
|
327
|
-
selector: ({ transactionNumber: s }) => r.shouldRerenderOnTransaction === !1 || r.shouldRerenderOnTransaction === void 0 ? null : r.immediatelyRender && s === 0 ? 0 : s + 1
|
|
328
|
-
}), i;
|
|
329
|
-
}
|
|
330
|
-
var y = d({
|
|
331
|
-
editor: null
|
|
332
|
-
});
|
|
333
|
-
y.Consumer;
|
|
334
|
-
var z = d({
|
|
335
|
-
onDragStart: () => {
|
|
336
|
-
},
|
|
337
|
-
nodeViewContentChildren: void 0,
|
|
338
|
-
nodeViewContentRef: () => {
|
|
339
|
-
}
|
|
340
|
-
}), W = () => v(z);
|
|
341
|
-
o.forwardRef((r, e) => {
|
|
342
|
-
const { onDragStart: t } = W(), n = r.as || "div";
|
|
343
|
-
return (
|
|
344
|
-
// @ts-ignore
|
|
345
|
-
/* @__PURE__ */ a(
|
|
346
|
-
n,
|
|
347
|
-
{
|
|
348
|
-
...r,
|
|
349
|
-
ref: e,
|
|
350
|
-
"data-node-view-wrapper": "",
|
|
351
|
-
onDragStart: t,
|
|
352
|
-
style: {
|
|
353
|
-
whiteSpace: "normal",
|
|
354
|
-
...r.style
|
|
355
|
-
}
|
|
356
|
-
}
|
|
357
|
-
)
|
|
358
|
-
);
|
|
359
|
-
});
|
|
360
|
-
o.createContext({
|
|
361
|
-
markViewContentRef: () => {
|
|
362
|
-
}
|
|
363
|
-
});
|
|
364
|
-
var u = d({
|
|
365
|
-
get editor() {
|
|
366
|
-
throw new Error("useTiptap must be used within a <Tiptap> provider");
|
|
367
|
-
}
|
|
368
|
-
});
|
|
369
|
-
u.displayName = "TiptapContext";
|
|
370
|
-
var H = () => v(u);
|
|
371
|
-
function w({ editor: r, instance: e, children: t }) {
|
|
372
|
-
const n = r ?? e;
|
|
373
|
-
if (!n)
|
|
374
|
-
throw new Error("Tiptap: An editor instance is required. Pass a non-null `editor` prop.");
|
|
375
|
-
const i = l(
|
|
376
|
-
() => ({ editor: n }),
|
|
377
|
-
[n]
|
|
378
|
-
), s = l(() => ({ editor: n }), [n]);
|
|
379
|
-
return /* @__PURE__ */ a(y.Provider, { value: s, children: /* @__PURE__ */ a(u.Provider, { value: i, children: t }) });
|
|
380
|
-
}
|
|
381
|
-
w.displayName = "Tiptap";
|
|
382
|
-
function x({ ...r }) {
|
|
383
|
-
const { editor: e } = H();
|
|
384
|
-
return /* @__PURE__ */ a(F, { editor: e, ...r });
|
|
385
|
-
}
|
|
386
|
-
x.displayName = "Tiptap.Content";
|
|
387
|
-
Object.assign(w, {
|
|
388
|
-
/**
|
|
389
|
-
* The Tiptap Content component that renders the EditorContent with the editor instance from the context.
|
|
390
|
-
* @see TiptapContent
|
|
391
|
-
*/
|
|
392
|
-
Content: x
|
|
393
|
-
});
|
|
394
|
-
export {
|
|
395
|
-
re as CommandManager,
|
|
396
|
-
M as Editor,
|
|
397
|
-
F as EditorContent,
|
|
398
|
-
y as EditorContext,
|
|
399
|
-
ne as Extendable,
|
|
400
|
-
ie as Extension,
|
|
401
|
-
se as InputRule,
|
|
402
|
-
oe as MappablePosition,
|
|
403
|
-
ae as Mark,
|
|
404
|
-
de as Node,
|
|
405
|
-
ue as NodePos,
|
|
406
|
-
ce as PasteRule,
|
|
407
|
-
k as PureEditorContent,
|
|
408
|
-
z as ReactNodeViewContext,
|
|
409
|
-
x as TiptapContent,
|
|
410
|
-
u as TiptapContext,
|
|
411
|
-
w as TiptapWrapper,
|
|
412
|
-
le as callOrReturn,
|
|
413
|
-
he as canInsertNode,
|
|
414
|
-
pe as combineTransactionSteps,
|
|
415
|
-
me as commands,
|
|
416
|
-
fe as createAtomBlockMarkdownSpec,
|
|
417
|
-
ve as createBlockMarkdownSpec,
|
|
418
|
-
be as createChainableState,
|
|
419
|
-
ge as createDocument,
|
|
420
|
-
Se as createInlineMarkdownSpec,
|
|
421
|
-
Ee as createMappablePosition,
|
|
422
|
-
ye as createNodeFromContent,
|
|
423
|
-
we as createStyleTag,
|
|
424
|
-
xe as defaultBlockAt,
|
|
425
|
-
Re as deleteProps,
|
|
426
|
-
Ce as elementFromString,
|
|
427
|
-
Ne as extensions,
|
|
428
|
-
Te as findChildrenInRange,
|
|
429
|
-
De as findDuplicates,
|
|
430
|
-
Me as findParentNode,
|
|
431
|
-
_e as findParentNodeClosestToPos,
|
|
432
|
-
Ie as flattenExtensions,
|
|
433
|
-
Pe as fromString,
|
|
434
|
-
Ae as generateHTML,
|
|
435
|
-
Oe as generateJSON,
|
|
436
|
-
ke as getAttributes,
|
|
437
|
-
Be as getAttributesFromExtensions,
|
|
438
|
-
Fe as getChangedRanges,
|
|
439
|
-
Ve as getExtensionField,
|
|
440
|
-
je as getHTMLFromFragment,
|
|
441
|
-
Ue as getMarkAttributes,
|
|
442
|
-
qe as getMarkRange,
|
|
443
|
-
Le as getMarkType,
|
|
444
|
-
ze as getMarksBetween,
|
|
445
|
-
We as getNodeAtPosition,
|
|
446
|
-
He as getNodeAttributes,
|
|
447
|
-
Je as getNodeType,
|
|
448
|
-
Ke as getRenderedAttributes,
|
|
449
|
-
Ge as getSchema,
|
|
450
|
-
Qe as getSchemaByResolvedExtensions,
|
|
451
|
-
Xe as getSchemaTypeByName,
|
|
452
|
-
Ye as getSchemaTypeNameByName,
|
|
453
|
-
Ze as getSplittedAttributes,
|
|
454
|
-
$e as getText,
|
|
455
|
-
et as getTextBetween,
|
|
456
|
-
tt as getTextContentFromNodes,
|
|
457
|
-
rt as getTextSerializersFromSchema,
|
|
458
|
-
nt as getUpdatedPosition,
|
|
459
|
-
it as injectExtensionAttributesToParseRule,
|
|
460
|
-
st as inputRulesPlugin,
|
|
461
|
-
ot as isActive,
|
|
462
|
-
at as isAndroid,
|
|
463
|
-
dt as isAtEndOfNode,
|
|
464
|
-
ut as isAtStartOfNode,
|
|
465
|
-
ct as isEmptyObject,
|
|
466
|
-
lt as isExtensionRulesEnabled,
|
|
467
|
-
ht as isFunction,
|
|
468
|
-
pt as isList,
|
|
469
|
-
mt as isMacOS,
|
|
470
|
-
ft as isMarkActive,
|
|
471
|
-
vt as isNodeActive,
|
|
472
|
-
bt as isNodeEmpty,
|
|
473
|
-
gt as isNodeSelection,
|
|
474
|
-
St as isNumber,
|
|
475
|
-
Et as isPlainObject,
|
|
476
|
-
yt as isRegExp,
|
|
477
|
-
wt as isSafari,
|
|
478
|
-
xt as isTextSelection,
|
|
479
|
-
Rt as isiOS,
|
|
480
|
-
Ct as markInputRule,
|
|
481
|
-
Nt as markPasteRule,
|
|
482
|
-
Tt as markdown,
|
|
483
|
-
Dt as mergeAttributes,
|
|
484
|
-
Mt as mergeDeep,
|
|
485
|
-
_t as minMax,
|
|
486
|
-
It as nodeInputRule,
|
|
487
|
-
Pt as objectIncludes,
|
|
488
|
-
At as parseAttributes,
|
|
489
|
-
Ot as parseIndentedBlocks,
|
|
490
|
-
kt as pasteRulesPlugin,
|
|
491
|
-
Bt as removeDuplicates,
|
|
492
|
-
Ft as renderNestedMarkdownContent,
|
|
493
|
-
Vt as resolveExtensions,
|
|
494
|
-
jt as resolveFocusPosition,
|
|
495
|
-
Ut as selectionToInsertionEnd,
|
|
496
|
-
qt as serializeAttributes,
|
|
497
|
-
Lt as sortExtensions,
|
|
498
|
-
zt as splitExtensions,
|
|
499
|
-
Wt as textblockTypeInputRule,
|
|
500
|
-
Ht as updateMarkViewAttributes,
|
|
501
|
-
$ as useEditor,
|
|
502
|
-
U as useEditorState,
|
|
503
|
-
W as useReactNodeView,
|
|
504
|
-
H as useTiptap,
|
|
505
|
-
Jt as wrappingInputRule
|
|
506
|
-
};
|