@01.software/sdk 0.2.0 → 0.2.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.cts CHANGED
@@ -1,14 +1,14 @@
1
- import { O as Order, a as OrderProduct, T as Transaction, F as Fulfillment, R as Return, C as CartItem, P as ProductOption } from './payload-types-BWJZhklJ.cjs';
2
- export { k as ApiUsage, af as ApiUsageSelect, A as Audience, a9 as AudiencesSelect, aZ as Auth, Q as Author, aM as AuthorsSelect, m as BillingHistory, ah as BillingHistorySelect, t as Brand, B as BrandLogo, aq as BrandLogosSelect, ap as BrandsSelect, J as Cart, aF as CartItemsSelect, aE as CartsSelect, e as CodeBlock, b as Config, v as Customer, y as CustomerAddress, aB as CustomerAddressesSelect, c as CustomerAuthOperations, w as CustomerGroup, x as CustomerGroupImage, aD as CustomerGroupImagesSelect, aC as CustomerGroupsSelect, aA as CustomersSelect, K as Discount, aG as DiscountsSelect, X as Document, aO as DocumentCategoriesSelect, Y as DocumentCategory, Z as DocumentImage, aP as DocumentImagesSelect, aN as DocumentsSelect, E as EmailLog, aa as EmailLogsSelect, D as Exchange, G as ExchangeProduct, aw as ExchangeProductsSelect, av as ExchangesSelect, a1 as Form, a2 as FormSubmission, aU as FormSubmissionsSelect, aT as FormsSelect, H as FulfillmentItem, ay as FulfillmentItemsSelect, ax as FulfillmentsSelect, I as IframeBlock, M as Media, a8 as MediaSelect, $ as Music, aS as MusicsSelect, as as OrderProductsSelect, ar as OrdersSelect, a3 as PayloadKv, aV as PayloadKvSelect, a4 as PayloadLockedDocument, aW as PayloadLockedDocumentsSelect, a6 as PayloadMigration, aY as PayloadMigrationsSelect, a5 as PayloadPreference, aX as PayloadPreferencesSelect, d as PlayerBlock, _ as Playlist, a0 as PlaylistImage, aR as PlaylistImagesSelect, aQ as PlaylistsSelect, L as Post, aJ as PostCategoriesSelect, V as PostCategory, N as PostImage, aL as PostImagesSelect, W as PostTag, aK as PostTagsSelect, aI as PostsSelect, n as Product, al as ProductCategoriesSelect, q as ProductCategory, s as ProductCollection, ao as ProductCollectionsSelect, o as ProductImage, an as ProductImagesSelect, ak as ProductOptionsSelect, r as ProductTag, am as ProductTagsSelect, p as ProductVariant, aj as ProductVariantsSelect, ai as ProductsSelect, z as ReturnProduct, au as ReturnProductsSelect, at as ReturnsSelect, aH as ShippingPoliciesSelect, u as ShippingPolicy, l as Subscription, ag as SubscriptionsSelect, S as SupportedTimezones, g as Tenant, j as TenantLogo, ad as TenantLogosSelect, ac as TenantMetadataSelect, h as TenantMetadatum, i as TenantOgImage, ae as TenantOgImagesSelect, ab as TenantsSelect, az as TransactionsSelect, f as User, U as UserAuthOperations, a7 as UsersSelect } from './payload-types-BWJZhklJ.cjs';
3
- import { F as FetchOptions, A as ApiQueryOptions, P as PayloadFindResponse, a as PayloadMutationResponse, C as ClientBrowserConfig, b as ClientState, c as ClientServerConfig } from './auth-BE80zCjC.cjs';
4
- export { t as API_URLS, f as ApiError, y as ApiQueryReactOptions, w as ClientMetadata, g as ConfigError, d as DebugConfig, D as DeepPartial, s as Environment, e as ErrorLogger, E as ExtractArrayType, J as JwtPayload, N as NetworkError, x as PaginationMeta, R as RetryConfig, S as SDKError, T as TimeoutError, U as UsageLimitError, V as ValidationError, q as createApiKey, o as createServerToken, p as decodeServerToken, k as isApiError, l as isConfigError, h as isNetworkError, i as isSDKError, m as isTimeoutError, n as isUsageLimitError, j as isValidationError, r as parseApiKey, u as resolveApiUrl, v as verifyServerToken } from './auth-BE80zCjC.cjs';
1
+ import { O as Order, a as OrderProduct, T as Transaction, F as Fulfillment, R as Return, C as CartItem, P as ProductOption } from './payload-types-CmDse9mQ.cjs';
2
+ export { k as ApiUsage, ag as ApiUsageSelect, A as Audience, aa as AudiencesSelect, a$ as Auth, Q as Author, aN as AuthorsSelect, m as BillingHistory, ai as BillingHistorySelect, t as Brand, B as BrandLogo, ar as BrandLogosSelect, aq as BrandsSelect, J as Cart, aG as CartItemsSelect, aF as CartsSelect, e as CodeBlock, b as Config, v as Customer, y as CustomerAddress, aC as CustomerAddressesSelect, c as CustomerAuthOperations, w as CustomerGroup, x as CustomerGroupImage, aE as CustomerGroupImagesSelect, aD as CustomerGroupsSelect, aB as CustomersSelect, K as Discount, aH as DiscountsSelect, X as Document, aP as DocumentCategoriesSelect, _ as DocumentCategory, Z as DocumentImage, aR as DocumentImagesSelect, Y as DocumentType, aQ as DocumentTypesSelect, aO as DocumentsSelect, E as EmailLog, ab as EmailLogsSelect, D as Exchange, G as ExchangeProduct, ax as ExchangeProductsSelect, aw as ExchangesSelect, a2 as Form, a3 as FormSubmission, aW as FormSubmissionsSelect, aV as FormsSelect, H as FulfillmentItem, az as FulfillmentItemsSelect, ay as FulfillmentsSelect, I as IframeBlock, M as Media, a9 as MediaSelect, a0 as Music, aU as MusicsSelect, at as OrderProductsSelect, as as OrdersSelect, a4 as PayloadKv, aX as PayloadKvSelect, a5 as PayloadLockedDocument, aY as PayloadLockedDocumentsSelect, a7 as PayloadMigration, a_ as PayloadMigrationsSelect, a6 as PayloadPreference, aZ as PayloadPreferencesSelect, d as PlayerBlock, $ as Playlist, a1 as PlaylistImage, aT as PlaylistImagesSelect, aS as PlaylistsSelect, L as Post, aK as PostCategoriesSelect, V as PostCategory, N as PostImage, aM as PostImagesSelect, W as PostTag, aL as PostTagsSelect, aJ as PostsSelect, n as Product, am as ProductCategoriesSelect, q as ProductCategory, s as ProductCollection, ap as ProductCollectionsSelect, o as ProductImage, ao as ProductImagesSelect, al as ProductOptionsSelect, r as ProductTag, an as ProductTagsSelect, p as ProductVariant, ak as ProductVariantsSelect, aj as ProductsSelect, z as ReturnProduct, av as ReturnProductsSelect, au as ReturnsSelect, aI as ShippingPoliciesSelect, u as ShippingPolicy, l as Subscription, ah as SubscriptionsSelect, S as SupportedTimezones, g as Tenant, j as TenantLogo, ae as TenantLogosSelect, ad as TenantMetadataSelect, h as TenantMetadatum, i as TenantOgImage, af as TenantOgImagesSelect, ac as TenantsSelect, aA as TransactionsSelect, f as User, U as UserAuthOperations, a8 as UsersSelect } from './payload-types-CmDse9mQ.cjs';
3
+ import { F as FetchOptions, A as ApiQueryOptions, P as PayloadFindResponse, a as PayloadMutationResponse, C as ClientBrowserConfig, b as ClientState, c as ClientServerConfig } from './auth-E6a6eSB4.cjs';
4
+ export { t as API_URLS, f as ApiError, y as ApiQueryReactOptions, w as ClientMetadata, g as ConfigError, d as DebugConfig, D as DeepPartial, s as Environment, e as ErrorLogger, E as ExtractArrayType, J as JwtPayload, N as NetworkError, x as PaginationMeta, R as RetryConfig, S as SDKError, T as TimeoutError, U as UsageLimitError, V as ValidationError, q as createApiKey, o as createServerToken, p as decodeServerToken, k as isApiError, l as isConfigError, h as isNetworkError, i as isSDKError, m as isTimeoutError, n as isUsageLimitError, j as isValidationError, r as parseApiKey, u as resolveApiUrl, v as verifyServerToken } from './auth-E6a6eSB4.cjs';
5
5
  import * as _tanstack_react_query from '@tanstack/react-query';
