@bynder/compact-view 5.2.0 → 5.2.2
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/AccessToken.js +5 -0
- package/AccessToken2.js +176 -0
- package/AccessToken3.js +4 -0
- package/ActiveFilter.js +6 -6
- package/ActiveFilters.js +24 -25
- package/AddMedia.js +21 -22
- package/AdditionalInfo.js +18 -0
- package/Advanced.js +3 -4
- package/App.js +68 -61
- package/Arrow.js +14 -0
- package/AssetCard.js +68 -57
- package/AssetCardMetaproperties.js +14 -14
- package/AssetFilter.js +36 -36
- package/AssetFilterContext.js +3 -4
- package/AssetItem.js +14 -14
- package/AssetList.js +46 -46
- package/AssetTypeItem.js +13 -13
- package/AssetsView.js +0 -1
- package/Autocomplete_new.js +70 -82
- package/Axios2.js +136 -0
- package/AxiosError.js +54 -0
- package/AxiosHeaders.js +181 -0
- package/AxiosURLSearchParams.js +33 -0
- package/Badge.js +44 -0
- package/Baloon.js +42 -0
- package/BaseStyles.js +10 -0
- package/Blob.js +4 -0
- package/Box.js +22 -0
- package/Button.js +39 -0
- package/Button.styles.js +40 -0
- package/ButtonAction.js +3 -4
- package/ButtonLegacy.js +48 -0
- package/ButtonLegacy.styles.js +28 -0
- package/CancelToken.js +77 -0
- package/CanceledError.js +11 -0
- package/Card.js +84 -0
- package/CardSkeleton.js +15 -15
- package/Checkbox.js +85 -0
- package/Checkbox.styles.js +2 -3
- package/Checkmark.js +7 -0
- package/Chip.js +70 -41
- package/Chip2.js +42 -0
- package/CollectionCard.js +9 -9
- package/CollectionItem.js +15 -15
- package/CollectionList.js +2 -3
- package/CollectionView.js +2 -3
- package/CollectionsView.js +6 -7
- package/ColorHexInput.js +31 -0
- package/ColorPicker.js +66 -0
- package/ColorPickerSolid.js +20 -0
- package/ColorPickerWithOpacity.js +37 -0
- package/Combobox.js +61 -0
- package/ConcealedAction.js +16 -0
- package/ConfigContext.js +0 -1
- package/ConnectButton.js +1 -2
- package/Container.js +14 -14
- package/Container2.js +31 -0
- package/Content.js +16 -0
- package/ContextAction.js +26 -18
- package/ContextActionButton.js +29 -0
- package/ControlGroup.js +32 -0
- package/DOMFunctions.js +27 -0
- package/Dat.js +62 -51
- package/DatDropdownItem.js +20 -20
- package/DesignSystemContext.js +4 -5
- package/DesignSystemProvider.js +29 -0
- package/DirectionSelect.js +16 -16
- package/Divider.js +21 -0
- package/DocumentIcon.js +0 -1
- package/DomainInput.js +15 -15
- package/DragRange.js +25 -0
- package/DragSelect.js +68 -63
- package/Dropdown.js +12 -12
- package/Dropdown2.js +169 -0
- package/DropdownContent.js +54 -39
- package/DropdownListItem.js +3 -4
- package/Enum.js +12 -0
- package/ErrorIcon.js +0 -1
- package/ErrorMessage.js +20 -20
- package/FieldSelect.js +4 -5
- package/FilePlaceholder.js +19 -0
- package/FileSelector.js +126 -141
- package/Flex.js +21 -0
- package/FontPicker.js +104 -0
- package/Footer.js +16 -0
- package/Form.js +23 -0
- package/FormData.js +4 -0
- package/Frame.js +64 -0
- package/Group.js +17 -0
- package/Group2.js +26 -0
- package/Header.js +0 -1
- package/Header2.js +43 -0
- package/Header22.js +15 -0
- package/HelperText.js +26 -0
- package/HorizontalScroll.js +4 -5
- package/HttpHandler.js +74 -0
- package/HttpResponse.js +85 -0
- package/HttpStatusCode.js +71 -0
- package/IconPlaceholder.js +18 -0
- package/Image.js +19 -0
- package/Images.js +30 -0
- package/Indicator.js +74 -0
- package/InfiniteScroll.js +8 -9
- package/InlineBanner.js +51 -0
- package/Input.js +109 -0
- package/Input.styles.js +71 -0
- package/InputContainer.js +9 -0
- package/InputField.js +74 -0
- package/InputRow.js +18 -0
- package/Inspector.js +34 -0
- package/InteractiveIcon.js +28 -0
- package/InterceptorManager.js +58 -0
- package/Item.js +107 -0
- package/Item2.js +14 -0
- package/Item4.js +190 -0
- package/Label.js +33 -0
- package/LeftArrow.js +3 -4
- package/List.js +25 -0
- package/ListItem.js +11 -0
- package/ListItem2.js +58 -0
- package/ListItem4.js +37 -0
- package/LoginComponent.js +0 -1
- package/LoginContext.js +0 -1
- package/MetapropertyFilterContent.js +2 -3
- package/MetapropertyOption.js +2 -4
- package/Middleware.js +49 -0
- package/Middleware2.js +49 -0
- package/Modal.js +2 -3
- package/Modal2.js +31 -0
- package/ModalBase.js +117 -0
- package/ModalBase.styles.js +75 -0
- package/ModalConfirmation.js +8 -0
- package/NoResults.js +16 -16
- package/OffsetContext.js +9 -0
- package/Oops.js +1 -2
- package/OpacityInput.js +17 -0
- package/Option_new.js +19 -19
- package/Overlay.js +35 -0
- package/Parser.js +131 -0
- package/Prefixer.js +187 -0
- package/Radio.js +78 -0
- package/RadioGroup.js +25 -0
- package/RangeInput.js +41 -0
- package/RefreshingSpinner.js +3 -4
- package/ReportModal.js +16 -15
- package/RequestHandler.js +119 -0
- package/RightArrow.js +4 -5
- package/RootElementContext.js +0 -1
- package/Row.js +16 -0
- package/SearchInput.js +27 -23
- package/SearchInput2.js +46 -0
- package/SectionTitle.js +17 -0
- package/Select.js +49 -0
- package/SelectButtonText.js +16 -0
- package/SelectedItemContainer.js +11 -11
- package/SelectedItems.js +2 -3
- package/SelectionContext.js +0 -1
- package/SelectionFooter.js +8 -8
- package/Serializer.js +27 -0
- package/ShadowRoot.js +0 -1
- package/ShadowRootInternal.js +17 -18
- package/Shield.js +0 -1
- package/Sidebar.js +17 -0
- package/Skeleton.js +6 -7
- package/Slider.constants.js +6 -0
- package/Slider.js +128 -0
- package/SmartFilterContent.js +2 -3
- package/SmartFilterSelect_new.js +2 -3
- package/Smartfilters_new.js +86 -77
- package/Spinner.js +2 -3
- package/Spinner2.js +15 -0
- package/StatefulAssetList.js +15 -16
- package/Stats.js +16 -0
- package/StatsItem.js +23 -0
- package/Status.js +32 -0
- package/StoreInitializer.js +29 -0
- package/Styles.css.js +0 -1
- package/Switch.js +82 -0
- package/SwitchNLS.js +26 -24
- package/Tabs2.js +10 -0
- package/TagItem.js +8 -9
- package/Tags.js +9 -10
- package/Text2.js +11 -0
- package/Text22.js +18 -0
- package/Text4.js +18 -0
- package/Textarea.js +92 -0
- package/Theming.js +4 -5
- package/Thumb.js +28 -0
- package/Thumbnail.js +91 -0
- package/Tokenizer.js +147 -0
- package/Toolbar.js +13 -13
- package/Tooltip.js +2 -3
- package/Tooltip2.js +111 -0
- package/TruncatedText.js +34 -0
- package/URLSearchParams.js +5 -0
- package/Utility.js +56 -0
- package/ViewSwitch.js +8 -8
- package/_check_private_redeclaration.js +7 -0
- package/_class_apply_descriptor_get.js +6 -0
- package/_class_apply_descriptor_set.js +11 -0
- package/_class_extract_field_descriptor.js +7 -0
- package/_class_private_field_get.js +9 -0
- package/_class_private_field_init.js +7 -0
- package/_class_private_field_set.js +9 -0
- package/_commonjsHelpers.js +6 -0
- package/adapters.js +53 -0
- package/api/types/getFilters_new.d.ts +8 -0
- package/api.js +25 -0
- package/api2.js +40 -0
- package/api3.js +406 -0
- package/applyScopeDataToEvent.js +83 -0
- package/applyScopeDataToEvent2.js +55 -0
- package/asset.type.js +9 -10
- package/asyncDebounce.js +0 -1
- package/auth.js +0 -1
- package/autocomplete.js +2 -3
- package/axios.js +46 -0
- package/base.js +57 -0
- package/base64Converter.js +0 -1
- package/baseclient.js +498 -0
- package/bind.js +8 -0
- package/browser.js +44 -0
- package/buildFullPath.js +9 -0
- package/buildURL.js +23 -0
- package/bundle.esm.js +81 -0
- package/calculateContainerMaxHeight.js +12 -0
- package/calculateNodeHeight.js +35 -0
- package/carrier.js +13 -0
- package/chain.js +8 -0
- package/checkGlobals.js +13 -0
- package/checks.js +178 -0
- package/chunk-6HYIRFX2.js +1 -0
- package/chunk.js +0 -1
- package/class.js +0 -1
- package/cleanUrl.js +11 -0
- package/client.js +76 -0
- package/clientreport.js +15 -0
- package/clsx.js +17 -0
- package/colorTransforms.js +12 -0
- package/combineFilters.js +0 -1
- package/combineMetaproperties.js +1 -2
- package/combineURLs.js +6 -0
- package/composeSignals.js +30 -0
- package/constants.js +2 -13
- package/constants2.js +82 -0
- package/constants3.js +14 -0
- package/constants4.js +8 -0
- package/constants5.js +4 -0
- package/constants6.js +4 -0
- package/context.js +12 -0
- package/context10.js +12 -0
- package/context2.js +9 -0
- package/context3.js +12 -0
- package/context6.js +5 -0
- package/cookieStore.js +116 -0
- package/cookies.js +32 -0
- package/core.js +42 -0
- package/createSelectors.js +0 -1
- package/crypto.js +0 -1
- package/currentScopes.js +9 -0
- package/data.js +4 -0
- package/de_DE.json.js +18 -0
- package/debug-build.js +4 -0
- package/debug-build2.js +4 -0
- package/debug-build3.js +4 -0
- package/debug-build4.js +4 -0
- package/debug-build5.js +4 -0
- package/debug-build6.js +4 -0
- package/decorators.js +37 -0
- package/defaultScopes.js +12 -0
- package/devUtils.js +20 -0
- package/dispatchRequest.js +31 -0
- package/doc.js +26 -0
- package/domHelpers.js +15 -0
- package/dsn.js +54 -0
- package/dynamicSamplingContext.js +34 -0
- package/dynamicSamplingContext2.js +34 -0
- package/emotion-unitless.esm.js +52 -0
- package/en_US.json.js +23 -0
- package/englishText-12403056.js +6 -0
- package/env.js +6 -0
- package/envelope.js +113 -0
- package/envelope2.js +23 -0
- package/envelope3.js +24 -0
- package/error.js +9 -0
- package/errors.js +33 -0
- package/errors2.js +55 -0
- package/es_ES.json.js +18 -0
- package/es_MX.json.js +18 -0
- package/eventProcessors.js +27 -0
- package/eventProcessors2.js +23 -0
- package/eventbuilder.js +128 -0
- package/exports.js +11 -0
- package/exports2.js +16 -0
- package/exports3.js +8 -0
- package/fetch.js +44 -0
- package/fetch2.js +141 -0
- package/filter/filters/smartfilters/Metaproperties/Autocomplete_new.d.ts +1 -1
- package/filter/filters/smartfilters/Metaproperties/Option_new.d.ts +3 -3
- package/filterAssets.js +1 -2
- package/fixFontSpaceInUrl.js +8 -0
- package/focusWithoutScrolling.js +45 -0
- package/forceHiddenStyles.js +19 -0
- package/formDataToJSON.js +31 -0
- package/fr_FR.json.js +18 -0
- package/getAbsoluteUrl.js +13 -0
- package/getAsset.js +1 -2
- package/getAssetCounts.js +1 -2
- package/getAssets.js +2 -3
- package/getCallFrame.js +12 -0
- package/getCollections.js +1 -2
- package/getFilterOptions.js +1 -2
- package/getFilters.js +1 -2
- package/getFilters_new.js +1 -2
- package/getLimitedUseThumbnails.js +0 -1
- package/getRequestCookies.js +40 -0
- package/getRootSpan.js +6 -0
- package/getRootSpan2.js +6 -0
- package/getSimilarityAssets.js +1 -2
- package/getSizingData.js +45 -0
- package/getStatusCodeColor.js +6 -0
- package/getThumbPosition.js +6 -0
- package/getTimestamp.js +7 -0
- package/getUseLayerOptions.js +49 -0
- package/handlers.js +92 -7
- package/handlers2.js +6 -0
- package/helpers.js +3 -5
- package/helpers2.js +6 -0
- package/hexFromPercentage.js +7 -0
- package/http.js +17 -0
- package/hub.js +446 -0
- package/hub2.js +442 -0
- package/immer.js +472 -0
- package/import.js +7 -0
- package/index-esm.js +10781 -0
- package/index-esm2.js +138 -0
- package/index-esm3.js +131 -0
- package/index.browser.js +11 -0
- package/index.js +0 -1
- package/index.module.js +57 -0
- package/index.module2.js +72 -0
- package/index.module3.js +57 -0
- package/index10.js +20 -0
- package/index102.js +273 -0
- package/index11.js +18 -0
- package/index112.js +29 -0
- package/index12.js +38 -0
- package/index13.js +2432 -0
- package/index14.js +558 -0
- package/index15.js +58 -0
- package/index16.js +4 -0
- package/index17.js +89 -0
- package/index18.js +9 -0
- package/index19.js +62 -0
- package/index2.js +0 -1
- package/index20.js +15 -0
- package/index21.js +11 -0
- package/index22.js +42 -0
- package/index23.js +9 -0
- package/index24.js +10 -0
- package/index25.js +7 -0
- package/index26.js +12 -0
- package/index27.js +11 -0
- package/index28.js +639 -0
- package/index29.js +76 -0
- package/index3.js +5 -54
- package/index30.js +7 -0
- package/index31.js +22 -0
- package/index32.js +2 -0
- package/index33.js +7 -0
- package/index34.js +20 -0
- package/index35.js +8 -0
- package/index36.js +4 -0
- package/index37.js +13 -0
- package/index38.js +13 -0
- package/index39.js +15 -0
- package/index4.js +1684 -18
- package/index40.js +13 -0
- package/index41.js +21 -0
- package/index42.js +66 -0
- package/index43.js +8 -0
- package/index44.js +57 -0
- package/index45.js +69 -0
- package/index46.js +33 -0
- package/index47.js +13 -0
- package/index48.js +123 -0
- package/index49.js +88 -0
- package/index5.js +27 -0
- package/index50.js +10 -0
- package/index51.js +13 -0
- package/index52.js +16 -0
- package/index53.js +16 -0
- package/index54.js +9 -0
- package/index55.js +9 -0
- package/index56.js +17 -0
- package/index57.js +31 -0
- package/index58.js +18 -0
- package/index6.js +315 -0
- package/index7.js +4 -0
- package/index72.js +228 -0
- package/index8.js +5051 -0
- package/index82.js +8 -0
- package/index9.js +55 -0
- package/index92.js +12 -0
- package/integration.js +38 -0
- package/is.js +77 -0
- package/is2.js +14 -0
- package/is3.js +14 -0
- package/isAbsoluteURL.js +6 -0
- package/isAbsoluteUrl2.js +6 -0
- package/isAxiosError.js +7 -0
- package/isCancel.js +6 -0
- package/isIterable.js +6 -0
- package/isStringEqual.js +6 -0
- package/isURLSameOrigin.js +8 -0
- package/isValidHexValue.js +6 -0
- package/isVirtualEvent.js +11 -0
- package/iso.js +38 -0
- package/it_IT.json.js +18 -0
- package/itemContext.js +5 -0
- package/ja_JP.json.js +18 -0
- package/ko_KR.json.js +18 -0
- package/localStorageHelper.js +32 -0
- package/localStorageHelper2.js +4 -0
- package/localization.js +46 -0
- package/logger.js +0 -1
- package/logger2.js +56 -0
- package/logger3.js +56 -0
- package/logger4.js +56 -0
- package/loginwindow.js +0 -1
- package/makeHexWithOpacity.js +12 -0
- package/makeInternalTokens.js +22 -0
- package/matchRequestUrl.js +23 -0
- package/memo.js +25 -0
- package/merge.js +13 -0
- package/mergeConfig.js +70 -0
- package/mergeProps.js +22 -0
- package/mergeRefs.js +9 -0
- package/middleware.js +177 -0
- package/middleware2.js +177 -0
- package/misc.js +58 -0
- package/misc2.js +28 -0
- package/misc3.js +24 -0
- package/nl_NL.json.js +18 -0
- package/normalize.js +97 -0
- package/normalizePath.js +11 -0
- package/normalizeResponse.js +1 -2
- package/normalizeRows.js +10 -0
- package/notify.js +52 -0
- package/null.js +4 -0
- package/oauth2.js +0 -1
- package/object.js +110 -0
- package/object2.js +39 -0
- package/object3.js +17 -0
- package/opacityPercentageFromHex.js +9 -0
- package/openLink.js +27 -0
- package/package.json +1 -1
- package/packageVersion.js +4 -0
- package/parse.js +9 -0
- package/parse2.js +44 -0
- package/parseHeaders.js +30 -0
- package/parseProtocol.js +7 -0
- package/pl_PL.json.js +18 -0
- package/platform.js +42 -0
- package/prepareEvent.js +141 -0
- package/prepareEvent2.js +5 -0
- package/prepareEvent3.js +5 -0
- package/progressEventReducer.js +35 -0
- package/promisebuffer.js +44 -0
- package/propagationContext.js +11 -0
- package/pt_BR.json.js +18 -0
- package/ratelimit.js +37 -0
- package/react.js +19 -0
- package/react2.js +19 -0
- package/regexes.js +51 -0
- package/registries.js +41 -0
- package/resolveConfig.js +33 -0
- package/result.type.js +0 -1
- package/ru_RU.json.js +18 -0
- package/runAfterTransition.js +35 -0
- package/schemas.js +368 -0
- package/schemas2.js +691 -0
- package/scope.js +412 -0
- package/scope2.js +407 -0
- package/scope3.js +348 -0
- package/sdk-DhxX43BH.js +4813 -0
- package/sdkMetadata.js +15 -0
- package/serializeRequest.js +12 -0
- package/serializeResponse.js +14 -0
- package/session.js +57 -0
- package/session2.js +57 -0
- package/session3.js +16 -0
- package/settle.js +14 -0
- package/shadowdom.js +13 -0
- package/shadowdom2.js +13 -0
- package/spanOnScope.js +12 -0
- package/spanUtils.js +31 -0
- package/spanUtils2.js +31 -0
- package/speedometer.js +19 -0
- package/spread.js +8 -0
- package/stack-parsers.js +48 -0
- package/stackStrategy.js +98 -0
- package/stacktrace.js +49 -0
- package/state.js +106 -0
- package/store/StoreInitializer.d.ts +8 -0
- package/store/useDatStore.d.ts +11 -8
- package/string.js +6 -0
- package/styled-components.browser.esm.js +530 -0
- package/styles.js +55 -0
- package/styles2.js +17 -0
- package/supports.js +6 -0
- package/syncpromise.js +121 -0
- package/syncpromise2.js +109 -0
- package/text.js +0 -1
- package/textSelection.js +33 -0
- package/textStyles.js +20 -0
- package/theme.js +238 -0
- package/themeContainers.js +20 -0
- package/themes3.js +26 -0
- package/throttle.js +15 -0
- package/time.js +24 -0
- package/time2.js +24 -0
- package/time3.js +24 -0
- package/toFormData.js +85 -0
- package/toPublicUrl.js +9 -0
- package/toURLEncodedForm.js +13 -0
- package/token.js +236 -0
- package/tokenExpirationHelper.js +48 -0
- package/tokenExpirationHelper2.js +4 -0
- package/tokensAndThemes.js +92 -0
- package/tr_TR.json.js +18 -0
- package/trackStream.js +63 -0
- package/transformData.js +13 -0
- package/transitional.js +8 -0
- package/trimMetapropertyValue.js +1 -2
- package/tslib.es6.js +18 -0
- package/typeof.js +11 -0
- package/url.js +0 -1
- package/urlHelper.js +15 -0
- package/urlHelper2.js +4 -0
- package/useAccountDomain.js +0 -1
- package/useAuthInformation.js +0 -1
- package/useAutoHeight.js +25 -0
- package/useClickOutside.js +0 -1
- package/useDatStore.js +31 -28
- package/useDimensions.js +0 -1
- package/useEffectEvent.js +18 -0
- package/useFocus.js +30 -0
- package/useFocusRing.js +34 -0
- package/useFocusVisible.js +92 -0
- package/useFocusWithin.js +57 -0
- package/useFonts.js +118 -0
- package/useGlobalListeners.js +34 -0
- package/useGroupContext.js +10 -0
- package/useHover.js +79 -0
- package/useId.js +8 -0
- package/useId2.js +17 -0
- package/useKeyDown.js +14 -0
- package/useLayoutEffect.js +6 -0
- package/useOrderingStore.js +6 -7
- package/usePress.js +359 -0
- package/useRouterStore.js +6 -7
- package/useScrollHighlightedIntoView.js +24 -0
- package/useSearchStore.js +5 -6
- package/useSimilaritySearchStore.js +6 -7
- package/useSyncRef.js +12 -0
- package/useTranslate.js +13 -0
- package/useZIndex.js +9 -0
- package/userfeedback.js +28 -0
- package/util.js +265 -0
- package/utils/fixFontSpaceInUrl.d.ts +1 -0
- package/utils.js +26 -45
- package/utils2.js +43 -46
- package/utils3.js +50 -0
- package/utils4.js +12 -0
- package/utils5.js +71 -0
- package/utils6.js +222 -0
- package/utils7.js +9 -0
- package/utils8.js +70 -0
- package/validator.js +54 -0
- package/vanilla.js +14 -0
- package/vanilla2.js +14 -0
- package/version.js +4 -0
- package/version2.js +4 -0
- package/version3.js +4 -0
- package/versionContext.js +9 -0
- package/versions.js +8 -0
- package/views/asset/asset-card/AssetCard.d.ts +4 -2
- package/views/asset/asset-card/ContextAction.d.ts +3 -1
- package/worldwide.js +19 -0
- package/worldwide2.js +15 -0
- package/worldwide3.js +10 -0
- package/xhr.js +71 -0
- package/zh_CN.json.js +18 -0
- package/zh_TW.json.js +18 -0
- package/ActiveFilter.js.map +0 -1
- package/ActiveFilters.js.map +0 -1
- package/AddMedia.js.map +0 -1
- package/Advanced.js.map +0 -1
- package/App.js.map +0 -1
- package/AssetCard.js.map +0 -1
- package/AssetCardMetaproperties.js.map +0 -1
- package/AssetFilter.js.map +0 -1
- package/AssetFilterContext.js.map +0 -1
- package/AssetItem.js.map +0 -1
- package/AssetList.js.map +0 -1
- package/AssetTypeItem.js.map +0 -1
- package/AssetsView.js.map +0 -1
- package/Autocomplete_new.js.map +0 -1
- package/ButtonAction.js.map +0 -1
- package/CardSkeleton.js.map +0 -1
- package/Checkbox.styles.js.map +0 -1
- package/Chip.js.map +0 -1
- package/CollectionCard.js.map +0 -1
- package/CollectionItem.js.map +0 -1
- package/CollectionList.js.map +0 -1
- package/CollectionView.js.map +0 -1
- package/CollectionsView.js.map +0 -1
- package/ConfigContext.js.map +0 -1
- package/ConnectButton.js.map +0 -1
- package/Container.js.map +0 -1
- package/ContextAction.js.map +0 -1
- package/Dat.js.map +0 -1
- package/DatDropdownItem.js.map +0 -1
- package/DesignSystemContext.js.map +0 -1
- package/DirectionSelect.js.map +0 -1
- package/DocumentIcon.js.map +0 -1
- package/DomainInput.js.map +0 -1
- package/DragSelect.js.map +0 -1
- package/Dropdown.js.map +0 -1
- package/DropdownContent.js.map +0 -1
- package/DropdownListItem.js.map +0 -1
- package/ErrorIcon.js.map +0 -1
- package/ErrorMessage.js.map +0 -1
- package/FieldSelect.js.map +0 -1
- package/FileSelector.js.map +0 -1
- package/Header.js.map +0 -1
- package/HorizontalScroll.js.map +0 -1
- package/InfiniteScroll.js.map +0 -1
- package/LeftArrow.js.map +0 -1
- package/LoginComponent.js.map +0 -1
- package/LoginContext.js.map +0 -1
- package/MetapropertyFilterContent.js.map +0 -1
- package/MetapropertyOption.js.map +0 -1
- package/Modal.js.map +0 -1
- package/NoResults.js.map +0 -1
- package/Oops.js.map +0 -1
- package/Option_new.js.map +0 -1
- package/RefreshingSpinner.js.map +0 -1
- package/ReportModal.js.map +0 -1
- package/RightArrow.js.map +0 -1
- package/RootElementContext.js.map +0 -1
- package/SearchInput.js.map +0 -1
- package/SelectedItemContainer.js.map +0 -1
- package/SelectedItems.js.map +0 -1
- package/SelectionContext.js.map +0 -1
- package/SelectionFooter.js.map +0 -1
- package/ShadowRoot.js.map +0 -1
- package/ShadowRootInternal.js.map +0 -1
- package/Shield.js.map +0 -1
- package/Skeleton.js.map +0 -1
- package/SmartFilterContent.js.map +0 -1
- package/SmartFilterSelect_new.js.map +0 -1
- package/Smartfilters_new.js.map +0 -1
- package/Spinner.js.map +0 -1
- package/StatefulAssetList.js.map +0 -1
- package/Styles.css.js.map +0 -1
- package/SwitchNLS.js.map +0 -1
- package/TagItem.js.map +0 -1
- package/Tags.js.map +0 -1
- package/Theming.js.map +0 -1
- package/Toolbar.js.map +0 -1
- package/Tooltip.js.map +0 -1
- package/ViewSwitch.js.map +0 -1
- package/asset.type.js.map +0 -1
- package/asyncDebounce.js.map +0 -1
- package/auth.js.map +0 -1
- package/autocomplete.js.map +0 -1
- package/base64Converter.js.map +0 -1
- package/chunk.js.map +0 -1
- package/class.js.map +0 -1
- package/combineFilters.js.map +0 -1
- package/combineMetaproperties.js.map +0 -1
- package/constants.js.map +0 -1
- package/createSelectors.js.map +0 -1
- package/crypto.js.map +0 -1
- package/filterAssets.js.map +0 -1
- package/getAsset.js.map +0 -1
- package/getAssetCounts.js.map +0 -1
- package/getAssets.js.map +0 -1
- package/getCollections.js.map +0 -1
- package/getFilterOptions.js.map +0 -1
- package/getFilters.js.map +0 -1
- package/getFilters_new.js.map +0 -1
- package/getLimitedUseThumbnails.js.map +0 -1
- package/getSimilarityAssets.js.map +0 -1
- package/handlers.js.map +0 -1
- package/helpers.js.map +0 -1
- package/index.js.map +0 -1
- package/index2.js.map +0 -1
- package/index3.js.map +0 -1
- package/index4.js.map +0 -1
- package/logger.js.map +0 -1
- package/loginwindow.js.map +0 -1
- package/normalizeResponse.js.map +0 -1
- package/oauth2.js.map +0 -1
- package/result.type.js.map +0 -1
- package/router/RouterContext.d.ts +0 -19
- package/text.js.map +0 -1
- package/trimMetapropertyValue.js.map +0 -1
- package/url.js.map +0 -1
- package/useAccountDomain.js.map +0 -1
- package/useAuthInformation.js.map +0 -1
- package/useClickOutside.js.map +0 -1
- package/useDatStore.js.map +0 -1
- package/useDimensions.js.map +0 -1
- package/useOrderingStore.js.map +0 -1
- package/useRouterStore.js.map +0 -1
- package/useSearchStore.js.map +0 -1
- package/useSimilaritySearchStore.js.map +0 -1
- package/utils.js.map +0 -1
- package/utils2.js.map +0 -1
package/index-esm2.js
ADDED
|
@@ -0,0 +1,138 @@
|
|
|
1
|
+
var _ = Object.create, p = Object.defineProperty, P = Object.getOwnPropertyDescriptor, l = Object.getOwnPropertyNames, b = Object.getPrototypeOf, m = Object.prototype.hasOwnProperty, y = (r, t) => function() {
|
|
2
|
+
return t || (0, r[l(r)[0]])((t = { exports: {} }).exports, t), t.exports;
|
|
3
|
+
}, w = (r, t, a, u) => {
|
|
4
|
+
if (t && typeof t == "object" || typeof t == "function")
|
|
5
|
+
for (let s of l(t))
|
|
6
|
+
!m.call(r, s) && s !== a && p(r, s, { get: () => t[s], enumerable: !(u = P(t, s)) || u.enumerable });
|
|
7
|
+
return r;
|
|
8
|
+
}, O = (r, t, a) => (a = r != null ? _(b(r)) : {}, w(
|
|
9
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
10
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
11
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
12
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
13
|
+
p(a, "default", { value: r, enumerable: !0 }),
|
|
14
|
+
r
|
|
15
|
+
)), h = y({
|
|
16
|
+
"node_modules/statuses/codes.json"(r, t) {
|
|
17
|
+
t.exports = {
|
|
18
|
+
100: "Continue",
|
|
19
|
+
101: "Switching Protocols",
|
|
20
|
+
102: "Processing",
|
|
21
|
+
103: "Early Hints",
|
|
22
|
+
200: "OK",
|
|
23
|
+
201: "Created",
|
|
24
|
+
202: "Accepted",
|
|
25
|
+
203: "Non-Authoritative Information",
|
|
26
|
+
204: "No Content",
|
|
27
|
+
205: "Reset Content",
|
|
28
|
+
206: "Partial Content",
|
|
29
|
+
207: "Multi-Status",
|
|
30
|
+
208: "Already Reported",
|
|
31
|
+
226: "IM Used",
|
|
32
|
+
300: "Multiple Choices",
|
|
33
|
+
301: "Moved Permanently",
|
|
34
|
+
302: "Found",
|
|
35
|
+
303: "See Other",
|
|
36
|
+
304: "Not Modified",
|
|
37
|
+
305: "Use Proxy",
|
|
38
|
+
307: "Temporary Redirect",
|
|
39
|
+
308: "Permanent Redirect",
|
|
40
|
+
400: "Bad Request",
|
|
41
|
+
401: "Unauthorized",
|
|
42
|
+
402: "Payment Required",
|
|
43
|
+
403: "Forbidden",
|
|
44
|
+
404: "Not Found",
|
|
45
|
+
405: "Method Not Allowed",
|
|
46
|
+
406: "Not Acceptable",
|
|
47
|
+
407: "Proxy Authentication Required",
|
|
48
|
+
408: "Request Timeout",
|
|
49
|
+
409: "Conflict",
|
|
50
|
+
410: "Gone",
|
|
51
|
+
411: "Length Required",
|
|
52
|
+
412: "Precondition Failed",
|
|
53
|
+
413: "Payload Too Large",
|
|
54
|
+
414: "URI Too Long",
|
|
55
|
+
415: "Unsupported Media Type",
|
|
56
|
+
416: "Range Not Satisfiable",
|
|
57
|
+
417: "Expectation Failed",
|
|
58
|
+
418: "I'm a Teapot",
|
|
59
|
+
421: "Misdirected Request",
|
|
60
|
+
422: "Unprocessable Entity",
|
|
61
|
+
423: "Locked",
|
|
62
|
+
424: "Failed Dependency",
|
|
63
|
+
425: "Too Early",
|
|
64
|
+
426: "Upgrade Required",
|
|
65
|
+
428: "Precondition Required",
|
|
66
|
+
429: "Too Many Requests",
|
|
67
|
+
431: "Request Header Fields Too Large",
|
|
68
|
+
451: "Unavailable For Legal Reasons",
|
|
69
|
+
500: "Internal Server Error",
|
|
70
|
+
501: "Not Implemented",
|
|
71
|
+
502: "Bad Gateway",
|
|
72
|
+
503: "Service Unavailable",
|
|
73
|
+
504: "Gateway Timeout",
|
|
74
|
+
505: "HTTP Version Not Supported",
|
|
75
|
+
506: "Variant Also Negotiates",
|
|
76
|
+
507: "Insufficient Storage",
|
|
77
|
+
508: "Loop Detected",
|
|
78
|
+
509: "Bandwidth Limit Exceeded",
|
|
79
|
+
510: "Not Extended",
|
|
80
|
+
511: "Network Authentication Required"
|
|
81
|
+
};
|
|
82
|
+
}
|
|
83
|
+
}), N = y({
|
|
84
|
+
"node_modules/statuses/index.js"(r, t) {
|
|
85
|
+
var a = h();
|
|
86
|
+
t.exports = o, o.message = a, o.code = u(a), o.codes = s(a), o.redirect = {
|
|
87
|
+
300: !0,
|
|
88
|
+
301: !0,
|
|
89
|
+
302: !0,
|
|
90
|
+
303: !0,
|
|
91
|
+
305: !0,
|
|
92
|
+
307: !0,
|
|
93
|
+
308: !0
|
|
94
|
+
}, o.empty = {
|
|
95
|
+
204: !0,
|
|
96
|
+
205: !0,
|
|
97
|
+
304: !0
|
|
98
|
+
}, o.retry = {
|
|
99
|
+
502: !0,
|
|
100
|
+
503: !0,
|
|
101
|
+
504: !0
|
|
102
|
+
};
|
|
103
|
+
function u(e) {
|
|
104
|
+
var n = {};
|
|
105
|
+
return Object.keys(e).forEach(function(c) {
|
|
106
|
+
var g = e[c], v = Number(c);
|
|
107
|
+
n[g.toLowerCase()] = v;
|
|
108
|
+
}), n;
|
|
109
|
+
}
|
|
110
|
+
function s(e) {
|
|
111
|
+
return Object.keys(e).map(function(d) {
|
|
112
|
+
return Number(d);
|
|
113
|
+
});
|
|
114
|
+
}
|
|
115
|
+
function f(e) {
|
|
116
|
+
var n = e.toLowerCase();
|
|
117
|
+
if (!Object.prototype.hasOwnProperty.call(o.code, n))
|
|
118
|
+
throw new Error('invalid status message: "' + e + '"');
|
|
119
|
+
return o.code[n];
|
|
120
|
+
}
|
|
121
|
+
function i(e) {
|
|
122
|
+
if (!Object.prototype.hasOwnProperty.call(o.message, e))
|
|
123
|
+
throw new Error("invalid status code: " + e);
|
|
124
|
+
return o.message[e];
|
|
125
|
+
}
|
|
126
|
+
function o(e) {
|
|
127
|
+
if (typeof e == "number")
|
|
128
|
+
return i(e);
|
|
129
|
+
if (typeof e != "string")
|
|
130
|
+
throw new TypeError("code must be a number or string");
|
|
131
|
+
var n = parseInt(e, 10);
|
|
132
|
+
return isNaN(n) ? f(e) : i(n);
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
}), R = O(N()), q = R.default;
|
|
136
|
+
export {
|
|
137
|
+
q as default
|
|
138
|
+
};
|
package/index-esm3.js
ADDED
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
var b = Object.create, w = Object.defineProperty, S = Object.getOwnPropertyDescriptor, d = Object.getOwnPropertyNames, P = Object.getPrototypeOf, E = Object.prototype.hasOwnProperty, j = (i, o) => function() {
|
|
2
|
+
return o || (0, i[d(i)[0]])((o = { exports: {} }).exports, o), o.exports;
|
|
3
|
+
}, k = (i, o, a, v) => {
|
|
4
|
+
if (o && typeof o == "object" || typeof o == "function")
|
|
5
|
+
for (let c of d(o))
|
|
6
|
+
!E.call(i, c) && c !== a && w(i, c, { get: () => o[c], enumerable: !(v = S(o, c)) || v.enumerable });
|
|
7
|
+
return i;
|
|
8
|
+
}, T = (i, o, a) => (a = i != null ? b(P(i)) : {}, k(
|
|
9
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
10
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
11
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
12
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
13
|
+
w(a, "default", { value: i, enumerable: !0 }),
|
|
14
|
+
i
|
|
15
|
+
)), x = j({
|
|
16
|
+
"node_modules/cookie/index.js"(i) {
|
|
17
|
+
i.parse = v, i.serialize = c;
|
|
18
|
+
var o = Object.prototype.toString, a = /^[\u0009\u0020-\u007e\u0080-\u00ff]+$/;
|
|
19
|
+
function v(e, l) {
|
|
20
|
+
if (typeof e != "string")
|
|
21
|
+
throw new TypeError("argument str must be a string");
|
|
22
|
+
for (var s = {}, r = l || {}, y = r.decode || h, n = 0; n < e.length; ) {
|
|
23
|
+
var t = e.indexOf("=", n);
|
|
24
|
+
if (t === -1)
|
|
25
|
+
break;
|
|
26
|
+
var p = e.indexOf(";", n);
|
|
27
|
+
if (p === -1)
|
|
28
|
+
p = e.length;
|
|
29
|
+
else if (p < t) {
|
|
30
|
+
n = e.lastIndexOf(";", t - 1) + 1;
|
|
31
|
+
continue;
|
|
32
|
+
}
|
|
33
|
+
var f = e.slice(n, t).trim();
|
|
34
|
+
if (s[f] === void 0) {
|
|
35
|
+
var u = e.slice(t + 1, p).trim();
|
|
36
|
+
u.charCodeAt(0) === 34 && (u = u.slice(1, -1)), s[f] = g(u, y);
|
|
37
|
+
}
|
|
38
|
+
n = p + 1;
|
|
39
|
+
}
|
|
40
|
+
return s;
|
|
41
|
+
}
|
|
42
|
+
function c(e, l, s) {
|
|
43
|
+
var r = s || {}, y = r.encode || _;
|
|
44
|
+
if (typeof y != "function")
|
|
45
|
+
throw new TypeError("option encode is invalid");
|
|
46
|
+
if (!a.test(e))
|
|
47
|
+
throw new TypeError("argument name is invalid");
|
|
48
|
+
var n = y(l);
|
|
49
|
+
if (n && !a.test(n))
|
|
50
|
+
throw new TypeError("argument val is invalid");
|
|
51
|
+
var t = e + "=" + n;
|
|
52
|
+
if (r.maxAge != null) {
|
|
53
|
+
var p = r.maxAge - 0;
|
|
54
|
+
if (isNaN(p) || !isFinite(p))
|
|
55
|
+
throw new TypeError("option maxAge is invalid");
|
|
56
|
+
t += "; Max-Age=" + Math.floor(p);
|
|
57
|
+
}
|
|
58
|
+
if (r.domain) {
|
|
59
|
+
if (!a.test(r.domain))
|
|
60
|
+
throw new TypeError("option domain is invalid");
|
|
61
|
+
t += "; Domain=" + r.domain;
|
|
62
|
+
}
|
|
63
|
+
if (r.path) {
|
|
64
|
+
if (!a.test(r.path))
|
|
65
|
+
throw new TypeError("option path is invalid");
|
|
66
|
+
t += "; Path=" + r.path;
|
|
67
|
+
}
|
|
68
|
+
if (r.expires) {
|
|
69
|
+
var f = r.expires;
|
|
70
|
+
if (!m(f) || isNaN(f.valueOf()))
|
|
71
|
+
throw new TypeError("option expires is invalid");
|
|
72
|
+
t += "; Expires=" + f.toUTCString();
|
|
73
|
+
}
|
|
74
|
+
if (r.httpOnly && (t += "; HttpOnly"), r.secure && (t += "; Secure"), r.priority) {
|
|
75
|
+
var u = typeof r.priority == "string" ? r.priority.toLowerCase() : r.priority;
|
|
76
|
+
switch (u) {
|
|
77
|
+
case "low":
|
|
78
|
+
t += "; Priority=Low";
|
|
79
|
+
break;
|
|
80
|
+
case "medium":
|
|
81
|
+
t += "; Priority=Medium";
|
|
82
|
+
break;
|
|
83
|
+
case "high":
|
|
84
|
+
t += "; Priority=High";
|
|
85
|
+
break;
|
|
86
|
+
default:
|
|
87
|
+
throw new TypeError("option priority is invalid");
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
if (r.sameSite) {
|
|
91
|
+
var O = typeof r.sameSite == "string" ? r.sameSite.toLowerCase() : r.sameSite;
|
|
92
|
+
switch (O) {
|
|
93
|
+
case !0:
|
|
94
|
+
t += "; SameSite=Strict";
|
|
95
|
+
break;
|
|
96
|
+
case "lax":
|
|
97
|
+
t += "; SameSite=Lax";
|
|
98
|
+
break;
|
|
99
|
+
case "strict":
|
|
100
|
+
t += "; SameSite=Strict";
|
|
101
|
+
break;
|
|
102
|
+
case "none":
|
|
103
|
+
t += "; SameSite=None";
|
|
104
|
+
break;
|
|
105
|
+
default:
|
|
106
|
+
throw new TypeError("option sameSite is invalid");
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
return t;
|
|
110
|
+
}
|
|
111
|
+
function h(e) {
|
|
112
|
+
return e.indexOf("%") !== -1 ? decodeURIComponent(e) : e;
|
|
113
|
+
}
|
|
114
|
+
function _(e) {
|
|
115
|
+
return encodeURIComponent(e);
|
|
116
|
+
}
|
|
117
|
+
function m(e) {
|
|
118
|
+
return o.call(e) === "[object Date]" || e instanceof Date;
|
|
119
|
+
}
|
|
120
|
+
function g(e, l) {
|
|
121
|
+
try {
|
|
122
|
+
return l(e);
|
|
123
|
+
} catch {
|
|
124
|
+
return e;
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
}), N = T(x()), C = N.default;
|
|
129
|
+
export {
|
|
130
|
+
C as default
|
|
131
|
+
};
|
package/index.browser.js
ADDED
package/index.js
CHANGED
package/index.module.js
ADDED
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import { useRef as u, useEffect as P, useMemo as R } from "react";
|
|
2
|
+
function z(g, e, c, O) {
|
|
3
|
+
var S = this, i = u(null), a = u(0), h = u(0), t = u(null), o = u([]), f = u(), l = u(), A = u(g), m = u(!0);
|
|
4
|
+
A.current = g;
|
|
5
|
+
var x = typeof window < "u", v = !e && e !== 0 && x;
|
|
6
|
+
if (typeof g != "function") throw new TypeError("Expected a function");
|
|
7
|
+
e = +e || 0;
|
|
8
|
+
var y = !!(c = c || {}).leading, F = !("trailing" in c) || !!c.trailing, s = "maxWait" in c, E = "debounceOnServer" in c && !!c.debounceOnServer, D = s ? Math.max(+c.maxWait || 0, e) : null;
|
|
9
|
+
P(function() {
|
|
10
|
+
return m.current = !0, function() {
|
|
11
|
+
m.current = !1;
|
|
12
|
+
};
|
|
13
|
+
}, []);
|
|
14
|
+
var k = R(function() {
|
|
15
|
+
var T = function(r) {
|
|
16
|
+
var n = o.current, w = f.current;
|
|
17
|
+
return o.current = f.current = null, a.current = r, h.current = h.current || r, l.current = A.current.apply(w, n);
|
|
18
|
+
}, d = function(r, n) {
|
|
19
|
+
v && cancelAnimationFrame(t.current), t.current = v ? requestAnimationFrame(r) : setTimeout(r, n);
|
|
20
|
+
}, M = function(r) {
|
|
21
|
+
if (!m.current) return !1;
|
|
22
|
+
var n = r - i.current;
|
|
23
|
+
return !i.current || n >= e || n < 0 || s && r - a.current >= D;
|
|
24
|
+
}, W = function(r) {
|
|
25
|
+
return t.current = null, F && o.current ? T(r) : (o.current = f.current = null, l.current);
|
|
26
|
+
}, b = function r() {
|
|
27
|
+
var n = Date.now();
|
|
28
|
+
if (y && h.current === a.current && q(), M(n)) return W(n);
|
|
29
|
+
if (m.current) {
|
|
30
|
+
var w = e - (n - i.current), C = s ? Math.min(w, D - (n - a.current)) : w;
|
|
31
|
+
d(r, C);
|
|
32
|
+
}
|
|
33
|
+
}, q = function() {
|
|
34
|
+
}, p = function() {
|
|
35
|
+
if (x || E) {
|
|
36
|
+
var r = Date.now(), n = M(r);
|
|
37
|
+
if (o.current = [].slice.call(arguments), f.current = S, i.current = r, n) {
|
|
38
|
+
if (!t.current && m.current) return a.current = i.current, d(b, e), y ? T(i.current) : l.current;
|
|
39
|
+
if (s) return d(b, e), T(i.current);
|
|
40
|
+
}
|
|
41
|
+
return t.current || d(b, e), l.current;
|
|
42
|
+
}
|
|
43
|
+
};
|
|
44
|
+
return p.cancel = function() {
|
|
45
|
+
var r = t.current;
|
|
46
|
+
r && (v ? cancelAnimationFrame(t.current) : clearTimeout(t.current)), a.current = 0, o.current = i.current = f.current = t.current = null;
|
|
47
|
+
}, p.isPending = function() {
|
|
48
|
+
return !!t.current;
|
|
49
|
+
}, p.flush = function() {
|
|
50
|
+
return t.current ? W(Date.now()) : l.current;
|
|
51
|
+
}, p;
|
|
52
|
+
}, [y, s, e, D, F, v, x, E, O]);
|
|
53
|
+
return k;
|
|
54
|
+
}
|
|
55
|
+
export {
|
|
56
|
+
z as useDebouncedCallback
|
|
57
|
+
};
|
package/index.module2.js
ADDED
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import { useRef as f, useEffect as T, useMemo as P, useState as R, useCallback as k } from "react";
|
|
2
|
+
function S(r, n, i) {
|
|
3
|
+
var v = this, c = f(null), m = f(0), t = f(null), o = f([]), l = f(), s = f(), p = f(r), a = f(!0);
|
|
4
|
+
T(function() {
|
|
5
|
+
p.current = r;
|
|
6
|
+
}, [r]);
|
|
7
|
+
var w = !n && n !== 0 && typeof window < "u";
|
|
8
|
+
if (typeof r != "function") throw new TypeError("Expected a function");
|
|
9
|
+
n = +n || 0;
|
|
10
|
+
var F = !!(i = i || {}).leading, A = !("trailing" in i) || !!i.trailing, d = "maxWait" in i, x = d ? Math.max(+i.maxWait || 0, n) : null;
|
|
11
|
+
T(function() {
|
|
12
|
+
return a.current = !0, function() {
|
|
13
|
+
a.current = !1;
|
|
14
|
+
};
|
|
15
|
+
}, []);
|
|
16
|
+
var C = P(function() {
|
|
17
|
+
var D = function(u) {
|
|
18
|
+
var e = o.current, y = l.current;
|
|
19
|
+
return o.current = l.current = null, m.current = u, s.current = p.current.apply(y, e);
|
|
20
|
+
}, g = function(u, e) {
|
|
21
|
+
w && cancelAnimationFrame(t.current), t.current = w ? requestAnimationFrame(u) : setTimeout(u, e);
|
|
22
|
+
}, E = function(u) {
|
|
23
|
+
if (!a.current) return !1;
|
|
24
|
+
var e = u - c.current;
|
|
25
|
+
return !c.current || e >= n || e < 0 || d && u - m.current >= x;
|
|
26
|
+
}, M = function(u) {
|
|
27
|
+
return t.current = null, A && o.current ? D(u) : (o.current = l.current = null, s.current);
|
|
28
|
+
}, b = function u() {
|
|
29
|
+
var e = Date.now();
|
|
30
|
+
if (E(e)) return M(e);
|
|
31
|
+
if (a.current) {
|
|
32
|
+
var y = n - (e - c.current), W = d ? Math.min(y, x - (e - m.current)) : y;
|
|
33
|
+
g(u, W);
|
|
34
|
+
}
|
|
35
|
+
}, h = function() {
|
|
36
|
+
var u = Date.now(), e = E(u);
|
|
37
|
+
if (o.current = [].slice.call(arguments), l.current = v, c.current = u, e) {
|
|
38
|
+
if (!t.current && a.current) return m.current = c.current, g(b, n), F ? D(c.current) : s.current;
|
|
39
|
+
if (d) return g(b, n), D(c.current);
|
|
40
|
+
}
|
|
41
|
+
return t.current || g(b, n), s.current;
|
|
42
|
+
};
|
|
43
|
+
return h.cancel = function() {
|
|
44
|
+
t.current && (w ? cancelAnimationFrame(t.current) : clearTimeout(t.current)), m.current = 0, o.current = c.current = l.current = t.current = null;
|
|
45
|
+
}, h.isPending = function() {
|
|
46
|
+
return !!t.current;
|
|
47
|
+
}, h.flush = function() {
|
|
48
|
+
return t.current ? M(Date.now()) : s.current;
|
|
49
|
+
}, h;
|
|
50
|
+
}, [F, d, n, x, A, w]);
|
|
51
|
+
return C;
|
|
52
|
+
}
|
|
53
|
+
function j(r, n) {
|
|
54
|
+
return r === n;
|
|
55
|
+
}
|
|
56
|
+
function q(r) {
|
|
57
|
+
return typeof r == "function" ? function() {
|
|
58
|
+
return r;
|
|
59
|
+
} : r;
|
|
60
|
+
}
|
|
61
|
+
function B(r, n, i) {
|
|
62
|
+
var v, c, m = i && i.equalityFn || j, t = (v = R(q(r)), c = v[1], [v[0], k(function(a) {
|
|
63
|
+
return c(q(a));
|
|
64
|
+
}, [])]), o = t[0], l = t[1], s = S(k(function(a) {
|
|
65
|
+
return l(a);
|
|
66
|
+
}, [l]), n, i), p = f(r);
|
|
67
|
+
return m(p.current, r) || (s(r), p.current = r), [o, s];
|
|
68
|
+
}
|
|
69
|
+
export {
|
|
70
|
+
B as useDebounce,
|
|
71
|
+
S as useDebouncedCallback
|
|
72
|
+
};
|
package/index.module3.js
ADDED
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import { useRef as u, useEffect as P, useMemo as R } from "react";
|
|
2
|
+
function z(g, e, c, O) {
|
|
3
|
+
var S = this, i = u(null), a = u(0), h = u(0), t = u(null), o = u([]), f = u(), l = u(), A = u(g), m = u(!0);
|
|
4
|
+
A.current = g;
|
|
5
|
+
var x = typeof window < "u", v = !e && e !== 0 && x;
|
|
6
|
+
if (typeof g != "function") throw new TypeError("Expected a function");
|
|
7
|
+
e = +e || 0;
|
|
8
|
+
var y = !!(c = c || {}).leading, F = !("trailing" in c) || !!c.trailing, s = "maxWait" in c, E = "debounceOnServer" in c && !!c.debounceOnServer, D = s ? Math.max(+c.maxWait || 0, e) : null;
|
|
9
|
+
P(function() {
|
|
10
|
+
return m.current = !0, function() {
|
|
11
|
+
m.current = !1;
|
|
12
|
+
};
|
|
13
|
+
}, []);
|
|
14
|
+
var k = R(function() {
|
|
15
|
+
var T = function(r) {
|
|
16
|
+
var n = o.current, w = f.current;
|
|
17
|
+
return o.current = f.current = null, a.current = r, h.current = h.current || r, l.current = A.current.apply(w, n);
|
|
18
|
+
}, d = function(r, n) {
|
|
19
|
+
v && cancelAnimationFrame(t.current), t.current = v ? requestAnimationFrame(r) : setTimeout(r, n);
|
|
20
|
+
}, M = function(r) {
|
|
21
|
+
if (!m.current) return !1;
|
|
22
|
+
var n = r - i.current;
|
|
23
|
+
return !i.current || n >= e || n < 0 || s && r - a.current >= D;
|
|
24
|
+
}, W = function(r) {
|
|
25
|
+
return t.current = null, F && o.current ? T(r) : (o.current = f.current = null, l.current);
|
|
26
|
+
}, b = function r() {
|
|
27
|
+
var n = Date.now();
|
|
28
|
+
if (y && h.current === a.current && q(), M(n)) return W(n);
|
|
29
|
+
if (m.current) {
|
|
30
|
+
var w = e - (n - i.current), C = s ? Math.min(w, D - (n - a.current)) : w;
|
|
31
|
+
d(r, C);
|
|
32
|
+
}
|
|
33
|
+
}, q = function() {
|
|
34
|
+
}, p = function() {
|
|
35
|
+
if (x || E) {
|
|
36
|
+
var r = Date.now(), n = M(r);
|
|
37
|
+
if (o.current = [].slice.call(arguments), f.current = S, i.current = r, n) {
|
|
38
|
+
if (!t.current && m.current) return a.current = i.current, d(b, e), y ? T(i.current) : l.current;
|
|
39
|
+
if (s) return d(b, e), T(i.current);
|
|
40
|
+
}
|
|
41
|
+
return t.current || d(b, e), l.current;
|
|
42
|
+
}
|
|
43
|
+
};
|
|
44
|
+
return p.cancel = function() {
|
|
45
|
+
var r = t.current;
|
|
46
|
+
r && (v ? cancelAnimationFrame(t.current) : clearTimeout(t.current)), a.current = 0, o.current = i.current = f.current = t.current = null;
|
|
47
|
+
}, p.isPending = function() {
|
|
48
|
+
return !!t.current;
|
|
49
|
+
}, p.flush = function() {
|
|
50
|
+
return t.current ? W(Date.now()) : l.current;
|
|
51
|
+
}, p;
|
|
52
|
+
}, [y, s, e, D, F, v, x, E, O]);
|
|
53
|
+
return k;
|
|
54
|
+
}
|
|
55
|
+
export {
|
|
56
|
+
z as useDebouncedCallback
|
|
57
|
+
};
|
package/index10.js
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import "./index12.js";
|
|
2
|
+
import r from "./axios.js";
|
|
3
|
+
const n = (e) => e.data, s = r.create({
|
|
4
|
+
timeout: 1e4,
|
|
5
|
+
headers: {
|
|
6
|
+
Accept: "application/json",
|
|
7
|
+
"Content-Type": "application/json"
|
|
8
|
+
}
|
|
9
|
+
}), i = async (e, o) => {
|
|
10
|
+
try {
|
|
11
|
+
const t = await s.get(e, o);
|
|
12
|
+
return n(t);
|
|
13
|
+
} catch (t) {
|
|
14
|
+
throw console.error("GET request error:", t), t;
|
|
15
|
+
}
|
|
16
|
+
};
|
|
17
|
+
export {
|
|
18
|
+
i as getRequest,
|
|
19
|
+
n as onSuccess
|
|
20
|
+
};
|