@bynder/compact-view 5.2.1 → 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 -5
- package/ActiveFilters.js +24 -24
- package/AddMedia.js +1 -1
- package/AdditionalInfo.js +18 -0
- package/Advanced.js +3 -3
- package/App.js +46 -43
- package/Arrow.js +14 -0
- package/AssetCard.js +32 -29
- package/AssetCardMetaproperties.js +14 -13
- package/AssetFilter.js +36 -35
- package/AssetFilterContext.js +3 -3
- package/AssetItem.js +14 -13
- package/AssetList.js +7 -7
- package/AssetTypeItem.js +13 -12
- package/Autocomplete_new.js +41 -37
- 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 -3
- 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 -14
- package/Checkbox.js +85 -0
- package/Checkbox.styles.js +2 -2
- package/Checkmark.js +7 -0
- package/Chip.js +70 -40
- package/Chip2.js +42 -0
- package/CollectionCard.js +9 -8
- package/CollectionItem.js +15 -14
- package/CollectionList.js +2 -2
- package/CollectionView.js +2 -2
- package/CollectionsView.js +6 -6
- 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/ConnectButton.js +1 -1
- package/Container.js +14 -13
- package/Container2.js +31 -0
- package/Content.js +16 -0
- package/ContextAction.js +18 -17
- package/ContextActionButton.js +29 -0
- package/ControlGroup.js +32 -0
- package/DOMFunctions.js +27 -0
- package/Dat.js +62 -50
- package/DatDropdownItem.js +20 -19
- package/DesignSystemContext.js +4 -4
- package/DesignSystemProvider.js +29 -0
- package/DirectionSelect.js +16 -15
- package/Divider.js +21 -0
- package/DomainInput.js +15 -14
- package/DragRange.js +25 -0
- package/DragSelect.js +11 -11
- package/Dropdown.js +12 -11
- package/Dropdown2.js +169 -0
- package/DropdownContent.js +2 -2
- package/DropdownListItem.js +3 -3
- package/Enum.js +12 -0
- package/ErrorMessage.js +20 -19
- package/FieldSelect.js +4 -4
- package/FilePlaceholder.js +19 -0
- package/FileSelector.js +11 -10
- 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/Header2.js +43 -0
- package/Header22.js +15 -0
- package/HelperText.js +26 -0
- package/HorizontalScroll.js +4 -4
- 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 -8
- 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 -3
- package/List.js +25 -0
- package/ListItem.js +11 -0
- package/ListItem2.js +58 -0
- package/ListItem4.js +37 -0
- package/MetapropertyFilterContent.js +2 -2
- package/MetapropertyOption.js +2 -3
- package/Middleware.js +49 -0
- package/Middleware2.js +49 -0
- package/Modal.js +2 -2
- 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 -15
- package/OffsetContext.js +9 -0
- package/Oops.js +1 -1
- package/OpacityInput.js +17 -0
- package/Option_new.js +19 -18
- 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 -3
- package/ReportModal.js +16 -14
- package/RequestHandler.js +119 -0
- package/RightArrow.js +4 -4
- package/Row.js +16 -0
- package/SearchInput.js +15 -15
- package/SearchInput2.js +46 -0
- package/SectionTitle.js +17 -0
- package/Select.js +49 -0
- package/SelectButtonText.js +16 -0
- package/SelectedItemContainer.js +11 -10
- package/SelectedItems.js +2 -2
- package/SelectionFooter.js +8 -7
- package/Serializer.js +27 -0
- package/ShadowRootInternal.js +17 -17
- package/Sidebar.js +17 -0
- package/Skeleton.js +6 -6
- package/Slider.constants.js +6 -0
- package/Slider.js +128 -0
- package/SmartFilterContent.js +2 -2
- package/SmartFilterSelect_new.js +2 -2
- package/Smartfilters_new.js +53 -50
- package/Spinner.js +2 -2
- package/Spinner2.js +15 -0
- package/StatefulAssetList.js +15 -15
- package/Stats.js +16 -0
- package/StatsItem.js +23 -0
- package/Status.js +32 -0
- package/Switch.js +82 -0
- package/SwitchNLS.js +26 -23
- package/Tabs2.js +10 -0
- package/TagItem.js +8 -8
- package/Tags.js +9 -9
- package/Text2.js +11 -0
- package/Text22.js +18 -0
- package/Text4.js +18 -0
- package/Textarea.js +92 -0
- package/Theming.js +4 -4
- package/Thumb.js +28 -0
- package/Thumbnail.js +91 -0
- package/Tokenizer.js +147 -0
- package/Toolbar.js +13 -12
- package/Tooltip.js +2 -2
- package/Tooltip2.js +111 -0
- package/TruncatedText.js +34 -0
- package/URLSearchParams.js +5 -0
- package/Utility.js +56 -0
- package/ViewSwitch.js +8 -7
- 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.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 -9
- package/autocomplete.js +2 -2
- package/axios.js +46 -0
- package/base.js +57 -0
- 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/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/combineMetaproperties.js +1 -1
- package/combineURLs.js +6 -0
- package/composeSignals.js +30 -0
- package/constants.js +2 -12
- 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/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/filterAssets.js +1 -1
- 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 -1
- package/getAssetCounts.js +1 -1
- package/getAssets.js +2 -2
- package/getCallFrame.js +12 -0
- package/getCollections.js +1 -1
- package/getFilterOptions.js +1 -1
- package/getFilters.js +1 -1
- package/getFilters_new.js +1 -1
- package/getRequestCookies.js +40 -0
- package/getRootSpan.js +6 -0
- package/getRootSpan2.js +6 -0
- package/getSimilarityAssets.js +1 -1
- 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 -6
- package/handlers2.js +6 -0
- package/helpers.js +3 -4
- 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.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/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 -53
- 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 -17
- 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/logger2.js +56 -0
- package/logger3.js +56 -0
- package/logger4.js +56 -0
- 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 -1
- package/normalizeRows.js +10 -0
- package/notify.js +52 -0
- package/null.js +4 -0
- 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/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/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/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 -1
- package/tslib.es6.js +18 -0
- package/typeof.js +11 -0
- package/urlHelper.js +15 -0
- package/urlHelper2.js +4 -0
- package/useAutoHeight.js +25 -0
- package/useDatStore.js +31 -27
- 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 -6
- package/usePress.js +359 -0
- package/useRouterStore.js +6 -6
- package/useScrollHighlightedIntoView.js +24 -0
- package/useSearchStore.js +5 -5
- package/useSimilaritySearchStore.js +6 -6
- 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 -44
- package/utils2.js +43 -45
- 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/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/TruncatedText.js
ADDED
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { jsx as r } from "react/jsx-runtime";
|
|
2
|
+
import { useState as l, useRef as p, useLayoutEffect as a } from "react";
|
|
3
|
+
import d from "./styled-components.browser.esm.js";
|
|
4
|
+
import u from "./bundle.esm.js";
|
|
5
|
+
import { Tooltip as m } from "./Tooltip2.js";
|
|
6
|
+
import { InputWrapper as h } from "./Input.styles.js";
|
|
7
|
+
function I({
|
|
8
|
+
children: e,
|
|
9
|
+
tooltipPosition: i = "top-left",
|
|
10
|
+
...s
|
|
11
|
+
}) {
|
|
12
|
+
const [c, f] = l(!1), t = p(null);
|
|
13
|
+
function n() {
|
|
14
|
+
if (t.current) {
|
|
15
|
+
const o = t.current.offsetWidth < t.current.scrollWidth;
|
|
16
|
+
f(o);
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
return u({
|
|
20
|
+
ref: t,
|
|
21
|
+
onResize: () => {
|
|
22
|
+
n();
|
|
23
|
+
}
|
|
24
|
+
}), a(() => {
|
|
25
|
+
n();
|
|
26
|
+
}, []), /* @__PURE__ */ r(x, { ref: t, ...s, children: c ? /* @__PURE__ */ r(m, { content: e, position: i, timing: "delay", children: (o) => /* @__PURE__ */ r("span", { ...o, children: e }) }) : e });
|
|
27
|
+
}
|
|
28
|
+
const x = d.span.withConfig({
|
|
29
|
+
displayName: "StyledText",
|
|
30
|
+
componentId: "sc-o8bysd-0"
|
|
31
|
+
})(["display:block;overflow:hidden;min-width:0;text-decoration:none;text-overflow:ellipsis;white-space:nowrap;&::after{content:'';display:block;}&:has(", "){overflow:visible;}"], h);
|
|
32
|
+
export {
|
|
33
|
+
I as TruncatedText
|
|
34
|
+
};
|
package/Utility.js
ADDED
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
var c = Math.abs, o = String.fromCharCode, f = Object.assign;
|
|
2
|
+
function u(n, r) {
|
|
3
|
+
return e(n, 0) ^ 45 ? (((r << 2 ^ e(n, 0)) << 2 ^ e(n, 1)) << 2 ^ e(n, 2)) << 2 ^ e(n, 3) : 0;
|
|
4
|
+
}
|
|
5
|
+
function s(n) {
|
|
6
|
+
return n.trim();
|
|
7
|
+
}
|
|
8
|
+
function i(n, r) {
|
|
9
|
+
return (n = r.exec(n)) ? n[0] : n;
|
|
10
|
+
}
|
|
11
|
+
function a(n, r, t) {
|
|
12
|
+
return n.replace(r, t);
|
|
13
|
+
}
|
|
14
|
+
function h(n, r, t) {
|
|
15
|
+
return n.indexOf(r, t);
|
|
16
|
+
}
|
|
17
|
+
function e(n, r) {
|
|
18
|
+
return n.charCodeAt(r) | 0;
|
|
19
|
+
}
|
|
20
|
+
function m(n, r, t) {
|
|
21
|
+
return n.slice(r, t);
|
|
22
|
+
}
|
|
23
|
+
function p(n) {
|
|
24
|
+
return n.length;
|
|
25
|
+
}
|
|
26
|
+
function b(n) {
|
|
27
|
+
return n.length;
|
|
28
|
+
}
|
|
29
|
+
function d(n, r) {
|
|
30
|
+
return r.push(n), n;
|
|
31
|
+
}
|
|
32
|
+
function g(n, r) {
|
|
33
|
+
return n.map(r).join("");
|
|
34
|
+
}
|
|
35
|
+
function x(n, r) {
|
|
36
|
+
return n.filter(function(t) {
|
|
37
|
+
return !i(t, r);
|
|
38
|
+
});
|
|
39
|
+
}
|
|
40
|
+
export {
|
|
41
|
+
c as abs,
|
|
42
|
+
d as append,
|
|
43
|
+
f as assign,
|
|
44
|
+
e as charat,
|
|
45
|
+
g as combine,
|
|
46
|
+
x as filter,
|
|
47
|
+
o as from,
|
|
48
|
+
u as hash,
|
|
49
|
+
h as indexof,
|
|
50
|
+
i as match,
|
|
51
|
+
a as replace,
|
|
52
|
+
b as sizeof,
|
|
53
|
+
p as strlen,
|
|
54
|
+
m as substr,
|
|
55
|
+
s as trim
|
|
56
|
+
};
|
package/ViewSwitch.js
CHANGED
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import { jsxs as l, jsx as i } from "react/jsx-runtime";
|
|
2
|
-
import m from "styled-components";
|
|
3
|
-
import {
|
|
2
|
+
import m from "./styled-components.browser.esm.js";
|
|
3
|
+
import { Button as o } from "./Button.js";
|
|
4
|
+
import { token as p } from "./token.js";
|
|
4
5
|
import { __ as r } from "./index2.js";
|
|
5
6
|
import { useRouter as f } from "./useRouterStore.js";
|
|
6
7
|
import { useSimilaritySearchStore as d } from "./useSimilaritySearchStore.js";
|
|
7
8
|
import { useSimilarityAssets as g } from "./getSimilarityAssets.js";
|
|
8
|
-
function
|
|
9
|
-
const [e,
|
|
9
|
+
function I() {
|
|
10
|
+
const [e, t] = f(), { setIsSelected: a, setIsNLSSelected: n } = d(), { resetData: c } = g(), s = () => {
|
|
10
11
|
a(!1), n(!1), c();
|
|
11
12
|
};
|
|
12
13
|
return /* @__PURE__ */ l(S, { children: [
|
|
@@ -16,7 +17,7 @@ function A() {
|
|
|
16
17
|
isPressed: e.page === "assets",
|
|
17
18
|
variant: "clean",
|
|
18
19
|
onClick: () => {
|
|
19
|
-
|
|
20
|
+
t({ page: "assets" }), s();
|
|
20
21
|
},
|
|
21
22
|
children: r("Assets")
|
|
22
23
|
}
|
|
@@ -27,7 +28,7 @@ function A() {
|
|
|
27
28
|
isPressed: e.page === "collections",
|
|
28
29
|
variant: "clean",
|
|
29
30
|
onClick: () => {
|
|
30
|
-
|
|
31
|
+
t({ page: "collections" }), s();
|
|
31
32
|
},
|
|
32
33
|
children: r("Collections")
|
|
33
34
|
}
|
|
@@ -40,5 +41,5 @@ const S = m.div`
|
|
|
40
41
|
gap: ${p.spacing2};
|
|
41
42
|
`;
|
|
42
43
|
export {
|
|
43
|
-
|
|
44
|
+
I as ViewSwitch
|
|
44
45
|
};
|
package/adapters.js
ADDED
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import a from "./utils6.js";
|
|
2
|
+
import h from "./null.js";
|
|
3
|
+
import m from "./xhr.js";
|
|
4
|
+
import u from "./fetch2.js";
|
|
5
|
+
import d from "./AxiosError.js";
|
|
6
|
+
const s = {
|
|
7
|
+
http: h,
|
|
8
|
+
xhr: m,
|
|
9
|
+
fetch: u
|
|
10
|
+
};
|
|
11
|
+
a.forEach(s, (e, n) => {
|
|
12
|
+
if (e) {
|
|
13
|
+
try {
|
|
14
|
+
Object.defineProperty(e, "name", { value: n });
|
|
15
|
+
} catch {
|
|
16
|
+
}
|
|
17
|
+
Object.defineProperty(e, "adapterName", { value: n });
|
|
18
|
+
}
|
|
19
|
+
});
|
|
20
|
+
const c = (e) => `- ${e}`, b = (e) => a.isFunction(e) || e === null || e === !1, y = {
|
|
21
|
+
getAdapter: (e) => {
|
|
22
|
+
e = a.isArray(e) ? e : [e];
|
|
23
|
+
const { length: n } = e;
|
|
24
|
+
let o, r;
|
|
25
|
+
const p = {};
|
|
26
|
+
for (let t = 0; t < n; t++) {
|
|
27
|
+
o = e[t];
|
|
28
|
+
let i;
|
|
29
|
+
if (r = o, !b(o) && (r = s[(i = String(o)).toLowerCase()], r === void 0))
|
|
30
|
+
throw new d(`Unknown adapter '${i}'`);
|
|
31
|
+
if (r)
|
|
32
|
+
break;
|
|
33
|
+
p[i || "#" + t] = r;
|
|
34
|
+
}
|
|
35
|
+
if (!r) {
|
|
36
|
+
const t = Object.entries(p).map(
|
|
37
|
+
([f, l]) => `adapter ${f} ` + (l === !1 ? "is not supported by the environment" : "is not available in the build")
|
|
38
|
+
);
|
|
39
|
+
let i = n ? t.length > 1 ? `since :
|
|
40
|
+
` + t.map(c).join(`
|
|
41
|
+
`) : " " + c(t[0]) : "as no adapter specified";
|
|
42
|
+
throw new d(
|
|
43
|
+
"There is no suitable adapter to dispatch the request " + i,
|
|
44
|
+
"ERR_NOT_SUPPORT"
|
|
45
|
+
);
|
|
46
|
+
}
|
|
47
|
+
return r;
|
|
48
|
+
},
|
|
49
|
+
adapters: s
|
|
50
|
+
};
|
|
51
|
+
export {
|
|
52
|
+
y as default
|
|
53
|
+
};
|
package/api.js
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { urlEncode as n } from "./object.js";
|
|
2
|
+
const c = "7";
|
|
3
|
+
function p(t) {
|
|
4
|
+
const e = t.protocol ? `${t.protocol}:` : "", o = t.port ? `:${t.port}` : "";
|
|
5
|
+
return `${e}//${t.host}${o}${t.path ? `/${t.path}` : ""}/api/`;
|
|
6
|
+
}
|
|
7
|
+
function i(t) {
|
|
8
|
+
return `${p(t)}${t.projectId}/envelope/`;
|
|
9
|
+
}
|
|
10
|
+
function $(t, e) {
|
|
11
|
+
return n({
|
|
12
|
+
// We send only the minimum set of required information. See
|
|
13
|
+
// https://github.com/getsentry/sentry-javascript/issues/2572.
|
|
14
|
+
sentry_key: t.publicKey,
|
|
15
|
+
sentry_version: c,
|
|
16
|
+
...e && { sentry_client: `${e.name}/${e.version}` }
|
|
17
|
+
});
|
|
18
|
+
}
|
|
19
|
+
function u(t, e = {}) {
|
|
20
|
+
const o = typeof e == "string" ? e : e.tunnel, r = typeof e == "string" || !e._metadata ? void 0 : e._metadata.sdk;
|
|
21
|
+
return o || `${i(t)}?${$(t, r)}`;
|
|
22
|
+
}
|
|
23
|
+
export {
|
|
24
|
+
u as getEnvelopeEndpointWithUrlEncodedAuth
|
|
25
|
+
};
|
package/api2.js
ADDED
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import "./index12.js";
|
|
2
|
+
import E from "./axios.js";
|
|
3
|
+
var T;
|
|
4
|
+
const F = ((T = document.querySelector('meta[name="x-csrf-token"]')) == null ? void 0 : T.getAttribute("content")) || "", s = {
|
|
5
|
+
"cache-control": "no-cache",
|
|
6
|
+
"x-csrf-token": F
|
|
7
|
+
}, _ = "/v7/fonts/v2", l = E.create({ headers: s }), o = {
|
|
8
|
+
PORTAL_THEME: "/v7/portal/theme/",
|
|
9
|
+
GET_GLOBAL_FONTS: _ + "/",
|
|
10
|
+
GET_PORTAL_FONTS: _ + "/portal/",
|
|
11
|
+
// TODO: Replace this endpoint definition with the real one once is available
|
|
12
|
+
GET_DEFAULT_GLOBAL_FONT: "/v7/fonts/v2/default/",
|
|
13
|
+
// End TODO
|
|
14
|
+
GET_FONT_BY_ID: (t) => _ + `/${t}/`,
|
|
15
|
+
CREATE_SUBFAMILY: _ + "/subfamilies/",
|
|
16
|
+
GET_SUBFAMILY_BY_ID: (t) => _ + `/subfamilies/${t}/`,
|
|
17
|
+
DELETE_SUBFAMILY_BY_ID: (t) => _ + `/subfamilies/${t}/`
|
|
18
|
+
}, c = {
|
|
19
|
+
getGlobalFonts: (t, n, a) => l.get(o.GET_GLOBAL_FONTS, {
|
|
20
|
+
params: {
|
|
21
|
+
...a ? { offset: a } : null,
|
|
22
|
+
...t ? { pageSize: t } : null,
|
|
23
|
+
...n ? { searchTerm: n } : null
|
|
24
|
+
}
|
|
25
|
+
}).then((e) => e.data).then((e) => e.fonts),
|
|
26
|
+
getPortalFonts: (t, n, a) => l.get(o.GET_PORTAL_FONTS, {
|
|
27
|
+
params: {
|
|
28
|
+
...a ? { offset: a } : null,
|
|
29
|
+
...t ? { pageSize: t } : null,
|
|
30
|
+
...n ? { searchTerm: n } : null
|
|
31
|
+
}
|
|
32
|
+
}).then((e) => e.data).then((e) => e.fonts),
|
|
33
|
+
getFontFamilyById: (t) => l.get(o.GET_FONT_BY_ID(t)).then((n) => n.data),
|
|
34
|
+
getSubfamilyById: (t) => l.get(o.GET_SUBFAMILY_BY_ID(t)).then((n) => n.data),
|
|
35
|
+
getDefaultGlobalFont: () => l.get(o.GET_DEFAULT_GLOBAL_FONT).then((t) => t.data)
|
|
36
|
+
};
|
|
37
|
+
export {
|
|
38
|
+
c as API,
|
|
39
|
+
o as ENDPOINTS
|
|
40
|
+
};
|