6
6
  import { QueryClient } from '@tanstack/react-query';
7
- import { P as PublicCollection, C as CollectionType } from './webhook-DMxUpnQD.cjs';
8
- export { b as COLLECTIONS, a as Collection, c as WebhookEvent, d as WebhookHandler, W as WebhookOperation, e as WebhookOptions, f as createTypedWebhookHandler, h as handleWebhook, i as isValidWebhookEvent } from './webhook-DMxUpnQD.cjs';
7
+ import { P as PublicCollection, C as CollectionType } from './webhook-BpQ3M57n.cjs';
8
+ export { b as COLLECTIONS, a as Collection, c as WebhookEvent, d as WebhookHandler, W as WebhookOperation, e as WebhookOptions, f as createTypedWebhookHandler, h as handleWebhook, i as isValidWebhookEvent } from './webhook-BpQ3M57n.cjs';
9
9
  import { Metadata } from 'next';
10
10
  import { GenerateMetadataOptions } from './metadata.cjs';
11
- export { RichTextContent, RichTextContentProps, RichTextData } from './components.cjs';
11
+ export { m as FieldRenderContext, F as FormField, o as FormRenderer, n as FormRendererProps, l as FormValues, b as IMAGE_SIZES, q as Image, a as ImageData, I as ImagePalette, f as ImagePlaceholderOptions, p as ImageProps, k as InputField, j as RichTextContent, i as RichTextContentProps, R as RichTextData, S as SubmissionData, d as getImageLqip, e as getImagePalette, h as getImagePlaceholderStyle, c as getImageSrcSet, g as getImageUrl, t as toSubmissionData } from './index-BIkaO8Go.cjs';
12
12
  import 'payload';
