@ckbox/components 2.5.0 → 2.5.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -4
- package/dist/index.d.ts +50 -1
- package/dist/index.js +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -13,7 +13,7 @@ Using a build served from the CDN is the simplest and fastest way of embedding C
|
|
|
13
13
|
To start using CKBox on your website, embed the following `script` element in the HTML code of the page:
|
|
14
14
|
|
|
15
15
|
```html
|
|
16
|
-
<script src="https://cdn.ckbox.io/ckbox/2.5.
|
|
16
|
+
<script src="https://cdn.ckbox.io/ckbox/2.5.1/ckbox.js"></script>
|
|
17
17
|
```
|
|
18
18
|
|
|
19
19
|
Quick implementation example:
|
|
@@ -23,7 +23,7 @@ Quick implementation example:
|
|
|
23
23
|
<html>
|
|
24
24
|
<head>
|
|
25
25
|
<meta charset="UTF-8" />
|
|
26
|
-
<script src="https://cdn.ckbox.io/ckbox/2.5.
|
|
26
|
+
<script src="https://cdn.ckbox.io/ckbox/2.5.1/ckbox.js"></script>
|
|
27
27
|
</head>
|
|
28
28
|
<body>
|
|
29
29
|
<div id="ckbox"></div>
|
|
@@ -48,10 +48,10 @@ The code snippet below presents the simplest scenario for integration of CKEdito
|
|
|
48
48
|
<html>
|
|
49
49
|
<head>
|
|
50
50
|
<meta charset="UTF-8" />
|
|
51
|
-
<script src="https://cdn.ckbox.io/ckbox/2.5.
|
|
51
|
+
<script src="https://cdn.ckbox.io/ckbox/2.5.1/ckbox.js"></script>
|
|
52
52
|
<link
|
|
53
53
|
rel="stylesheet"
|
|
54
|
-
href="https://cdn.ckbox.io/ckbox/2.5.
|
|
54
|
+
href="https://cdn.ckbox.io/ckbox/2.5.1/styles/themes/lark.css"
|
|
55
55
|
/>
|
|
56
56
|
<link rel="stylesheet" href="https://cdn.ckeditor.com/ckeditor5/42.0.0/ckeditor5.css" />
|
|
57
57
|
</head>
|
package/dist/index.d.ts
CHANGED
|
@@ -3457,6 +3457,16 @@ declare const useElementVisibility: (element?: HTMLElement | null, scrollableCon
|
|
|
3457
3457
|
visible: boolean;
|
|
3458
3458
|
};
|
|
3459
3459
|
|
|
3460
|
+
interface DropItem {
|
|
3461
|
+
/**
|
|
3462
|
+
* List of transferred files.
|
|
3463
|
+
*/
|
|
3464
|
+
files: File[];
|
|
3465
|
+
/**
|
|
3466
|
+
* List of `DataTransferItem` objects representing items being dragged.
|
|
3467
|
+
*/
|
|
3468
|
+
items: DataTransferItemList;
|
|
3469
|
+
}
|
|
3460
3470
|
interface DropFile {
|
|
3461
3471
|
/**
|
|
3462
3472
|
* File object.
|
|
@@ -3485,6 +3495,45 @@ declare const useFilesDrop: ({ onDrop }: UseFilesDropProps) => {
|
|
|
3485
3495
|
isActive: boolean;
|
|
3486
3496
|
};
|
|
3487
3497
|
|
|
3498
|
+
/**
|
|
3499
|
+
* Wraps `readEntries` with a promise for convenience.
|
|
3500
|
+
*
|
|
3501
|
+
* @param directoryReader instance of directory reader
|
|
3502
|
+
* @returns list of files and / or directories
|
|
3503
|
+
*/
|
|
3504
|
+
declare const readEntriesPromise: (directoryReader: FileSystemDirectoryReader) => Promise<FileSystemEntry[]>;
|
|
3505
|
+
/**
|
|
3506
|
+
* Geta all entries (files or directories) in a directory.
|
|
3507
|
+
*
|
|
3508
|
+
* @param directoryReader instance of directory reader
|
|
3509
|
+
* @returns list of files and / or directories
|
|
3510
|
+
*/
|
|
3511
|
+
declare const readAllDirectoryEntries: (directoryReader: FileSystemDirectoryReader) => Promise<FileSystemEntry[]>;
|
|
3512
|
+
/**
|
|
3513
|
+
* Gets all files from the provided list of dropped items.
|
|
3514
|
+
* Traverses all provided folders to extract files.
|
|
3515
|
+
*
|
|
3516
|
+
* @param dataTransferItemList items being dragged
|
|
3517
|
+
* @returns list of files
|
|
3518
|
+
*/
|
|
3519
|
+
declare const getAllFileEntries: (dataTransferItemList: DataTransferItemList) => Promise<FileSystemFileEntry[]>;
|
|
3520
|
+
/**
|
|
3521
|
+
* Gets all files from the provided list of dropped items.
|
|
3522
|
+
* Traverses all provided folders to extract files.
|
|
3523
|
+
*
|
|
3524
|
+
* Each item in the resulting list contains dopped file and path to that file.
|
|
3525
|
+
*
|
|
3526
|
+
* @param dataTransferItemList items being dragged
|
|
3527
|
+
* @returns list of files
|
|
3528
|
+
*/
|
|
3529
|
+
declare const getAllFiles: (dataTransferItemList: DataTransferItemList) => Promise<DropFile[]>;
|
|
3530
|
+
/**
|
|
3531
|
+
* Checks if a DropFile array contains any folders.
|
|
3532
|
+
*
|
|
3533
|
+
* @param files list of files to check
|
|
3534
|
+
*/
|
|
3535
|
+
declare const checkIfDropFilesHaveFolders: (files: DropFile[]) => boolean;
|
|
3536
|
+
|
|
3488
3537
|
/**
|
|
3489
3538
|
* Utility hook allowing syncing two refs.
|
|
3490
3539
|
*
|
|
@@ -6114,4 +6163,4 @@ interface Props {
|
|
|
6114
6163
|
className?: string;
|
|
6115
6164
|
}
|
|
6116
6165
|
|
|
6117
|
-
export { Avatar, Bottombar, Button, type ButtonColor, ButtonGroup, ButtonRow, type ButtonSize, type ButtonType, COLLAPSE_THRESHOLD, CONTAINER_QUERY_BREAKPOINTS, CROPPER_FLIP_FACTOR, CROPPER_FULL_ROTATION, CROPPER_INIT_SCALE, CROPPER_MIN_ZOOM_VALUE, CROPPER_ROTATION_ANGLE, CROPPER_ZOOM_FACTOR, CROPPER_ZOOM_STEP, CROPPER_ZOOM_STEP_FINE, CROPPER_ZOOM_THRESHOLD, Checkbox, CheckboxLabel, CircularLoader, ContainerQuery, ContainerQueryProvider, CopyButton, CopyableInput, CopyableLabel, type CropperDimensions, type CropperLockedDimension, Dialog, DialogActions, DialogColumn, DialogFooter, DialogHeader, DialogNext, DialogNextCloseButton, DialogNextColumn, DialogNextContent, DialogNextFooter, DialogNextHeader, DialogNextSeparator, DialogNextTitle, DialogProgressHeader, DialogRow, DialogSection, type Dimensions, DocIcon, type DocIconName, type DragDimensionsHandler, type DragHandler, type DraggableOptions, type DraggableState, Drawer, DrawerActions, DrawerContent, DrawerHeader, DrawerSection, Ellipsis, EmptyView, EmptyViewLabel, FileInput, FilePreview, FilePreviewActions, FilePreviewColumn, FilePreviewContent, FilePreviewHoverable, FilePreviewNavButton, FilePreviewTooltip, Fixed, FixedContext, FixedProvider, Form, FormFeedback, FormGroup, FormGroupColumn, FormGroupInfo, FormInputLabel, Gallery, GalleryFigure, GalleryItem, Icon, type IconColor, type IconName, type IconRenderProp, type IconRenderer, type IconSize, ImageEditor, ImageEditorActions, ImageEditorApplyButton, ImageEditorButtonsGroup, ImageEditorButtonsRow, ImageEditorCanvas, ImageEditorContent, ImageEditorContext, ImageEditorCropBoxDimensions, ImageEditorCropCard, ImageEditorCropCardFreeform, ImageEditorCropCardList, ImageEditorCropCardOriginal, ImageEditorDemoLabel, ImageEditorDimensionsInput, type ImageEditorEditingResult, ImageEditorFlipHorizontalButton, ImageEditorFlipVerticalButton, ImageEditorLoader, ImageEditorMenu, ImageEditorMenuContainer, ImageEditorMenuSection, ImageEditorMenuSubSection, type ImageEditorPresetGroup, type ImageEditorPresetOption, ImageEditorPresetSelect, ImageEditorPreviewContext, ImageEditorResetButton, ImageEditorResizeDimensions, ImageEditorRotateLeftButton, ImageEditorRotateRightButton, ImageEditorSaveDialog, ImageEditorSaveDialogActions, ImageEditorSaveDialogCanvas, ImageEditorPreviewCloseButton as ImageEditorSaveDialogCloseButton, ImageEditorSaveDialogHeader, ImageEditorSaveDialogImage, ImageEditorSaveDialogInfo, ImageEditorSaveDialogPreview, ImageEditorSaveDialogSaveButton, ImageEditorSaveDialogSection, ImageEditorToolbar, ImageEditorToolbarFlipHorizontalButton, ImageEditorToolbarFlipVerticalButton, ImageEditorToolbarImageSize, ImageEditorToolbarRotateLeftButton, ImageEditorToolbarRotateRightButton, ImageEditorToolbarSection, ImageEditorToolbarZoomInButton, ImageEditorToolbarZoomOutButton, ImageEditorToolbarZoomValue, ImageEditorWorkspace, type KeyAction, type KeyCombination, type KeyEventLike, type KeyModifier, type KeyProps, Link, List, type ListDndChildProps, type ListDndItem, type ListDndItemHookProps, type ListDndMoveItem, type ListDndOnDragEnd, type ListDndSetDraggable, type ListDndSetDraggablePartial, ListItem, ListItemActions, ListItemContent, type ListboxProps, LoadingButton, Menu, MenuItem, MenuSection, MenuSubSection, ModalDialog, ModalDialogActionContent, ModalDialogActionItem, ModalDialogCallout, ModalDialogContent, ModalDialogContentColumn, ModalDialogFooter, ModalDialogFooterAction, ModalDialogHeader, ModalDialogList, ModalDialogListItem, MouseEventButton, NAVBAR_COLLAPSED_WIDTH, NAVBAR_LOADING_DELAY, NAVBAR_MAX_WIDTH, NAVBAR_MIN_WIDTH, NAVBAR_PREVIEW_TIMEOUT, Navbar, NavbarContext, NavbarItem, NavbarItemContainer, NavbarItemContent, NavbarItemLabel, NavbarItemsGroup, NavbarLink, NavbarScrollableContent, NavbarSeparator, NavbarToggleButton, NavigationDialog, NavigationDialogContent, NavigationDialogFallbackContent, NavigationDialogFooter, NavigationDialogHeader, NavigationDialogItem, NavigationDialogItemAction, NavigationDialogItemLabel, Notification, Notifications, type OnScrollHandler, Modal as Overlay, Pagination, Panel, PanelActions, PanelColumn, PanelContent, PanelContentProp, PanelDescriptionItem, PanelDragHandle, PanelList, PanelListDivider, PanelSide, PanelSkeleton, PanelTitle, PdfViewer, type PermissionMap, type PermissionName, PermissionTag, Permissions, PermissionsActions, PermissionsContent, PermissionsForm, PermissionsFormGroup, PermissionsFormInput, PermissionsManagementPanel, PermissionsManagementPanelHeader, PermissionsManagementPanelRulesHeader, PermissionsPanel, PermissionsScopeHeader, PermissionsScopeList, PermissionsTitle, Pill, Pills, Popper, type PopperAnchorRef, PopperArrow, PopperContext, type PopperOffset, type PopperOffsetValue, type PopperPlacement, ProgressPanel, PropertiesTable, PropertiesTableRow, type Props$3p as Props, type RInterval, RangeSlider, type ResizeOptions, ResponsiveImage, ResponsiveImageFallback, ResponsiveImageFit, ResponsiveImageScalable, ResponsiveImageSkeleton, type ScrollCoordsConfig, type ScrollOptions, SearchDialog, SearchDialogActions, SearchDialogContent, SearchDialogFallback, SearchDialogHeader, SearchDialogInput, SearchDialogSection, Select, type SelectKeyboardNavProps, type SelectKeyboardNextIdGetter, SelectListboxGrid, type SelectOption, type SelectRenderableOption, type SelectSection, type SelectToggleHandler, SelectionArea, type SelectionAreaCoords, Skeleton, SortButton, SortableDndList, SortableDndListItem, Switch, SwitchInput, SwitchView, Tab, TabPanel, Table, TableBody, TableCell, TableContainer, TableHead, TableHeader, TableRow, TableToolbar, Tabs, Tag, TagInput, TagLabel, TagList, TextEllipsis, TextField, TextFieldInput, Textarea, type Props$c as TextareaProps, Tooltip, Topbar, TopbarAction, UIContext, UIProvider, type Props$1M as UIProviderProps, View, ViewContent, ViewContentBar, ViewContentWrapper, ViewDialog, type Props$1N as ViewDialogProps, ViewFooter, ViewHeader, ViewPaper, ViewSideContent, ViewWrapper, type XYCoord, areItemsIdentical, base64FromBlurHash, clamp, clsx, formatTimeDistance, getClampedDimension, getClampedDimensions, getKeyHandler, getPixelCountFromImageBlob, getScrollVectors, getStandardDeviation, getValidChildren, hasOwnProperty, imageEditorContextDefaultValue, imageEditorPreviewContextDefaultValue, isClipboardItemSupported, matchesCombination, navbarContextInitProps, noOp, rInterval, readFromClipboard, tryReadFromClipboard, tryWriteTextToClipboard, tryWriteToClipboard, uiContextInitProps, useBatchUpdate, useClickAway, useContainerKeyDown, useContainerQuery, useCropper, useCropperCrop, useCropperRotate, useCropperScale, useCropperZoom, useDeferredLoader, useDeferredUnmount, useDelay, useDownload, useDraggable, useElementVisibility, useFilesDrop, useFixedCtx, useForkRef, useGridSelection, useImageEditorContext, useImageEditorPreviewContext, useIsMounted, useIsomorphicLayoutEffect, useItemsOverflow, useListDnd, useNavbarCtx, usePopperCtx, useResettableTimeout, useResize, useResponsiveSizes, useScaleDown, useScroll, useScrollDnd, useToggle, useUIContext, validators_d as validators, writeTextToClipboard, writeToClipboard };
|
|
6166
|
+
export { Avatar, Bottombar, Button, type ButtonColor, ButtonGroup, ButtonRow, type ButtonSize, type ButtonType, COLLAPSE_THRESHOLD, CONTAINER_QUERY_BREAKPOINTS, CROPPER_FLIP_FACTOR, CROPPER_FULL_ROTATION, CROPPER_INIT_SCALE, CROPPER_MIN_ZOOM_VALUE, CROPPER_ROTATION_ANGLE, CROPPER_ZOOM_FACTOR, CROPPER_ZOOM_STEP, CROPPER_ZOOM_STEP_FINE, CROPPER_ZOOM_THRESHOLD, Checkbox, CheckboxLabel, CircularLoader, ContainerQuery, ContainerQueryProvider, CopyButton, CopyableInput, CopyableLabel, type CropperDimensions, type CropperLockedDimension, Dialog, DialogActions, DialogColumn, DialogFooter, DialogHeader, DialogNext, DialogNextCloseButton, DialogNextColumn, DialogNextContent, DialogNextFooter, DialogNextHeader, DialogNextSeparator, DialogNextTitle, DialogProgressHeader, DialogRow, DialogSection, type Dimensions, DocIcon, type DocIconName, type DragDimensionsHandler, type DragHandler, type DraggableOptions, type DraggableState, Drawer, DrawerActions, DrawerContent, DrawerHeader, DrawerSection, type DropFile, type DropItem, Ellipsis, EmptyView, EmptyViewLabel, FileInput, FilePreview, FilePreviewActions, FilePreviewColumn, FilePreviewContent, FilePreviewHoverable, FilePreviewNavButton, FilePreviewTooltip, Fixed, FixedContext, FixedProvider, Form, FormFeedback, FormGroup, FormGroupColumn, FormGroupInfo, FormInputLabel, Gallery, GalleryFigure, GalleryItem, Icon, type IconColor, type IconName, type IconRenderProp, type IconRenderer, type IconSize, ImageEditor, ImageEditorActions, ImageEditorApplyButton, ImageEditorButtonsGroup, ImageEditorButtonsRow, ImageEditorCanvas, ImageEditorContent, ImageEditorContext, ImageEditorCropBoxDimensions, ImageEditorCropCard, ImageEditorCropCardFreeform, ImageEditorCropCardList, ImageEditorCropCardOriginal, ImageEditorDemoLabel, ImageEditorDimensionsInput, type ImageEditorEditingResult, ImageEditorFlipHorizontalButton, ImageEditorFlipVerticalButton, ImageEditorLoader, ImageEditorMenu, ImageEditorMenuContainer, ImageEditorMenuSection, ImageEditorMenuSubSection, type ImageEditorPresetGroup, type ImageEditorPresetOption, ImageEditorPresetSelect, ImageEditorPreviewContext, ImageEditorResetButton, ImageEditorResizeDimensions, ImageEditorRotateLeftButton, ImageEditorRotateRightButton, ImageEditorSaveDialog, ImageEditorSaveDialogActions, ImageEditorSaveDialogCanvas, ImageEditorPreviewCloseButton as ImageEditorSaveDialogCloseButton, ImageEditorSaveDialogHeader, ImageEditorSaveDialogImage, ImageEditorSaveDialogInfo, ImageEditorSaveDialogPreview, ImageEditorSaveDialogSaveButton, ImageEditorSaveDialogSection, ImageEditorToolbar, ImageEditorToolbarFlipHorizontalButton, ImageEditorToolbarFlipVerticalButton, ImageEditorToolbarImageSize, ImageEditorToolbarRotateLeftButton, ImageEditorToolbarRotateRightButton, ImageEditorToolbarSection, ImageEditorToolbarZoomInButton, ImageEditorToolbarZoomOutButton, ImageEditorToolbarZoomValue, ImageEditorWorkspace, type KeyAction, type KeyCombination, type KeyEventLike, type KeyModifier, type KeyProps, Link, List, type ListDndChildProps, type ListDndItem, type ListDndItemHookProps, type ListDndMoveItem, type ListDndOnDragEnd, type ListDndSetDraggable, type ListDndSetDraggablePartial, ListItem, ListItemActions, ListItemContent, type ListboxProps, LoadingButton, Menu, MenuItem, MenuSection, MenuSubSection, ModalDialog, ModalDialogActionContent, ModalDialogActionItem, ModalDialogCallout, ModalDialogContent, ModalDialogContentColumn, ModalDialogFooter, ModalDialogFooterAction, ModalDialogHeader, ModalDialogList, ModalDialogListItem, MouseEventButton, NAVBAR_COLLAPSED_WIDTH, NAVBAR_LOADING_DELAY, NAVBAR_MAX_WIDTH, NAVBAR_MIN_WIDTH, NAVBAR_PREVIEW_TIMEOUT, Navbar, NavbarContext, NavbarItem, NavbarItemContainer, NavbarItemContent, NavbarItemLabel, NavbarItemsGroup, NavbarLink, NavbarScrollableContent, NavbarSeparator, NavbarToggleButton, NavigationDialog, NavigationDialogContent, NavigationDialogFallbackContent, NavigationDialogFooter, NavigationDialogHeader, NavigationDialogItem, NavigationDialogItemAction, NavigationDialogItemLabel, Notification, Notifications, type OnScrollHandler, Modal as Overlay, Pagination, Panel, PanelActions, PanelColumn, PanelContent, PanelContentProp, PanelDescriptionItem, PanelDragHandle, PanelList, PanelListDivider, PanelSide, PanelSkeleton, PanelTitle, PdfViewer, type PermissionMap, type PermissionName, PermissionTag, Permissions, PermissionsActions, PermissionsContent, PermissionsForm, PermissionsFormGroup, PermissionsFormInput, PermissionsManagementPanel, PermissionsManagementPanelHeader, PermissionsManagementPanelRulesHeader, PermissionsPanel, PermissionsScopeHeader, PermissionsScopeList, PermissionsTitle, Pill, Pills, Popper, type PopperAnchorRef, PopperArrow, PopperContext, type PopperOffset, type PopperOffsetValue, type PopperPlacement, ProgressPanel, PropertiesTable, PropertiesTableRow, type Props$3p as Props, type RInterval, RangeSlider, type ResizeOptions, ResponsiveImage, ResponsiveImageFallback, ResponsiveImageFit, ResponsiveImageScalable, ResponsiveImageSkeleton, type ScrollCoordsConfig, type ScrollOptions, SearchDialog, SearchDialogActions, SearchDialogContent, SearchDialogFallback, SearchDialogHeader, SearchDialogInput, SearchDialogSection, Select, type SelectKeyboardNavProps, type SelectKeyboardNextIdGetter, SelectListboxGrid, type SelectOption, type SelectRenderableOption, type SelectSection, type SelectToggleHandler, SelectionArea, type SelectionAreaCoords, Skeleton, SortButton, SortableDndList, SortableDndListItem, Switch, SwitchInput, SwitchView, Tab, TabPanel, Table, TableBody, TableCell, TableContainer, TableHead, TableHeader, TableRow, TableToolbar, Tabs, Tag, TagInput, TagLabel, TagList, TextEllipsis, TextField, TextFieldInput, Textarea, type Props$c as TextareaProps, Tooltip, Topbar, TopbarAction, UIContext, UIProvider, type Props$1M as UIProviderProps, type UseFilesDropProps, View, ViewContent, ViewContentBar, ViewContentWrapper, ViewDialog, type Props$1N as ViewDialogProps, ViewFooter, ViewHeader, ViewPaper, ViewSideContent, ViewWrapper, type XYCoord, areItemsIdentical, base64FromBlurHash, checkIfDropFilesHaveFolders, clamp, clsx, formatTimeDistance, getAllFileEntries, getAllFiles, getClampedDimension, getClampedDimensions, getKeyHandler, getPixelCountFromImageBlob, getScrollVectors, getStandardDeviation, getValidChildren, hasOwnProperty, imageEditorContextDefaultValue, imageEditorPreviewContextDefaultValue, isClipboardItemSupported, matchesCombination, navbarContextInitProps, noOp, rInterval, readAllDirectoryEntries, readEntriesPromise, readFromClipboard, tryReadFromClipboard, tryWriteTextToClipboard, tryWriteToClipboard, uiContextInitProps, useBatchUpdate, useClickAway, useContainerKeyDown, useContainerQuery, useCropper, useCropperCrop, useCropperRotate, useCropperScale, useCropperZoom, useDeferredLoader, useDeferredUnmount, useDelay, useDownload, useDraggable, useElementVisibility, useFilesDrop, useFixedCtx, useForkRef, useGridSelection, useImageEditorContext, useImageEditorPreviewContext, useIsMounted, useIsomorphicLayoutEffect, useItemsOverflow, useListDnd, useNavbarCtx, usePopperCtx, useResettableTimeout, useResize, useResponsiveSizes, useScaleDown, useScroll, useScrollDnd, useToggle, useUIContext, validators_d as validators, writeTextToClipboard, writeToClipboard };
|