@raystack/apsara 0.31.1 → 0.32.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/command/command.cjs +3 -0
- package/dist/command/command.cjs.map +1 -1
- package/dist/command/command.d.ts.map +1 -1
- package/dist/command/command.js +3 -0
- package/dist/command/command.js.map +1 -1
- package/dist/dialog/dialog.cjs +12 -0
- package/dist/dialog/dialog.cjs.map +1 -1
- package/dist/dialog/dialog.d.ts.map +1 -1
- package/dist/dialog/dialog.js +12 -0
- package/dist/dialog/dialog.js.map +1 -1
- package/dist/select/select.cjs +3 -0
- package/dist/select/select.cjs.map +1 -1
- package/dist/select/select.d.ts.map +1 -1
- package/dist/select/select.js +3 -0
- package/dist/select/select.js.map +1 -1
- package/dist/sheet/sheet.cjs +9 -0
- package/dist/sheet/sheet.cjs.map +1 -1
- package/dist/sheet/sheet.d.ts +12 -0
- package/dist/sheet/sheet.d.ts.map +1 -1
- package/dist/sheet/sheet.js +9 -0
- package/dist/sheet/sheet.js.map +1 -1
- package/dist/style.css +1 -1
- package/dist/table/table.cjs +24 -0
- package/dist/table/table.cjs.map +1 -1
- package/dist/table/table.d.ts.map +1 -1
- package/dist/table/table.js +24 -0
- package/dist/table/table.js.map +1 -1
- package/dist/toggle-group/togglegroup.cjs +9 -0
- package/dist/toggle-group/togglegroup.cjs.map +1 -1
- package/dist/toggle-group/togglegroup.d.ts.map +1 -1
- package/dist/toggle-group/togglegroup.js +9 -0
- package/dist/toggle-group/togglegroup.js.map +1 -1
- package/dist/v1/components/calendar/range-picker.cjs +2 -2
- package/dist/v1/components/calendar/range-picker.cjs.map +1 -1
- package/dist/v1/components/calendar/range-picker.d.ts +5 -1
- package/dist/v1/components/calendar/range-picker.d.ts.map +1 -1
- package/dist/v1/components/calendar/range-picker.js +2 -2
- package/dist/v1/components/calendar/range-picker.js.map +1 -1
- package/dist/v1/components/chip/chip.cjs +6 -6
- package/dist/v1/components/chip/chip.cjs.map +1 -1
- package/dist/v1/components/chip/chip.d.ts +3 -3
- package/dist/v1/components/chip/chip.d.ts.map +1 -1
- package/dist/v1/components/chip/chip.js +6 -6
- package/dist/v1/components/chip/chip.js.map +1 -1
- package/dist/v1/components/chip/chip.module.css.cjs +1 -1
- package/dist/v1/components/chip/chip.module.css.js +1 -1
- package/dist/v1/components/command/command.cjs +52 -0
- package/dist/v1/components/command/command.cjs.map +1 -0
- package/dist/v1/components/command/command.d.ts +2 -0
- package/dist/v1/components/command/command.d.ts.map +1 -0
- package/dist/v1/components/command/command.js +50 -0
- package/dist/v1/components/command/command.js.map +1 -0
- package/dist/v1/components/command/command.module.css.cjs +8 -0
- package/dist/v1/components/command/command.module.css.cjs.map +1 -0
- package/dist/v1/components/command/command.module.css.js +4 -0
- package/dist/v1/components/command/command.module.css.js.map +1 -0
- package/dist/v1/components/command/index.d.ts +2 -0
- package/dist/v1/components/command/index.d.ts.map +1 -0
- package/dist/v1/components/dialog/dialog.cjs +32 -0
- package/dist/v1/components/dialog/dialog.cjs.map +1 -0
- package/dist/v1/components/dialog/dialog.d.ts +26 -0
- package/dist/v1/components/dialog/dialog.d.ts.map +1 -0
- package/dist/v1/components/dialog/dialog.js +29 -0
- package/dist/v1/components/dialog/dialog.js.map +1 -0
- package/dist/v1/components/dialog/dialog.module.css.cjs +8 -0
- package/dist/v1/components/dialog/dialog.module.css.cjs.map +1 -0
- package/dist/v1/components/dialog/dialog.module.css.js +4 -0
- package/dist/v1/components/dialog/dialog.module.css.js.map +1 -0
- package/dist/v1/components/dialog/index.d.ts +2 -0
- package/dist/v1/components/dialog/index.d.ts.map +1 -0
- package/dist/v1/components/flex/flex.cjs +9 -0
- package/dist/v1/components/flex/flex.cjs.map +1 -1
- package/dist/v1/components/flex/flex.d.ts +1 -1
- package/dist/v1/components/flex/flex.d.ts.map +1 -1
- package/dist/v1/components/flex/flex.js +9 -0
- package/dist/v1/components/flex/flex.js.map +1 -1
- package/dist/v1/components/flex/flex.module.css.cjs +1 -1
- package/dist/v1/components/flex/flex.module.css.js +1 -1
- package/dist/v1/components/icon-button/icon-button.cjs +1 -1
- package/dist/v1/components/icon-button/icon-button.cjs.map +1 -1
- package/dist/v1/components/icon-button/icon-button.d.ts +1 -2
- package/dist/v1/components/icon-button/icon-button.d.ts.map +1 -1
- package/dist/v1/components/icon-button/icon-button.js +1 -1
- package/dist/v1/components/icon-button/icon-button.js.map +1 -1
- package/dist/v1/components/input-field/input-field.module.css.cjs +1 -1
- package/dist/v1/components/input-field/input-field.module.css.js +1 -1
- package/dist/v1/components/select/select.cjs +5 -5
- package/dist/v1/components/select/select.cjs.map +1 -1
- package/dist/v1/components/select/select.d.ts +12 -1
- package/dist/v1/components/select/select.d.ts.map +1 -1
- package/dist/v1/components/select/select.js +5 -5
- package/dist/v1/components/select/select.js.map +1 -1
- package/dist/v1/components/select/select.module.css.cjs +1 -1
- package/dist/v1/components/select/select.module.css.js +1 -1
- package/dist/v1/components/sheet/index.d.ts +2 -0
- package/dist/v1/components/sheet/index.d.ts.map +1 -0
- package/dist/v1/components/sheet/sheet.cjs +48 -0
- package/dist/v1/components/sheet/sheet.cjs.map +1 -0
- package/dist/v1/components/sheet/sheet.d.ts +35 -0
- package/dist/v1/components/sheet/sheet.d.ts.map +1 -0
- package/dist/v1/components/sheet/sheet.js +43 -0
- package/dist/v1/components/sheet/sheet.js.map +1 -0
- package/dist/v1/components/sheet/sheet.module.css.cjs +8 -0
- package/dist/v1/components/sheet/sheet.module.css.cjs.map +1 -0
- package/dist/v1/components/sheet/sheet.module.css.js +4 -0
- package/dist/v1/components/sheet/sheet.module.css.js.map +1 -0
- package/dist/v1/components/table/index.d.ts +2 -0
- package/dist/v1/components/table/index.d.ts.map +1 -0
- package/dist/v1/components/table/table.cjs +44 -0
- package/dist/v1/components/table/table.cjs.map +1 -0
- package/dist/v1/components/table/table.d.ts +30 -0
- package/dist/v1/components/table/table.d.ts.map +1 -0
- package/dist/v1/components/table/table.js +42 -0
- package/dist/v1/components/table/table.js.map +1 -0
- package/dist/v1/components/table/table.module.css.cjs +8 -0
- package/dist/v1/components/table/table.module.css.cjs.map +1 -0
- package/dist/v1/components/table/table.module.css.js +4 -0
- package/dist/v1/components/table/table.module.css.js.map +1 -0
- package/dist/v1/components/tooltip/tooltip.cjs +3 -2
- package/dist/v1/components/tooltip/tooltip.cjs.map +1 -1
- package/dist/v1/components/tooltip/tooltip.d.ts +8 -2
- package/dist/v1/components/tooltip/tooltip.d.ts.map +1 -1
- package/dist/v1/components/tooltip/tooltip.js +3 -2
- package/dist/v1/components/tooltip/tooltip.js.map +1 -1
- package/dist/v1/index.cjs +10 -0
- package/dist/v1/index.cjs.map +1 -1
- package/dist/v1/index.d.ts +5 -0
- package/dist/v1/index.d.ts.map +1 -1
- package/dist/v1/index.js +5 -0
- package/dist/v1/index.js.map +1 -1
- package/dist/v1/node_modules/.pnpm/@radix-ui_primitive@1.0.0/node_modules/@radix-ui/primitive/dist/index.module.cjs +11 -0
- package/dist/v1/node_modules/.pnpm/@radix-ui_primitive@1.0.0/node_modules/@radix-ui/primitive/dist/index.module.cjs.map +1 -0
- package/dist/v1/node_modules/.pnpm/@radix-ui_primitive@1.0.0/node_modules/@radix-ui/primitive/dist/index.module.js +9 -0
- package/dist/v1/node_modules/.pnpm/@radix-ui_primitive@1.0.0/node_modules/@radix-ui/primitive/dist/index.module.js.map +1 -0
- package/dist/v1/node_modules/.pnpm/@radix-ui_react-compose-refs@1.0.0_react@18.2.0/node_modules/@radix-ui/react-compose-refs/dist/index.module.cjs +30 -0
- package/dist/v1/node_modules/.pnpm/@radix-ui_react-compose-refs@1.0.0_react@18.2.0/node_modules/@radix-ui/react-compose-refs/dist/index.module.cjs.map +1 -0
- package/dist/v1/node_modules/.pnpm/@radix-ui_react-compose-refs@1.0.0_react@18.2.0/node_modules/@radix-ui/react-compose-refs/dist/index.module.js +27 -0
- package/dist/v1/node_modules/.pnpm/@radix-ui_react-compose-refs@1.0.0_react@18.2.0/node_modules/@radix-ui/react-compose-refs/dist/index.module.js.map +1 -0
- package/dist/v1/node_modules/.pnpm/@radix-ui_react-context@1.0.0_react@18.2.0/node_modules/@radix-ui/react-context/dist/index.module.cjs +103 -0
- package/dist/v1/node_modules/.pnpm/@radix-ui_react-context@1.0.0_react@18.2.0/node_modules/@radix-ui/react-context/dist/index.module.cjs.map +1 -0
- package/dist/v1/node_modules/.pnpm/@radix-ui_react-context@1.0.0_react@18.2.0/node_modules/@radix-ui/react-context/dist/index.module.js +101 -0
- package/dist/v1/node_modules/.pnpm/@radix-ui_react-context@1.0.0_react@18.2.0/node_modules/@radix-ui/react-context/dist/index.module.js.map +1 -0
- package/dist/v1/node_modules/.pnpm/@radix-ui_react-dialog@1.0.0_@types_react@18.2.12_react-dom@18.3.1_react@18.2.0__react@18.2.0/node_modules/@radix-ui/react-dialog/dist/index.module.cjs +224 -0
- package/dist/v1/node_modules/.pnpm/@radix-ui_react-dialog@1.0.0_@types_react@18.2.12_react-dom@18.3.1_react@18.2.0__react@18.2.0/node_modules/@radix-ui/react-dialog/dist/index.module.cjs.map +1 -0
- package/dist/v1/node_modules/.pnpm/@radix-ui_react-dialog@1.0.0_@types_react@18.2.12_react-dom@18.3.1_react@18.2.0__react@18.2.0/node_modules/@radix-ui/react-dialog/dist/index.module.js +214 -0
- package/dist/v1/node_modules/.pnpm/@radix-ui_react-dialog@1.0.0_@types_react@18.2.12_react-dom@18.3.1_react@18.2.0__react@18.2.0/node_modules/@radix-ui/react-dialog/dist/index.module.js.map +1 -0
- package/dist/v1/node_modules/.pnpm/@radix-ui_react-dialog@1.0.4_@types_react-dom@18.0.11_@types_react@18.2.12_react-dom@18.3.1_react@18.2.0__react@18.2.0/node_modules/@radix-ui/react-dialog/dist/index.cjs +298 -0
- package/dist/v1/node_modules/.pnpm/@radix-ui_react-dialog@1.0.4_@types_react-dom@18.0.11_@types_react@18.2.12_react-dom@18.3.1_react@18.2.0__react@18.2.0/node_modules/@radix-ui/react-dialog/dist/index.cjs.map +1 -0
- package/dist/v1/node_modules/.pnpm/@radix-ui_react-dialog@1.0.4_@types_react-dom@18.0.11_@types_react@18.2.12_react-dom@18.3.1_react@18.2.0__react@18.2.0/node_modules/@radix-ui/react-dialog/dist/index.js +280 -0
- package/dist/v1/node_modules/.pnpm/@radix-ui_react-dialog@1.0.4_@types_react-dom@18.0.11_@types_react@18.2.12_react-dom@18.3.1_react@18.2.0__react@18.2.0/node_modules/@radix-ui/react-dialog/dist/index.js.map +1 -0
- package/dist/v1/node_modules/.pnpm/@radix-ui_react-dismissable-layer@1.0.0_react-dom@18.3.1_react@18.2.0__react@18.2.0/node_modules/@radix-ui/react-dismissable-layer/dist/index.module.cjs +235 -0
- package/dist/v1/node_modules/.pnpm/@radix-ui_react-dismissable-layer@1.0.0_react-dom@18.3.1_react@18.2.0__react@18.2.0/node_modules/@radix-ui/react-dismissable-layer/dist/index.module.cjs.map +1 -0
- package/dist/v1/node_modules/.pnpm/@radix-ui_react-dismissable-layer@1.0.0_react-dom@18.3.1_react@18.2.0__react@18.2.0/node_modules/@radix-ui/react-dismissable-layer/dist/index.module.js +233 -0
- package/dist/v1/node_modules/.pnpm/@radix-ui_react-dismissable-layer@1.0.0_react-dom@18.3.1_react@18.2.0__react@18.2.0/node_modules/@radix-ui/react-dismissable-layer/dist/index.module.js.map +1 -0
- package/dist/v1/node_modules/.pnpm/@radix-ui_react-focus-guards@1.0.0_react@18.2.0/node_modules/@radix-ui/react-focus-guards/dist/index.module.cjs +32 -0
- package/dist/v1/node_modules/.pnpm/@radix-ui_react-focus-guards@1.0.0_react@18.2.0/node_modules/@radix-ui/react-focus-guards/dist/index.module.cjs.map +1 -0
- package/dist/v1/node_modules/.pnpm/@radix-ui_react-focus-guards@1.0.0_react@18.2.0/node_modules/@radix-ui/react-focus-guards/dist/index.module.js +30 -0
- package/dist/v1/node_modules/.pnpm/@radix-ui_react-focus-guards@1.0.0_react@18.2.0/node_modules/@radix-ui/react-focus-guards/dist/index.module.js.map +1 -0
- package/dist/v1/node_modules/.pnpm/@radix-ui_react-focus-scope@1.0.0_react-dom@18.3.1_react@18.2.0__react@18.2.0/node_modules/@radix-ui/react-focus-scope/dist/index.module.cjs +254 -0
- package/dist/v1/node_modules/.pnpm/@radix-ui_react-focus-scope@1.0.0_react-dom@18.3.1_react@18.2.0__react@18.2.0/node_modules/@radix-ui/react-focus-scope/dist/index.module.cjs.map +1 -0
- package/dist/v1/node_modules/.pnpm/@radix-ui_react-focus-scope@1.0.0_react-dom@18.3.1_react@18.2.0__react@18.2.0/node_modules/@radix-ui/react-focus-scope/dist/index.module.js +252 -0
- package/dist/v1/node_modules/.pnpm/@radix-ui_react-focus-scope@1.0.0_react-dom@18.3.1_react@18.2.0__react@18.2.0/node_modules/@radix-ui/react-focus-scope/dist/index.module.js.map +1 -0
- package/dist/v1/node_modules/.pnpm/@radix-ui_react-id@1.0.0_react@18.2.0/node_modules/@radix-ui/react-id/dist/index.module.cjs +40 -0
- package/dist/v1/node_modules/.pnpm/@radix-ui_react-id@1.0.0_react@18.2.0/node_modules/@radix-ui/react-id/dist/index.module.cjs.map +1 -0
- package/dist/v1/node_modules/.pnpm/@radix-ui_react-id@1.0.0_react@18.2.0/node_modules/@radix-ui/react-id/dist/index.module.js +19 -0
- package/dist/v1/node_modules/.pnpm/@radix-ui_react-id@1.0.0_react@18.2.0/node_modules/@radix-ui/react-id/dist/index.module.js.map +1 -0
- package/dist/v1/node_modules/.pnpm/@radix-ui_react-menu@2.0.5_@types_react-dom@18.0.11_@types_react@18.2.12_react-dom@18.3.1_react@18.2.0__react@18.2.0/node_modules/@radix-ui/react-menu/dist/index.js +2 -2
- package/dist/v1/node_modules/.pnpm/@radix-ui_react-popover@1.0.6_@types_react-dom@18.0.11_@types_react@18.2.12_react-dom@18.3.1_react@18.2.0__react@18.2.0/node_modules/@radix-ui/react-popover/dist/index.js +2 -2
- package/dist/v1/node_modules/.pnpm/@radix-ui_react-popover@1.0.6_@types_react-dom@18.0.11_@types_react@18.2.12_react-dom@18.3.1_react@18.2.0__react@18.2.0/node_modules/@radix-ui/react-popover/dist/index.js.map +1 -1
- package/dist/v1/node_modules/.pnpm/@radix-ui_react-portal@1.0.0_react-dom@18.3.1_react@18.2.0__react@18.2.0/node_modules/@radix-ui/react-portal/dist/index.module.cjs +17 -0
- package/dist/v1/node_modules/.pnpm/@radix-ui_react-portal@1.0.0_react-dom@18.3.1_react@18.2.0__react@18.2.0/node_modules/@radix-ui/react-portal/dist/index.module.cjs.map +1 -0
- package/dist/v1/node_modules/.pnpm/@radix-ui_react-portal@1.0.0_react-dom@18.3.1_react@18.2.0__react@18.2.0/node_modules/@radix-ui/react-portal/dist/index.module.js +15 -0
- package/dist/v1/node_modules/.pnpm/@radix-ui_react-portal@1.0.0_react-dom@18.3.1_react@18.2.0__react@18.2.0/node_modules/@radix-ui/react-portal/dist/index.module.js.map +1 -0
- package/dist/v1/node_modules/.pnpm/@radix-ui_react-presence@1.0.0_react-dom@18.3.1_react@18.2.0__react@18.2.0/node_modules/@radix-ui/react-presence/dist/index.module.cjs +133 -0
- package/dist/v1/node_modules/.pnpm/@radix-ui_react-presence@1.0.0_react-dom@18.3.1_react@18.2.0__react@18.2.0/node_modules/@radix-ui/react-presence/dist/index.module.cjs.map +1 -0
- package/dist/v1/node_modules/.pnpm/@radix-ui_react-presence@1.0.0_react-dom@18.3.1_react@18.2.0__react@18.2.0/node_modules/@radix-ui/react-presence/dist/index.module.js +131 -0
- package/dist/v1/node_modules/.pnpm/@radix-ui_react-presence@1.0.0_react-dom@18.3.1_react@18.2.0__react@18.2.0/node_modules/@radix-ui/react-presence/dist/index.module.js.map +1 -0
- package/dist/v1/node_modules/.pnpm/@radix-ui_react-primitive@1.0.0_react-dom@18.3.1_react@18.2.0__react@18.2.0/node_modules/@radix-ui/react-primitive/dist/index.module.cjs +88 -0
- package/dist/v1/node_modules/.pnpm/@radix-ui_react-primitive@1.0.0_react-dom@18.3.1_react@18.2.0__react@18.2.0/node_modules/@radix-ui/react-primitive/dist/index.module.cjs.map +1 -0
- package/dist/v1/node_modules/.pnpm/@radix-ui_react-primitive@1.0.0_react-dom@18.3.1_react@18.2.0__react@18.2.0/node_modules/@radix-ui/react-primitive/dist/index.module.js +85 -0
- package/dist/v1/node_modules/.pnpm/@radix-ui_react-primitive@1.0.0_react-dom@18.3.1_react@18.2.0__react@18.2.0/node_modules/@radix-ui/react-primitive/dist/index.module.js.map +1 -0
- package/dist/v1/node_modules/.pnpm/@radix-ui_react-slot@1.0.0_react@18.2.0/node_modules/@radix-ui/react-slot/dist/index.module.cjs +82 -0
- package/dist/v1/node_modules/.pnpm/@radix-ui_react-slot@1.0.0_react@18.2.0/node_modules/@radix-ui/react-slot/dist/index.module.cjs.map +1 -0
- package/dist/v1/node_modules/.pnpm/@radix-ui_react-slot@1.0.0_react@18.2.0/node_modules/@radix-ui/react-slot/dist/index.module.js +79 -0
- package/dist/v1/node_modules/.pnpm/@radix-ui_react-slot@1.0.0_react@18.2.0/node_modules/@radix-ui/react-slot/dist/index.module.js.map +1 -0
- package/dist/v1/node_modules/.pnpm/@radix-ui_react-use-callback-ref@1.0.0_react@18.2.0/node_modules/@radix-ui/react-use-callback-ref/dist/index.module.cjs +21 -0
- package/dist/v1/node_modules/.pnpm/@radix-ui_react-use-callback-ref@1.0.0_react@18.2.0/node_modules/@radix-ui/react-use-callback-ref/dist/index.module.cjs.map +1 -0
- package/dist/v1/node_modules/.pnpm/@radix-ui_react-use-callback-ref@1.0.0_react@18.2.0/node_modules/@radix-ui/react-use-callback-ref/dist/index.module.js +19 -0
- package/dist/v1/node_modules/.pnpm/@radix-ui_react-use-callback-ref@1.0.0_react@18.2.0/node_modules/@radix-ui/react-use-callback-ref/dist/index.module.js.map +1 -0
- package/dist/v1/node_modules/.pnpm/@radix-ui_react-use-controllable-state@1.0.0_react@18.2.0/node_modules/@radix-ui/react-use-controllable-state/dist/index.module.cjs +50 -0
- package/dist/v1/node_modules/.pnpm/@radix-ui_react-use-controllable-state@1.0.0_react@18.2.0/node_modules/@radix-ui/react-use-controllable-state/dist/index.module.cjs.map +1 -0
- package/dist/v1/node_modules/.pnpm/@radix-ui_react-use-controllable-state@1.0.0_react@18.2.0/node_modules/@radix-ui/react-use-controllable-state/dist/index.module.js +48 -0
- package/dist/v1/node_modules/.pnpm/@radix-ui_react-use-controllable-state@1.0.0_react@18.2.0/node_modules/@radix-ui/react-use-controllable-state/dist/index.module.js.map +1 -0
- package/dist/v1/node_modules/.pnpm/@radix-ui_react-use-escape-keydown@1.0.0_react@18.2.0/node_modules/@radix-ui/react-use-escape-keydown/dist/index.module.cjs +23 -0
- package/dist/v1/node_modules/.pnpm/@radix-ui_react-use-escape-keydown@1.0.0_react@18.2.0/node_modules/@radix-ui/react-use-escape-keydown/dist/index.module.cjs.map +1 -0
- package/dist/v1/node_modules/.pnpm/@radix-ui_react-use-escape-keydown@1.0.0_react@18.2.0/node_modules/@radix-ui/react-use-escape-keydown/dist/index.module.js +21 -0
- package/dist/v1/node_modules/.pnpm/@radix-ui_react-use-escape-keydown@1.0.0_react@18.2.0/node_modules/@radix-ui/react-use-escape-keydown/dist/index.module.js.map +1 -0
- package/dist/v1/node_modules/.pnpm/@radix-ui_react-use-layout-effect@1.0.0_react@18.2.0/node_modules/@radix-ui/react-use-layout-effect/dist/index.module.cjs +14 -0
- package/dist/v1/node_modules/.pnpm/@radix-ui_react-use-layout-effect@1.0.0_react@18.2.0/node_modules/@radix-ui/react-use-layout-effect/dist/index.module.cjs.map +1 -0
- package/dist/v1/node_modules/.pnpm/@radix-ui_react-use-layout-effect@1.0.0_react@18.2.0/node_modules/@radix-ui/react-use-layout-effect/dist/index.module.js +12 -0
- package/dist/v1/node_modules/.pnpm/@radix-ui_react-use-layout-effect@1.0.0_react@18.2.0/node_modules/@radix-ui/react-use-layout-effect/dist/index.module.js.map +1 -0
- package/dist/v1/node_modules/.pnpm/cmdk@0.2.0_@types_react@18.2.12_react-dom@18.3.1_react@18.2.0__react@18.2.0/node_modules/cmdk/dist/index.cjs +39 -0
- package/dist/v1/node_modules/.pnpm/cmdk@0.2.0_@types_react@18.2.12_react-dom@18.3.1_react@18.2.0__react@18.2.0/node_modules/cmdk/dist/index.cjs.map +1 -0
- package/dist/v1/node_modules/.pnpm/cmdk@0.2.0_@types_react@18.2.12_react-dom@18.3.1_react@18.2.0__react@18.2.0/node_modules/cmdk/dist/index.js +8 -0
- package/dist/v1/node_modules/.pnpm/cmdk@0.2.0_@types_react@18.2.12_react-dom@18.3.1_react@18.2.0__react@18.2.0/node_modules/cmdk/dist/index.js.map +1 -0
- package/dist/v1/node_modules/.pnpm/command-score@0.1.2/node_modules/command-score/index.cjs +146 -0
- package/dist/v1/node_modules/.pnpm/command-score@0.1.2/node_modules/command-score/index.cjs.map +1 -0
- package/dist/v1/node_modules/.pnpm/command-score@0.1.2/node_modules/command-score/index.js +142 -0
- package/dist/v1/node_modules/.pnpm/command-score@0.1.2/node_modules/command-score/index.js.map +1 -0
- package/dist/v1/node_modules/.pnpm/react-remove-scroll@2.5.4_@types_react@18.2.12_react@18.2.0/node_modules/react-remove-scroll/dist/es2015/Combination.cjs +34 -0
- package/dist/v1/node_modules/.pnpm/react-remove-scroll@2.5.4_@types_react@18.2.12_react@18.2.0/node_modules/react-remove-scroll/dist/es2015/Combination.cjs.map +1 -0
- package/dist/v1/node_modules/.pnpm/react-remove-scroll@2.5.4_@types_react@18.2.12_react@18.2.0/node_modules/react-remove-scroll/dist/es2015/Combination.js +11 -0
- package/dist/v1/node_modules/.pnpm/react-remove-scroll@2.5.4_@types_react@18.2.12_react@18.2.0/node_modules/react-remove-scroll/dist/es2015/Combination.js.map +1 -0
- package/dist/v1/node_modules/.pnpm/react-remove-scroll@2.5.4_@types_react@18.2.12_react@18.2.0/node_modules/react-remove-scroll/dist/es2015/SideEffect.cjs +169 -0
- package/dist/v1/node_modules/.pnpm/react-remove-scroll@2.5.4_@types_react@18.2.12_react@18.2.0/node_modules/react-remove-scroll/dist/es2015/SideEffect.cjs.map +1 -0
- package/dist/v1/node_modules/.pnpm/react-remove-scroll@2.5.4_@types_react@18.2.12_react@18.2.0/node_modules/react-remove-scroll/dist/es2015/SideEffect.js +146 -0
- package/dist/v1/node_modules/.pnpm/react-remove-scroll@2.5.4_@types_react@18.2.12_react@18.2.0/node_modules/react-remove-scroll/dist/es2015/SideEffect.js.map +1 -0
- package/dist/v1/node_modules/.pnpm/react-remove-scroll@2.5.4_@types_react@18.2.12_react@18.2.0/node_modules/react-remove-scroll/dist/es2015/UI.cjs +60 -0
- package/dist/v1/node_modules/.pnpm/react-remove-scroll@2.5.4_@types_react@18.2.12_react@18.2.0/node_modules/react-remove-scroll/dist/es2015/UI.cjs.map +1 -0
- package/dist/v1/node_modules/.pnpm/react-remove-scroll@2.5.4_@types_react@18.2.12_react@18.2.0/node_modules/react-remove-scroll/dist/es2015/UI.js +39 -0
- package/dist/v1/node_modules/.pnpm/react-remove-scroll@2.5.4_@types_react@18.2.12_react@18.2.0/node_modules/react-remove-scroll/dist/es2015/UI.js.map +1 -0
- package/dist/v1/node_modules/.pnpm/react-remove-scroll@2.5.4_@types_react@18.2.12_react@18.2.0/node_modules/react-remove-scroll/dist/es2015/aggresiveCapture.cjs +24 -0
- package/dist/v1/node_modules/.pnpm/react-remove-scroll@2.5.4_@types_react@18.2.12_react@18.2.0/node_modules/react-remove-scroll/dist/es2015/aggresiveCapture.cjs.map +1 -0
- package/dist/v1/node_modules/.pnpm/react-remove-scroll@2.5.4_@types_react@18.2.12_react@18.2.0/node_modules/react-remove-scroll/dist/es2015/aggresiveCapture.js +22 -0
- package/dist/v1/node_modules/.pnpm/react-remove-scroll@2.5.4_@types_react@18.2.12_react@18.2.0/node_modules/react-remove-scroll/dist/es2015/aggresiveCapture.js.map +1 -0
- package/dist/v1/node_modules/.pnpm/react-remove-scroll@2.5.4_@types_react@18.2.12_react@18.2.0/node_modules/react-remove-scroll/dist/es2015/handleScroll.cjs +100 -0
- package/dist/v1/node_modules/.pnpm/react-remove-scroll@2.5.4_@types_react@18.2.12_react@18.2.0/node_modules/react-remove-scroll/dist/es2015/handleScroll.cjs.map +1 -0
- package/dist/v1/node_modules/.pnpm/react-remove-scroll@2.5.4_@types_react@18.2.12_react@18.2.0/node_modules/react-remove-scroll/dist/es2015/handleScroll.js +97 -0
- package/dist/v1/node_modules/.pnpm/react-remove-scroll@2.5.4_@types_react@18.2.12_react@18.2.0/node_modules/react-remove-scroll/dist/es2015/handleScroll.js.map +1 -0
- package/dist/v1/node_modules/.pnpm/react-remove-scroll@2.5.4_@types_react@18.2.12_react@18.2.0/node_modules/react-remove-scroll/dist/es2015/medium.cjs +8 -0
- package/dist/v1/node_modules/.pnpm/react-remove-scroll@2.5.4_@types_react@18.2.12_react@18.2.0/node_modules/react-remove-scroll/dist/es2015/medium.cjs.map +1 -0
- package/dist/v1/node_modules/.pnpm/react-remove-scroll@2.5.4_@types_react@18.2.12_react@18.2.0/node_modules/react-remove-scroll/dist/es2015/medium.js +6 -0
- package/dist/v1/node_modules/.pnpm/react-remove-scroll@2.5.4_@types_react@18.2.12_react@18.2.0/node_modules/react-remove-scroll/dist/es2015/medium.js.map +1 -0
- package/dist/v1/node_modules/.pnpm/react-remove-scroll@2.5.4_@types_react@18.2.12_react@18.2.0/node_modules/react-remove-scroll/dist/es2015/sidecar.cjs +12 -0
- package/dist/v1/node_modules/.pnpm/react-remove-scroll@2.5.4_@types_react@18.2.12_react@18.2.0/node_modules/react-remove-scroll/dist/es2015/sidecar.cjs.map +1 -0
- package/dist/v1/node_modules/.pnpm/react-remove-scroll@2.5.4_@types_react@18.2.12_react@18.2.0/node_modules/react-remove-scroll/dist/es2015/sidecar.js +8 -0
- package/dist/v1/node_modules/.pnpm/react-remove-scroll@2.5.4_@types_react@18.2.12_react@18.2.0/node_modules/react-remove-scroll/dist/es2015/sidecar.js.map +1 -0
- package/dist/v1/node_modules/.pnpm/react-remove-scroll@2.5.5_@types_react@18.2.12_react@18.2.0/node_modules/react-remove-scroll/dist/es2015/Combination.cjs +2 -2
- package/dist/v1/node_modules/.pnpm/react-remove-scroll@2.5.5_@types_react@18.2.12_react@18.2.0/node_modules/react-remove-scroll/dist/es2015/Combination.js +2 -2
- package/dist/v1/style.css +1 -1
- package/package.json +1 -1
package/dist/v1/node_modules/.pnpm/command-score@0.1.2/node_modules/command-score/index.cjs.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.cjs","sources":["../../../../../../../../../node_modules/.pnpm/command-score@0.1.2/node_modules/command-score/index.js"],"sourcesContent":["// The scores are arranged so that a continuous match of characters will\n// result in a total score of 1.\n//\n// The best case, this character is a match, and either this is the start\n// of the string, or the previous character was also a match.\nvar SCORE_CONTINUE_MATCH = 1,\n\n // A new match at the start of a word scores better than a new match\n // elsewhere as it's more likely that the user will type the starts\n // of fragments.\n // (Our notion of word includes CamelCase and hypen-separated, etc.)\n SCORE_WORD_JUMP = 0.9,\n\n // Any other match isn't ideal, but we include it for completeness.\n SCORE_CHARACTER_JUMP = 0.3,\n\n // If the user transposed two letters, it should be signficantly penalized.\n //\n // i.e. \"ouch\" is more likely than \"curtain\" when \"uc\" is typed.\n SCORE_TRANSPOSITION = 0.1,\n\n // If the user jumped to half-way through a subsequent word, it should be\n // very significantly penalized.\n //\n // i.e. \"loes\" is very unlikely to match \"loch ness\".\n // NOTE: this is set to 0 for superhuman right now, but we may want to revisit.\n SCORE_LONG_JUMP = 0,\n\n // The goodness of a match should decay slightly with each missing\n // character.\n //\n // i.e. \"bad\" is more likely than \"bard\" when \"bd\" is typed.\n //\n // This will not change the order of suggestions based on SCORE_* until\n // 100 characters are inserted between matches.\n PENALTY_SKIPPED = 0.999,\n\n // The goodness of an exact-case match should be higher than a\n // case-insensitive match by a small amount.\n //\n // i.e. \"HTML\" is more likely than \"haml\" when \"HM\" is typed.\n //\n // This will not change the order of suggestions based on SCORE_* until\n // 1000 characters are inserted between matches.\n PENALTY_CASE_MISMATCH = 0.9999,\n\n // If the word has more characters than the user typed, it should\n // be penalised slightly.\n //\n // i.e. \"html\" is more likely than \"html5\" if I type \"html\".\n //\n // However, it may well be the case that there's a sensible secondary\n // ordering (like alphabetical) that it makes sense to rely on when\n // there are many prefix matches, so we don't make the penalty increase\n // with the number of tokens.\n PENALTY_NOT_COMPLETE = 0.99;\n\nvar IS_GAP_REGEXP = /[\\\\\\/\\-_+.# \\t\"@\\[\\(\\{&]/,\n COUNT_GAPS_REGEXP = /[\\\\\\/\\-_+.# \\t\"@\\[\\(\\{&]/g;\n\nfunction commandScoreInner(string, abbreviation, lowerString, lowerAbbreviation, stringIndex, abbreviationIndex) {\n\n if (abbreviationIndex === abbreviation.length) {\n if (stringIndex === string.length) {\n return SCORE_CONTINUE_MATCH;\n\n }\n return PENALTY_NOT_COMPLETE;\n }\n\n var abbreviationChar = lowerAbbreviation.charAt(abbreviationIndex);\n var index = lowerString.indexOf(abbreviationChar, stringIndex);\n var highScore = 0;\n\n var score, transposedScore, wordBreaks;\n\n while (index >= 0) {\n\n score = commandScoreInner(string, abbreviation, lowerString, lowerAbbreviation, index + 1, abbreviationIndex + 1);\n if (score > highScore) {\n if (index === stringIndex) {\n score *= SCORE_CONTINUE_MATCH;\n } else if (IS_GAP_REGEXP.test(string.charAt(index - 1))) {\n score *= SCORE_WORD_JUMP;\n wordBreaks = string.slice(stringIndex, index - 1).match(COUNT_GAPS_REGEXP);\n if (wordBreaks && stringIndex > 0) {\n score *= Math.pow(PENALTY_SKIPPED, wordBreaks.length);\n }\n } else if (IS_GAP_REGEXP.test(string.slice(stringIndex, index - 1))) {\n score *= SCORE_LONG_JUMP;\n if (stringIndex > 0) {\n score *= Math.pow(PENALTY_SKIPPED, index - stringIndex);\n }\n } else {\n score *= SCORE_CHARACTER_JUMP;\n if (stringIndex > 0) {\n score *= Math.pow(PENALTY_SKIPPED, index - stringIndex);\n }\n }\n\n if (string.charAt(index) !== abbreviation.charAt(abbreviationIndex)) {\n score *= PENALTY_CASE_MISMATCH;\n }\n\n }\n\n if (score < SCORE_TRANSPOSITION &&\n lowerString.charAt(index - 1) === lowerAbbreviation.charAt(abbreviationIndex + 1) &&\n lowerString.charAt(index - 1) !== lowerAbbreviation.charAt(abbreviationIndex)) {\n transposedScore = commandScoreInner(string, abbreviation, lowerString, lowerAbbreviation, index + 1, abbreviationIndex + 2);\n\n if (transposedScore * SCORE_TRANSPOSITION > score) {\n score = transposedScore * SCORE_TRANSPOSITION;\n }\n }\n\n if (score > highScore) {\n highScore = score;\n }\n\n index = lowerString.indexOf(abbreviationChar, index + 1);\n }\n\n return highScore;\n}\n\nfunction commandScore(string, abbreviation) {\n /* NOTE:\n * in the original, we used to do the lower-casing on each recursive call, but this meant that toLowerCase()\n * was the dominating cost in the algorithm, passing both is a little ugly, but considerably faster.\n */\n return commandScoreInner(string, abbreviation, string.toLowerCase(), abbreviation.toLowerCase(), 0, 0);\n}\n\nmodule.exports = commandScore;\n"],"names":[],"mappings":";;;;;;AAAA;AACA;AACA;AACA;AACA;AACA,IAAI,oBAAoB,GAAG,CAAC;AAC5B;AACA;AACA;AACA;AACA;AACA,IAAI,eAAe,GAAG,GAAG;AACzB;AACA;AACA,IAAI,oBAAoB,GAAG,GAAG;AAC9B;AACA;AACA;AACA;AACA,IAAI,mBAAmB,GAAG,GAAG;AAC7B;AACA;AACA;AACA;AACA;AACA;AACA,IAAI,eAAe,GAAG,CAAC;AACvB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAI,eAAe,GAAG,KAAK;AAC3B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAI,qBAAqB,GAAG,MAAM;AAClC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAI,oBAAoB,GAAG,IAAI,CAAC;AAChC;AACA,IAAI,aAAa,GAAG,0BAA0B;AAC9C,IAAI,iBAAiB,GAAG,2BAA2B,CAAC;AACpD;AACA,SAAS,iBAAiB,CAAC,MAAM,EAAE,YAAY,EAAE,WAAW,EAAE,iBAAiB,EAAE,WAAW,EAAE,iBAAiB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/D,gBAAgB,KAAK,GAAG,eAAe,GAAG,mBAAmB,CAAC;AAC9D,aAAa;AACb,SAAS;AACT;AACA,QAAQ,IAAI,KAAK,GAAG,SAAS,EAAE;AAC/B,YAAY,SAAS,GAAG,KAAK,CAAC;AAC9B,SAAS;AACT;AACA,QAAQ,KAAK,GAAG,WAAW,CAAC,OAAO,CAAC,gBAAgB,EAAE,KAAK,GAAG,CAAC,CAAC,CAAC;AACjE,KAAK;AACL;AACA,IAAI,OAAO,SAAS,CAAC;AACrB,CAAC;AACD;AACA,SAAS,YAAY,CAAC,MAAM,EAAE,YAAY,EAAE;AAC5C;AACA;AACA;AACA;AACA,IAAI,OAAO,iBAAiB,CAAC,MAAM,EAAE,YAAY,EAAE,MAAM,CAAC,WAAW,EAAE,EAAE,YAAY,CAAC,WAAW,EAAE,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC;AAC3G,CAAC;AACD;AACA,IAAA,cAAc,GAAG,YAAY,CAAA;;;;;;","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1,142 @@
|
|
|
1
|
+
import { getDefaultExportFromCjs } from '../../../../../_virtual/_commonjsHelpers.js';
|
|
2
|
+
|
|
3
|
+
// The scores are arranged so that a continuous match of characters will
|
|
4
|
+
// result in a total score of 1.
|
|
5
|
+
//
|
|
6
|
+
// The best case, this character is a match, and either this is the start
|
|
7
|
+
// of the string, or the previous character was also a match.
|
|
8
|
+
var SCORE_CONTINUE_MATCH = 1,
|
|
9
|
+
|
|
10
|
+
// A new match at the start of a word scores better than a new match
|
|
11
|
+
// elsewhere as it's more likely that the user will type the starts
|
|
12
|
+
// of fragments.
|
|
13
|
+
// (Our notion of word includes CamelCase and hypen-separated, etc.)
|
|
14
|
+
SCORE_WORD_JUMP = 0.9,
|
|
15
|
+
|
|
16
|
+
// Any other match isn't ideal, but we include it for completeness.
|
|
17
|
+
SCORE_CHARACTER_JUMP = 0.3,
|
|
18
|
+
|
|
19
|
+
// If the user transposed two letters, it should be signficantly penalized.
|
|
20
|
+
//
|
|
21
|
+
// i.e. "ouch" is more likely than "curtain" when "uc" is typed.
|
|
22
|
+
SCORE_TRANSPOSITION = 0.1,
|
|
23
|
+
|
|
24
|
+
// If the user jumped to half-way through a subsequent word, it should be
|
|
25
|
+
// very significantly penalized.
|
|
26
|
+
//
|
|
27
|
+
// i.e. "loes" is very unlikely to match "loch ness".
|
|
28
|
+
// NOTE: this is set to 0 for superhuman right now, but we may want to revisit.
|
|
29
|
+
SCORE_LONG_JUMP = 0,
|
|
30
|
+
|
|
31
|
+
// The goodness of a match should decay slightly with each missing
|
|
32
|
+
// character.
|
|
33
|
+
//
|
|
34
|
+
// i.e. "bad" is more likely than "bard" when "bd" is typed.
|
|
35
|
+
//
|
|
36
|
+
// This will not change the order of suggestions based on SCORE_* until
|
|
37
|
+
// 100 characters are inserted between matches.
|
|
38
|
+
PENALTY_SKIPPED = 0.999,
|
|
39
|
+
|
|
40
|
+
// The goodness of an exact-case match should be higher than a
|
|
41
|
+
// case-insensitive match by a small amount.
|
|
42
|
+
//
|
|
43
|
+
// i.e. "HTML" is more likely than "haml" when "HM" is typed.
|
|
44
|
+
//
|
|
45
|
+
// This will not change the order of suggestions based on SCORE_* until
|
|
46
|
+
// 1000 characters are inserted between matches.
|
|
47
|
+
PENALTY_CASE_MISMATCH = 0.9999,
|
|
48
|
+
|
|
49
|
+
// If the word has more characters than the user typed, it should
|
|
50
|
+
// be penalised slightly.
|
|
51
|
+
//
|
|
52
|
+
// i.e. "html" is more likely than "html5" if I type "html".
|
|
53
|
+
//
|
|
54
|
+
// However, it may well be the case that there's a sensible secondary
|
|
55
|
+
// ordering (like alphabetical) that it makes sense to rely on when
|
|
56
|
+
// there are many prefix matches, so we don't make the penalty increase
|
|
57
|
+
// with the number of tokens.
|
|
58
|
+
PENALTY_NOT_COMPLETE = 0.99;
|
|
59
|
+
|
|
60
|
+
var IS_GAP_REGEXP = /[\\\/\-_+.# \t"@\[\(\{&]/,
|
|
61
|
+
COUNT_GAPS_REGEXP = /[\\\/\-_+.# \t"@\[\(\{&]/g;
|
|
62
|
+
|
|
63
|
+
function commandScoreInner(string, abbreviation, lowerString, lowerAbbreviation, stringIndex, abbreviationIndex) {
|
|
64
|
+
|
|
65
|
+
if (abbreviationIndex === abbreviation.length) {
|
|
66
|
+
if (stringIndex === string.length) {
|
|
67
|
+
return SCORE_CONTINUE_MATCH;
|
|
68
|
+
|
|
69
|
+
}
|
|
70
|
+
return PENALTY_NOT_COMPLETE;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
var abbreviationChar = lowerAbbreviation.charAt(abbreviationIndex);
|
|
74
|
+
var index = lowerString.indexOf(abbreviationChar, stringIndex);
|
|
75
|
+
var highScore = 0;
|
|
76
|
+
|
|
77
|
+
var score, transposedScore, wordBreaks;
|
|
78
|
+
|
|
79
|
+
while (index >= 0) {
|
|
80
|
+
|
|
81
|
+
score = commandScoreInner(string, abbreviation, lowerString, lowerAbbreviation, index + 1, abbreviationIndex + 1);
|
|
82
|
+
if (score > highScore) {
|
|
83
|
+
if (index === stringIndex) {
|
|
84
|
+
score *= SCORE_CONTINUE_MATCH;
|
|
85
|
+
} else if (IS_GAP_REGEXP.test(string.charAt(index - 1))) {
|
|
86
|
+
score *= SCORE_WORD_JUMP;
|
|
87
|
+
wordBreaks = string.slice(stringIndex, index - 1).match(COUNT_GAPS_REGEXP);
|
|
88
|
+
if (wordBreaks && stringIndex > 0) {
|
|
89
|
+
score *= Math.pow(PENALTY_SKIPPED, wordBreaks.length);
|
|
90
|
+
}
|
|
91
|
+
} else if (IS_GAP_REGEXP.test(string.slice(stringIndex, index - 1))) {
|
|
92
|
+
score *= SCORE_LONG_JUMP;
|
|
93
|
+
if (stringIndex > 0) {
|
|
94
|
+
score *= Math.pow(PENALTY_SKIPPED, index - stringIndex);
|
|
95
|
+
}
|
|
96
|
+
} else {
|
|
97
|
+
score *= SCORE_CHARACTER_JUMP;
|
|
98
|
+
if (stringIndex > 0) {
|
|
99
|
+
score *= Math.pow(PENALTY_SKIPPED, index - stringIndex);
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
if (string.charAt(index) !== abbreviation.charAt(abbreviationIndex)) {
|
|
104
|
+
score *= PENALTY_CASE_MISMATCH;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
if (score < SCORE_TRANSPOSITION &&
|
|
110
|
+
lowerString.charAt(index - 1) === lowerAbbreviation.charAt(abbreviationIndex + 1) &&
|
|
111
|
+
lowerString.charAt(index - 1) !== lowerAbbreviation.charAt(abbreviationIndex)) {
|
|
112
|
+
transposedScore = commandScoreInner(string, abbreviation, lowerString, lowerAbbreviation, index + 1, abbreviationIndex + 2);
|
|
113
|
+
|
|
114
|
+
if (transposedScore * SCORE_TRANSPOSITION > score) {
|
|
115
|
+
score = transposedScore * SCORE_TRANSPOSITION;
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
if (score > highScore) {
|
|
120
|
+
highScore = score;
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
index = lowerString.indexOf(abbreviationChar, index + 1);
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
return highScore;
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
function commandScore(string, abbreviation) {
|
|
130
|
+
/* NOTE:
|
|
131
|
+
* in the original, we used to do the lower-casing on each recursive call, but this meant that toLowerCase()
|
|
132
|
+
* was the dominating cost in the algorithm, passing both is a little ugly, but considerably faster.
|
|
133
|
+
*/
|
|
134
|
+
return commandScoreInner(string, abbreviation, string.toLowerCase(), abbreviation.toLowerCase(), 0, 0);
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
var commandScore_1 = commandScore;
|
|
138
|
+
|
|
139
|
+
var le = /*@__PURE__*/getDefaultExportFromCjs(commandScore_1);
|
|
140
|
+
|
|
141
|
+
export { le as default };
|
|
142
|
+
//# sourceMappingURL=index.js.map
|
package/dist/v1/node_modules/.pnpm/command-score@0.1.2/node_modules/command-score/index.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../../../../../../../node_modules/.pnpm/command-score@0.1.2/node_modules/command-score/index.js"],"sourcesContent":["// The scores are arranged so that a continuous match of characters will\n// result in a total score of 1.\n//\n// The best case, this character is a match, and either this is the start\n// of the string, or the previous character was also a match.\nvar SCORE_CONTINUE_MATCH = 1,\n\n // A new match at the start of a word scores better than a new match\n // elsewhere as it's more likely that the user will type the starts\n // of fragments.\n // (Our notion of word includes CamelCase and hypen-separated, etc.)\n SCORE_WORD_JUMP = 0.9,\n\n // Any other match isn't ideal, but we include it for completeness.\n SCORE_CHARACTER_JUMP = 0.3,\n\n // If the user transposed two letters, it should be signficantly penalized.\n //\n // i.e. \"ouch\" is more likely than \"curtain\" when \"uc\" is typed.\n SCORE_TRANSPOSITION = 0.1,\n\n // If the user jumped to half-way through a subsequent word, it should be\n // very significantly penalized.\n //\n // i.e. \"loes\" is very unlikely to match \"loch ness\".\n // NOTE: this is set to 0 for superhuman right now, but we may want to revisit.\n SCORE_LONG_JUMP = 0,\n\n // The goodness of a match should decay slightly with each missing\n // character.\n //\n // i.e. \"bad\" is more likely than \"bard\" when \"bd\" is typed.\n //\n // This will not change the order of suggestions based on SCORE_* until\n // 100 characters are inserted between matches.\n PENALTY_SKIPPED = 0.999,\n\n // The goodness of an exact-case match should be higher than a\n // case-insensitive match by a small amount.\n //\n // i.e. \"HTML\" is more likely than \"haml\" when \"HM\" is typed.\n //\n // This will not change the order of suggestions based on SCORE_* until\n // 1000 characters are inserted between matches.\n PENALTY_CASE_MISMATCH = 0.9999,\n\n // If the word has more characters than the user typed, it should\n // be penalised slightly.\n //\n // i.e. \"html\" is more likely than \"html5\" if I type \"html\".\n //\n // However, it may well be the case that there's a sensible secondary\n // ordering (like alphabetical) that it makes sense to rely on when\n // there are many prefix matches, so we don't make the penalty increase\n // with the number of tokens.\n PENALTY_NOT_COMPLETE = 0.99;\n\nvar IS_GAP_REGEXP = /[\\\\\\/\\-_+.# \\t\"@\\[\\(\\{&]/,\n COUNT_GAPS_REGEXP = /[\\\\\\/\\-_+.# \\t\"@\\[\\(\\{&]/g;\n\nfunction commandScoreInner(string, abbreviation, lowerString, lowerAbbreviation, stringIndex, abbreviationIndex) {\n\n if (abbreviationIndex === abbreviation.length) {\n if (stringIndex === string.length) {\n return SCORE_CONTINUE_MATCH;\n\n }\n return PENALTY_NOT_COMPLETE;\n }\n\n var abbreviationChar = lowerAbbreviation.charAt(abbreviationIndex);\n var index = lowerString.indexOf(abbreviationChar, stringIndex);\n var highScore = 0;\n\n var score, transposedScore, wordBreaks;\n\n while (index >= 0) {\n\n score = commandScoreInner(string, abbreviation, lowerString, lowerAbbreviation, index + 1, abbreviationIndex + 1);\n if (score > highScore) {\n if (index === stringIndex) {\n score *= SCORE_CONTINUE_MATCH;\n } else if (IS_GAP_REGEXP.test(string.charAt(index - 1))) {\n score *= SCORE_WORD_JUMP;\n wordBreaks = string.slice(stringIndex, index - 1).match(COUNT_GAPS_REGEXP);\n if (wordBreaks && stringIndex > 0) {\n score *= Math.pow(PENALTY_SKIPPED, wordBreaks.length);\n }\n } else if (IS_GAP_REGEXP.test(string.slice(stringIndex, index - 1))) {\n score *= SCORE_LONG_JUMP;\n if (stringIndex > 0) {\n score *= Math.pow(PENALTY_SKIPPED, index - stringIndex);\n }\n } else {\n score *= SCORE_CHARACTER_JUMP;\n if (stringIndex > 0) {\n score *= Math.pow(PENALTY_SKIPPED, index - stringIndex);\n }\n }\n\n if (string.charAt(index) !== abbreviation.charAt(abbreviationIndex)) {\n score *= PENALTY_CASE_MISMATCH;\n }\n\n }\n\n if (score < SCORE_TRANSPOSITION &&\n lowerString.charAt(index - 1) === lowerAbbreviation.charAt(abbreviationIndex + 1) &&\n lowerString.charAt(index - 1) !== lowerAbbreviation.charAt(abbreviationIndex)) {\n transposedScore = commandScoreInner(string, abbreviation, lowerString, lowerAbbreviation, index + 1, abbreviationIndex + 2);\n\n if (transposedScore * SCORE_TRANSPOSITION > score) {\n score = transposedScore * SCORE_TRANSPOSITION;\n }\n }\n\n if (score > highScore) {\n highScore = score;\n }\n\n index = lowerString.indexOf(abbreviationChar, index + 1);\n }\n\n return highScore;\n}\n\nfunction commandScore(string, abbreviation) {\n /* NOTE:\n * in the original, we used to do the lower-casing on each recursive call, but this meant that toLowerCase()\n * was the dominating cost in the algorithm, passing both is a little ugly, but considerably faster.\n */\n return commandScoreInner(string, abbreviation, string.toLowerCase(), abbreviation.toLowerCase(), 0, 0);\n}\n\nmodule.exports = commandScore;\n"],"names":[],"mappings":";;AAAA;AACA;AACA;AACA;AACA;AACA,IAAI,oBAAoB,GAAG,CAAC;AAC5B;AACA;AACA;AACA;AACA;AACA,IAAI,eAAe,GAAG,GAAG;AACzB;AACA;AACA,IAAI,oBAAoB,GAAG,GAAG;AAC9B;AACA;AACA;AACA;AACA,IAAI,mBAAmB,GAAG,GAAG;AAC7B;AACA;AACA;AACA;AACA;AACA;AACA,IAAI,eAAe,GAAG,CAAC;AACvB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAI,eAAe,GAAG,KAAK;AAC3B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAI,qBAAqB,GAAG,MAAM;AAClC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAI,oBAAoB,GAAG,IAAI,CAAC;AAChC;AACA,IAAI,aAAa,GAAG,0BAA0B;AAC9C,IAAI,iBAAiB,GAAG,2BAA2B,CAAC;AACpD;AACA,SAAS,iBAAiB,CAAC,MAAM,EAAE,YAAY,EAAE,WAAW,EAAE,iBAAiB,EAAE,WAAW,EAAE,iBAAiB,EAAE;AACjH;AACA,IAAI,IAAI,iBAAiB,KAAK,YAAY,CAAC,MAAM,EAAE;AACnD,QAAQ,IAAI,WAAW,KAAK,MAAM,CAAC,MAAM,EAAE;AAC3C,YAAY,OAAO,oBAAoB,CAAC;AACx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C9B,SAAS;AACT;AACA,QAAQ,KAAK,GAAG,WAAW,CAAC,OAAO,CAAC,gBAAgB,EAAE,KAAK,GAAG,CAAC,CAAC,CAAC;AACjE,KAAK;AACL;AACA,IAAI,OAAO,SAAS,CAAC;AACrB,CAAC;AACD;AACA,SAAS,YAAY,CAAC,MAAM,EAAE,YAAY,EAAE;AAC5C;AACA;AACA;AACA;AACA,IAAI,OAAO,iBAAiB,CAAC,MAAM,EAAE,YAAY,EAAE,MAAM,CAAC,WAAW,EAAE,EAAE,YAAY,CAAC,WAAW,EAAE,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC;AAC3G,CAAC;AACD;AACA,IAAA,cAAc,GAAG,YAAY,CAAA;;;;;;","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var tslib_es6 = require('../../../../../@rollup_plugin-typescript@11.1.1_rollup@3.25.1_tslib@2.6.3_typescript@5.4.3/node_modules/tslib/tslib.es6.cjs');
|
|
6
|
+
var React = require('react');
|
|
7
|
+
var UI = require('./UI.cjs');
|
|
8
|
+
var sidecar = require('./sidecar.cjs');
|
|
9
|
+
|
|
10
|
+
function _interopNamespaceDefault(e) {
|
|
11
|
+
var n = Object.create(null);
|
|
12
|
+
if (e) {
|
|
13
|
+
Object.keys(e).forEach(function (k) {
|
|
14
|
+
if (k !== 'default') {
|
|
15
|
+
var d = Object.getOwnPropertyDescriptor(e, k);
|
|
16
|
+
Object.defineProperty(n, k, d.get ? d : {
|
|
17
|
+
enumerable: true,
|
|
18
|
+
get: function () { return e[k]; }
|
|
19
|
+
});
|
|
20
|
+
}
|
|
21
|
+
});
|
|
22
|
+
}
|
|
23
|
+
n.default = e;
|
|
24
|
+
return Object.freeze(n);
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
var React__namespace = /*#__PURE__*/_interopNamespaceDefault(React);
|
|
28
|
+
|
|
29
|
+
var ReactRemoveScroll = React__namespace.forwardRef(function (props, ref) { return (React__namespace.createElement(UI.RemoveScroll, tslib_es6.__assign({}, props, { ref: ref, sideCar: sidecar.default }))); });
|
|
30
|
+
ReactRemoveScroll.classNames = UI.RemoveScroll.classNames;
|
|
31
|
+
var $67UHm$RemoveScroll = ReactRemoveScroll;
|
|
32
|
+
|
|
33
|
+
exports.default = $67UHm$RemoveScroll;
|
|
34
|
+
//# sourceMappingURL=Combination.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Combination.cjs","sources":["../../../../../../../../../../../node_modules/.pnpm/react-remove-scroll@2.5.4_@types+react@18.2.12_react@18.2.0/node_modules/react-remove-scroll/dist/es2015/Combination.js"],"sourcesContent":["import { __assign } from \"tslib\";\nimport * as React from 'react';\nimport { RemoveScroll } from './UI';\nimport SideCar from './sidecar';\nvar ReactRemoveScroll = React.forwardRef(function (props, ref) { return (React.createElement(RemoveScroll, __assign({}, props, { ref: ref, sideCar: SideCar }))); });\nReactRemoveScroll.classNames = RemoveScroll.classNames;\nexport default ReactRemoveScroll;\n"],"names":["React","RemoveScroll","__assign","SideCar"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAIA,IAAI,iBAAiB,GAAGA,gBAAK,CAAC,UAAU,CAAC,UAAU,KAAK,EAAE,GAAG,EAAE,EAAE,QAAQA,gBAAK,CAAC,aAAa,CAACC,eAAY,EAAEC,kBAAQ,CAAC,EAAE,EAAE,KAAK,EAAE,EAAE,GAAG,EAAE,GAAG,EAAE,OAAO,EAAEC,eAAO,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC;AACrK,iBAAiB,CAAC,UAAU,GAAGF,eAAY,CAAC,UAAU,CAAC;AACvD,0BAAe,iBAAiB;;;;","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { __assign } from '../../../../../@rollup_plugin-typescript@11.1.1_rollup@3.25.1_tslib@2.6.3_typescript@5.4.3/node_modules/tslib/tslib.es6.js';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
import { RemoveScroll } from './UI.js';
|
|
4
|
+
import SideCar from './sidecar.js';
|
|
5
|
+
|
|
6
|
+
var ReactRemoveScroll = React.forwardRef(function (props, ref) { return (React.createElement(RemoveScroll, __assign({}, props, { ref: ref, sideCar: SideCar }))); });
|
|
7
|
+
ReactRemoveScroll.classNames = RemoveScroll.classNames;
|
|
8
|
+
var $67UHm$RemoveScroll = ReactRemoveScroll;
|
|
9
|
+
|
|
10
|
+
export { $67UHm$RemoveScroll as default };
|
|
11
|
+
//# sourceMappingURL=Combination.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Combination.js","sources":["../../../../../../../../../../../node_modules/.pnpm/react-remove-scroll@2.5.4_@types+react@18.2.12_react@18.2.0/node_modules/react-remove-scroll/dist/es2015/Combination.js"],"sourcesContent":["import { __assign } from \"tslib\";\nimport * as React from 'react';\nimport { RemoveScroll } from './UI';\nimport SideCar from './sidecar';\nvar ReactRemoveScroll = React.forwardRef(function (props, ref) { return (React.createElement(RemoveScroll, __assign({}, props, { ref: ref, sideCar: SideCar }))); });\nReactRemoveScroll.classNames = RemoveScroll.classNames;\nexport default ReactRemoveScroll;\n"],"names":[],"mappings":";;;;;AAIA,IAAI,iBAAiB,GAAG,KAAK,CAAC,UAAU,CAAC,UAAU,KAAK,EAAE,GAAG,EAAE,EAAE,QAAQ,KAAK,CAAC,aAAa,CAAC,YAAY,EAAE,QAAQ,CAAC,EAAE,EAAE,KAAK,EAAE,EAAE,GAAG,EAAE,GAAG,EAAE,OAAO,EAAE,OAAO,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC;AACrK,iBAAiB,CAAC,UAAU,GAAG,YAAY,CAAC,UAAU,CAAC;AACvD,0BAAe,iBAAiB;;;;","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1,169 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var tslib_es6 = require('../../../../../@rollup_plugin-typescript@11.1.1_rollup@3.25.1_tslib@2.6.3_typescript@5.4.3/node_modules/tslib/tslib.es6.cjs');
|
|
4
|
+
var React = require('react');
|
|
5
|
+
var component$1 = require('../../../../../react-remove-scroll-bar@2.3.6_@types_react@18.2.12_react@18.2.0/node_modules/react-remove-scroll-bar/dist/es2015/component.cjs');
|
|
6
|
+
var component = require('../../../../../react-style-singleton@2.2.1_@types_react@18.2.12_react@18.2.0/node_modules/react-style-singleton/dist/es2015/component.cjs');
|
|
7
|
+
var aggresiveCapture = require('./aggresiveCapture.cjs');
|
|
8
|
+
var handleScroll = require('./handleScroll.cjs');
|
|
9
|
+
|
|
10
|
+
function _interopNamespaceDefault(e) {
|
|
11
|
+
var n = Object.create(null);
|
|
12
|
+
if (e) {
|
|
13
|
+
Object.keys(e).forEach(function (k) {
|
|
14
|
+
if (k !== 'default') {
|
|
15
|
+
var d = Object.getOwnPropertyDescriptor(e, k);
|
|
16
|
+
Object.defineProperty(n, k, d.get ? d : {
|
|
17
|
+
enumerable: true,
|
|
18
|
+
get: function () { return e[k]; }
|
|
19
|
+
});
|
|
20
|
+
}
|
|
21
|
+
});
|
|
22
|
+
}
|
|
23
|
+
n.default = e;
|
|
24
|
+
return Object.freeze(n);
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
var React__namespace = /*#__PURE__*/_interopNamespaceDefault(React);
|
|
28
|
+
|
|
29
|
+
var getTouchXY = function (event) {
|
|
30
|
+
return 'changedTouches' in event ? [event.changedTouches[0].clientX, event.changedTouches[0].clientY] : [0, 0];
|
|
31
|
+
};
|
|
32
|
+
var getDeltaXY = function (event) { return [event.deltaX, event.deltaY]; };
|
|
33
|
+
var extractRef = function (ref) {
|
|
34
|
+
return ref && 'current' in ref ? ref.current : ref;
|
|
35
|
+
};
|
|
36
|
+
var deltaCompare = function (x, y) { return x[0] === y[0] && x[1] === y[1]; };
|
|
37
|
+
var generateStyle = function (id) { return "\n .block-interactivity-".concat(id, " {pointer-events: none;}\n .allow-interactivity-").concat(id, " {pointer-events: all;}\n"); };
|
|
38
|
+
var idCounter = 0;
|
|
39
|
+
var lockStack = [];
|
|
40
|
+
function RemoveScrollSideCar(props) {
|
|
41
|
+
var shouldPreventQueue = React__namespace.useRef([]);
|
|
42
|
+
var touchStartRef = React__namespace.useRef([0, 0]);
|
|
43
|
+
var activeAxis = React__namespace.useRef();
|
|
44
|
+
var id = React__namespace.useState(idCounter++)[0];
|
|
45
|
+
var Style = React__namespace.useState(function () { return component.styleSingleton(); })[0];
|
|
46
|
+
var lastProps = React__namespace.useRef(props);
|
|
47
|
+
React__namespace.useEffect(function () {
|
|
48
|
+
lastProps.current = props;
|
|
49
|
+
}, [props]);
|
|
50
|
+
React__namespace.useEffect(function () {
|
|
51
|
+
if (props.inert) {
|
|
52
|
+
document.body.classList.add("block-interactivity-".concat(id));
|
|
53
|
+
var allow_1 = tslib_es6.__spreadArray([props.lockRef.current], (props.shards || []).map(extractRef), true).filter(Boolean);
|
|
54
|
+
allow_1.forEach(function (el) { return el.classList.add("allow-interactivity-".concat(id)); });
|
|
55
|
+
return function () {
|
|
56
|
+
document.body.classList.remove("block-interactivity-".concat(id));
|
|
57
|
+
allow_1.forEach(function (el) { return el.classList.remove("allow-interactivity-".concat(id)); });
|
|
58
|
+
};
|
|
59
|
+
}
|
|
60
|
+
return;
|
|
61
|
+
}, [props.inert, props.lockRef.current, props.shards]);
|
|
62
|
+
var shouldCancelEvent = React__namespace.useCallback(function (event, parent) {
|
|
63
|
+
if ('touches' in event && event.touches.length === 2) {
|
|
64
|
+
return !lastProps.current.allowPinchZoom;
|
|
65
|
+
}
|
|
66
|
+
var touch = getTouchXY(event);
|
|
67
|
+
var touchStart = touchStartRef.current;
|
|
68
|
+
var deltaX = 'deltaX' in event ? event.deltaX : touchStart[0] - touch[0];
|
|
69
|
+
var deltaY = 'deltaY' in event ? event.deltaY : touchStart[1] - touch[1];
|
|
70
|
+
var currentAxis;
|
|
71
|
+
var target = event.target;
|
|
72
|
+
var moveDirection = Math.abs(deltaX) > Math.abs(deltaY) ? 'h' : 'v';
|
|
73
|
+
// allow horizontal touch move on Range inputs. They will not cause any scroll
|
|
74
|
+
if ('touches' in event && moveDirection === 'h' && target.type === 'range') {
|
|
75
|
+
return false;
|
|
76
|
+
}
|
|
77
|
+
var canBeScrolledInMainDirection = handleScroll.locationCouldBeScrolled(moveDirection, target);
|
|
78
|
+
if (!canBeScrolledInMainDirection) {
|
|
79
|
+
return true;
|
|
80
|
+
}
|
|
81
|
+
if (canBeScrolledInMainDirection) {
|
|
82
|
+
currentAxis = moveDirection;
|
|
83
|
+
}
|
|
84
|
+
else {
|
|
85
|
+
currentAxis = moveDirection === 'v' ? 'h' : 'v';
|
|
86
|
+
canBeScrolledInMainDirection = handleScroll.locationCouldBeScrolled(moveDirection, target);
|
|
87
|
+
// other axis might be not scrollable
|
|
88
|
+
}
|
|
89
|
+
if (!canBeScrolledInMainDirection) {
|
|
90
|
+
return false;
|
|
91
|
+
}
|
|
92
|
+
if (!activeAxis.current && 'changedTouches' in event && (deltaX || deltaY)) {
|
|
93
|
+
activeAxis.current = currentAxis;
|
|
94
|
+
}
|
|
95
|
+
if (!currentAxis) {
|
|
96
|
+
return true;
|
|
97
|
+
}
|
|
98
|
+
var cancelingAxis = activeAxis.current || currentAxis;
|
|
99
|
+
return handleScroll.handleScroll(cancelingAxis, parent, event, cancelingAxis === 'h' ? deltaX : deltaY, true);
|
|
100
|
+
}, []);
|
|
101
|
+
var shouldPrevent = React__namespace.useCallback(function (_event) {
|
|
102
|
+
var event = _event;
|
|
103
|
+
if (!lockStack.length || lockStack[lockStack.length - 1] !== Style) {
|
|
104
|
+
// not the last active
|
|
105
|
+
return;
|
|
106
|
+
}
|
|
107
|
+
var delta = 'deltaY' in event ? getDeltaXY(event) : getTouchXY(event);
|
|
108
|
+
var sourceEvent = shouldPreventQueue.current.filter(function (e) { return e.name === event.type && e.target === event.target && deltaCompare(e.delta, delta); })[0];
|
|
109
|
+
// self event, and should be canceled
|
|
110
|
+
if (sourceEvent && sourceEvent.should) {
|
|
111
|
+
event.preventDefault();
|
|
112
|
+
return;
|
|
113
|
+
}
|
|
114
|
+
// outside or shard event
|
|
115
|
+
if (!sourceEvent) {
|
|
116
|
+
var shardNodes = (lastProps.current.shards || [])
|
|
117
|
+
.map(extractRef)
|
|
118
|
+
.filter(Boolean)
|
|
119
|
+
.filter(function (node) { return node.contains(event.target); });
|
|
120
|
+
var shouldStop = shardNodes.length > 0 ? shouldCancelEvent(event, shardNodes[0]) : !lastProps.current.noIsolation;
|
|
121
|
+
if (shouldStop) {
|
|
122
|
+
event.preventDefault();
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
}, []);
|
|
126
|
+
var shouldCancel = React__namespace.useCallback(function (name, delta, target, should) {
|
|
127
|
+
var event = { name: name, delta: delta, target: target, should: should };
|
|
128
|
+
shouldPreventQueue.current.push(event);
|
|
129
|
+
setTimeout(function () {
|
|
130
|
+
shouldPreventQueue.current = shouldPreventQueue.current.filter(function (e) { return e !== event; });
|
|
131
|
+
}, 1);
|
|
132
|
+
}, []);
|
|
133
|
+
var scrollTouchStart = React__namespace.useCallback(function (event) {
|
|
134
|
+
touchStartRef.current = getTouchXY(event);
|
|
135
|
+
activeAxis.current = undefined;
|
|
136
|
+
}, []);
|
|
137
|
+
var scrollWheel = React__namespace.useCallback(function (event) {
|
|
138
|
+
shouldCancel(event.type, getDeltaXY(event), event.target, shouldCancelEvent(event, props.lockRef.current));
|
|
139
|
+
}, []);
|
|
140
|
+
var scrollTouchMove = React__namespace.useCallback(function (event) {
|
|
141
|
+
shouldCancel(event.type, getTouchXY(event), event.target, shouldCancelEvent(event, props.lockRef.current));
|
|
142
|
+
}, []);
|
|
143
|
+
React__namespace.useEffect(function () {
|
|
144
|
+
lockStack.push(Style);
|
|
145
|
+
props.setCallbacks({
|
|
146
|
+
onScrollCapture: scrollWheel,
|
|
147
|
+
onWheelCapture: scrollWheel,
|
|
148
|
+
onTouchMoveCapture: scrollTouchMove,
|
|
149
|
+
});
|
|
150
|
+
document.addEventListener('wheel', shouldPrevent, aggresiveCapture.nonPassive);
|
|
151
|
+
document.addEventListener('touchmove', shouldPrevent, aggresiveCapture.nonPassive);
|
|
152
|
+
document.addEventListener('touchstart', scrollTouchStart, aggresiveCapture.nonPassive);
|
|
153
|
+
return function () {
|
|
154
|
+
lockStack = lockStack.filter(function (inst) { return inst !== Style; });
|
|
155
|
+
document.removeEventListener('wheel', shouldPrevent, aggresiveCapture.nonPassive);
|
|
156
|
+
document.removeEventListener('touchmove', shouldPrevent, aggresiveCapture.nonPassive);
|
|
157
|
+
document.removeEventListener('touchstart', scrollTouchStart, aggresiveCapture.nonPassive);
|
|
158
|
+
};
|
|
159
|
+
}, []);
|
|
160
|
+
var removeScrollBar = props.removeScrollBar, inert = props.inert;
|
|
161
|
+
return (React__namespace.createElement(React__namespace.Fragment, null,
|
|
162
|
+
inert ? React__namespace.createElement(Style, { styles: generateStyle(id) }) : null,
|
|
163
|
+
removeScrollBar ? React__namespace.createElement(component$1.RemoveScrollBar, { gapMode: "margin" }) : null));
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
exports.RemoveScrollSideCar = RemoveScrollSideCar;
|
|
167
|
+
exports.getDeltaXY = getDeltaXY;
|
|
168
|
+
exports.getTouchXY = getTouchXY;
|
|
169
|
+
//# sourceMappingURL=SideEffect.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SideEffect.cjs","sources":["../../../../../../../../../../../node_modules/.pnpm/react-remove-scroll@2.5.4_@types+react@18.2.12_react@18.2.0/node_modules/react-remove-scroll/dist/es2015/SideEffect.js"],"sourcesContent":["import { __spreadArray } from \"tslib\";\nimport * as React from 'react';\nimport { RemoveScrollBar } from 'react-remove-scroll-bar';\nimport { styleSingleton } from 'react-style-singleton';\nimport { nonPassive } from './aggresiveCapture';\nimport { handleScroll, locationCouldBeScrolled } from './handleScroll';\nexport var getTouchXY = function (event) {\n return 'changedTouches' in event ? [event.changedTouches[0].clientX, event.changedTouches[0].clientY] : [0, 0];\n};\nexport var getDeltaXY = function (event) { return [event.deltaX, event.deltaY]; };\nvar extractRef = function (ref) {\n return ref && 'current' in ref ? ref.current : ref;\n};\nvar deltaCompare = function (x, y) { return x[0] === y[0] && x[1] === y[1]; };\nvar generateStyle = function (id) { return \"\\n .block-interactivity-\".concat(id, \" {pointer-events: none;}\\n .allow-interactivity-\").concat(id, \" {pointer-events: all;}\\n\"); };\nvar idCounter = 0;\nvar lockStack = [];\nexport function RemoveScrollSideCar(props) {\n var shouldPreventQueue = React.useRef([]);\n var touchStartRef = React.useRef([0, 0]);\n var activeAxis = React.useRef();\n var id = React.useState(idCounter++)[0];\n var Style = React.useState(function () { return styleSingleton(); })[0];\n var lastProps = React.useRef(props);\n React.useEffect(function () {\n lastProps.current = props;\n }, [props]);\n React.useEffect(function () {\n if (props.inert) {\n document.body.classList.add(\"block-interactivity-\".concat(id));\n var allow_1 = __spreadArray([props.lockRef.current], (props.shards || []).map(extractRef), true).filter(Boolean);\n allow_1.forEach(function (el) { return el.classList.add(\"allow-interactivity-\".concat(id)); });\n return function () {\n document.body.classList.remove(\"block-interactivity-\".concat(id));\n allow_1.forEach(function (el) { return el.classList.remove(\"allow-interactivity-\".concat(id)); });\n };\n }\n return;\n }, [props.inert, props.lockRef.current, props.shards]);\n var shouldCancelEvent = React.useCallback(function (event, parent) {\n if ('touches' in event && event.touches.length === 2) {\n return !lastProps.current.allowPinchZoom;\n }\n var touch = getTouchXY(event);\n var touchStart = touchStartRef.current;\n var deltaX = 'deltaX' in event ? event.deltaX : touchStart[0] - touch[0];\n var deltaY = 'deltaY' in event ? event.deltaY : touchStart[1] - touch[1];\n var currentAxis;\n var target = event.target;\n var moveDirection = Math.abs(deltaX) > Math.abs(deltaY) ? 'h' : 'v';\n // allow horizontal touch move on Range inputs. They will not cause any scroll\n if ('touches' in event && moveDirection === 'h' && target.type === 'range') {\n return false;\n }\n var canBeScrolledInMainDirection = locationCouldBeScrolled(moveDirection, target);\n if (!canBeScrolledInMainDirection) {\n return true;\n }\n if (canBeScrolledInMainDirection) {\n currentAxis = moveDirection;\n }\n else {\n currentAxis = moveDirection === 'v' ? 'h' : 'v';\n canBeScrolledInMainDirection = locationCouldBeScrolled(moveDirection, target);\n // other axis might be not scrollable\n }\n if (!canBeScrolledInMainDirection) {\n return false;\n }\n if (!activeAxis.current && 'changedTouches' in event && (deltaX || deltaY)) {\n activeAxis.current = currentAxis;\n }\n if (!currentAxis) {\n return true;\n }\n var cancelingAxis = activeAxis.current || currentAxis;\n return handleScroll(cancelingAxis, parent, event, cancelingAxis === 'h' ? deltaX : deltaY, true);\n }, []);\n var shouldPrevent = React.useCallback(function (_event) {\n var event = _event;\n if (!lockStack.length || lockStack[lockStack.length - 1] !== Style) {\n // not the last active\n return;\n }\n var delta = 'deltaY' in event ? getDeltaXY(event) : getTouchXY(event);\n var sourceEvent = shouldPreventQueue.current.filter(function (e) { return e.name === event.type && e.target === event.target && deltaCompare(e.delta, delta); })[0];\n // self event, and should be canceled\n if (sourceEvent && sourceEvent.should) {\n event.preventDefault();\n return;\n }\n // outside or shard event\n if (!sourceEvent) {\n var shardNodes = (lastProps.current.shards || [])\n .map(extractRef)\n .filter(Boolean)\n .filter(function (node) { return node.contains(event.target); });\n var shouldStop = shardNodes.length > 0 ? shouldCancelEvent(event, shardNodes[0]) : !lastProps.current.noIsolation;\n if (shouldStop) {\n event.preventDefault();\n }\n }\n }, []);\n var shouldCancel = React.useCallback(function (name, delta, target, should) {\n var event = { name: name, delta: delta, target: target, should: should };\n shouldPreventQueue.current.push(event);\n setTimeout(function () {\n shouldPreventQueue.current = shouldPreventQueue.current.filter(function (e) { return e !== event; });\n }, 1);\n }, []);\n var scrollTouchStart = React.useCallback(function (event) {\n touchStartRef.current = getTouchXY(event);\n activeAxis.current = undefined;\n }, []);\n var scrollWheel = React.useCallback(function (event) {\n shouldCancel(event.type, getDeltaXY(event), event.target, shouldCancelEvent(event, props.lockRef.current));\n }, []);\n var scrollTouchMove = React.useCallback(function (event) {\n shouldCancel(event.type, getTouchXY(event), event.target, shouldCancelEvent(event, props.lockRef.current));\n }, []);\n React.useEffect(function () {\n lockStack.push(Style);\n props.setCallbacks({\n onScrollCapture: scrollWheel,\n onWheelCapture: scrollWheel,\n onTouchMoveCapture: scrollTouchMove,\n });\n document.addEventListener('wheel', shouldPrevent, nonPassive);\n document.addEventListener('touchmove', shouldPrevent, nonPassive);\n document.addEventListener('touchstart', scrollTouchStart, nonPassive);\n return function () {\n lockStack = lockStack.filter(function (inst) { return inst !== Style; });\n document.removeEventListener('wheel', shouldPrevent, nonPassive);\n document.removeEventListener('touchmove', shouldPrevent, nonPassive);\n document.removeEventListener('touchstart', scrollTouchStart, nonPassive);\n };\n }, []);\n var removeScrollBar = props.removeScrollBar, inert = props.inert;\n return (React.createElement(React.Fragment, null,\n inert ? React.createElement(Style, { styles: generateStyle(id) }) : null,\n removeScrollBar ? React.createElement(RemoveScrollBar, { gapMode: \"margin\" }) : null));\n}\n"],"names":["React","styleSingleton","__spreadArray","locationCouldBeScrolled","handleScroll","nonPassive","RemoveScrollBar"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAMU,IAAC,UAAU,GAAG,UAAU,KAAK,EAAE;AACzC,IAAI,OAAO,gBAAgB,IAAI,KAAK,GAAG,CAAC,KAAK,CAAC,cAAc,CAAC,CAAC,CAAC,CAAC,OAAO,EAAE,KAAK,CAAC,cAAc,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;AACnH,EAAE;AACQ,IAAC,UAAU,GAAG,UAAU,KAAK,EAAE,EAAE,OAAO,CAAC,KAAK,CAAC,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC,GAAG;AAClF,IAAI,UAAU,GAAG,UAAU,GAAG,EAAE;AAChC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146 @@
|
|
|
1
|
+
import { __spreadArray } from '../../../../../@rollup_plugin-typescript@11.1.1_rollup@3.25.1_tslib@2.6.3_typescript@5.4.3/node_modules/tslib/tslib.es6.js';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
import { RemoveScrollBar } from '../../../../../react-remove-scroll-bar@2.3.6_@types_react@18.2.12_react@18.2.0/node_modules/react-remove-scroll-bar/dist/es2015/component.js';
|
|
4
|
+
import { styleSingleton } from '../../../../../react-style-singleton@2.2.1_@types_react@18.2.12_react@18.2.0/node_modules/react-style-singleton/dist/es2015/component.js';
|
|
5
|
+
import { nonPassive } from './aggresiveCapture.js';
|
|
6
|
+
import { locationCouldBeScrolled, handleScroll } from './handleScroll.js';
|
|
7
|
+
|
|
8
|
+
var getTouchXY = function (event) {
|
|
9
|
+
return 'changedTouches' in event ? [event.changedTouches[0].clientX, event.changedTouches[0].clientY] : [0, 0];
|
|
10
|
+
};
|
|
11
|
+
var getDeltaXY = function (event) { return [event.deltaX, event.deltaY]; };
|
|
12
|
+
var extractRef = function (ref) {
|
|
13
|
+
return ref && 'current' in ref ? ref.current : ref;
|
|
14
|
+
};
|
|
15
|
+
var deltaCompare = function (x, y) { return x[0] === y[0] && x[1] === y[1]; };
|
|
16
|
+
var generateStyle = function (id) { return "\n .block-interactivity-".concat(id, " {pointer-events: none;}\n .allow-interactivity-").concat(id, " {pointer-events: all;}\n"); };
|
|
17
|
+
var idCounter = 0;
|
|
18
|
+
var lockStack = [];
|
|
19
|
+
function RemoveScrollSideCar(props) {
|
|
20
|
+
var shouldPreventQueue = React.useRef([]);
|
|
21
|
+
var touchStartRef = React.useRef([0, 0]);
|
|
22
|
+
var activeAxis = React.useRef();
|
|
23
|
+
var id = React.useState(idCounter++)[0];
|
|
24
|
+
var Style = React.useState(function () { return styleSingleton(); })[0];
|
|
25
|
+
var lastProps = React.useRef(props);
|
|
26
|
+
React.useEffect(function () {
|
|
27
|
+
lastProps.current = props;
|
|
28
|
+
}, [props]);
|
|
29
|
+
React.useEffect(function () {
|
|
30
|
+
if (props.inert) {
|
|
31
|
+
document.body.classList.add("block-interactivity-".concat(id));
|
|
32
|
+
var allow_1 = __spreadArray([props.lockRef.current], (props.shards || []).map(extractRef), true).filter(Boolean);
|
|
33
|
+
allow_1.forEach(function (el) { return el.classList.add("allow-interactivity-".concat(id)); });
|
|
34
|
+
return function () {
|
|
35
|
+
document.body.classList.remove("block-interactivity-".concat(id));
|
|
36
|
+
allow_1.forEach(function (el) { return el.classList.remove("allow-interactivity-".concat(id)); });
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
return;
|
|
40
|
+
}, [props.inert, props.lockRef.current, props.shards]);
|
|
41
|
+
var shouldCancelEvent = React.useCallback(function (event, parent) {
|
|
42
|
+
if ('touches' in event && event.touches.length === 2) {
|
|
43
|
+
return !lastProps.current.allowPinchZoom;
|
|
44
|
+
}
|
|
45
|
+
var touch = getTouchXY(event);
|
|
46
|
+
var touchStart = touchStartRef.current;
|
|
47
|
+
var deltaX = 'deltaX' in event ? event.deltaX : touchStart[0] - touch[0];
|
|
48
|
+
var deltaY = 'deltaY' in event ? event.deltaY : touchStart[1] - touch[1];
|
|
49
|
+
var currentAxis;
|
|
50
|
+
var target = event.target;
|
|
51
|
+
var moveDirection = Math.abs(deltaX) > Math.abs(deltaY) ? 'h' : 'v';
|
|
52
|
+
// allow horizontal touch move on Range inputs. They will not cause any scroll
|
|
53
|
+
if ('touches' in event && moveDirection === 'h' && target.type === 'range') {
|
|
54
|
+
return false;
|
|
55
|
+
}
|
|
56
|
+
var canBeScrolledInMainDirection = locationCouldBeScrolled(moveDirection, target);
|
|
57
|
+
if (!canBeScrolledInMainDirection) {
|
|
58
|
+
return true;
|
|
59
|
+
}
|
|
60
|
+
if (canBeScrolledInMainDirection) {
|
|
61
|
+
currentAxis = moveDirection;
|
|
62
|
+
}
|
|
63
|
+
else {
|
|
64
|
+
currentAxis = moveDirection === 'v' ? 'h' : 'v';
|
|
65
|
+
canBeScrolledInMainDirection = locationCouldBeScrolled(moveDirection, target);
|
|
66
|
+
// other axis might be not scrollable
|
|
67
|
+
}
|
|
68
|
+
if (!canBeScrolledInMainDirection) {
|
|
69
|
+
return false;
|
|
70
|
+
}
|
|
71
|
+
if (!activeAxis.current && 'changedTouches' in event && (deltaX || deltaY)) {
|
|
72
|
+
activeAxis.current = currentAxis;
|
|
73
|
+
}
|
|
74
|
+
if (!currentAxis) {
|
|
75
|
+
return true;
|
|
76
|
+
}
|
|
77
|
+
var cancelingAxis = activeAxis.current || currentAxis;
|
|
78
|
+
return handleScroll(cancelingAxis, parent, event, cancelingAxis === 'h' ? deltaX : deltaY, true);
|
|
79
|
+
}, []);
|
|
80
|
+
var shouldPrevent = React.useCallback(function (_event) {
|
|
81
|
+
var event = _event;
|
|
82
|
+
if (!lockStack.length || lockStack[lockStack.length - 1] !== Style) {
|
|
83
|
+
// not the last active
|
|
84
|
+
return;
|
|
85
|
+
}
|
|
86
|
+
var delta = 'deltaY' in event ? getDeltaXY(event) : getTouchXY(event);
|
|
87
|
+
var sourceEvent = shouldPreventQueue.current.filter(function (e) { return e.name === event.type && e.target === event.target && deltaCompare(e.delta, delta); })[0];
|
|
88
|
+
// self event, and should be canceled
|
|
89
|
+
if (sourceEvent && sourceEvent.should) {
|
|
90
|
+
event.preventDefault();
|
|
91
|
+
return;
|
|
92
|
+
}
|
|
93
|
+
// outside or shard event
|
|
94
|
+
if (!sourceEvent) {
|
|
95
|
+
var shardNodes = (lastProps.current.shards || [])
|
|
96
|
+
.map(extractRef)
|
|
97
|
+
.filter(Boolean)
|
|
98
|
+
.filter(function (node) { return node.contains(event.target); });
|
|
99
|
+
var shouldStop = shardNodes.length > 0 ? shouldCancelEvent(event, shardNodes[0]) : !lastProps.current.noIsolation;
|
|
100
|
+
if (shouldStop) {
|
|
101
|
+
event.preventDefault();
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
}, []);
|
|
105
|
+
var shouldCancel = React.useCallback(function (name, delta, target, should) {
|
|
106
|
+
var event = { name: name, delta: delta, target: target, should: should };
|
|
107
|
+
shouldPreventQueue.current.push(event);
|
|
108
|
+
setTimeout(function () {
|
|
109
|
+
shouldPreventQueue.current = shouldPreventQueue.current.filter(function (e) { return e !== event; });
|
|
110
|
+
}, 1);
|
|
111
|
+
}, []);
|
|
112
|
+
var scrollTouchStart = React.useCallback(function (event) {
|
|
113
|
+
touchStartRef.current = getTouchXY(event);
|
|
114
|
+
activeAxis.current = undefined;
|
|
115
|
+
}, []);
|
|
116
|
+
var scrollWheel = React.useCallback(function (event) {
|
|
117
|
+
shouldCancel(event.type, getDeltaXY(event), event.target, shouldCancelEvent(event, props.lockRef.current));
|
|
118
|
+
}, []);
|
|
119
|
+
var scrollTouchMove = React.useCallback(function (event) {
|
|
120
|
+
shouldCancel(event.type, getTouchXY(event), event.target, shouldCancelEvent(event, props.lockRef.current));
|
|
121
|
+
}, []);
|
|
122
|
+
React.useEffect(function () {
|
|
123
|
+
lockStack.push(Style);
|
|
124
|
+
props.setCallbacks({
|
|
125
|
+
onScrollCapture: scrollWheel,
|
|
126
|
+
onWheelCapture: scrollWheel,
|
|
127
|
+
onTouchMoveCapture: scrollTouchMove,
|
|
128
|
+
});
|
|
129
|
+
document.addEventListener('wheel', shouldPrevent, nonPassive);
|
|
130
|
+
document.addEventListener('touchmove', shouldPrevent, nonPassive);
|
|
131
|
+
document.addEventListener('touchstart', scrollTouchStart, nonPassive);
|
|
132
|
+
return function () {
|
|
133
|
+
lockStack = lockStack.filter(function (inst) { return inst !== Style; });
|
|
134
|
+
document.removeEventListener('wheel', shouldPrevent, nonPassive);
|
|
135
|
+
document.removeEventListener('touchmove', shouldPrevent, nonPassive);
|
|
136
|
+
document.removeEventListener('touchstart', scrollTouchStart, nonPassive);
|
|
137
|
+
};
|
|
138
|
+
}, []);
|
|
139
|
+
var removeScrollBar = props.removeScrollBar, inert = props.inert;
|
|
140
|
+
return (React.createElement(React.Fragment, null,
|
|
141
|
+
inert ? React.createElement(Style, { styles: generateStyle(id) }) : null,
|
|
142
|
+
removeScrollBar ? React.createElement(RemoveScrollBar, { gapMode: "margin" }) : null));
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
export { RemoveScrollSideCar, getDeltaXY, getTouchXY };
|
|
146
|
+
//# sourceMappingURL=SideEffect.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SideEffect.js","sources":["../../../../../../../../../../../node_modules/.pnpm/react-remove-scroll@2.5.4_@types+react@18.2.12_react@18.2.0/node_modules/react-remove-scroll/dist/es2015/SideEffect.js"],"sourcesContent":["import { __spreadArray } from \"tslib\";\nimport * as React from 'react';\nimport { RemoveScrollBar } from 'react-remove-scroll-bar';\nimport { styleSingleton } from 'react-style-singleton';\nimport { nonPassive } from './aggresiveCapture';\nimport { handleScroll, locationCouldBeScrolled } from './handleScroll';\nexport var getTouchXY = function (event) {\n return 'changedTouches' in event ? [event.changedTouches[0].clientX, event.changedTouches[0].clientY] : [0, 0];\n};\nexport var getDeltaXY = function (event) { return [event.deltaX, event.deltaY]; };\nvar extractRef = function (ref) {\n return ref && 'current' in ref ? ref.current : ref;\n};\nvar deltaCompare = function (x, y) { return x[0] === y[0] && x[1] === y[1]; };\nvar generateStyle = function (id) { return \"\\n .block-interactivity-\".concat(id, \" {pointer-events: none;}\\n .allow-interactivity-\").concat(id, \" {pointer-events: all;}\\n\"); };\nvar idCounter = 0;\nvar lockStack = [];\nexport function RemoveScrollSideCar(props) {\n var shouldPreventQueue = React.useRef([]);\n var touchStartRef = React.useRef([0, 0]);\n var activeAxis = React.useRef();\n var id = React.useState(idCounter++)[0];\n var Style = React.useState(function () { return styleSingleton(); })[0];\n var lastProps = React.useRef(props);\n React.useEffect(function () {\n lastProps.current = props;\n }, [props]);\n React.useEffect(function () {\n if (props.inert) {\n document.body.classList.add(\"block-interactivity-\".concat(id));\n var allow_1 = __spreadArray([props.lockRef.current], (props.shards || []).map(extractRef), true).filter(Boolean);\n allow_1.forEach(function (el) { return el.classList.add(\"allow-interactivity-\".concat(id)); });\n return function () {\n document.body.classList.remove(\"block-interactivity-\".concat(id));\n allow_1.forEach(function (el) { return el.classList.remove(\"allow-interactivity-\".concat(id)); });\n };\n }\n return;\n }, [props.inert, props.lockRef.current, props.shards]);\n var shouldCancelEvent = React.useCallback(function (event, parent) {\n if ('touches' in event && event.touches.length === 2) {\n return !lastProps.current.allowPinchZoom;\n }\n var touch = getTouchXY(event);\n var touchStart = touchStartRef.current;\n var deltaX = 'deltaX' in event ? event.deltaX : touchStart[0] - touch[0];\n var deltaY = 'deltaY' in event ? event.deltaY : touchStart[1] - touch[1];\n var currentAxis;\n var target = event.target;\n var moveDirection = Math.abs(deltaX) > Math.abs(deltaY) ? 'h' : 'v';\n // allow horizontal touch move on Range inputs. They will not cause any scroll\n if ('touches' in event && moveDirection === 'h' && target.type === 'range') {\n return false;\n }\n var canBeScrolledInMainDirection = locationCouldBeScrolled(moveDirection, target);\n if (!canBeScrolledInMainDirection) {\n return true;\n }\n if (canBeScrolledInMainDirection) {\n currentAxis = moveDirection;\n }\n else {\n currentAxis = moveDirection === 'v' ? 'h' : 'v';\n canBeScrolledInMainDirection = locationCouldBeScrolled(moveDirection, target);\n // other axis might be not scrollable\n }\n if (!canBeScrolledInMainDirection) {\n return false;\n }\n if (!activeAxis.current && 'changedTouches' in event && (deltaX || deltaY)) {\n activeAxis.current = currentAxis;\n }\n if (!currentAxis) {\n return true;\n }\n var cancelingAxis = activeAxis.current || currentAxis;\n return handleScroll(cancelingAxis, parent, event, cancelingAxis === 'h' ? deltaX : deltaY, true);\n }, []);\n var shouldPrevent = React.useCallback(function (_event) {\n var event = _event;\n if (!lockStack.length || lockStack[lockStack.length - 1] !== Style) {\n // not the last active\n return;\n }\n var delta = 'deltaY' in event ? getDeltaXY(event) : getTouchXY(event);\n var sourceEvent = shouldPreventQueue.current.filter(function (e) { return e.name === event.type && e.target === event.target && deltaCompare(e.delta, delta); })[0];\n // self event, and should be canceled\n if (sourceEvent && sourceEvent.should) {\n event.preventDefault();\n return;\n }\n // outside or shard event\n if (!sourceEvent) {\n var shardNodes = (lastProps.current.shards || [])\n .map(extractRef)\n .filter(Boolean)\n .filter(function (node) { return node.contains(event.target); });\n var shouldStop = shardNodes.length > 0 ? shouldCancelEvent(event, shardNodes[0]) : !lastProps.current.noIsolation;\n if (shouldStop) {\n event.preventDefault();\n }\n }\n }, []);\n var shouldCancel = React.useCallback(function (name, delta, target, should) {\n var event = { name: name, delta: delta, target: target, should: should };\n shouldPreventQueue.current.push(event);\n setTimeout(function () {\n shouldPreventQueue.current = shouldPreventQueue.current.filter(function (e) { return e !== event; });\n }, 1);\n }, []);\n var scrollTouchStart = React.useCallback(function (event) {\n touchStartRef.current = getTouchXY(event);\n activeAxis.current = undefined;\n }, []);\n var scrollWheel = React.useCallback(function (event) {\n shouldCancel(event.type, getDeltaXY(event), event.target, shouldCancelEvent(event, props.lockRef.current));\n }, []);\n var scrollTouchMove = React.useCallback(function (event) {\n shouldCancel(event.type, getTouchXY(event), event.target, shouldCancelEvent(event, props.lockRef.current));\n }, []);\n React.useEffect(function () {\n lockStack.push(Style);\n props.setCallbacks({\n onScrollCapture: scrollWheel,\n onWheelCapture: scrollWheel,\n onTouchMoveCapture: scrollTouchMove,\n });\n document.addEventListener('wheel', shouldPrevent, nonPassive);\n document.addEventListener('touchmove', shouldPrevent, nonPassive);\n document.addEventListener('touchstart', scrollTouchStart, nonPassive);\n return function () {\n lockStack = lockStack.filter(function (inst) { return inst !== Style; });\n document.removeEventListener('wheel', shouldPrevent, nonPassive);\n document.removeEventListener('touchmove', shouldPrevent, nonPassive);\n document.removeEventListener('touchstart', scrollTouchStart, nonPassive);\n };\n }, []);\n var removeScrollBar = props.removeScrollBar, inert = props.inert;\n return (React.createElement(React.Fragment, null,\n inert ? React.createElement(Style, { styles: generateStyle(id) }) : null,\n removeScrollBar ? React.createElement(RemoveScrollBar, { gapMode: \"margin\" }) : null));\n}\n"],"names":[],"mappings":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