13
13
  import 'react';
14
14
  import '@payloadcms/richtext-lexical';
@@ -642,43 +642,6 @@ declare function createServerClient(options: ClientServerConfig): ServerClient;
642
642
 
643
643
  declare function getQueryClient(): QueryClient;
644
644
 
645
- /** Common image data shape from Payload CMS upload collections */
646
- interface ImageData {
647
- url?: string | null;
648
- width?: number | null;
649
- height?: number | null;
650
- alt?: string | null;
651
- sizes?: Record<string, {
652
- url?: string | null;
653
- width?: number | null;
654
- height?: number | null;
655
- } | undefined>;
656
- }
657
- /** Pre-generated image size breakpoints (px) */
658
- declare const IMAGE_SIZES: readonly [384, 768, 1536];
659
- /**
660
- * Returns the optimal image URL for a given display width.
661
- *
662
- * Picks the smallest pre-generated size whose width >= displayWidth × dpr.
663
- * Falls back to the original URL when no matching size exists.
664
- *
665
- * @param image - Payload image document
666
- * @param displayWidth - CSS pixel width the image will be displayed at
667
- * @param dpr - Device pixel ratio (default: 1)
668
- * @returns URL string, or empty string if no URL is available
669
- */
670
- declare function getImageUrl(image: ImageData, displayWidth: number, dpr?: number): string;
671
- /**
672
- * Generates an HTML `srcset` attribute string from pre-generated sizes.
673
- *
674
- * Includes all available sizes plus the original image.
675
- * Example output: `"url-384 384w, url-768 768w, url-1536 1536w, url-original 2000w"`
676
- *
677
- * @param image - Payload image document
678
- * @returns srcset string, or empty string if no URLs are available
679
- */
680
- declare function getImageSrcSet(image: ImageData): string;
681
-
682
645
  declare const generateOrderNumber: () => string;
