@ceed/cds 0.0.187-treeshaking.1 → 0.0.187
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/components/Accordions/index.d.ts +2 -2
- package/dist/components/Autocomplete/index.d.ts +2 -2
- package/dist/components/Avatar/index.d.ts +2 -2
- package/dist/components/Box/index.d.ts +2 -2
- package/dist/components/Breadcrumbs/index.d.ts +2 -2
- package/dist/components/Button/index.d.ts +2 -2
- package/dist/components/Calendar/Calendar.d.ts +1 -1
- package/dist/components/Calendar/hooks/use-calendar-props.d.ts +3 -3
- package/dist/components/Calendar/hooks/use-calendar.d.ts +1 -1
- package/dist/components/Calendar/index.d.ts +2 -2
- package/dist/components/Card/index.d.ts +2 -2
- package/dist/components/Checkbox/index.d.ts +2 -2
- package/dist/components/Chip/index.d.ts +2 -2
- package/dist/components/Container/index.d.ts +2 -2
- package/dist/components/CurrencyInput/index.d.ts +2 -2
- package/dist/components/DataTable/DataTable.d.ts +1 -1
- package/dist/components/DataTable/index.d.ts +2 -2
- package/dist/components/DataTable/types.d.ts +7 -7
- package/dist/components/DatePicker/DatePicker.d.ts +1 -1
- package/dist/components/DatePicker/index.d.ts +2 -2
- package/dist/components/DateRangePicker/DateRangePicker.d.ts +1 -1
- package/dist/components/DateRangePicker/index.d.ts +2 -2
- package/dist/components/DialogActions/index.d.ts +2 -2
- package/dist/components/DialogContent/index.d.ts +2 -2
- package/dist/components/DialogFrame/DialogFrame.d.ts +1 -1
- package/dist/components/DialogFrame/index.d.ts +2 -2
- package/dist/components/DialogTitle/index.d.ts +2 -2
- package/dist/components/Divider/index.d.ts +2 -2
- package/dist/components/Drawer/index.d.ts +2 -2
- package/dist/components/Dropdown/index.d.ts +2 -2
- package/dist/components/FormControl/index.d.ts +2 -2
- package/dist/components/FormHelperText/index.d.ts +2 -2
- package/dist/components/FormLabel/index.d.ts +2 -2
- package/dist/components/Grid/index.d.ts +2 -2
- package/dist/components/IconButton/index.d.ts +2 -2
- package/dist/components/Input/Input.d.ts +1 -1
- package/dist/components/Input/index.d.ts +2 -2
- package/dist/components/InsetDrawer/index.d.ts +2 -2
- package/dist/components/Markdown/Markdown.d.ts +22 -6
- package/dist/components/Markdown/index.d.ts +2 -2
- package/dist/components/Menu/index.d.ts +2 -2
- package/dist/components/MenuButton/MenuButton.d.ts +1 -1
- package/dist/components/Modal/Modal.d.ts +4 -4
- package/dist/components/Modal/index.d.ts +2 -2
- package/dist/components/MonthPicker/MonthPicker.d.ts +1 -1
- package/dist/components/MonthPicker/index.d.ts +2 -2
- package/dist/components/MonthRangePicker/MonthRangePicker.d.ts +1 -1
- package/dist/components/MonthRangePicker/index.d.ts +2 -2
- package/dist/components/NavigationGroup/index.d.ts +2 -2
- package/dist/components/NavigationItem/index.d.ts +2 -2
- package/dist/components/Navigator/index.d.ts +2 -2
- package/dist/components/Pagination/Pagination.d.ts +2 -2
- package/dist/components/Pagination/index.d.ts +2 -2
- package/dist/components/PercentageInput/index.d.ts +2 -2
- package/dist/components/Radio/index.d.ts +2 -2
- package/dist/components/RadioList/RadioList.d.ts +1 -1
- package/dist/components/RadioList/index.d.ts +2 -2
- package/dist/components/Select/Select.d.ts +1 -1
- package/dist/components/Select/index.d.ts +2 -2
- package/dist/components/Sheet/index.d.ts +2 -2
- package/dist/components/Stack/index.d.ts +2 -2
- package/dist/components/Stepper/index.d.ts +2 -2
- package/dist/components/Switch/index.d.ts +2 -2
- package/dist/components/Table/index.d.ts +2 -2
- package/dist/components/Tabs/index.d.ts +2 -2
- package/dist/components/Textarea/Textarea.d.ts +17 -3
- package/dist/components/Textarea/index.d.ts +2 -2
- package/dist/components/ThemeProvider/ThemeProvider.d.ts +7 -7
- package/dist/components/ThemeProvider/index.d.ts +2 -2
- package/dist/components/Tooltip/index.d.ts +2 -2
- package/dist/components/Typography/index.d.ts +2 -2
- package/dist/components/Uploader/Uploader.d.ts +3 -4
- package/dist/components/Uploader/index.d.ts +2 -2
- package/dist/components/index.d.ts +53 -53
- package/dist/index.d.ts +1 -1
- package/dist/index.js +2 -52
- package/framer/index.js +30 -30
- package/package.json +4 -8
- package/dist/_virtual/_commonjsHelpers.js +0 -30
- package/dist/_virtual/bind-all.js +0 -3
- package/dist/_virtual/bind.js +0 -3
- package/dist/_virtual/colorManipulator.js +0 -5
- package/dist/_virtual/colorManipulator2.js +0 -3
- package/dist/_virtual/createStyled.js +0 -7
- package/dist/_virtual/createStyled2.js +0 -3
- package/dist/_virtual/extends.js +0 -3
- package/dist/_virtual/index.js +0 -5
- package/dist/_virtual/index10.js +0 -6
- package/dist/_virtual/index11.js +0 -6
- package/dist/_virtual/index12.js +0 -6
- package/dist/_virtual/index2.js +0 -3
- package/dist/_virtual/index3.js +0 -7
- package/dist/_virtual/index4.js +0 -3
- package/dist/_virtual/index5.js +0 -6
- package/dist/_virtual/index6.js +0 -6
- package/dist/_virtual/index7.js +0 -6
- package/dist/_virtual/index8.js +0 -6
- package/dist/_virtual/index9.js +0 -6
- package/dist/_virtual/interopRequireDefault.js +0 -3
- package/dist/_virtual/objectWithoutPropertiesLoose.js +0 -3
- package/dist/components/Accordions/Accordions.js +0 -43
- package/dist/components/Autocomplete/Autocomplete.js +0 -196
- package/dist/components/Autocomplete/index.js +0 -5
- package/dist/components/Avatar/Avatar.js +0 -42
- package/dist/components/Box/Box.js +0 -8
- package/dist/components/Box/index.js +0 -5
- package/dist/components/Breadcrumbs/Breadcrumbs.js +0 -47
- package/dist/components/Button/Button.js +0 -20
- package/dist/components/Button/index.js +0 -5
- package/dist/components/Calendar/Calendar.js +0 -333
- package/dist/components/Calendar/hooks/use-calendar-props.js +0 -74
- package/dist/components/Calendar/hooks/use-calendar.js +0 -247
- package/dist/components/Calendar/index.js +0 -5
- package/dist/components/Calendar/utils/index.js +0 -74
- package/dist/components/Card/Card.js +0 -20
- package/dist/components/Checkbox/Checkbox.js +0 -19
- package/dist/components/Checkbox/index.js +0 -5
- package/dist/components/Chip/Chip.js +0 -8
- package/dist/components/Chip/index.js +0 -5
- package/dist/components/Container/Container.js +0 -49
- package/dist/components/CurrencyInput/CurrencyInput.js +0 -91
- package/dist/components/CurrencyInput/hooks/use-currency-setting.js +0 -167
- package/dist/components/CurrencyInput/index.js +0 -5
- package/dist/components/DataTable/DataTable.js +0 -568
- package/dist/components/DatePicker/DatePicker.js +0 -210
- package/dist/components/DatePicker/index.js +0 -5
- package/dist/components/DateRangePicker/DateRangePicker.js +0 -213
- package/dist/components/DialogActions/DialogActions.js +0 -14
- package/dist/components/DialogActions/index.js +0 -5
- package/dist/components/DialogContent/DialogContent.js +0 -11
- package/dist/components/DialogContent/index.js +0 -5
- package/dist/components/DialogFrame/DialogFrame.js +0 -31
- package/dist/components/DialogTitle/DialogTitle.js +0 -11
- package/dist/components/DialogTitle/index.js +0 -5
- package/dist/components/Divider/Divider.js +0 -19
- package/dist/components/Drawer/Drawer.js +0 -40
- package/dist/components/Dropdown/Dropdown.js +0 -8
- package/dist/components/Dropdown/index.js +0 -5
- package/dist/components/FormControl/FormControl.js +0 -15
- package/dist/components/FormControl/index.js +0 -5
- package/dist/components/FormHelperText/FormHelperText.js +0 -8
- package/dist/components/FormHelperText/index.js +0 -5
- package/dist/components/FormLabel/FormLabel.js +0 -8
- package/dist/components/FormLabel/index.js +0 -5
- package/dist/components/IconButton/IconButton.js +0 -20
- package/dist/components/IconButton/index.js +0 -5
- package/dist/components/Input/Input.js +0 -60
- package/dist/components/Input/index.js +0 -5
- package/dist/components/InsetDrawer/InsetDrawer.js +0 -30
- package/dist/components/Markdown/Markdown.js +0 -36
- package/dist/components/Menu/Menu.js +0 -43
- package/dist/components/Menu/index.js +0 -6
- package/dist/components/MenuButton/MenuButton.js +0 -26
- package/dist/components/Modal/Modal.js +0 -43
- package/dist/components/MonthPicker/MonthPicker.js +0 -162
- package/dist/components/MonthRangePicker/MonthRangePicker.js +0 -172
- package/dist/components/NavigationGroup/NavigationGroup.js +0 -42
- package/dist/components/NavigationItem/NavigationItem.js +0 -45
- package/dist/components/Navigator/Navigator.js +0 -30
- package/dist/components/Pagination/Pagination.js +0 -117
- package/dist/components/Pagination/index.js +0 -5
- package/dist/components/PercentageInput/PercentageInput.js +0 -85
- package/dist/components/Radio/Radio.js +0 -11
- package/dist/components/RadioList/RadioList.js +0 -18
- package/dist/components/Select/Select.js +0 -56
- package/dist/components/Select/index.js +0 -6
- package/dist/components/Sheet/Sheet.js +0 -8
- package/dist/components/Sheet/index.js +0 -5
- package/dist/components/Stack/index.js +0 -2
- package/dist/components/Stepper/Stepper.js +0 -66
- package/dist/components/Switch/Switch.js +0 -46
- package/dist/components/Table/Table.js +0 -64
- package/dist/components/Tabs/Tabs.js +0 -17
- package/dist/components/Textarea/Textarea.js +0 -31
- package/dist/components/Textarea/index.js +0 -5
- package/dist/components/ThemeProvider/ThemeProvider.js +0 -240
- package/dist/components/Tooltip/Tooltip.js +0 -19
- package/dist/components/Tooltip/index.js +0 -5
- package/dist/components/Typography/Typography.js +0 -19
- package/dist/components/Typography/index.js +0 -5
- package/dist/components/Uploader/Uploader.js +0 -402
- package/dist/external/@atlaskit/pragmatic-drag-and-drop/dist/esm/adapter/element-adapter-native-data-key.js +0 -8
- package/dist/external/@atlaskit/pragmatic-drag-and-drop/dist/esm/adapter/external-adapter.js +0 -245
- package/dist/external/@atlaskit/pragmatic-drag-and-drop/dist/esm/entry-point/combine.js +0 -1
- package/dist/external/@atlaskit/pragmatic-drag-and-drop/dist/esm/entry-point/external/adapter.js +0 -1
- package/dist/external/@atlaskit/pragmatic-drag-and-drop/dist/esm/entry-point/external/file.js +0 -1
- package/dist/external/@atlaskit/pragmatic-drag-and-drop/dist/esm/entry-point/prevent-unhandled.js +0 -1
- package/dist/external/@atlaskit/pragmatic-drag-and-drop/dist/esm/honey-pot-fix/get-element-from-point-without-honey-pot.js +0 -19
- package/dist/external/@atlaskit/pragmatic-drag-and-drop/dist/esm/honey-pot-fix/honey-pot-data-attribute.js +0 -5
- package/dist/external/@atlaskit/pragmatic-drag-and-drop/dist/esm/honey-pot-fix/is-honey-pot-element.js +0 -7
- package/dist/external/@atlaskit/pragmatic-drag-and-drop/dist/esm/ledger/dispatch-consumer-event.js +0 -128
- package/dist/external/@atlaskit/pragmatic-drag-and-drop/dist/esm/ledger/lifecycle-manager.js +0 -340
- package/dist/external/@atlaskit/pragmatic-drag-and-drop/dist/esm/ledger/usage-ledger.js +0 -33
- package/dist/external/@atlaskit/pragmatic-drag-and-drop/dist/esm/make-adapter/make-adapter.js +0 -60
- package/dist/external/@atlaskit/pragmatic-drag-and-drop/dist/esm/make-adapter/make-drop-target.js +0 -312
- package/dist/external/@atlaskit/pragmatic-drag-and-drop/dist/esm/make-adapter/make-monitor.js +0 -96
- package/dist/external/@atlaskit/pragmatic-drag-and-drop/dist/esm/public-utils/combine.js +0 -13
- package/dist/external/@atlaskit/pragmatic-drag-and-drop/dist/esm/public-utils/external/file.js +0 -23
- package/dist/external/@atlaskit/pragmatic-drag-and-drop/dist/esm/public-utils/once.js +0 -18
- package/dist/external/@atlaskit/pragmatic-drag-and-drop/dist/esm/public-utils/prevent-unhandled.js +0 -102
- package/dist/external/@atlaskit/pragmatic-drag-and-drop/dist/esm/util/add-attribute.js +0 -10
- package/dist/external/@atlaskit/pragmatic-drag-and-drop/dist/esm/util/android.js +0 -3
- package/dist/external/@atlaskit/pragmatic-drag-and-drop/dist/esm/util/changing-window/count-events-for-safari.js +0 -123
- package/dist/external/@atlaskit/pragmatic-drag-and-drop/dist/esm/util/changing-window/is-entering-window.js +0 -55
- package/dist/external/@atlaskit/pragmatic-drag-and-drop/dist/esm/util/changing-window/is-from-another-window.js +0 -18
- package/dist/external/@atlaskit/pragmatic-drag-and-drop/dist/esm/util/changing-window/is-leaving-window.js +0 -55
- package/dist/external/@atlaskit/pragmatic-drag-and-drop/dist/esm/util/detect-broken-drag.js +0 -49
- package/dist/external/@atlaskit/pragmatic-drag-and-drop/dist/esm/util/get-input.js +0 -16
- package/dist/external/@atlaskit/pragmatic-drag-and-drop/dist/esm/util/is-firefox.js +0 -15
- package/dist/external/@atlaskit/pragmatic-drag-and-drop/dist/esm/util/is-safari.js +0 -18
- package/dist/external/@atlaskit/pragmatic-drag-and-drop/dist/esm/util/media-types/text-media-type.js +0 -8
- package/dist/external/@atlaskit/pragmatic-drag-and-drop/external/@babel/runtime/helpers/esm/arrayLikeToArray.js +0 -7
- package/dist/external/@atlaskit/pragmatic-drag-and-drop/external/@babel/runtime/helpers/esm/arrayWithHoles.js +0 -5
- package/dist/external/@atlaskit/pragmatic-drag-and-drop/external/@babel/runtime/helpers/esm/arrayWithoutHoles.js +0 -7
- package/dist/external/@atlaskit/pragmatic-drag-and-drop/external/@babel/runtime/helpers/esm/defineProperty.js +0 -18
- package/dist/external/@atlaskit/pragmatic-drag-and-drop/external/@babel/runtime/helpers/esm/iterableToArray.js +0 -5
- package/dist/external/@atlaskit/pragmatic-drag-and-drop/external/@babel/runtime/helpers/esm/iterableToArrayLimit.js +0 -26
- package/dist/external/@atlaskit/pragmatic-drag-and-drop/external/@babel/runtime/helpers/esm/nonIterableRest.js +0 -5
- package/dist/external/@atlaskit/pragmatic-drag-and-drop/external/@babel/runtime/helpers/esm/nonIterableSpread.js +0 -5
- package/dist/external/@atlaskit/pragmatic-drag-and-drop/external/@babel/runtime/helpers/esm/slicedToArray.js +0 -10
- package/dist/external/@atlaskit/pragmatic-drag-and-drop/external/@babel/runtime/helpers/esm/toConsumableArray.js +0 -10
- package/dist/external/@atlaskit/pragmatic-drag-and-drop/external/@babel/runtime/helpers/esm/toPrimitive.js +0 -14
- package/dist/external/@atlaskit/pragmatic-drag-and-drop/external/@babel/runtime/helpers/esm/toPropertyKey.js +0 -9
- package/dist/external/@atlaskit/pragmatic-drag-and-drop/external/@babel/runtime/helpers/esm/typeof.js +0 -11
- package/dist/external/@atlaskit/pragmatic-drag-and-drop/external/@babel/runtime/helpers/esm/unsupportedIterableToArray.js +0 -12
- package/dist/external/@babel/runtime/helpers/esm/extends.js +0 -16
- package/dist/external/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js +0 -14
- package/dist/external/@babel/runtime/helpers/extends.js +0 -28
- package/dist/external/@babel/runtime/helpers/interopRequireDefault.js +0 -19
- package/dist/external/@babel/runtime/helpers/objectWithoutPropertiesLoose.js +0 -26
- package/dist/external/@emotion/cache/dist/emotion-cache.esm.js +0 -653
- package/dist/external/@emotion/memoize/dist/emotion-memoize.esm.js +0 -9
- package/dist/external/@emotion/sheet/dist/emotion-sheet.esm.js +0 -154
- package/dist/external/@emotion/weak-memoize/dist/emotion-weak-memoize.esm.js +0 -16
- package/dist/external/@mui/icons-material/esm/ArrowUpwardRounded.js +0 -8
- package/dist/external/@mui/icons-material/esm/CalendarToday.js +0 -8
- package/dist/external/@mui/icons-material/esm/Check.js +0 -8
- package/dist/external/@mui/icons-material/esm/ChevronLeft.js +0 -8
- package/dist/external/@mui/icons-material/esm/ChevronRight.js +0 -8
- package/dist/external/@mui/icons-material/esm/ClearRounded.js +0 -8
- package/dist/external/@mui/icons-material/esm/Close.js +0 -8
- package/dist/external/@mui/icons-material/esm/CloudUploadRounded.js +0 -8
- package/dist/external/@mui/icons-material/esm/ExpandMore.js +0 -8
- package/dist/external/@mui/icons-material/esm/Info.js +0 -8
- package/dist/external/@mui/icons-material/esm/UploadFileRounded.js +0 -8
- package/dist/external/@mui/material/SvgIcon/SvgIcon.js +0 -186
- package/dist/external/@mui/material/SvgIcon/svgIconClasses.js +0 -9
- package/dist/external/@mui/material/colors/blue.js +0 -18
- package/dist/external/@mui/material/colors/common.js +0 -6
- package/dist/external/@mui/material/colors/green.js +0 -18
- package/dist/external/@mui/material/colors/grey.js +0 -18
- package/dist/external/@mui/material/colors/lightBlue.js +0 -18
- package/dist/external/@mui/material/colors/orange.js +0 -18
- package/dist/external/@mui/material/colors/purple.js +0 -18
- package/dist/external/@mui/material/colors/red.js +0 -18
- package/dist/external/@mui/material/styles/createMixins.js +0 -19
- package/dist/external/@mui/material/styles/createPalette.js +0 -308
- package/dist/external/@mui/material/styles/createTheme.js +0 -82
- package/dist/external/@mui/material/styles/createTransitions.js +0 -91
- package/dist/external/@mui/material/styles/createTypography.js +0 -93
- package/dist/external/@mui/material/styles/defaultTheme.js +0 -5
- package/dist/external/@mui/material/styles/identifier.js +0 -3
- package/dist/external/@mui/material/styles/rootShouldForwardProp.js +0 -5
- package/dist/external/@mui/material/styles/shadows.js +0 -11
- package/dist/external/@mui/material/styles/slotShouldForwardProp.js +0 -6
- package/dist/external/@mui/material/styles/styled.js +0 -12
- package/dist/external/@mui/material/styles/useThemeProps.js +0 -17
- package/dist/external/@mui/material/styles/zIndex.js +0 -14
- package/dist/external/@mui/material/utils/capitalize.js +0 -5
- package/dist/external/@mui/material/utils/createSvgIcon.js +0 -24
- package/dist/external/@mui/styled-engine/GlobalStyles/GlobalStyles.js +0 -24
- package/dist/external/@mui/styled-engine/StyledEngineProvider/StyledEngineProvider.js +0 -37
- package/dist/external/@mui/styled-engine/index.js +0 -38
- package/dist/external/@mui/system/colorManipulator.js +0 -385
- package/dist/external/@mui/system/createStyled.js +0 -270
- package/dist/external/@mui/system/esm/borders.js +0 -51
- package/dist/external/@mui/system/esm/breakpoints.js +0 -66
- package/dist/external/@mui/system/esm/compose.js +0 -26
- package/dist/external/@mui/system/esm/createTheme/applyStyles.js +0 -76
- package/dist/external/@mui/system/esm/createTheme/createBreakpoints.js +0 -82
- package/dist/external/@mui/system/esm/createTheme/createSpacing.js +0 -34
- package/dist/external/@mui/system/esm/createTheme/createTheme.js +0 -45
- package/dist/external/@mui/system/esm/createTheme/index.js +0 -3
- package/dist/external/@mui/system/esm/createTheme/shape.js +0 -5
- package/dist/external/@mui/system/esm/cssGrid.js +0 -86
- package/dist/external/@mui/system/esm/memoize.js +0 -11
- package/dist/external/@mui/system/esm/merge.js +0 -12
- package/dist/external/@mui/system/esm/palette.js +0 -28
- package/dist/external/@mui/system/esm/responsivePropType.js +0 -5
- package/dist/external/@mui/system/esm/sizing.js +0 -67
- package/dist/external/@mui/system/esm/spacing.js +0 -144
- package/dist/external/@mui/system/esm/style.js +0 -77
- package/dist/external/@mui/system/esm/styleFunctionSx/defaultSxConfig.js +0 -293
- package/dist/external/@mui/system/esm/styleFunctionSx/extendSxProp.js +0 -51
- package/dist/external/@mui/system/esm/styleFunctionSx/index.js +0 -3
- package/dist/external/@mui/system/esm/styleFunctionSx/styleFunctionSx.js +0 -129
- package/dist/external/@mui/system/esm/useTheme.js +0 -9
- package/dist/external/@mui/system/esm/useThemeProps/getThemeProps.js +0 -15
- package/dist/external/@mui/system/esm/useThemeProps/useThemeProps.js +0 -22
- package/dist/external/@mui/system/esm/useThemeWithoutDefault.js +0 -12
- package/dist/external/@mui/utils/ClassNameGenerator/ClassNameGenerator.js +0 -18
- package/dist/external/@mui/utils/capitalize/capitalize.js +0 -14
- package/dist/external/@mui/utils/capitalize/index.js +0 -1
- package/dist/external/@mui/utils/clamp/clamp.js +0 -5
- package/dist/external/@mui/utils/clamp/index.js +0 -1
- package/dist/external/@mui/utils/composeClasses/composeClasses.js +0 -23
- package/dist/external/@mui/utils/deepmerge/deepmerge.js +0 -44
- package/dist/external/@mui/utils/deepmerge/index.js +0 -1
- package/dist/external/@mui/utils/formatMuiErrorMessage/formatMuiErrorMessage.js +0 -21
- package/dist/external/@mui/utils/formatMuiErrorMessage/index.js +0 -1
- package/dist/external/@mui/utils/generateUtilityClass/generateUtilityClass.js +0 -22
- package/dist/external/@mui/utils/generateUtilityClasses/generateUtilityClasses.js +0 -11
- package/dist/external/@mui/utils/getDisplayName/getDisplayName.js +0 -49
- package/dist/external/@mui/utils/getDisplayName/index.js +0 -1
- package/dist/external/@mui/utils/resolveProps/resolveProps.js +0 -37
- package/dist/external/bind-event-listener/dist/bind-all.js +0 -54
- package/dist/external/bind-event-listener/dist/bind.js +0 -21
- package/dist/external/bind-event-listener/dist/index.js +0 -21
- package/dist/external/clsx/dist/clsx.js +0 -3
- package/dist/external/object-assign/index.js +0 -99
- package/dist/external/prop-types/checkPropTypes.js +0 -115
- package/dist/external/prop-types/factoryWithThrowingShims.js +0 -74
- package/dist/external/prop-types/factoryWithTypeCheckers.js +0 -625
- package/dist/external/prop-types/index.js +0 -33
- package/dist/external/prop-types/lib/ReactPropTypesSecret.js +0 -21
- package/dist/external/prop-types/lib/has.js +0 -11
- package/dist/external/raf-schd/dist/raf-schd.esm.js +0 -34
- package/dist/external/stylis/src/Enum.js +0 -12
- package/dist/external/stylis/src/Middleware.js +0 -32
- package/dist/external/stylis/src/Parser.js +0 -193
- package/dist/external/stylis/src/Serializer.js +0 -38
- package/dist/external/stylis/src/Tokenizer.js +0 -223
- package/dist/external/stylis/src/Utility.js +0 -117
- package/dist/hooks/use-controlled-state/index.js +0 -23
- package/dist/libs/rehype-accent/index.js +0 -39
package/dist/external/@atlaskit/pragmatic-drag-and-drop/dist/esm/make-adapter/make-drop-target.js
DELETED
|
@@ -1,312 +0,0 @@
|
|
|
1
|
-
import _defineProperty from '../../../external/@babel/runtime/helpers/esm/defineProperty.js';
|
|
2
|
-
import _toConsumableArray from '../../../external/@babel/runtime/helpers/esm/toConsumableArray.js';
|
|
3
|
-
import { combine } from '../public-utils/combine.js';
|
|
4
|
-
import { addAttribute } from '../util/add-attribute.js';
|
|
5
|
-
|
|
6
|
-
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
7
|
-
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), true).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
8
|
-
function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike) { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it.return != null) it.return(); } finally { if (didErr) throw err; } } }; }
|
|
9
|
-
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
10
|
-
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
11
|
-
function copyReverse(array) {
|
|
12
|
-
return array.slice(0).reverse();
|
|
13
|
-
}
|
|
14
|
-
function makeDropTarget(_ref) {
|
|
15
|
-
var typeKey = _ref.typeKey,
|
|
16
|
-
defaultDropEffect = _ref.defaultDropEffect;
|
|
17
|
-
var registry = new WeakMap();
|
|
18
|
-
var dropTargetDataAtt = "data-drop-target-for-".concat(typeKey);
|
|
19
|
-
var dropTargetSelector = "[".concat(dropTargetDataAtt, "]");
|
|
20
|
-
function addToRegistry(args) {
|
|
21
|
-
registry.set(args.element, args);
|
|
22
|
-
return function () {
|
|
23
|
-
return registry.delete(args.element);
|
|
24
|
-
};
|
|
25
|
-
}
|
|
26
|
-
function dropTargetForConsumers(args) {
|
|
27
|
-
// Guardrail: warn if the draggable element is already registered
|
|
28
|
-
if (process.env.NODE_ENV !== 'production') {
|
|
29
|
-
var existing = registry.get(args.element);
|
|
30
|
-
if (existing) {
|
|
31
|
-
// eslint-disable-next-line no-console
|
|
32
|
-
console.warn("You have already registered a [".concat(typeKey, "] dropTarget on the same element"), {
|
|
33
|
-
existing: existing,
|
|
34
|
-
proposed: args
|
|
35
|
-
});
|
|
36
|
-
}
|
|
37
|
-
if (args.element instanceof HTMLIFrameElement) {
|
|
38
|
-
// eslint-disable-next-line no-console
|
|
39
|
-
console.warn("\n We recommend not registering <iframe> elements as drop targets\n as it can result in some strange browser event ordering.\n " // Removing newlines and excessive whitespace
|
|
40
|
-
.replace(/\s{2,}/g, ' ').trim());
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
return combine(addAttribute(args.element, {
|
|
44
|
-
attribute: dropTargetDataAtt,
|
|
45
|
-
value: 'true'
|
|
46
|
-
}), addToRegistry(args));
|
|
47
|
-
}
|
|
48
|
-
function getActualDropTargets(_ref2) {
|
|
49
|
-
var _args$getData, _args$getData2, _args$getDropEffect, _args$getDropEffect2;
|
|
50
|
-
var source = _ref2.source,
|
|
51
|
-
target = _ref2.target,
|
|
52
|
-
input = _ref2.input,
|
|
53
|
-
_ref2$result = _ref2.result,
|
|
54
|
-
result = _ref2$result === undefined ? [] : _ref2$result;
|
|
55
|
-
if (target == null) {
|
|
56
|
-
return result;
|
|
57
|
-
}
|
|
58
|
-
if (!(target instanceof Element)) {
|
|
59
|
-
// For "text-selection" drags, the original `target`
|
|
60
|
-
// is not an `Element`, so we need to start looking from
|
|
61
|
-
// the parent element
|
|
62
|
-
if (target instanceof Node) {
|
|
63
|
-
return getActualDropTargets({
|
|
64
|
-
source: source,
|
|
65
|
-
target: target.parentElement,
|
|
66
|
-
input: input,
|
|
67
|
-
result: result
|
|
68
|
-
});
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
// not sure what we are working with,
|
|
72
|
-
// so we can exit.
|
|
73
|
-
return result;
|
|
74
|
-
}
|
|
75
|
-
var closest = target.closest(dropTargetSelector);
|
|
76
|
-
|
|
77
|
-
// Cannot find anything else
|
|
78
|
-
if (closest == null) {
|
|
79
|
-
return result;
|
|
80
|
-
}
|
|
81
|
-
var args = registry.get(closest);
|
|
82
|
-
|
|
83
|
-
// error: something had a dropTargetSelector but we could not
|
|
84
|
-
// find a match. For now, failing silently
|
|
85
|
-
if (args == null) {
|
|
86
|
-
return result;
|
|
87
|
-
}
|
|
88
|
-
var feedback = {
|
|
89
|
-
input: input,
|
|
90
|
-
source: source,
|
|
91
|
-
element: args.element
|
|
92
|
-
};
|
|
93
|
-
|
|
94
|
-
// if dropping is not allowed, skip this drop target
|
|
95
|
-
// and continue looking up the DOM tree
|
|
96
|
-
if (args.canDrop && !args.canDrop(feedback)) {
|
|
97
|
-
return getActualDropTargets({
|
|
98
|
-
source: source,
|
|
99
|
-
target: args.element.parentElement,
|
|
100
|
-
input: input,
|
|
101
|
-
result: result
|
|
102
|
-
});
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
// calculate our new record
|
|
106
|
-
var data = (_args$getData = (_args$getData2 = args.getData) === null || _args$getData2 === undefined ? undefined : _args$getData2.call(args, feedback)) !== null && _args$getData !== undefined ? _args$getData : {};
|
|
107
|
-
var dropEffect = (_args$getDropEffect = (_args$getDropEffect2 = args.getDropEffect) === null || _args$getDropEffect2 === undefined ? undefined : _args$getDropEffect2.call(args, feedback)) !== null && _args$getDropEffect !== undefined ? _args$getDropEffect : defaultDropEffect;
|
|
108
|
-
var record = {
|
|
109
|
-
data: data,
|
|
110
|
-
element: args.element,
|
|
111
|
-
dropEffect: dropEffect,
|
|
112
|
-
// we are collecting _actual_ drop targets, so these are
|
|
113
|
-
// being applied _not_ due to stickiness
|
|
114
|
-
isActiveDueToStickiness: false
|
|
115
|
-
};
|
|
116
|
-
return getActualDropTargets({
|
|
117
|
-
source: source,
|
|
118
|
-
target: args.element.parentElement,
|
|
119
|
-
input: input,
|
|
120
|
-
// Using bubble ordering. Same ordering as `event.getPath()`
|
|
121
|
-
result: [].concat(_toConsumableArray(result), [record])
|
|
122
|
-
});
|
|
123
|
-
}
|
|
124
|
-
function notifyCurrent(_ref3) {
|
|
125
|
-
var eventName = _ref3.eventName,
|
|
126
|
-
payload = _ref3.payload;
|
|
127
|
-
var _iterator = _createForOfIteratorHelper(payload.location.current.dropTargets),
|
|
128
|
-
_step;
|
|
129
|
-
try {
|
|
130
|
-
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
131
|
-
var _entry$eventName;
|
|
132
|
-
var record = _step.value;
|
|
133
|
-
var entry = registry.get(record.element);
|
|
134
|
-
var _args = _objectSpread(_objectSpread({}, payload), {}, {
|
|
135
|
-
self: record
|
|
136
|
-
});
|
|
137
|
-
entry === null || entry === void 0 || (_entry$eventName = entry[eventName]) === null || _entry$eventName === void 0 || _entry$eventName.call(entry,
|
|
138
|
-
// I cannot seem to get the types right here.
|
|
139
|
-
// TS doesn't seem to like that one event can need `nativeSetDragImage`
|
|
140
|
-
// @ts-expect-error
|
|
141
|
-
_args);
|
|
142
|
-
}
|
|
143
|
-
} catch (err) {
|
|
144
|
-
_iterator.e(err);
|
|
145
|
-
} finally {
|
|
146
|
-
_iterator.f();
|
|
147
|
-
}
|
|
148
|
-
}
|
|
149
|
-
var actions = {
|
|
150
|
-
onGenerateDragPreview: notifyCurrent,
|
|
151
|
-
onDrag: notifyCurrent,
|
|
152
|
-
onDragStart: notifyCurrent,
|
|
153
|
-
onDrop: notifyCurrent,
|
|
154
|
-
onDropTargetChange: function onDropTargetChange(_ref4) {
|
|
155
|
-
var payload = _ref4.payload;
|
|
156
|
-
var isCurrent = new Set(payload.location.current.dropTargets.map(function (record) {
|
|
157
|
-
return record.element;
|
|
158
|
-
}));
|
|
159
|
-
var visited = new Set();
|
|
160
|
-
var _iterator2 = _createForOfIteratorHelper(payload.location.previous.dropTargets),
|
|
161
|
-
_step2;
|
|
162
|
-
try {
|
|
163
|
-
for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
|
|
164
|
-
var _entry$onDropTargetCh;
|
|
165
|
-
var record = _step2.value;
|
|
166
|
-
visited.add(record.element);
|
|
167
|
-
var entry = registry.get(record.element);
|
|
168
|
-
var isOver = isCurrent.has(record.element);
|
|
169
|
-
var _args2 = _objectSpread(_objectSpread({}, payload), {}, {
|
|
170
|
-
self: record
|
|
171
|
-
});
|
|
172
|
-
entry === null || entry === void 0 || (_entry$onDropTargetCh = entry.onDropTargetChange) === null || _entry$onDropTargetCh === void 0 || _entry$onDropTargetCh.call(entry, _args2);
|
|
173
|
-
|
|
174
|
-
// if we cannot find the drop target in the current array, then it has been left
|
|
175
|
-
if (!isOver) {
|
|
176
|
-
var _entry$onDragLeave;
|
|
177
|
-
entry === null || entry === void 0 || (_entry$onDragLeave = entry.onDragLeave) === null || _entry$onDragLeave === void 0 || _entry$onDragLeave.call(entry, _args2);
|
|
178
|
-
}
|
|
179
|
-
}
|
|
180
|
-
} catch (err) {
|
|
181
|
-
_iterator2.e(err);
|
|
182
|
-
} finally {
|
|
183
|
-
_iterator2.f();
|
|
184
|
-
}
|
|
185
|
-
var _iterator3 = _createForOfIteratorHelper(payload.location.current.dropTargets),
|
|
186
|
-
_step3;
|
|
187
|
-
try {
|
|
188
|
-
for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {
|
|
189
|
-
var _entry$onDropTargetCh2, _entry$onDragEnter;
|
|
190
|
-
var _record = _step3.value;
|
|
191
|
-
// already published an update to this drop target
|
|
192
|
-
if (visited.has(_record.element)) {
|
|
193
|
-
continue;
|
|
194
|
-
}
|
|
195
|
-
// at this point we have a new drop target that is being entered into
|
|
196
|
-
var _args3 = _objectSpread(_objectSpread({}, payload), {}, {
|
|
197
|
-
self: _record
|
|
198
|
-
});
|
|
199
|
-
var _entry = registry.get(_record.element);
|
|
200
|
-
_entry === null || _entry === void 0 || (_entry$onDropTargetCh2 = _entry.onDropTargetChange) === null || _entry$onDropTargetCh2 === void 0 || _entry$onDropTargetCh2.call(_entry, _args3);
|
|
201
|
-
_entry === null || _entry === void 0 || (_entry$onDragEnter = _entry.onDragEnter) === null || _entry$onDragEnter === void 0 || _entry$onDragEnter.call(_entry, _args3);
|
|
202
|
-
}
|
|
203
|
-
} catch (err) {
|
|
204
|
-
_iterator3.e(err);
|
|
205
|
-
} finally {
|
|
206
|
-
_iterator3.f();
|
|
207
|
-
}
|
|
208
|
-
}
|
|
209
|
-
};
|
|
210
|
-
function dispatchEvent(args) {
|
|
211
|
-
actions[args.eventName](args);
|
|
212
|
-
}
|
|
213
|
-
function getIsOver(_ref5) {
|
|
214
|
-
var source = _ref5.source,
|
|
215
|
-
target = _ref5.target,
|
|
216
|
-
input = _ref5.input,
|
|
217
|
-
current = _ref5.current;
|
|
218
|
-
var actual = getActualDropTargets({
|
|
219
|
-
source: source,
|
|
220
|
-
target: target,
|
|
221
|
-
input: input
|
|
222
|
-
});
|
|
223
|
-
|
|
224
|
-
// stickiness is only relevant when we have less
|
|
225
|
-
// drop targets than we did before
|
|
226
|
-
if (actual.length >= current.length) {
|
|
227
|
-
return actual;
|
|
228
|
-
}
|
|
229
|
-
|
|
230
|
-
// less 'actual' drop targets than before,
|
|
231
|
-
// we need to see if 'stickiness' applies
|
|
232
|
-
|
|
233
|
-
// An old drop target will continue to be dropped on if:
|
|
234
|
-
// 1. it has the same parent
|
|
235
|
-
// 2. nothing exists in it's previous index
|
|
236
|
-
|
|
237
|
-
var lastCaptureOrdered = copyReverse(current);
|
|
238
|
-
var actualCaptureOrdered = copyReverse(actual);
|
|
239
|
-
var resultCaptureOrdered = [];
|
|
240
|
-
for (var index = 0; index < lastCaptureOrdered.length; index++) {
|
|
241
|
-
var _argsForLast$getIsSti;
|
|
242
|
-
var last = lastCaptureOrdered[index];
|
|
243
|
-
var fresh = actualCaptureOrdered[index];
|
|
244
|
-
|
|
245
|
-
// if a record is in the new index -> use that
|
|
246
|
-
// it will have the latest data + dropEffect
|
|
247
|
-
if (fresh != null) {
|
|
248
|
-
resultCaptureOrdered.push(fresh);
|
|
249
|
-
continue;
|
|
250
|
-
}
|
|
251
|
-
|
|
252
|
-
// At this point we have no drop target in the old spot
|
|
253
|
-
// Check to see if we can use a previous sticky drop target
|
|
254
|
-
|
|
255
|
-
// The "parent" is the one inside of `resultCaptureOrdered`
|
|
256
|
-
// (the parent might be a drop target that was sticky)
|
|
257
|
-
var parent = resultCaptureOrdered[index - 1];
|
|
258
|
-
var lastParent = lastCaptureOrdered[index - 1];
|
|
259
|
-
|
|
260
|
-
// Stickiness is based on parent relationships, so if the parent relationship has change
|
|
261
|
-
// then we can stop our search
|
|
262
|
-
if ((parent === null || parent === undefined ? undefined : parent.element) !== (lastParent === null || lastParent === undefined ? undefined : lastParent.element)) {
|
|
263
|
-
break;
|
|
264
|
-
}
|
|
265
|
-
|
|
266
|
-
// We need to check whether the old drop target can still be dropped on
|
|
267
|
-
|
|
268
|
-
var argsForLast = registry.get(last.element);
|
|
269
|
-
|
|
270
|
-
// We cannot drop on a drop target that is no longer mounted
|
|
271
|
-
if (!argsForLast) {
|
|
272
|
-
break;
|
|
273
|
-
}
|
|
274
|
-
var feedback = {
|
|
275
|
-
input: input,
|
|
276
|
-
source: source,
|
|
277
|
-
element: argsForLast.element
|
|
278
|
-
};
|
|
279
|
-
|
|
280
|
-
// We cannot drop on a drop target that no longer allows being dropped on
|
|
281
|
-
if (argsForLast.canDrop && !argsForLast.canDrop(feedback)) {
|
|
282
|
-
break;
|
|
283
|
-
}
|
|
284
|
-
|
|
285
|
-
// We cannot drop on a drop target that is no longer sticky
|
|
286
|
-
if (!((_argsForLast$getIsSti = argsForLast.getIsSticky) !== null && _argsForLast$getIsSti !== undefined && _argsForLast$getIsSti.call(argsForLast, feedback))) {
|
|
287
|
-
break;
|
|
288
|
-
}
|
|
289
|
-
|
|
290
|
-
// Note: intentionally not recollecting `getData()` or `getDropEffect()`
|
|
291
|
-
// Previous values for `data` and `dropEffect` will be borrowed
|
|
292
|
-
// This is to prevent things like the 'closest edge' changing when
|
|
293
|
-
// no longer over a drop target.
|
|
294
|
-
// We could change our mind on this behaviour in the future
|
|
295
|
-
|
|
296
|
-
resultCaptureOrdered.push(_objectSpread(_objectSpread({}, last), {}, {
|
|
297
|
-
// making it clear to consumers this drop target is active due to stickiness
|
|
298
|
-
isActiveDueToStickiness: true
|
|
299
|
-
}));
|
|
300
|
-
}
|
|
301
|
-
|
|
302
|
-
// return bubble ordered result
|
|
303
|
-
return copyReverse(resultCaptureOrdered);
|
|
304
|
-
}
|
|
305
|
-
return {
|
|
306
|
-
dropTargetForConsumers: dropTargetForConsumers,
|
|
307
|
-
getIsOver: getIsOver,
|
|
308
|
-
dispatchEvent: dispatchEvent
|
|
309
|
-
};
|
|
310
|
-
}
|
|
311
|
-
|
|
312
|
-
export { makeDropTarget };
|
package/dist/external/@atlaskit/pragmatic-drag-and-drop/dist/esm/make-adapter/make-monitor.js
DELETED
|
@@ -1,96 +0,0 @@
|
|
|
1
|
-
import _defineProperty from '../../../external/@babel/runtime/helpers/esm/defineProperty.js';
|
|
2
|
-
|
|
3
|
-
function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike) { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it.return != null) it.return(); } finally { if (didErr) throw err; } } }; }
|
|
4
|
-
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
5
|
-
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
6
|
-
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
7
|
-
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), true).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
8
|
-
function makeMonitor() {
|
|
9
|
-
var registry = new Set();
|
|
10
|
-
var dragging = null;
|
|
11
|
-
function tryAddToActive(monitor) {
|
|
12
|
-
if (!dragging) {
|
|
13
|
-
return;
|
|
14
|
-
}
|
|
15
|
-
// Monitor is allowed to monitor events if:
|
|
16
|
-
// 1. It has no `canMonitor` function (default is that a monitor can listen to everything)
|
|
17
|
-
// 2. `canMonitor` returns true
|
|
18
|
-
if (!monitor.canMonitor || monitor.canMonitor(dragging.canMonitorArgs)) {
|
|
19
|
-
dragging.active.add(monitor);
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
function monitorForConsumers(args) {
|
|
23
|
-
// We are giving each `args` a new reference so that you
|
|
24
|
-
// can create multiple monitors with the same `args`.
|
|
25
|
-
var entry = _objectSpread({}, args);
|
|
26
|
-
registry.add(entry);
|
|
27
|
-
|
|
28
|
-
// if there is an active drag we need to see if this new monitor is relevant
|
|
29
|
-
tryAddToActive(entry);
|
|
30
|
-
return function cleanup() {
|
|
31
|
-
registry.delete(entry);
|
|
32
|
-
|
|
33
|
-
// We need to stop publishing events during a drag to this monitor!
|
|
34
|
-
if (dragging) {
|
|
35
|
-
dragging.active.delete(entry);
|
|
36
|
-
}
|
|
37
|
-
};
|
|
38
|
-
}
|
|
39
|
-
function dispatchEvent(_ref) {
|
|
40
|
-
var eventName = _ref.eventName,
|
|
41
|
-
payload = _ref.payload;
|
|
42
|
-
if (eventName === 'onGenerateDragPreview') {
|
|
43
|
-
dragging = {
|
|
44
|
-
canMonitorArgs: {
|
|
45
|
-
initial: payload.location.initial,
|
|
46
|
-
source: payload.source
|
|
47
|
-
},
|
|
48
|
-
active: new Set()
|
|
49
|
-
};
|
|
50
|
-
var _iterator = _createForOfIteratorHelper(registry),
|
|
51
|
-
_step;
|
|
52
|
-
try {
|
|
53
|
-
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
54
|
-
var monitor = _step.value;
|
|
55
|
-
tryAddToActive(monitor);
|
|
56
|
-
}
|
|
57
|
-
} catch (err) {
|
|
58
|
-
_iterator.e(err);
|
|
59
|
-
} finally {
|
|
60
|
-
_iterator.f();
|
|
61
|
-
}
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
// This should never happen.
|
|
65
|
-
if (!dragging) {
|
|
66
|
-
return;
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
// Creating an array from the set _before_ iterating
|
|
70
|
-
// This is so that monitors added during the current event will not be called.
|
|
71
|
-
// This behaviour matches native EventTargets where an event listener
|
|
72
|
-
// cannot add another event listener during an active event to the same
|
|
73
|
-
// event target in the same event (for us we have a single global event target)
|
|
74
|
-
var active = Array.from(dragging.active);
|
|
75
|
-
for (var _i = 0, _active = active; _i < _active.length; _i++) {
|
|
76
|
-
var _monitor = _active[_i];
|
|
77
|
-
// A monitor can be removed by another monitor during an event.
|
|
78
|
-
// We need to check that the monitor is still registered before calling it
|
|
79
|
-
if (dragging.active.has(_monitor)) {
|
|
80
|
-
var _monitor$eventName;
|
|
81
|
-
// @ts-expect-error: I cannot get this type working!
|
|
82
|
-
(_monitor$eventName = _monitor[eventName]) === null || _monitor$eventName === undefined || _monitor$eventName.call(_monitor, payload);
|
|
83
|
-
}
|
|
84
|
-
}
|
|
85
|
-
if (eventName === 'onDrop') {
|
|
86
|
-
dragging.active.clear();
|
|
87
|
-
dragging = null;
|
|
88
|
-
}
|
|
89
|
-
}
|
|
90
|
-
return {
|
|
91
|
-
dispatchEvent: dispatchEvent,
|
|
92
|
-
monitorForConsumers: monitorForConsumers
|
|
93
|
-
};
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
export { makeMonitor };
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
/** Create a new combined function that will call all the provided functions */
|
|
2
|
-
function combine() {
|
|
3
|
-
for (var _len = arguments.length, fns = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
4
|
-
fns[_key] = arguments[_key];
|
|
5
|
-
}
|
|
6
|
-
return function cleanup() {
|
|
7
|
-
fns.forEach(function (fn) {
|
|
8
|
-
return fn();
|
|
9
|
-
});
|
|
10
|
-
};
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
export { combine };
|
package/dist/external/@atlaskit/pragmatic-drag-and-drop/dist/esm/public-utils/external/file.js
DELETED
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
function containsFiles(_ref) {
|
|
2
|
-
var source = _ref.source;
|
|
3
|
-
return source.types.includes('Files');
|
|
4
|
-
}
|
|
5
|
-
|
|
6
|
-
/** Obtain an array of the dragged `File`s */
|
|
7
|
-
function getFiles(_ref2) {
|
|
8
|
-
var source = _ref2.source;
|
|
9
|
-
return source.items
|
|
10
|
-
// unlike other media types, for files:
|
|
11
|
-
// item.kind is 'file'
|
|
12
|
-
// item.type is the type of file eg 'image/jpg'
|
|
13
|
-
// for other media types, item.type is the mime format
|
|
14
|
-
.filter(function (item) {
|
|
15
|
-
return item.kind === 'file';
|
|
16
|
-
}).map(function (item) {
|
|
17
|
-
return item.getAsFile();
|
|
18
|
-
}).filter(function (file) {
|
|
19
|
-
return file != null;
|
|
20
|
-
});
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
export { containsFiles, getFiles };
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
/** Provide a function that you only ever want to be called a single time */
|
|
2
|
-
function once(fn) {
|
|
3
|
-
var cache = null;
|
|
4
|
-
return function wrapped() {
|
|
5
|
-
if (!cache) {
|
|
6
|
-
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
7
|
-
args[_key] = arguments[_key];
|
|
8
|
-
}
|
|
9
|
-
var result = fn.apply(this, args);
|
|
10
|
-
cache = {
|
|
11
|
-
result: result
|
|
12
|
-
};
|
|
13
|
-
}
|
|
14
|
-
return cache.result;
|
|
15
|
-
};
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
export { once };
|
package/dist/external/@atlaskit/pragmatic-drag-and-drop/dist/esm/public-utils/prevent-unhandled.js
DELETED
|
@@ -1,102 +0,0 @@
|
|
|
1
|
-
import _toConsumableArray from '../../../external/@babel/runtime/helpers/esm/toConsumableArray.js';
|
|
2
|
-
import { d as distExports } from '../../../../../../_virtual/index.js';
|
|
3
|
-
import { getBindingsForBrokenDrags } from '../util/detect-broken-drag.js';
|
|
4
|
-
|
|
5
|
-
function acceptDrop(event) {
|
|
6
|
-
// if the event is already prevented the event we don't need to do anything
|
|
7
|
-
if (event.defaultPrevented) {
|
|
8
|
-
return;
|
|
9
|
-
}
|
|
10
|
-
// Using "move" as the drop effect as that uses the standard
|
|
11
|
-
// cursor. Doing this so the user doesn't think they are dropping
|
|
12
|
-
// on the page
|
|
13
|
-
// Note: using "none" will not allow a "drop" to occur, so we are using "move"
|
|
14
|
-
if (event.dataTransfer) {
|
|
15
|
-
event.dataTransfer.dropEffect = 'move';
|
|
16
|
-
}
|
|
17
|
-
// cancel the default browser behaviour
|
|
18
|
-
// doing this will tell the browser that we have handled the drop
|
|
19
|
-
event.preventDefault();
|
|
20
|
-
}
|
|
21
|
-
var unbindEvents = null;
|
|
22
|
-
|
|
23
|
-
/**
|
|
24
|
-
* Block drag operations outside of `@atlaskit/pragmatic-drag-and-drop`
|
|
25
|
-
*/
|
|
26
|
-
function start() {
|
|
27
|
-
cleanup();
|
|
28
|
-
unbindEvents = distExports.bindAll(window, [{
|
|
29
|
-
type: 'dragover',
|
|
30
|
-
listener: acceptDrop
|
|
31
|
-
}, {
|
|
32
|
-
type: 'dragenter',
|
|
33
|
-
listener: acceptDrop
|
|
34
|
-
}, {
|
|
35
|
-
type: 'drop',
|
|
36
|
-
listener: function listener(event) {
|
|
37
|
-
// our lifecycle manager already prevents events, but just being super safe
|
|
38
|
-
event.preventDefault();
|
|
39
|
-
|
|
40
|
-
// not setting dropEffect, as `drop.dropEffect` has already been published to the user
|
|
41
|
-
// (lifecycle-manager binds events in the capture phase)
|
|
42
|
-
|
|
43
|
-
// we don't need to wait for "dragend", and "dragend" might not even happen,
|
|
44
|
-
// such as when the draggable has been removed during a drag.
|
|
45
|
-
cleanup();
|
|
46
|
-
}
|
|
47
|
-
}, {
|
|
48
|
-
type: 'dragend',
|
|
49
|
-
listener: cleanup
|
|
50
|
-
}].concat(_toConsumableArray(getBindingsForBrokenDrags({
|
|
51
|
-
onDragEnd: cleanup
|
|
52
|
-
}))),
|
|
53
|
-
// being clear that these are added in the bubble phase
|
|
54
|
-
{
|
|
55
|
-
capture: false
|
|
56
|
-
});
|
|
57
|
-
}
|
|
58
|
-
function cleanup() {
|
|
59
|
-
var _unbindEvents;
|
|
60
|
-
(_unbindEvents = unbindEvents) === null || _unbindEvents === undefined || _unbindEvents();
|
|
61
|
-
unbindEvents = null;
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
/**
|
|
65
|
-
* TODO: for next major, we could look at do the following:
|
|
66
|
-
*
|
|
67
|
-
* ```diff
|
|
68
|
-
* - preventUnhandled.start();
|
|
69
|
-
* - preventUnhandled.stop();
|
|
70
|
-
* + const stop = preventUnhandled();
|
|
71
|
-
* ```
|
|
72
|
-
*/
|
|
73
|
-
|
|
74
|
-
function stop() {
|
|
75
|
-
var _window$event;
|
|
76
|
-
/**
|
|
77
|
-
* if `stop()` is called in a `"drop"` event, then `event.preventDefault()` won't be called.
|
|
78
|
-
* Our `"drop"` listener calls `event.preventDefault()` for handled drop events
|
|
79
|
-
* ("drop" events caused by dropping over a drop target)
|
|
80
|
-
* `preventUnhandled()` causes every element to become a drop target (according to the browser)
|
|
81
|
-
*
|
|
82
|
-
* To opt out of the default behaviour for a `"drop"` event, we need to make sure
|
|
83
|
-
* that we cancel it.
|
|
84
|
-
*
|
|
85
|
-
* The `"drop"` event listener in core is in the `capture` phase, so people calling
|
|
86
|
-
* `preventUnhandled.stop()` in `onDrop()` will remove the `"drop"` event listener in this
|
|
87
|
-
* file before it has the chance to cancel the event.
|
|
88
|
-
*
|
|
89
|
-
* Being sneaky and using the `window.event` global to sniff out the current event
|
|
90
|
-
*/
|
|
91
|
-
if (((_window$event = window.event) === null || _window$event === undefined ? undefined : _window$event.type) === 'drop') {
|
|
92
|
-
var _window$event2;
|
|
93
|
-
(_window$event2 = window.event) === null || _window$event2 === undefined || _window$event2.preventDefault();
|
|
94
|
-
}
|
|
95
|
-
cleanup();
|
|
96
|
-
}
|
|
97
|
-
var preventUnhandled = {
|
|
98
|
-
start: start,
|
|
99
|
-
stop: stop
|
|
100
|
-
};
|
|
101
|
-
|
|
102
|
-
export { preventUnhandled };
|