@kotao/storefront 0.2.2 → 0.2.3
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/chunk-4OQYNUGM.js +29 -0
- package/dist/chunk-4OQYNUGM.js.map +1 -0
- package/dist/{chunk-7XYWHWT4.js → chunk-4TEFGD42.js} +331 -38
- package/dist/chunk-4TEFGD42.js.map +1 -0
- package/dist/chunk-7MTCGXIG.js +144 -0
- package/dist/chunk-7MTCGXIG.js.map +1 -0
- package/dist/chunk-IIOHENCG.js +239 -0
- package/dist/chunk-IIOHENCG.js.map +1 -0
- package/dist/chunk-VV653S52.js +246 -0
- package/dist/chunk-VV653S52.js.map +1 -0
- package/dist/chunk-WG7HYVHJ.js +38 -0
- package/dist/chunk-WG7HYVHJ.js.map +1 -0
- package/dist/{client-DiPdlvPu.d.ts → client-D51WdvYR.d.ts} +55 -8
- package/dist/client-bsiNPHBi.d.ts +159 -0
- package/dist/createCartHandler-C4RrPwSG.d.ts +58 -0
- package/dist/editor.d.ts +1 -1
- package/dist/events-react.d.ts +68 -0
- package/dist/events-react.js +557 -0
- package/dist/events-react.js.map +1 -0
- package/dist/events.d.ts +18 -0
- package/dist/events.js +5 -0
- package/dist/events.js.map +1 -0
- package/dist/{fetch-B6TIc6lI.d.ts → fetch-M3Y-fQrW.d.ts} +1 -1
- package/dist/forms.d.ts +58 -0
- package/dist/forms.js +3 -0
- package/dist/forms.js.map +1 -0
- package/dist/http-types-CGh8WGHB.d.ts +11 -0
- package/dist/index.d.ts +74 -12
- package/dist/index.js +55 -9
- package/dist/index.js.map +1 -1
- package/dist/offer-token-C-nk_nj8.d.ts +16 -0
- package/dist/{pagination-CPgH3fAa.d.ts → pagination-DCrQk02Q.d.ts} +1 -1
- package/dist/product.d.ts +1 -1
- package/dist/react-router.d.ts +11 -7
- package/dist/react-router.js +4 -3
- package/dist/react-router.js.map +1 -1
- package/dist/react.d.ts +30 -7
- package/dist/react.js +4 -2
- package/dist/react.js.map +1 -1
- package/dist/{routing-BxRlep_-.d.ts → routing-sEonP93J.d.ts} +17 -60
- package/dist/seo.d.ts +2 -1
- package/dist/settings.d.ts +5 -4
- package/dist/{shop-DkQmro-Y.d.ts → shop-BJSvtmnV.d.ts} +2 -2
- package/dist/{store-DQK1nhob.d.ts → store-CtCWHI8H.d.ts} +1 -1
- package/dist/types-CSNXbGFW.d.ts +108 -0
- package/dist/{types-Df3bGbKU.d.ts → types-bcbQzx87.d.ts} +1 -1
- package/package.json +13 -1
- package/dist/chunk-7XYWHWT4.js.map +0 -1
|
@@ -1,60 +1,8 @@
|
|
|
1
|
-
import { S as StoredThemeSettings } from './fetch-
|
|
2
|
-
import {
|
|
3
|
-
import { C as
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
readonly lines?: readonly CartLineInput[];
|
|
7
|
-
readonly note?: string | null;
|
|
8
|
-
readonly attributes?: readonly CartAttribute[];
|
|
9
|
-
readonly buyerIdentity?: CartBuyerIdentityInput;
|
|
10
|
-
}
|
|
11
|
-
interface CartDispatchAction {
|
|
12
|
-
readonly action: CartFormAction;
|
|
13
|
-
readonly inputs: Record<string, unknown>;
|
|
14
|
-
}
|
|
15
|
-
interface CartHandler {
|
|
16
|
-
get(): Promise<Cart | null>;
|
|
17
|
-
getCart(): Promise<Cart | null>;
|
|
18
|
-
create(input?: CartCreateInput): Promise<CartMutationResult>;
|
|
19
|
-
addLines(lines: readonly CartLineInput[]): Promise<CartMutationResult>;
|
|
20
|
-
updateLines(lines: readonly CartLineUpdateInput[]): Promise<CartMutationResult>;
|
|
21
|
-
removeLines(lineIds: readonly string[]): Promise<CartMutationResult>;
|
|
22
|
-
updateBuyerIdentity(buyerIdentity: CartBuyerIdentityInput): Promise<CartMutationResult>;
|
|
23
|
-
updateDiscountCodes(discountCodes: readonly string[]): Promise<CartMutationResult>;
|
|
24
|
-
setCartId(cartId: string): Headers;
|
|
25
|
-
cartCreate(input?: CartCreateInput): Promise<CartMutationResult>;
|
|
26
|
-
linesAdd(lines: readonly CartLineInput[]): Promise<CartMutationResult>;
|
|
27
|
-
linesUpdate(lines: readonly CartLineUpdateInput[]): Promise<CartMutationResult>;
|
|
28
|
-
linesRemove(lineIds: readonly string[]): Promise<CartMutationResult>;
|
|
29
|
-
buyerIdentityUpdate(buyerIdentity: CartBuyerIdentityInput): Promise<CartMutationResult>;
|
|
30
|
-
discountCodesUpdate(discountCodes: readonly string[]): Promise<CartMutationResult>;
|
|
31
|
-
giftCardCodesAdd(giftCardCodes: readonly string[]): Promise<CartMutationResult>;
|
|
32
|
-
giftCardCodesRemove(giftCardCodes: readonly string[]): Promise<CartMutationResult>;
|
|
33
|
-
noteUpdate(note: string | null): Promise<CartMutationResult>;
|
|
34
|
-
attributesUpdate(attributes: readonly CartAttribute[]): Promise<CartMutationResult>;
|
|
35
|
-
metafieldsSet(metafields: readonly CartMetafield[]): Promise<CartMutationResult>;
|
|
36
|
-
metafieldsDelete(metafields: readonly CartMetafieldIdentifier[]): Promise<CartMutationResult>;
|
|
37
|
-
deliveryAddressesReplace(addresses: readonly CartDeliveryAddress[]): Promise<CartMutationResult>;
|
|
38
|
-
selectedDeliveryOptionsUpdate(selectedDeliveryOptions: readonly CartSelectedDeliveryOption[]): Promise<CartMutationResult>;
|
|
39
|
-
dispatch(action: CartDispatchAction): Promise<CartMutationResult>;
|
|
40
|
-
}
|
|
41
|
-
type MaybePromise<T> = T | Promise<T>;
|
|
42
|
-
type CartGetId = () => MaybePromise<string | null | undefined>;
|
|
43
|
-
type CartSetId = (cartId: string) => MaybePromise<string | Headers | null | undefined | void>;
|
|
44
|
-
interface RequestCartHandlerOptions {
|
|
45
|
-
request: Request;
|
|
46
|
-
storefront: StorefrontClient;
|
|
47
|
-
}
|
|
48
|
-
interface HydrogenCartHandlerOptions {
|
|
49
|
-
storefront: StorefrontClient;
|
|
50
|
-
customerAccount?: unknown;
|
|
51
|
-
getCartId: CartGetId;
|
|
52
|
-
setCartId: CartSetId;
|
|
53
|
-
}
|
|
54
|
-
type CreateCartHandlerOptions = RequestCartHandlerOptions | HydrogenCartHandlerOptions;
|
|
55
|
-
declare function cartGetIdDefault(headers: Headers): CartGetId;
|
|
56
|
-
declare function cartSetIdDefault(): CartSetId;
|
|
57
|
-
declare function createCartHandler(opts: CreateCartHandlerOptions): CartHandler;
|
|
1
|
+
import { S as StoredThemeSettings } from './fetch-M3Y-fQrW.js';
|
|
2
|
+
import { C as CacheStrategy, K as KotaoCache, S as StorefrontClient, b as StorefrontCacheInput } from './client-D51WdvYR.js';
|
|
3
|
+
import { C as CartHandler } from './createCartHandler-C4RrPwSG.js';
|
|
4
|
+
import { E as EventsClient } from './client-bsiNPHBi.js';
|
|
5
|
+
import { H as HydrogenSession } from './types-bcbQzx87.js';
|
|
58
6
|
|
|
59
7
|
/**
|
|
60
8
|
* Typed customer-account shapes for the `@kotao/storefront` SDK surface (#91). The names/signatures
|
|
@@ -96,6 +44,8 @@ interface RequestLoginCodeInput {
|
|
|
96
44
|
}
|
|
97
45
|
interface RequestLoginCodeResult {
|
|
98
46
|
readonly status: 'sent' | 'rate_limited' | 'error';
|
|
47
|
+
/** Raw proxy response carrying CSRF rotation cookies/headers to the browser action. */
|
|
48
|
+
readonly response: Response;
|
|
99
49
|
}
|
|
100
50
|
interface VerifyLoginCodeInput {
|
|
101
51
|
readonly email: string;
|
|
@@ -247,6 +197,8 @@ interface KotaoEnv {
|
|
|
247
197
|
* Must match the api proxy's STOREFRONT_SHOP_CONTEXT_KEY.
|
|
248
198
|
*/
|
|
249
199
|
STOREFRONT_SHOP_CONTEXT_KEY?: string;
|
|
200
|
+
/** Explicit local-dev origin; production receives the gateway-overwritten header. */
|
|
201
|
+
STOREFRONT_SHOP_ORIGIN?: string;
|
|
250
202
|
SESSION_SECRET?: string;
|
|
251
203
|
PUBLIC_STOREFRONT_API_TOKEN?: string;
|
|
252
204
|
PRIVATE_STOREFRONT_API_TOKEN?: string;
|
|
@@ -257,11 +209,15 @@ interface KotaoEnv {
|
|
|
257
209
|
PUBLIC_CHECKOUT_DOMAIN?: string;
|
|
258
210
|
SHOP_ID?: string;
|
|
259
211
|
}
|
|
212
|
+
interface StorefrontExecutionContext {
|
|
213
|
+
waitUntil(promise: Promise<unknown>): void;
|
|
214
|
+
}
|
|
260
215
|
interface KotaoSession extends HydrogenSession {
|
|
261
216
|
readonly isLoggedIn: boolean;
|
|
262
217
|
}
|
|
263
218
|
interface KotaoContext {
|
|
264
219
|
readonly storefront: StorefrontClient;
|
|
220
|
+
readonly events: EventsClient;
|
|
265
221
|
readonly cart: CartHandler;
|
|
266
222
|
readonly customerAccount: CustomerAccountClient;
|
|
267
223
|
readonly geo: Geo | null;
|
|
@@ -282,12 +238,13 @@ interface KotaoContext {
|
|
|
282
238
|
readonly fetch?: typeof fetch;
|
|
283
239
|
}) => Promise<StoredThemeSettings>;
|
|
284
240
|
}
|
|
241
|
+
declare function trustedShopOriginFromHeaders(headers: Headers): string | undefined;
|
|
285
242
|
/**
|
|
286
243
|
* Framework-agnostic per-request context, mirroring Hydrogen's `createHydrogenContext`:
|
|
287
244
|
* storefront client + verified geo + SWR cache + locale + session seam.
|
|
288
245
|
*/
|
|
289
|
-
declare function createKotaoContext(request: Request, env: KotaoEnv, executionCtx:
|
|
290
|
-
openCache?: (name: string) => Promise<
|
|
246
|
+
declare function createKotaoContext(request: Request, env: KotaoEnv, executionCtx: StorefrontExecutionContext, deps?: {
|
|
247
|
+
openCache?: (name: string) => Promise<StorefrontCacheInput>;
|
|
291
248
|
session?: HydrogenSession;
|
|
292
249
|
}): Promise<KotaoContext>;
|
|
293
250
|
|
|
@@ -309,4 +266,4 @@ declare function stripLocalePrefixFromPathname(pathname: string): StrippedLocale
|
|
|
309
266
|
declare function stripLocalePrefixFromRequest(request: Request): Request;
|
|
310
267
|
declare function localizePath(path: string, locale: string | null | undefined, options?: LocalizePathOptions): string;
|
|
311
268
|
|
|
312
|
-
export { type Address as A,
|
|
269
|
+
export { type Address as A, trustedShopOriginFromHeaders as B, type CustomerAccountClient as C, verifyGeo as D, GEO_HEADER as G, type KotaoEnv as K, type LocalizePathOptions as L, type Money as M, type Order as O, ROUTING_LOCALE_HEADER as R, type StorefrontExecutionContext as S, type VerifyLoginCodeInput as V, type WithCache as W, type KotaoContext as a, type KotaoSession as b, type AddressConnection as c, type CustomerAccount as d, CustomerAccountError as e, type CustomerAccountErrorCode as f, GEO_SIGNATURE_HEADER as g, type Geo as h, type OrderConnection as i, type OrderPageInfo as j, type OrdersOptions as k, ROUTING_ORIGINAL_PATHNAME_HEADER as l, type RequestLoginCodeInput as m, type RequestLoginCodeResult as n, type StrippedLocalePath as o, createKotaoContext as p, createWithCache as q, isLocalePathSegment as r, stripLocalePrefixFromRequest as s, localeFromAcceptLanguage as t, localeFromPathname as u, localeFromRequest as v, localizePath as w, originalPathnameFromRequest as x, signGeo as y, stripLocalePrefixFromPathname as z };
|
package/dist/seo.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { S as SeoConfig, b as SeoDescriptor, J as JsonLd } from './types-BDhHWZsP.js';
|
|
2
2
|
export { A as Alternate, O as OpenGraph, a as OpenGraphImage, T as TwitterCard } from './types-BDhHWZsP.js';
|
|
3
|
-
import {
|
|
3
|
+
import { S as StorefrontClient } from './client-D51WdvYR.js';
|
|
4
|
+
import './http-types-CGh8WGHB.js';
|
|
4
5
|
|
|
5
6
|
/**
|
|
6
7
|
* Merge SEO config across levels and emit a flat, deduplicated descriptor list (RR7 `meta`-compatible):
|
package/dist/settings.d.ts
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { SectionSchema, Preset, ValuesDocument, SettingInput, SectionInstance } from '@kotao/storefront-contracts/theme';
|
|
2
|
-
import {
|
|
3
|
-
export {
|
|
4
|
-
export { F as FetchThemeSettingsOptions, S as StoredThemeSettings, f as fetchThemeSettings } from './fetch-
|
|
5
|
-
import './client-
|
|
2
|
+
import { c as ResolvedSection, R as ResolvedSettings, a as ThemeSettingsSnapshot } from './store-CtCWHI8H.js';
|
|
3
|
+
export { b as ResolvedBlock, T as ThemeSettingsStore, d as createThemeSettingsStore } from './store-CtCWHI8H.js';
|
|
4
|
+
export { F as FetchThemeSettingsOptions, S as StoredThemeSettings, f as fetchThemeSettings } from './fetch-M3Y-fQrW.js';
|
|
5
|
+
import './client-D51WdvYR.js';
|
|
6
|
+
import './http-types-CGh8WGHB.js';
|
|
6
7
|
|
|
7
8
|
/**
|
|
8
9
|
* The settings-as-data merge engine (ADR-0003 §"Settings-as-data customizer", #93). Pure: it resolves
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { j as CartFormAction } from './types-bcbQzx87.js';
|
|
2
2
|
import { ReactNode } from 'react';
|
|
3
3
|
|
|
4
4
|
interface CartFormProps {
|
|
@@ -199,4 +199,4 @@ interface GetShopAnalyticsOptions {
|
|
|
199
199
|
}
|
|
200
200
|
declare function getShopAnalytics(options: GetShopAnalyticsOptions): ShopAnalytics;
|
|
201
201
|
|
|
202
|
-
export {
|
|
202
|
+
export { type AnalyticsContext as A, type BoundNonceProvider as B, type ConsentState as C, DENIED_CONSENT as D, type EventHandler as E, createAnalyticsEmitter as F, GRANTED_CONSENT as G, createPixelTransport as H, getShopAnalytics as I, isGranted as J, mergeConsent as K, parseConsent as L, readConsentCookie as M, serializeConsent as N, type PageViewedPayload as P, type ShopAnalytics as S, type AnalyticsEmitter as a, type AnalyticsBus as b, type ConsentBucket as c, ANALYTICS_EVENTS as d, type AnalyticsBusOptions as e, type AnalyticsEventMap as f, getCartFormInput as g, type AnalyticsEventName as h, type AnalyticsGeo as i, CONSENT_BUCKETS as j, CONSENT_COOKIE as k, CartForm as l, type CartFormProps as m, type CartViewedPayload as n, type CollectionViewedPayload as o, type GetShopAnalyticsOptions as p, type PixelEvent as q, type PixelSend as r, type PixelTransport as s, type PixelTransportOptions as t, useNonce as u, type ProductAddedToCartPayload as v, type ProductViewedPayload as w, type SearchViewedPayload as x, buildConsentCookie as y, createAnalyticsBus as z };
|
|
@@ -64,4 +64,4 @@ interface ThemeSettingsStore {
|
|
|
64
64
|
}
|
|
65
65
|
declare function createThemeSettingsStore(initial: ThemeSettingsSnapshot): ThemeSettingsStore;
|
|
66
66
|
|
|
67
|
-
export { type
|
|
67
|
+
export { type ResolvedSettings as R, type ThemeSettingsStore as T, type ThemeSettingsSnapshot as a, type ResolvedBlock as b, type ResolvedSection as c, createThemeSettingsStore as d };
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
type FormLocalizedText = Record<string, string>;
|
|
2
|
+
type FormAnswer = string | number | boolean | string[] | Record<string, string>;
|
|
3
|
+
type FormAnswers = Record<string, FormAnswer>;
|
|
4
|
+
interface FormVisibilityRule {
|
|
5
|
+
fieldKey: string;
|
|
6
|
+
operator: 'equals' | 'not_equals' | 'includes' | 'is_empty' | 'is_not_empty';
|
|
7
|
+
value?: string | number | boolean;
|
|
8
|
+
}
|
|
9
|
+
interface FormField {
|
|
10
|
+
key: string;
|
|
11
|
+
label: FormLocalizedText;
|
|
12
|
+
description?: FormLocalizedText;
|
|
13
|
+
kind: 'text' | 'textarea' | 'email' | 'phone' | 'number' | 'date' | 'address' | 'select' | 'multi_select' | 'radio' | 'checkbox' | 'consent';
|
|
14
|
+
classification: 'public' | 'internal' | 'sensitive';
|
|
15
|
+
required: boolean;
|
|
16
|
+
searchMode: 'none' | 'exact' | 'prefix';
|
|
17
|
+
reportMode: 'none' | 'aggregate';
|
|
18
|
+
validation?: {
|
|
19
|
+
minLength?: number;
|
|
20
|
+
maxLength?: number;
|
|
21
|
+
min?: number;
|
|
22
|
+
max?: number;
|
|
23
|
+
};
|
|
24
|
+
choices?: {
|
|
25
|
+
value: string;
|
|
26
|
+
label: FormLocalizedText;
|
|
27
|
+
}[];
|
|
28
|
+
consentText?: FormLocalizedText;
|
|
29
|
+
visibleWhen?: {
|
|
30
|
+
all: FormVisibilityRule[];
|
|
31
|
+
};
|
|
32
|
+
}
|
|
33
|
+
type FormBlock = {
|
|
34
|
+
type: 'section';
|
|
35
|
+
key: string;
|
|
36
|
+
title: FormLocalizedText;
|
|
37
|
+
description?: FormLocalizedText;
|
|
38
|
+
} | {
|
|
39
|
+
type: 'content';
|
|
40
|
+
key: string;
|
|
41
|
+
content: FormLocalizedText;
|
|
42
|
+
} | {
|
|
43
|
+
type: 'field';
|
|
44
|
+
field: FormField;
|
|
45
|
+
};
|
|
46
|
+
interface FormVersionSchema {
|
|
47
|
+
schemaVersion: 1;
|
|
48
|
+
pages: {
|
|
49
|
+
key: string;
|
|
50
|
+
title?: FormLocalizedText;
|
|
51
|
+
description?: FormLocalizedText;
|
|
52
|
+
blocks: FormBlock[];
|
|
53
|
+
}[];
|
|
54
|
+
submitLabel?: FormLocalizedText;
|
|
55
|
+
successMessage?: FormLocalizedText;
|
|
56
|
+
}
|
|
57
|
+
interface PublicFormDefinition {
|
|
58
|
+
id: string;
|
|
59
|
+
ownerNamespace: string;
|
|
60
|
+
handle: string;
|
|
61
|
+
title: string;
|
|
62
|
+
purpose: string;
|
|
63
|
+
status: 'draft' | 'published' | 'archived';
|
|
64
|
+
currentPublishedVersionId: string | null;
|
|
65
|
+
createdAt: string;
|
|
66
|
+
updatedAt: string;
|
|
67
|
+
}
|
|
68
|
+
interface PublicFormVersion {
|
|
69
|
+
id: string;
|
|
70
|
+
definitionId: string;
|
|
71
|
+
versionNumber: number;
|
|
72
|
+
state: 'draft' | 'published' | 'retired';
|
|
73
|
+
schema: FormVersionSchema;
|
|
74
|
+
schemaHash: string | null;
|
|
75
|
+
publishedAt: string | null;
|
|
76
|
+
retiredAt: string | null;
|
|
77
|
+
createdAt: string;
|
|
78
|
+
}
|
|
79
|
+
interface PublicForm {
|
|
80
|
+
definition: PublicFormDefinition;
|
|
81
|
+
version: PublicFormVersion;
|
|
82
|
+
}
|
|
83
|
+
interface FormFieldErrors {
|
|
84
|
+
[fieldKey: string]: string[];
|
|
85
|
+
}
|
|
86
|
+
interface FormRenderState {
|
|
87
|
+
answers?: FormAnswers;
|
|
88
|
+
errors?: FormFieldErrors;
|
|
89
|
+
submitted?: boolean;
|
|
90
|
+
}
|
|
91
|
+
interface FormSubmission {
|
|
92
|
+
id: string;
|
|
93
|
+
definitionId: string;
|
|
94
|
+
versionId: string;
|
|
95
|
+
state: 'draft' | 'submitted' | 'linked' | 'anonymized';
|
|
96
|
+
locale: string;
|
|
97
|
+
source: string;
|
|
98
|
+
ownerType: string | null;
|
|
99
|
+
ownerId: string | null;
|
|
100
|
+
hasAnswers: boolean;
|
|
101
|
+
submittedAt: string | null;
|
|
102
|
+
expiresAt: string | null;
|
|
103
|
+
anonymizedAt: string | null;
|
|
104
|
+
createdAt: string;
|
|
105
|
+
updatedAt: string;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
export type { FormVersionSchema as F, PublicForm as P, FormAnswers as a, FormFieldErrors as b, FormAnswer as c, FormBlock as d, FormField as e, FormLocalizedText as f, FormRenderState as g, FormSubmission as h, FormVisibilityRule as i, PublicFormDefinition as j, PublicFormVersion as k };
|
|
@@ -164,4 +164,4 @@ interface HydrogenSession {
|
|
|
164
164
|
commit(): string | Promise<string>;
|
|
165
165
|
}
|
|
166
166
|
|
|
167
|
-
export { type
|
|
167
|
+
export { type Cart as C, type HydrogenSession as H, type CartLineInput as a, type CartAttribute as b, type CartBuyerIdentityInput as c, type CartMutationResult as d, type CartLineUpdateInput as e, type CartMetafield as f, type CartMetafieldIdentifier as g, type CartDeliveryAddress as h, type CartSelectedDeliveryOption as i, type CartFormAction as j, CART_FORM_ACTIONS as k, type CartBuyerIdentity as l, type CartLine as m, type CartUserError as n, type HydrogenCart as o, type HydrogenCartCreateInput as p, type HydrogenCartMutationResult as q, type HydrogenSessionData as r };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kotao/storefront",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.3",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"description": "Kotao Storefronts theme SDK — framework-agnostic server runtime (storefront client, SWR isolated cache, signed geo) + React Router 7 binding. Mirrors Hydrogen's API (ADR-0003). Leaf package (ADR-0006).",
|
|
@@ -26,6 +26,18 @@
|
|
|
26
26
|
"types": "./dist/editor.d.ts",
|
|
27
27
|
"import": "./dist/editor.js"
|
|
28
28
|
},
|
|
29
|
+
"./events": {
|
|
30
|
+
"types": "./dist/events.d.ts",
|
|
31
|
+
"import": "./dist/events.js"
|
|
32
|
+
},
|
|
33
|
+
"./events/react": {
|
|
34
|
+
"types": "./dist/events-react.d.ts",
|
|
35
|
+
"import": "./dist/events-react.js"
|
|
36
|
+
},
|
|
37
|
+
"./forms": {
|
|
38
|
+
"types": "./dist/forms.d.ts",
|
|
39
|
+
"import": "./dist/forms.js"
|
|
40
|
+
},
|
|
29
41
|
"./image": {
|
|
30
42
|
"types": "./dist/image.d.ts",
|
|
31
43
|
"import": "./dist/image.js"
|