683
646
 
684
647
  declare const formatOrderName: (options: ProductOption[]) => string;
@@ -696,4 +659,4 @@ declare const resolveRelation: <T>(ref: T | number | null | undefined) => T | nu
696
659
  /** @deprecated Use `resolveRelation` instead */
697
660
  declare const objectFor: <T>(ref: T | number | null | undefined) => T | null;
698
661
 
699
- export { type AddItemParams, ApiQueryOptions, BrowserClient, BrowserClient as BrowserClientType, CartApi, type CartApiOptions, CartItem, type CheckoutParams, ClientBrowserConfig, ClientServerConfig, ClientState, CollectionClient, type CollectionDetailQueryParams, type CollectionInfiniteQueryParams, CollectionQueryBuilder, type CollectionQueryParams, CollectionType, type CreateFulfillmentParams, type CreateOrderParams, type CreateReturnParams, CustomerAuth, type CustomerAuthOptions, type CustomerAuthResponse, type CustomerLoginData, type CustomerProfile, type CustomerRefreshResponse, type CustomerRegisterData, Fulfillment, type GetOrderParams, IMAGE_SIZES, type ImageData, Order, OrderApi, type OrderApiOptions, OrderProduct, PayloadFindResponse, PayloadMutationResponse, ProductApi, type ProductApiOptions, ProductOption, PublicCollection, QueryHooks, type ReadOnlyQueryBuilder, type ReadOnlyQueryHooks, type RemoveItemParams, Return, type ReturnWithRefundParams, ServerClient, ServerClient as ServerClientType, type StockCheckParams, type StockCheckResponse, type StockCheckResult, Transaction, type UpdateItemParams, type UpdateOrderParams, type UpdateReturnParams, type UpdateTransactionParams, collectionKeys, createBrowserClient, createServerClient, customerKeys, formatOrderName, generateOrderNumber, getImageSrcSet, getImageUrl, getQueryClient, objectFor, resolveRelation };
662
+ export { type AddItemParams, ApiQueryOptions, BrowserClient, BrowserClient as BrowserClientType, CartApi, type CartApiOptions, CartItem, type CheckoutParams, ClientBrowserConfig, ClientServerConfig, ClientState, CollectionClient, type CollectionDetailQueryParams, type CollectionInfiniteQueryParams, CollectionQueryBuilder, type CollectionQueryParams, CollectionType, type CreateFulfillmentParams, type CreateOrderParams, type CreateReturnParams, CustomerAuth, type CustomerAuthOptions, type CustomerAuthResponse, type CustomerLoginData, type CustomerProfile, type CustomerRefreshResponse, type CustomerRegisterData, Fulfillment, type GetOrderParams, Order, OrderApi, type OrderApiOptions, OrderProduct, PayloadFindResponse, PayloadMutationResponse, ProductApi, type ProductApiOptions, ProductOption, PublicCollection, QueryHooks, type ReadOnlyQueryBuilder, type ReadOnlyQueryHooks, type RemoveItemParams, Return, type ReturnWithRefundParams, ServerClient, ServerClient as ServerClientType, type StockCheckParams, type StockCheckResponse, type StockCheckResult, Transaction, type UpdateItemParams, type UpdateOrderParams, type UpdateReturnParams, type UpdateTransactionParams, collectionKeys, createBrowserClient, createServerClient, customerKeys, formatOrderName, generateOrderNumber, getQueryClient, objectFor, resolveRelation };
package/dist/index.d.ts CHANGED
@@ -1,14 +1,14 @@
1
- import { O as Order, a as OrderProduct, T as Transaction, F as Fulfillment, R as Return, C as CartItem, P as ProductOption } from './payload-types-BWJZhklJ.js';
2
- export { k as ApiUsage, af as ApiUsageSelect, A as Audience, a9 as AudiencesSelect, aZ as Auth, Q as Author, aM as AuthorsSelect, m as BillingHistory, ah as BillingHistorySelect, t as Brand, B as BrandLogo, aq as BrandLogosSelect, ap as BrandsSelect, J as Cart, aF as CartItemsSelect, aE as CartsSelect, e as CodeBlock, b as Config, v as Customer, y as CustomerAddress, aB as CustomerAddressesSelect, c as CustomerAuthOperations, w as CustomerGroup, x as CustomerGroupImage, aD as CustomerGroupImagesSelect, aC as CustomerGroupsSelect, aA as CustomersSelect, K as Discount, aG as DiscountsSelect, X as Document, aO as DocumentCategoriesSelect, Y as DocumentCategory, Z as DocumentImage, aP as DocumentImagesSelect, aN as DocumentsSelect, E as EmailLog, aa as EmailLogsSelect, D as Exchange, G as ExchangeProduct, aw as ExchangeProductsSelect, av as ExchangesSelect, a1 as Form, a2 as FormSubmission, aU as FormSubmissionsSelect, aT as FormsSelect, H as FulfillmentItem, ay as FulfillmentItemsSelect, ax as FulfillmentsSelect, I as IframeBlock, M as Media, a8 as MediaSelect, $ as Music, aS as MusicsSelect, as as OrderProductsSelect, ar as OrdersSelect, a3 as PayloadKv, aV as PayloadKvSelect, a4 as PayloadLockedDocument, aW as PayloadLockedDocumentsSelect, a6 as PayloadMigration, aY as PayloadMigrationsSelect, a5 as PayloadPreference, aX as PayloadPreferencesSelect, d as PlayerBlock, _ as Playlist, a0 as PlaylistImage, aR as PlaylistImagesSelect, aQ as PlaylistsSelect, L as Post, aJ as PostCategoriesSelect, V as PostCategory, N as PostImage, aL as PostImagesSelect, W as PostTag, aK as PostTagsSelect, aI as PostsSelect, n as Product, al as ProductCategoriesSelect, q as ProductCategory, s as ProductCollection, ao as ProductCollectionsSelect, o as ProductImage, an as ProductImagesSelect, ak as ProductOptionsSelect, r as ProductTag, am as ProductTagsSelect, p as ProductVariant, aj as ProductVariantsSelect, ai as ProductsSelect, z as ReturnProduct, au as ReturnProductsSelect, at as ReturnsSelect, aH as ShippingPoliciesSelect, u as ShippingPolicy, l as Subscription, ag as SubscriptionsSelect, S as SupportedTimezones, g as Tenant, j as TenantLogo, ad as TenantLogosSelect, ac as TenantMetadataSelect, h as TenantMetadatum, i as TenantOgImage, ae as TenantOgImagesSelect, ab as TenantsSelect, az as TransactionsSelect, f as User, U as UserAuthOperations, a7 as UsersSelect } from './payload-types-BWJZhklJ.js';
3
- import { F as FetchOptions, A as ApiQueryOptions, P as PayloadFindResponse, a as PayloadMutationResponse, C as ClientBrowserConfig, b as ClientState, c as ClientServerConfig } from './auth-BC0CWHt_.js';
4
- export { t as API_URLS, f as ApiError, y as ApiQueryReactOptions, w as ClientMetadata, g as ConfigError, d as DebugConfig, D as DeepPartial, s as Environment, e as ErrorLogger, E as ExtractArrayType, J as JwtPayload, N as NetworkError, x as PaginationMeta, R as RetryConfig, S as SDKError, T as TimeoutError, U as UsageLimitError, V as ValidationError, q as createApiKey, o as createServerToken, p as decodeServerToken, k as isApiError, l as isConfigError, h as isNetworkError, i as isSDKError, m as isTimeoutError, n as isUsageLimitError, j as isValidationError, r as parseApiKey, u as resolveApiUrl, v as verifyServerToken } from './auth-BC0CWHt_.js';
1
+ import { O as Order, a as OrderProduct, T as Transaction, F as Fulfillment, R as Return, C as CartItem, P as ProductOption } from './payload-types-CmDse9mQ.js';
2
+ export { k as ApiUsage, ag as ApiUsageSelect, A as Audience, aa as AudiencesSelect, a$ as Auth, Q as Author, aN as AuthorsSelect, m as BillingHistory, ai as BillingHistorySelect, t as Brand, B as BrandLogo, ar as BrandLogosSelect, aq as BrandsSelect, J as Cart, aG as CartItemsSelect, aF as CartsSelect, e as CodeBlock, b as Config, v as Customer, y as CustomerAddress, aC as CustomerAddressesSelect, c as CustomerAuthOperations, w as CustomerGroup, x as CustomerGroupImage, aE as CustomerGroupImagesSelect, aD as CustomerGroupsSelect, aB as CustomersSelect, K as Discount, aH as DiscountsSelect, X as Document, aP as DocumentCategoriesSelect, _ as DocumentCategory, Z as DocumentImage, aR as DocumentImagesSelect, Y as DocumentType, aQ as DocumentTypesSelect, aO as DocumentsSelect, E as EmailLog, ab as EmailLogsSelect, D as Exchange, G as ExchangeProduct, ax as ExchangeProductsSelect, aw as ExchangesSelect, a2 as Form, a3 as FormSubmission, aW as FormSubmissionsSelect, aV as FormsSelect, H as FulfillmentItem, az as FulfillmentItemsSelect, ay as FulfillmentsSelect, I as IframeBlock, M as Media, a9 as MediaSelect, a0 as Music, aU as MusicsSelect, at as OrderProductsSelect, as as OrdersSelect, a4 as PayloadKv, aX as PayloadKvSelect, a5 as PayloadLockedDocument, aY as PayloadLockedDocumentsSelect, a7 as PayloadMigration, a_ as PayloadMigrationsSelect, a6 as PayloadPreference, aZ as PayloadPreferencesSelect, d as PlayerBlock, $ as Playlist, a1 as PlaylistImage, aT as PlaylistImagesSelect, aS as PlaylistsSelect, L as Post, aK as PostCategoriesSelect, V as PostCategory, N as PostImage, aM as PostImagesSelect, W as PostTag, aL as PostTagsSelect, aJ as PostsSelect, n as Product, am as ProductCategoriesSelect, q as ProductCategory, s as ProductCollection, ap as ProductCollectionsSelect, o as ProductImage, ao as ProductImagesSelect, al as ProductOptionsSelect, r as ProductTag, an as ProductTagsSelect, p as ProductVariant, ak as ProductVariantsSelect, aj as ProductsSelect, z as ReturnProduct, av as ReturnProductsSelect, au as ReturnsSelect, aI as ShippingPoliciesSelect, u as ShippingPolicy, l as Subscription, ah as SubscriptionsSelect, S as SupportedTimezones, g as Tenant, j as TenantLogo, ae as TenantLogosSelect, ad as TenantMetadataSelect, h as TenantMetadatum, i as TenantOgImage, af as TenantOgImagesSelect, ac as TenantsSelect, aA as TransactionsSelect, f as User, U as UserAuthOperations, a8 as UsersSelect } from './payload-types-CmDse9mQ.js';
3
+ import { F as FetchOptions, A as ApiQueryOptions, P as PayloadFindResponse, a as PayloadMutationResponse, C as ClientBrowserConfig, b as ClientState, c as ClientServerConfig } from './auth-DHZs286d.js';
4
+ export { t as API_URLS, f as ApiError, y as ApiQueryReactOptions, w as ClientMetadata, g as ConfigError, d as DebugConfig, D as DeepPartial, s as Environment, e as ErrorLogger, E as ExtractArrayType, J as JwtPayload, N as NetworkError, x as PaginationMeta, R as RetryConfig, S as SDKError, T as TimeoutError, U as UsageLimitError, V as ValidationError, q as createApiKey, o as createServerToken, p as decodeServerToken, k as isApiError, l as isConfigError, h as isNetworkError, i as isSDKError, m as isTimeoutError, n as isUsageLimitError, j as isValidationError, r as parseApiKey, u as resolveApiUrl, v as verifyServerToken } from './auth-DHZs286d.js';
5
5
  import * as _tanstack_react_query from '@tanstack/react-query';
