@yoamigo.com/core 1.4.0 → 1.4.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/dist/index.d.ts +36 -11
- package/dist/index.js +12168 -12004
- package/dist/plugin.js +5 -0
- package/dist/prod.d.ts +1 -1
- package/dist/prod.js +4 -0
- package/dist/{useSafeTriangle-D5RnB8wa.d.ts → useSafeTriangle-PCUZIdaA.d.ts} +24 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { C as ChangeSource, Q as QueryFilter, b as CollectionRecord, o as CartItem, E as EditMode } from './cart-storage-DFdGPcwm.js';
|
|
2
2
|
export { a as CollectionClient, d as CollectionClientConfig, t as ContentStoreContextType, v as ContentStoreMode, p as ContentStoreProvider, L as ListOptions, c as ListResponse, S as SingleResponse, f as clearSessionId, g as getCollectionClient, n as getLocalCartItemCount, k as getLocalCartItems, e as getSessionId, i as initBuilderSelection, r as resetCollectionClient, q as useContentStore } from './cart-storage-DFdGPcwm.js';
|
|
3
|
-
export {
|
|
3
|
+
export { A as AudioFieldValue, J as BackgroundConfig, K as BackgroundImageConfig, C as ContentStoreProviderProd, x as EmbedFieldValue, y as EmbedType, I as ImageFieldValue, h as MarkdownText, j as MarkdownTextProps, O as OverlayConfig, P as PageInfo, f as StaticImage, g as StaticImageProps, M as StaticText, S as StaticTextProps, V as VideoFieldValue, D as YaContainer, H as YaContainerProps, q as YaEmbed, w as YaEmbedProps, Y as YaImage, k as YaImageProps, z as YaLink, B as YaLinkProps, m as YaVideo, o as YaVideoProps, a as audio, b as background, e as embed, i as image, l as link, F as parseBackgroundConfig, p as parseEmbedUrl, G as serializeBackgroundConfig, r as serializeEmbedValue, s as serializeImageValue, n as serializeVideoValue, t as text, c as useContentStoreProd, u as useSafeTriangle, v as video } from './useSafeTriangle-PCUZIdaA.js';
|
|
4
4
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
5
5
|
import React__default, { ReactNode, ComponentType } from 'react';
|
|
6
6
|
export { Link, LinkProps, NavigateFunction, RouteDefinition, Router, RouterProps, ScrollRestoration, createRouteDefinition, extractRouteParams, filePathToRoutePath, generatePath, sortRoutesBySpecificity, useNavigate } from './router.js';
|
|
@@ -1737,19 +1737,31 @@ declare function DynamicIconComponent({ name, fallback, className, size, stroke,
|
|
|
1737
1737
|
declare const DynamicIcon: React__default.MemoExoticComponent<typeof DynamicIconComponent>;
|
|
1738
1738
|
|
|
1739
1739
|
/**
|
|
1740
|
-
* Icon Registry - Dynamic import system with caching
|
|
1740
|
+
* Icon Registry - Dynamic import system with caching (DEV mode)
|
|
1741
1741
|
*
|
|
1742
1742
|
* This module provides tree-shakeable icon loading:
|
|
1743
1743
|
* - Pre-register icons for faster initial render (sync)
|
|
1744
|
-
* -
|
|
1744
|
+
* - Lazy-loaded icon loaders (loaded after window load for fast startup)
|
|
1745
1745
|
* - LRU-like cache to prevent memory bloat
|
|
1746
|
-
*
|
|
1746
|
+
*
|
|
1747
|
+
* Performance:
|
|
1748
|
+
* - Icon loaders (782KB) are lazy-loaded after window load
|
|
1749
|
+
* - Before load, icons will wait for loaders to be available
|
|
1750
|
+
* - After load, all icons load instantly via static imports
|
|
1751
|
+
*
|
|
1752
|
+
* Note: Production uses icon-registry.prod.ts which requires pre-registration.
|
|
1747
1753
|
*/
|
|
1748
1754
|
|
|
1749
1755
|
type IconComponent = ComponentType<IconProps>;
|
|
1750
|
-
type IconLoader = () => Promise<
|
|
1751
|
-
|
|
1752
|
-
|
|
1756
|
+
type IconLoader = () => Promise<IconComponent>;
|
|
1757
|
+
/**
|
|
1758
|
+
* Check if icon loaders have been loaded
|
|
1759
|
+
*/
|
|
1760
|
+
declare function isIconLoadersReady(): boolean;
|
|
1761
|
+
/**
|
|
1762
|
+
* Manually trigger icon loaders loading (useful for preloading)
|
|
1763
|
+
*/
|
|
1764
|
+
declare function preloadIconLoaders(): Promise<void>;
|
|
1753
1765
|
/**
|
|
1754
1766
|
* Pre-register an icon with a custom loader.
|
|
1755
1767
|
* Use this for icons that should be available immediately (e.g., commonly used icons).
|
|
@@ -1757,7 +1769,7 @@ type IconLoader = () => Promise<{
|
|
|
1757
1769
|
* @example
|
|
1758
1770
|
* ```ts
|
|
1759
1771
|
* // Pre-register for faster loading
|
|
1760
|
-
* registerIcon('IconBrandTwitter', () => import('@tabler/icons-react').then(m =>
|
|
1772
|
+
* registerIcon('IconBrandTwitter', () => import('@tabler/icons-react').then(m => m.IconBrandTwitter))
|
|
1761
1773
|
* ```
|
|
1762
1774
|
*/
|
|
1763
1775
|
declare function registerIcon(name: string, loader: IconLoader): void;
|
|
@@ -1767,8 +1779,8 @@ declare function registerIcon(name: string, loader: IconLoader): void;
|
|
|
1767
1779
|
* @example
|
|
1768
1780
|
* ```ts
|
|
1769
1781
|
* registerIcons({
|
|
1770
|
-
* IconBrandTwitter: () => import('@tabler/icons-react').then(m =>
|
|
1771
|
-
* IconBrandFacebook: () => import('@tabler/icons-react').then(m =>
|
|
1782
|
+
* IconBrandTwitter: () => import('@tabler/icons-react').then(m => m.IconBrandTwitter),
|
|
1783
|
+
* IconBrandFacebook: () => import('@tabler/icons-react').then(m => m.IconBrandFacebook),
|
|
1772
1784
|
* })
|
|
1773
1785
|
* ```
|
|
1774
1786
|
*/
|
|
@@ -1837,7 +1849,20 @@ declare function isIconLoaded(name: string): boolean;
|
|
|
1837
1849
|
* - Alias matching (common abbreviations, rebrands)
|
|
1838
1850
|
* - Fuzzy matching (typo tolerance via Levenshtein distance)
|
|
1839
1851
|
* - All ~6000 Tabler icons available (auto-categorized by name)
|
|
1852
|
+
*
|
|
1853
|
+
* Performance:
|
|
1854
|
+
* - Icon list (132KB) is lazy-loaded after window load
|
|
1855
|
+
* - Until loaded, search returns only curated icons (~150)
|
|
1856
|
+
* - After load, all ~6000 icons are searchable
|
|
1857
|
+
*/
|
|
1858
|
+
/**
|
|
1859
|
+
* Check if the full icon list has been loaded
|
|
1860
|
+
*/
|
|
1861
|
+
declare function isIconListLoaded(): boolean;
|
|
1862
|
+
/**
|
|
1863
|
+
* Manually trigger icon list loading (useful for preloading)
|
|
1840
1864
|
*/
|
|
1865
|
+
declare function preloadIconList(): Promise<void>;
|
|
1841
1866
|
type IconCategory = 'brand' | 'communication' | 'media' | 'navigation' | 'commerce' | 'ui' | 'files' | 'weather' | 'misc';
|
|
1842
1867
|
interface IconMeta {
|
|
1843
1868
|
name: string;
|
|
@@ -1890,4 +1915,4 @@ declare function getIconPickerLabel(value: string | null): string;
|
|
|
1890
1915
|
|
|
1891
1916
|
declare function IconPicker({ value, onChange, onClose }: IconPickerProps): react_jsx_runtime.JSX.Element;
|
|
1892
1917
|
|
|
1893
|
-
export { type AIEditContextValue, AIEditProvider, type AccessRule, type AnimatedTextOptions, type AnimatedTextResult, type AnimationConfig, type AnimationMetadata, type AnimationOptions, type AnimationPhase, type AnimationResult, type AnimationState, type AnimationStrategy, type AnyField, type AssetAccessInfo, CartItem, CartProvider, type CartProviderProps, type CheckoutOptions, type CheckoutResult, type CheckoutSessionStatus, type CollectionContentContextValue, CollectionContentProvider, type CollectionContentProviderProps, type CollectionData, CollectionDetailPage, type CollectionDetailPageProps, type CollectionDetailRenderProps, CollectionItem, type CollectionItemProps, type CollectionItemRenderProps, CollectionList, type CollectionListData, CollectionListPage, type CollectionListPageProps, type CollectionListPaginationProps, type CollectionListProps, type CollectionListRenderProps, CollectionRecord, type ContainerField, type ContentHandle, type CustomerPortalParams, type CustomerPortalResult, DynamicIcon, type DynamicIconProps, type EmbedField, ICON_CATEGORIES, ICON_METADATA, type IconCategory, type IconComponent, type IconLoader, type IconMeta, IconPicker, type IconPickerProps, type ImageField, type ImageValue, type LinkField, type LinkValue, type Product, QueryFilter, SafeHtml, type SafeHtmlProps, type SubscribeParams, type SubscribeResult, type SubscriptionDetails, type SubscriptionPrice, type SubscriptionProduct, type SubscriptionStatusResult, type SubscriptionStatusType, type SubscriptionTier, type TextAnimationMetadata, type TextDiff, type TextField, Tooltip, type TooltipProps, type UseCartOptions, type UseCartResult, type UseCheckoutOptions, type UseCheckoutResult, type UseCheckoutStatusOptions, type UseCheckoutStatusResult, type UseCollectionListOptions, type UseCollectionListResult, type UseCollectionRecordOptions, type UseCollectionRecordResult, type UseCustomerPortalOptions, type UseCustomerPortalResult, type UseProductOptions, type UseProductResult, type UseProductsOptions, type UseProductsResult, type UseSubscriptionOptions, type UseSubscriptionResult, type UseSubscriptionStatusOptions, type UseSubscriptionStatusResult, type UseSubscriptionTiersOptions, type UseSubscriptionTiersResult, type VideoField, YaIcon, type YaIconProps, YaProtectedMedia, type YaProtectedMediaProps, YaText, type YaTextProps, buildIntermediateText, calculateAnimationTiming, computeTextDiff, containsHtml, getIcon, getIconLabel, getIconMeta, getIconPickerLabel, getIconsByCategory, getTextCursorPosition, imageCrossfadeStrategy, isIconLoaded, linkTransitionStrategy, loadIcon, parseFieldValue, preloadIcons, registerIcon, registerIcons, searchIcons, stringifyFieldValue, stripHtml, textTypingStrategy, useAIEditAnimation, useAIEditContext, useAIEditContextOptional, useAnimatedText, useCart, useCartContext, useCheckout, useCheckoutStatus, useCollectionContent, useCollectionList, useCollectionRecord, useContent, useCustomerPortal, useOptionalCartContext, useProduct, useProducts, useSubscription, useSubscriptionStatus, useSubscriptionTiers };
|
|
1918
|
+
export { type AIEditContextValue, AIEditProvider, type AccessRule, type AnimatedTextOptions, type AnimatedTextResult, type AnimationConfig, type AnimationMetadata, type AnimationOptions, type AnimationPhase, type AnimationResult, type AnimationState, type AnimationStrategy, type AnyField, type AssetAccessInfo, CartItem, CartProvider, type CartProviderProps, type CheckoutOptions, type CheckoutResult, type CheckoutSessionStatus, type CollectionContentContextValue, CollectionContentProvider, type CollectionContentProviderProps, type CollectionData, CollectionDetailPage, type CollectionDetailPageProps, type CollectionDetailRenderProps, CollectionItem, type CollectionItemProps, type CollectionItemRenderProps, CollectionList, type CollectionListData, CollectionListPage, type CollectionListPageProps, type CollectionListPaginationProps, type CollectionListProps, type CollectionListRenderProps, CollectionRecord, type ContainerField, type ContentHandle, type CustomerPortalParams, type CustomerPortalResult, DynamicIcon, type DynamicIconProps, type EmbedField, ICON_CATEGORIES, ICON_METADATA, type IconCategory, type IconComponent, type IconLoader, type IconMeta, IconPicker, type IconPickerProps, type ImageField, type ImageValue, type LinkField, type LinkValue, type Product, QueryFilter, SafeHtml, type SafeHtmlProps, type SubscribeParams, type SubscribeResult, type SubscriptionDetails, type SubscriptionPrice, type SubscriptionProduct, type SubscriptionStatusResult, type SubscriptionStatusType, type SubscriptionTier, type TextAnimationMetadata, type TextDiff, type TextField, Tooltip, type TooltipProps, type UseCartOptions, type UseCartResult, type UseCheckoutOptions, type UseCheckoutResult, type UseCheckoutStatusOptions, type UseCheckoutStatusResult, type UseCollectionListOptions, type UseCollectionListResult, type UseCollectionRecordOptions, type UseCollectionRecordResult, type UseCustomerPortalOptions, type UseCustomerPortalResult, type UseProductOptions, type UseProductResult, type UseProductsOptions, type UseProductsResult, type UseSubscriptionOptions, type UseSubscriptionResult, type UseSubscriptionStatusOptions, type UseSubscriptionStatusResult, type UseSubscriptionTiersOptions, type UseSubscriptionTiersResult, type VideoField, YaIcon, type YaIconProps, YaProtectedMedia, type YaProtectedMediaProps, YaText, type YaTextProps, buildIntermediateText, calculateAnimationTiming, computeTextDiff, containsHtml, getIcon, getIconLabel, getIconMeta, getIconPickerLabel, getIconsByCategory, getTextCursorPosition, imageCrossfadeStrategy, isIconListLoaded, isIconLoaded, isIconLoadersReady, linkTransitionStrategy, loadIcon, parseFieldValue, preloadIconList, preloadIconLoaders, preloadIcons, registerIcon, registerIcons, searchIcons, stringifyFieldValue, stripHtml, textTypingStrategy, useAIEditAnimation, useAIEditContext, useAIEditContextOptional, useAnimatedText, useCart, useCartContext, useCheckout, useCheckoutStatus, useCollectionContent, useCollectionList, useCollectionRecord, useContent, useCustomerPortal, useOptionalCartContext, useProduct, useProducts, useSubscription, useSubscriptionStatus, useSubscriptionTiers };
|