6
6
  import { QueryClient } from '@tanstack/react-query';
7
- import { P as PublicCollection, C as CollectionType } from './webhook-CcdyGpCb.js';
8
- export { b as COLLECTIONS, a as Collection, c as WebhookEvent, d as WebhookHandler, W as WebhookOperation, e as WebhookOptions, f as createTypedWebhookHandler, h as handleWebhook, i as isValidWebhookEvent } from './webhook-CcdyGpCb.js';
7
+ import { P as PublicCollection, C as CollectionType } from './webhook-DNIikEHk.js';
8
+ export { b as COLLECTIONS, a as Collection, c as WebhookEvent, d as WebhookHandler, W as WebhookOperation, e as WebhookOptions, f as createTypedWebhookHandler, h as handleWebhook, i as isValidWebhookEvent } from './webhook-DNIikEHk.js';
9
9
  import { Metadata } from 'next';
10
10
  import { GenerateMetadataOptions } from './metadata.js';
11
- export { RichTextContent, RichTextContentProps, RichTextData } from './components.js';
11
+ export { m as FieldRenderContext, F as FormField, o as FormRenderer, n as FormRendererProps, l as FormValues, b as IMAGE_SIZES, q as Image, a as ImageData, I as ImagePalette, f as ImagePlaceholderOptions, p as ImageProps, k as InputField, j as RichTextContent, i as RichTextContentProps, R as RichTextData, S as SubmissionData, d as getImageLqip, e as getImagePalette, h as getImagePlaceholderStyle, c as getImageSrcSet, g as getImageUrl, t as toSubmissionData } from './index-4y8p5Pjy.js';
12
12
  import 'payload';
13
13
  import 'react';
14
14
  import '@payloadcms/richtext-lexical';
@@ -642,43 +642,6 @@ declare function createServerClient(options: ClientServerConfig): ServerClient;
642
642
 
643
643
  declare function getQueryClient(): QueryClient;
644
644
 
645
- /** Common image data shape from Payload CMS upload collections */
646
- interface ImageData {
647
- url?: string | null;
648
- width?: number | null;
649
- height?: number | null;
650
- alt?: string | null;
651
- sizes?: Record<string, {
652
- url?: string | null;
653
- width?: number | null;
654
- height?: number | null;
655
- } | undefined>;
656
- }
657
- /** Pre-generated image size breakpoints (px) */
658
- declare const IMAGE_SIZES: readonly [384, 768, 1536];
659
- /**
660
- * Returns the optimal image URL for a given display width.
661
- *
662
- * Picks the smallest pre-generated size whose width >= displayWidth × dpr.
663
- * Falls back to the original URL when no matching size exists.
664
- *
665
- * @param image - Payload image document
666
- * @param displayWidth - CSS pixel width the image will be displayed at
667
- * @param dpr - Device pixel ratio (default: 1)
668
- * @returns URL string, or empty string if no URL is available
669
- */
670
- declare function getImageUrl(image: ImageData, displayWidth: number, dpr?: number): string;
671
- /**
672
- * Generates an HTML `srcset` attribute string from pre-generated sizes.
673
- *
674
- * Includes all available sizes plus the original image.
675
- * Example output: `"url-384 384w, url-768 768w, url-1536 1536w, url-original 2000w"`
676
- *
677
- * @param image - Payload image document
678
- * @returns srcset string, or empty string if no URLs are available
679
- */
680
- declare function getImageSrcSet(image: ImageData): string;
681
-
682
645
  declare const generateOrderNumber: () => string;
683
646
 
684
647
  declare const formatOrderName: (options: ProductOption[]) => string;
@@ -696,4 +659,4 @@ declare const resolveRelation: <T>(ref: T | number | null | undefined) => T | nu
696
659
  /** @deprecated Use `resolveRelation` instead */
697
660
  declare const objectFor: <T>(ref: T | number | null | undefined) => T | null;
698
661
 
699
- export { type AddItemParams, ApiQueryOptions, BrowserClient, BrowserClient as BrowserClientType, CartApi, type CartApiOptions, CartItem, type CheckoutParams, ClientBrowserConfig, ClientServerConfig, ClientState, CollectionClient, type CollectionDetailQueryParams, type CollectionInfiniteQueryParams, CollectionQueryBuilder, type CollectionQueryParams, CollectionType, type CreateFulfillmentParams, type CreateOrderParams, type CreateReturnParams, CustomerAuth, type CustomerAuthOptions, type CustomerAuthResponse, type CustomerLoginData, type CustomerProfile, type CustomerRefreshResponse, type CustomerRegisterData, Fulfillment, type GetOrderParams, IMAGE_SIZES, type ImageData, Order, OrderApi, type OrderApiOptions, OrderProduct, PayloadFindResponse, PayloadMutationResponse, ProductApi, type ProductApiOptions, ProductOption, PublicCollection, QueryHooks, type ReadOnlyQueryBuilder, type ReadOnlyQueryHooks, type RemoveItemParams, Return, type ReturnWithRefundParams, ServerClient, ServerClient as ServerClientType, type StockCheckParams, type StockCheckResponse, type StockCheckResult, Transaction, type UpdateItemParams, type UpdateOrderParams, type UpdateReturnParams, type UpdateTransactionParams, collectionKeys, createBrowserClient, createServerClient, customerKeys, formatOrderName, generateOrderNumber, getImageSrcSet, getImageUrl, getQueryClient, objectFor, resolveRelation };
662
+ export { type AddItemParams, ApiQueryOptions, BrowserClient, BrowserClient as BrowserClientType, CartApi, type CartApiOptions, CartItem, type CheckoutParams, ClientBrowserConfig, ClientServerConfig, ClientState, CollectionClient, type CollectionDetailQueryParams, type CollectionInfiniteQueryParams, CollectionQueryBuilder, type CollectionQueryParams, CollectionType, type CreateFulfillmentParams, type CreateOrderParams, type CreateReturnParams, CustomerAuth, type CustomerAuthOptions, type CustomerAuthResponse, type CustomerLoginData, type CustomerProfile, type CustomerRefreshResponse, type CustomerRegisterData, Fulfillment, type GetOrderParams, Order, OrderApi, type OrderApiOptions, OrderProduct, PayloadFindResponse, PayloadMutationResponse, ProductApi, type ProductApiOptions, ProductOption, PublicCollection, QueryHooks, type ReadOnlyQueryBuilder, type ReadOnlyQueryHooks, type RemoveItemParams, Return, type ReturnWithRefundParams, ServerClient, ServerClient as ServerClientType, type StockCheckParams, type StockCheckResponse, type StockCheckResult, Transaction, type UpdateItemParams, type UpdateOrderParams, type UpdateReturnParams, type UpdateTransactionParams, collectionKeys, createBrowserClient, createServerClient, customerKeys, formatOrderName, generateOrderNumber, getQueryClient, objectFor, resolveRelation };