@weaverse/hydrogen 6.1.3 → 6.2.0
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.js +5 -6
- package/dist/index.mjs +1 -2
- package/dist/internal.js +18 -29
- package/dist/internal.mjs +3 -14
- package/dist/next-client-boundary.js +1088 -0
- package/dist/next-client-boundary.js.map +1 -0
- package/dist/next-client-boundary.mjs +1038 -0
- package/dist/next-client-boundary.mjs.map +1 -0
- package/dist/next-server.js +669 -13
- package/dist/next-server.js.map +1 -0
- package/dist/next-server.mjs +666 -2
- package/dist/next-server.mjs.map +1 -0
- package/dist/next.js +29 -43
- package/dist/next.mjs +5 -3
- package/dist/react-router.js +6 -7
- package/dist/react-router.mjs +2 -3
- package/dist/seo-B8u2r3rX.mjs +205 -0
- package/dist/seo-B8u2r3rX.mjs.map +1 -0
- package/dist/seo-D9A9uRQ4.js +264 -0
- package/dist/seo-D9A9uRQ4.js.map +1 -0
- package/dist/translate-Celryv8j.mjs +26 -0
- package/dist/translate-Celryv8j.mjs.map +1 -0
- package/dist/translate-Kt1BYL1n.js +37 -0
- package/dist/translate-Kt1BYL1n.js.map +1 -0
- package/dist/{nested-key-CR3-YMFi.js → translation-store-BmGxBALf.js} +46 -137
- package/dist/translation-store-BmGxBALf.js.map +1 -0
- package/dist/{nested-key-_k9aW_Wd.mjs → translation-store-JFs-4lvf.mjs} +35 -138
- package/dist/translation-store-JFs-4lvf.mjs.map +1 -0
- package/dist/types/hooks/translation-context.d.ts +2 -36
- package/dist/types/hooks/translation-context.d.ts.map +1 -1
- package/dist/types/next/client-boundary.d.ts +25 -0
- package/dist/types/next/client-boundary.d.ts.map +1 -0
- package/dist/types/next/client.d.ts +16 -0
- package/dist/types/next/client.d.ts.map +1 -0
- package/dist/types/next/hooks.d.ts +20 -0
- package/dist/types/next/hooks.d.ts.map +1 -0
- package/dist/types/next/index.d.ts +34 -0
- package/dist/types/next/index.d.ts.map +1 -0
- package/dist/types/next/item.d.ts +60 -0
- package/dist/types/next/item.d.ts.map +1 -0
- package/dist/types/next/loader.d.ts +25 -0
- package/dist/types/next/loader.d.ts.map +1 -0
- package/dist/types/next/main.d.ts +11 -0
- package/dist/types/next/main.d.ts.map +1 -0
- package/dist/types/next/provider.d.ts +85 -0
- package/dist/types/next/provider.d.ts.map +1 -0
- package/dist/types/next/registry.d.ts +15 -0
- package/dist/types/next/registry.d.ts.map +1 -0
- package/dist/types/next/renderer.d.ts +21 -0
- package/dist/types/next/renderer.d.ts.map +1 -0
- package/dist/types/next/request-info.d.ts +19 -0
- package/dist/types/next/request-info.d.ts.map +1 -0
- package/dist/types/next/revalidate-item.d.ts +82 -0
- package/dist/types/next/revalidate-item.d.ts.map +1 -0
- package/dist/types/next/root-provider.d.ts +65 -0
- package/dist/types/next/root-provider.d.ts.map +1 -0
- package/dist/types/next/runtime.d.ts +113 -0
- package/dist/types/next/runtime.d.ts.map +1 -0
- package/dist/types/next/seo.d.ts +55 -0
- package/dist/types/next/seo.d.ts.map +1 -0
- package/dist/types/next/server/configs.d.ts +27 -0
- package/dist/types/next/server/configs.d.ts.map +1 -0
- package/dist/types/next/server/normalize-page-url.d.ts +19 -0
- package/dist/types/next/server/normalize-page-url.d.ts.map +1 -0
- package/dist/types/next/server/revalidate-handler.d.ts +55 -0
- package/dist/types/next/server/revalidate-handler.d.ts.map +1 -0
- package/dist/types/next/server/server-client.d.ts +21 -0
- package/dist/types/next/server/server-client.d.ts.map +1 -0
- package/dist/types/next/server.d.ts +19 -0
- package/dist/types/next/server.d.ts.map +1 -0
- package/dist/types/next/studio-bridge.d.ts +16 -0
- package/dist/types/next/studio-bridge.d.ts.map +1 -0
- package/dist/types/next/studio-connect.d.ts +27 -0
- package/dist/types/next/studio-connect.d.ts.map +1 -0
- package/dist/types/next/studio-router.d.ts +50 -0
- package/dist/types/next/studio-router.d.ts.map +1 -0
- package/dist/types/next/studio-script-src.d.ts +12 -0
- package/dist/types/next/studio-script-src.d.ts.map +1 -0
- package/dist/types/next/theme-settings-store.d.ts +18 -0
- package/dist/types/next/theme-settings-store.d.ts.map +1 -0
- package/dist/types/next/translation-context.d.ts +109 -0
- package/dist/types/next/translation-context.d.ts.map +1 -0
- package/dist/types/next/types.d.ts +674 -0
- package/dist/types/next/types.d.ts.map +1 -0
- package/dist/types/next/use-weaverse-next-studio.d.ts +34 -0
- package/dist/types/next/use-weaverse-next-studio.d.ts.map +1 -0
- package/dist/types/next/utils.d.ts +21 -0
- package/dist/types/next/utils.d.ts.map +1 -0
- package/dist/types/next-server.d.ts +3 -1
- package/dist/types/next-server.d.ts.map +1 -1
- package/dist/types/next.d.ts +4 -2
- package/dist/types/next.d.ts.map +1 -1
- package/dist/types/utils/translate.d.ts +51 -0
- package/dist/types/utils/translate.d.ts.map +1 -0
- package/dist/{weaverse-client-C9IgIH7O.js → weaverse-client-BmceZc5q.js} +49 -771
- package/dist/weaverse-client-BmceZc5q.js.map +1 -0
- package/dist/{weaverse-client-D59mBW0j.mjs → weaverse-client-CXnM9ayH.mjs} +4 -720
- package/dist/weaverse-client-CXnM9ayH.mjs.map +1 -0
- package/package.json +13 -7
- package/src/hooks/translation-context.tsx +7 -84
- package/src/next/client-boundary.ts +51 -0
- package/src/next/client.ts +102 -0
- package/src/next/hooks.ts +52 -0
- package/src/next/index.ts +145 -0
- package/src/next/item.ts +167 -0
- package/src/next/loader.ts +135 -0
- package/src/next/main.tsx +45 -0
- package/src/next/provider.tsx +241 -0
- package/src/next/registry.ts +63 -0
- package/src/next/renderer.tsx +102 -0
- package/src/next/request-info.ts +124 -0
- package/src/next/revalidate-item.ts +211 -0
- package/src/next/root-provider.tsx +201 -0
- package/src/next/runtime.ts +559 -0
- package/src/next/seo.ts +157 -0
- package/src/next/server/configs.ts +178 -0
- package/src/next/server/normalize-page-url.ts +73 -0
- package/src/next/server/revalidate-handler.ts +357 -0
- package/src/next/server/server-client.ts +728 -0
- package/src/next/server.ts +67 -0
- package/src/next/studio-bridge.tsx +82 -0
- package/src/next/studio-connect.tsx +88 -0
- package/src/next/studio-router.ts +85 -0
- package/src/next/studio-script-src.ts +128 -0
- package/src/next/theme-settings-store.ts +47 -0
- package/src/next/translation-context.tsx +182 -0
- package/src/next/types.ts +764 -0
- package/src/next/use-weaverse-next-studio.tsx +106 -0
- package/src/next/utils.ts +48 -0
- package/src/next-server.ts +41 -1
- package/src/next.ts +48 -12
- package/src/utils/translate.ts +101 -0
- package/dist/internal.js.map +0 -1
- package/dist/internal.mjs.map +0 -1
- package/dist/nested-key-CR3-YMFi.js.map +0 -1
- package/dist/nested-key-_k9aW_Wd.mjs.map +0 -1
- package/dist/translation-store-4fAV771j.js +0 -69
- package/dist/translation-store-4fAV771j.js.map +0 -1
- package/dist/translation-store-BBrw0FOk.mjs +0 -58
- package/dist/translation-store-BBrw0FOk.mjs.map +0 -1
- package/dist/weaverse-client-C9IgIH7O.js.map +0 -1
- package/dist/weaverse-client-D59mBW0j.mjs.map +0 -1
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import type { WeaverseNextBaseConfigs, WeaverseNextRequestContext } from '../types';
|
|
2
|
+
/**
|
|
3
|
+
* Extract the request search params from the explicit Next request context.
|
|
4
|
+
* Prefers `searchParams`, falls back to parsing `url`.
|
|
5
|
+
*/
|
|
6
|
+
export declare function getContextSearchParams(context?: WeaverseNextRequestContext): URLSearchParams;
|
|
7
|
+
/** Overrides used while resolving request-scoped Weaverse configuration. */
|
|
8
|
+
export interface ResolveConfigsOptions {
|
|
9
|
+
/** Environment values; missing keys fall back to `process.env`. */
|
|
10
|
+
env?: Record<string, string | undefined>;
|
|
11
|
+
/** Public data API base override. */
|
|
12
|
+
weaverseApiBase?: string;
|
|
13
|
+
/** Studio origin override. */
|
|
14
|
+
weaverseHost?: string;
|
|
15
|
+
/** Studio asset version override. */
|
|
16
|
+
weaverseVersion?: string;
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* Derive Weaverse configs from the request context and env, close to Hydrogen's
|
|
20
|
+
* `getWeaverseConfigs`. Resolves the trusted host, public API base, design /
|
|
21
|
+
* preview / revision flags, and public env — but never resolves the final
|
|
22
|
+
* `projectId` (that priority chain, which may call an async resolver, lives in
|
|
23
|
+
* the server client). Query/env projectId candidates are returned for the
|
|
24
|
+
* client to combine with function/string inputs.
|
|
25
|
+
*/
|
|
26
|
+
export declare function getWeaverseNextConfigs(context?: WeaverseNextRequestContext, options?: ResolveConfigsOptions): WeaverseNextBaseConfigs;
|
|
27
|
+
//# sourceMappingURL=configs.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"configs.d.ts","sourceRoot":"","sources":["../../../../src/next/server/configs.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,uBAAuB,EACvB,0BAA0B,EAC3B,MAAM,UAAU,CAAA;AA6CjB;;;GAGG;AACH,wBAAgB,sBAAsB,CACpC,OAAO,CAAC,EAAE,0BAA0B,GACnC,eAAe,CAWjB;AAkCD,4EAA4E;AAC5E,MAAM,WAAW,qBAAqB;IACpC,mEAAmE;IACnE,GAAG,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,SAAS,CAAC,CAAA;IACxC,qCAAqC;IACrC,eAAe,CAAC,EAAE,MAAM,CAAA;IACxB,8BAA8B;IAC9B,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,qCAAqC;IACrC,eAAe,CAAC,EAAE,MAAM,CAAA;CACzB;AAED;;;;;;;GAOG;AACH,wBAAgB,sBAAsB,CACpC,OAAO,CAAC,EAAE,0BAA0B,EACpC,OAAO,GAAE,qBAA0B,GAClC,uBAAuB,CAuDzB"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { WeaverseNextRequestContext } from '../types';
|
|
2
|
+
/**
|
|
3
|
+
* Normalize the storefront URL sent in the Builder page API request body.
|
|
4
|
+
*
|
|
5
|
+
* The Builder reads only the pathname (locale/type/handle fallback) and the
|
|
6
|
+
* Weaverse/Studio control params from this URL, so keep exactly those and drop
|
|
7
|
+
* tracking params. Params are sorted for a stable, cache-friendly string.
|
|
8
|
+
*
|
|
9
|
+
* Ported from `@weaverse/hydrogen`'s `normalizePageUrl`, but tolerant of a
|
|
10
|
+
* relative URL (Next route handlers may only know the pathname).
|
|
11
|
+
*/
|
|
12
|
+
export declare function normalizeNextPageUrl(url: string): string;
|
|
13
|
+
/**
|
|
14
|
+
* Build an absolute-ish request URL string from the explicit request context,
|
|
15
|
+
* preferring `url`, then `pathname` + `searchParams`. Used as the input to
|
|
16
|
+
* {@link normalizeNextPageUrl}.
|
|
17
|
+
*/
|
|
18
|
+
export declare function resolveRequestUrl(context?: WeaverseNextRequestContext): string;
|
|
19
|
+
//# sourceMappingURL=normalize-page-url.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"normalize-page-url.d.ts","sourceRoot":"","sources":["../../../../src/next/server/normalize-page-url.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,UAAU,CAAA;AAa1D;;;;;;;;;GASG;AACH,wBAAgB,oBAAoB,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAqBxD;AAED;;;;GAIG;AACH,wBAAgB,iBAAiB,CAC/B,OAAO,CAAC,EAAE,0BAA0B,GACnC,MAAM,CAkBR"}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { type WeaverseNextRevalidateRouteContext } from '../revalidate-item';
|
|
2
|
+
import type { WeaverseNextComponentData, WeaverseNextRequestContext, WeaverseNextServerClient } from '../types';
|
|
3
|
+
/** Configuration for the App Router item-revalidation handler. */
|
|
4
|
+
export interface WeaverseNextRevalidateHandlerConfig {
|
|
5
|
+
/**
|
|
6
|
+
* Reuse the app's server-client factory so the loader runs with the same
|
|
7
|
+
* component registry and commerce (storefront) context as page loads.
|
|
8
|
+
*
|
|
9
|
+
* The optional second argument is the validated, same-origin route context
|
|
10
|
+
* reconstructed from the request body. It is `undefined` for legacy bodies
|
|
11
|
+
* that carry no `routeContext`, so a one-argument `(request) => client`
|
|
12
|
+
* callback remains valid. Consumers must still source project ID, Studio
|
|
13
|
+
* host, API bases/keys, and env from server config — never from this
|
|
14
|
+
* browser-provided context.
|
|
15
|
+
*/
|
|
16
|
+
getClient: (request: Request, requestContext?: WeaverseNextRequestContext) => Promise<WeaverseNextServerClient> | WeaverseNextServerClient;
|
|
17
|
+
}
|
|
18
|
+
/** POST body accepted by the revalidate route. */
|
|
19
|
+
export interface WeaverseNextRevalidateRequestBody {
|
|
20
|
+
/** Unsaved Studio item settings to pass to the registered component loader. */
|
|
21
|
+
draftItem: WeaverseNextComponentData;
|
|
22
|
+
/** Public route identity used to reconstruct the loader request context. */
|
|
23
|
+
routeContext?: WeaverseNextRevalidateRouteContext;
|
|
24
|
+
}
|
|
25
|
+
/** App Router handler returned for Studio item revalidation requests. */
|
|
26
|
+
export interface WeaverseNextRevalidateHandler {
|
|
27
|
+
/** Handle a Studio request to rerun one registered component loader. */
|
|
28
|
+
POST: (request: Request) => Promise<Response>;
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* Create the Studio per-item revalidation route handler.
|
|
32
|
+
*
|
|
33
|
+
* Studio design-mode edits to loader-backed inputs (e.g. resource pickers) need
|
|
34
|
+
* fresh server loader data for a single item. Re-running it through
|
|
35
|
+
* `router.refresh()` re-applies the whole RSC tree — and the draft-item query
|
|
36
|
+
* rewrite changes the App Router page segment key, remounting the page and
|
|
37
|
+
* resetting scroll. This handler runs just the edited component's `loader`
|
|
38
|
+
* with the unsaved draft settings and returns the payload for an in-place
|
|
39
|
+
* client update (see the `2026-07-02--next-item-revalidation` spec).
|
|
40
|
+
*
|
|
41
|
+
* Security: only registered component types are executable, the handler never
|
|
42
|
+
* persists anything, and responses are `no-store`. Exposure is equivalent to
|
|
43
|
+
* the existing `weaverseDraftItem` URL param, which already lets any visitor
|
|
44
|
+
* run design-mode loaders with arbitrary draft settings.
|
|
45
|
+
*
|
|
46
|
+
* @example
|
|
47
|
+
* ```ts
|
|
48
|
+
* // app/api/weaverse/revalidate/route.ts
|
|
49
|
+
* export const { POST } = createWeaverseNextRevalidateHandler({
|
|
50
|
+
* getClient: () => getWeaverseServerClient(Promise.resolve({})),
|
|
51
|
+
* })
|
|
52
|
+
* ```
|
|
53
|
+
*/
|
|
54
|
+
export declare function createWeaverseNextRevalidateHandler(config: WeaverseNextRevalidateHandlerConfig): WeaverseNextRevalidateHandler;
|
|
55
|
+
//# sourceMappingURL=revalidate-handler.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"revalidate-handler.d.ts","sourceRoot":"","sources":["../../../../src/next/server/revalidate-handler.ts"],"names":[],"mappings":"AAEA,OAAO,EAGL,KAAK,kCAAkC,EACxC,MAAM,oBAAoB,CAAA;AAC3B,OAAO,KAAK,EACV,yBAAyB,EAEzB,0BAA0B,EAC1B,wBAAwB,EACzB,MAAM,UAAU,CAAA;AAsBjB,kEAAkE;AAClE,MAAM,WAAW,mCAAmC;IAClD;;;;;;;;;;OAUG;IACH,SAAS,EAAE,CACT,OAAO,EAAE,OAAO,EAChB,cAAc,CAAC,EAAE,0BAA0B,KACxC,OAAO,CAAC,wBAAwB,CAAC,GAAG,wBAAwB,CAAA;CAClE;AAED,kDAAkD;AAClD,MAAM,WAAW,iCAAiC;IAChD,+EAA+E;IAC/E,SAAS,EAAE,yBAAyB,CAAA;IACpC,4EAA4E;IAC5E,YAAY,CAAC,EAAE,kCAAkC,CAAA;CAClD;AAoMD,yEAAyE;AACzE,MAAM,WAAW,6BAA6B;IAC5C,wEAAwE;IACxE,IAAI,EAAE,CAAC,OAAO,EAAE,OAAO,KAAK,OAAO,CAAC,QAAQ,CAAC,CAAA;CAC9C;AAED;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,wBAAgB,mCAAmC,CACjD,MAAM,EAAE,mCAAmC,GAC1C,6BAA6B,CAqE/B"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type { WeaverseNextServerClient, WeaverseNextServerClientConfig } from '../types';
|
|
2
|
+
/**
|
|
3
|
+
* Create a server-side {@link WeaverseNextServerClient} for Next.js App Router
|
|
4
|
+
* routes / server components.
|
|
5
|
+
*
|
|
6
|
+
* @example
|
|
7
|
+
* ```ts
|
|
8
|
+
* let weaverse = createWeaverseNextServerClient({
|
|
9
|
+
* projectId: process.env.WEAVERSE_PROJECT_ID,
|
|
10
|
+
* components,
|
|
11
|
+
* commerce: { storefront },
|
|
12
|
+
* requestContext: { url, headers, searchParams, i18n },
|
|
13
|
+
* cache: { revalidate: 60, tags: ['weaverse'] },
|
|
14
|
+
* })
|
|
15
|
+
* let data = await weaverse.loadPage({ type: 'INDEX' })
|
|
16
|
+
* let theme = await weaverse.loadThemeSettings()
|
|
17
|
+
* ```
|
|
18
|
+
*/
|
|
19
|
+
export declare function createWeaverseNextServerClient(config: WeaverseNextServerClientConfig): WeaverseNextServerClient;
|
|
20
|
+
export { getContextSearchParams } from './configs';
|
|
21
|
+
//# sourceMappingURL=server-client.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"server-client.d.ts","sourceRoot":"","sources":["../../../../src/next/server/server-client.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAgBV,wBAAwB,EACxB,8BAA8B,EAM/B,MAAM,UAAU,CAAA;AAsqBjB;;;;;;;;;;;;;;;;GAgBG;AACH,wBAAgB,8BAA8B,CAC5C,MAAM,EAAE,8BAA8B,GACrC,wBAAwB,CAE1B;AAED,OAAO,EAAE,sBAAsB,EAAE,MAAM,WAAW,CAAA"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Server-only Weaverse APIs for Next.js App Router server components and route
|
|
3
|
+
* handlers.
|
|
4
|
+
*
|
|
5
|
+
* When migrating from Hydrogen's `context.weaverse`, create a request-scoped
|
|
6
|
+
* client with {@link createWeaverseNextServerClient}, then call `loadPage()` or
|
|
7
|
+
* `loadThemeSettings()`. Keep rendering providers and components imported from
|
|
8
|
+
* the root `@weaverse/hydrogen/next` entrypoint.
|
|
9
|
+
*
|
|
10
|
+
* @packageDocumentation
|
|
11
|
+
*/
|
|
12
|
+
export type { WeaverseNextRevalidateRouteContext } from './revalidate-item';
|
|
13
|
+
export { formatWeaverseNextSeoMetadata, getWeaverseNextSeoMetadata, type NextOpenGraph, type NextTwitter, type WeaverseNextSeoInput, type WeaverseNextSeoMetadata, type WeaverseNextSeoPageContainer, } from './seo';
|
|
14
|
+
export { getWeaverseNextConfigs, type ResolveConfigsOptions, } from './server/configs';
|
|
15
|
+
export { normalizeNextPageUrl, resolveRequestUrl, } from './server/normalize-page-url';
|
|
16
|
+
export { createWeaverseNextRevalidateHandler, type WeaverseNextRevalidateHandler, type WeaverseNextRevalidateHandlerConfig, type WeaverseNextRevalidateRequestBody, } from './server/revalidate-handler';
|
|
17
|
+
export { createWeaverseNextServerClient } from './server/server-client';
|
|
18
|
+
export type { WeaverseNextBaseConfigs, WeaverseNextCacheConfig, WeaverseNextClient, WeaverseNextCommerceContext, WeaverseNextComponent, WeaverseNextComponentData, WeaverseNextComponentLoaderArgs, WeaverseNextComponentProps, WeaverseNextConfigs, WeaverseNextCustomPageEntry, WeaverseNextFetchCustomPagesOptions, WeaverseNextFetchOptions, WeaverseNextI18n, WeaverseNextLoaderData, WeaverseNextLoadPageInput, WeaverseNextPageAssignment, WeaverseNextPageData, WeaverseNextProjectId, WeaverseNextRequestContext, WeaverseNextServerClient, WeaverseNextServerClientConfig, WeaverseNextServerLoadPageInput, WeaverseNextStorefront, WeaverseNextThemeSchema, WeaverseNextThemeSchemaGroup, WeaverseNextThemeSchemaInput, WeaverseNextThemeSettingsOptions, WeaverseNextThemeSettingsResponse, } from './types';
|
|
19
|
+
//# sourceMappingURL=server.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"server.d.ts","sourceRoot":"","sources":["../../../src/next/server.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,YAAY,EAAE,kCAAkC,EAAE,MAAM,mBAAmB,CAAA;AAC3E,OAAO,EACL,6BAA6B,EAC7B,0BAA0B,EAC1B,KAAK,aAAa,EAClB,KAAK,WAAW,EAChB,KAAK,oBAAoB,EACzB,KAAK,uBAAuB,EAC5B,KAAK,4BAA4B,GAClC,MAAM,OAAO,CAAA;AACd,OAAO,EACL,sBAAsB,EACtB,KAAK,qBAAqB,GAC3B,MAAM,kBAAkB,CAAA;AACzB,OAAO,EACL,oBAAoB,EACpB,iBAAiB,GAClB,MAAM,6BAA6B,CAAA;AACpC,OAAO,EACL,mCAAmC,EACnC,KAAK,6BAA6B,EAClC,KAAK,mCAAmC,EACxC,KAAK,iCAAiC,GACvC,MAAM,6BAA6B,CAAA;AACpC,OAAO,EAAE,8BAA8B,EAAE,MAAM,wBAAwB,CAAA;AACvE,YAAY,EACV,uBAAuB,EACvB,uBAAuB,EACvB,kBAAkB,EAClB,2BAA2B,EAC3B,qBAAqB,EACrB,yBAAyB,EACzB,+BAA+B,EAC/B,0BAA0B,EAC1B,mBAAmB,EACnB,2BAA2B,EAC3B,mCAAmC,EACnC,wBAAwB,EACxB,gBAAgB,EAChB,sBAAsB,EACtB,yBAAyB,EACzB,0BAA0B,EAC1B,oBAAoB,EACpB,qBAAqB,EACrB,0BAA0B,EAC1B,wBAAwB,EACxB,8BAA8B,EAC9B,+BAA+B,EAC/B,sBAAsB,EACtB,uBAAuB,EACvB,4BAA4B,EAC5B,4BAA4B,EAC5B,gCAAgC,EAChC,iCAAiC,GAClC,MAAM,SAAS,CAAA"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { type WeaverseNextRuntime } from './runtime';
|
|
2
|
+
import type { WeaverseNextRuntimeInternal } from './types';
|
|
3
|
+
/** Runtime and host callbacks attached to the Builder Studio bridge. */
|
|
4
|
+
export interface WeaverseNextStudioBridgeProps {
|
|
5
|
+
/** Preview navigation callback. */
|
|
6
|
+
navigate?: WeaverseNextRuntimeInternal['navigate'];
|
|
7
|
+
/** Whole-route refresh callback used as a legacy fallback. */
|
|
8
|
+
revalidate?: WeaverseNextRuntimeInternal['revalidate'];
|
|
9
|
+
/** Preferred per-item loader revalidation callback. */
|
|
10
|
+
revalidateItem?: WeaverseNextRuntimeInternal['revalidateItem'];
|
|
11
|
+
/** Browser runtime to initialize or refresh in Studio. */
|
|
12
|
+
runtime: WeaverseNextRuntime;
|
|
13
|
+
}
|
|
14
|
+
/** Page-level Studio runtime binder. */
|
|
15
|
+
export declare function WeaverseNextStudioBridge(props: WeaverseNextStudioBridgeProps): null;
|
|
16
|
+
//# sourceMappingURL=studio-bridge.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"studio-bridge.d.ts","sourceRoot":"","sources":["../../../src/next/studio-bridge.tsx"],"names":[],"mappings":"AAGA,OAAO,EAEL,KAAK,mBAAmB,EACzB,MAAM,WAAW,CAAA;AAClB,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,SAAS,CAAA;AAK1D,wEAAwE;AACxE,MAAM,WAAW,6BAA6B;IAC5C,mCAAmC;IACnC,QAAQ,CAAC,EAAE,2BAA2B,CAAC,UAAU,CAAC,CAAA;IAClD,8DAA8D;IAC9D,UAAU,CAAC,EAAE,2BAA2B,CAAC,YAAY,CAAC,CAAA;IACtD,uDAAuD;IACvD,cAAc,CAAC,EAAE,2BAA2B,CAAC,gBAAgB,CAAC,CAAA;IAC9D,0DAA0D;IAC1D,OAAO,EAAE,mBAAmB,CAAA;CAC7B;AAED,wCAAwC;AACxC,wBAAgB,wBAAwB,CAAC,KAAK,EAAE,6BAA6B,QAwD5E"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import type { WeaverseNextRequestContext } from './types';
|
|
2
|
+
/** Trust context used while loading the Studio bridge script. */
|
|
3
|
+
export interface LoadWeaverseNextStudioScriptOptions {
|
|
4
|
+
/** Storefront hostname; required to permit loopback Studio origins. */
|
|
5
|
+
storefrontHostname?: string;
|
|
6
|
+
}
|
|
7
|
+
/**
|
|
8
|
+
* Resolve and append the Next Studio bridge script for the given request
|
|
9
|
+
* context, deduping by src. SSR-safe (no-op without `document`) so it can run
|
|
10
|
+
* unconditionally from a root layout/error boundary before any page tree or
|
|
11
|
+
* runtime exists — e.g. App Router `not-found.tsx` / `error.tsx` routes.
|
|
12
|
+
*/
|
|
13
|
+
export declare function loadWeaverseNextStudioScript(context?: WeaverseNextRequestContext, options?: LoadWeaverseNextStudioScriptOptions): void;
|
|
14
|
+
/** Props for the root-level Studio script connector. */
|
|
15
|
+
export interface WeaverseNextStudioConnectProps {
|
|
16
|
+
/** Explicit request context used to resolve Studio mode and host. */
|
|
17
|
+
context?: WeaverseNextRequestContext;
|
|
18
|
+
/** Storefront hostname; required to permit loopback Studio origins. */
|
|
19
|
+
storefrontHostname?: string;
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* Root-level Studio script connector for Next client boundaries. Mount once
|
|
23
|
+
* near the app root (e.g. root layout) so it also covers routes that never
|
|
24
|
+
* render `WeaverseNextRenderer`, such as `not-found.tsx` / `error.tsx`.
|
|
25
|
+
*/
|
|
26
|
+
export declare function WeaverseNextStudioConnect(props: WeaverseNextStudioConnectProps): null;
|
|
27
|
+
//# sourceMappingURL=studio-connect.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"studio-connect.d.ts","sourceRoot":"","sources":["../../../src/next/studio-connect.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,SAAS,CAAA;AA0BzD,iEAAiE;AACjE,MAAM,WAAW,mCAAmC;IAClD,uEAAuE;IACvE,kBAAkB,CAAC,EAAE,MAAM,CAAA;CAC5B;AAED;;;;;GAKG;AACH,wBAAgB,4BAA4B,CAC1C,OAAO,CAAC,EAAE,0BAA0B,EACpC,OAAO,GAAE,mCAAwC,QAkBlD;AAED,wDAAwD;AACxD,MAAM,WAAW,8BAA8B;IAC7C,qEAAqE;IACrE,OAAO,CAAC,EAAE,0BAA0B,CAAA;IACpC,uEAAuE;IACvE,kBAAkB,CAAC,EAAE,MAAM,CAAA;CAC5B;AAED;;;;GAIG;AACH,wBAAgB,yBAAyB,CACvC,KAAK,EAAE,8BAA8B,QAStC"}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import type { WeaverseNextRuntimeInternal } from './types';
|
|
2
|
+
/**
|
|
3
|
+
* Minimal structural shape of the Next App Router returned by `useRouter()`
|
|
4
|
+
* (`next/navigation`) that the Studio bridge needs. Declared locally — rather
|
|
5
|
+
* than importing `AppRouterInstance` from `next` — so the adapter stays a pure
|
|
6
|
+
* function that unit tests can drive with a plain mock and never pulls
|
|
7
|
+
* `next/navigation` into the test graph.
|
|
8
|
+
*/
|
|
9
|
+
export interface WeaverseNextRouterLike {
|
|
10
|
+
/** Add a route to browser history. */
|
|
11
|
+
push: (href: string, options?: {
|
|
12
|
+
/** Whether to scroll to the top after navigation. */
|
|
13
|
+
scroll?: boolean;
|
|
14
|
+
}) => void;
|
|
15
|
+
/** Refresh the current App Router route and server data. */
|
|
16
|
+
refresh: () => void;
|
|
17
|
+
/** Replace the current browser-history entry. */
|
|
18
|
+
replace: (href: string, options?: {
|
|
19
|
+
/** Whether to scroll to the top after navigation. */
|
|
20
|
+
scroll?: boolean;
|
|
21
|
+
}) => void;
|
|
22
|
+
}
|
|
23
|
+
/** Resolved Studio navigation/revalidation callbacks for a Next runtime. */
|
|
24
|
+
export interface WeaverseNextStudioInternals {
|
|
25
|
+
/** Navigate Studio's preview with React Router-compatible options. */
|
|
26
|
+
navigate: NonNullable<WeaverseNextRuntimeInternal['navigate']>;
|
|
27
|
+
/** Refresh the current App Router route. */
|
|
28
|
+
revalidate: NonNullable<WeaverseNextRuntimeInternal['revalidate']>;
|
|
29
|
+
}
|
|
30
|
+
/** Controls how Studio navigation maps to the Next App Router. */
|
|
31
|
+
export interface CreateWeaverseNextStudioInternalsOptions {
|
|
32
|
+
/** Use `router.replace` instead of `router.push` for navigation. */
|
|
33
|
+
replace?: boolean;
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
* Build Studio `navigate` / `revalidate` callbacks from a Next App Router.
|
|
37
|
+
*
|
|
38
|
+
* Maps Hydrogen's React Router semantics onto Next App Router:
|
|
39
|
+
* - `navigate(to, { preventScrollReset })` → `router.push(to, { scroll })`,
|
|
40
|
+
* where `scroll` is the inverse of `preventScrollReset`. Studio passes
|
|
41
|
+
* `preventScrollReset` for in-place edits so the preview viewport is kept,
|
|
42
|
+
* matching React Router's `navigate({ preventScrollReset })`.
|
|
43
|
+
* - `revalidate()` → `router.refresh()`, the App Router's loader-backed refresh
|
|
44
|
+
* and the closest equivalent to React Router's `useRevalidator`.
|
|
45
|
+
*
|
|
46
|
+
* Pure (no React, no `next/navigation`) so it is unit-testable with a mock
|
|
47
|
+
* router; the {@link WeaverseNextRouterLike} contract is the only coupling.
|
|
48
|
+
*/
|
|
49
|
+
export declare function createWeaverseNextStudioInternals(router: WeaverseNextRouterLike, options?: CreateWeaverseNextStudioInternalsOptions): WeaverseNextStudioInternals;
|
|
50
|
+
//# sourceMappingURL=studio-router.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"studio-router.d.ts","sourceRoot":"","sources":["../../../src/next/studio-router.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,SAAS,CAAA;AAE1D;;;;;;GAMG;AACH,MAAM,WAAW,sBAAsB;IACrC,sCAAsC;IACtC,IAAI,EAAE,CACJ,IAAI,EAAE,MAAM,EACZ,OAAO,CAAC,EAAE;QACR,qDAAqD;QACrD,MAAM,CAAC,EAAE,OAAO,CAAA;KACjB,KACE,IAAI,CAAA;IACT,4DAA4D;IAC5D,OAAO,EAAE,MAAM,IAAI,CAAA;IACnB,iDAAiD;IACjD,OAAO,EAAE,CACP,IAAI,EAAE,MAAM,EACZ,OAAO,CAAC,EAAE;QACR,qDAAqD;QACrD,MAAM,CAAC,EAAE,OAAO,CAAA;KACjB,KACE,IAAI,CAAA;CACV;AAED,4EAA4E;AAC5E,MAAM,WAAW,2BAA2B;IAC1C,sEAAsE;IACtE,QAAQ,EAAE,WAAW,CAAC,2BAA2B,CAAC,UAAU,CAAC,CAAC,CAAA;IAC9D,4CAA4C;IAC5C,UAAU,EAAE,WAAW,CAAC,2BAA2B,CAAC,YAAY,CAAC,CAAC,CAAA;CACnE;AAED,kEAAkE;AAClE,MAAM,WAAW,wCAAwC;IACvD,oEAAoE;IACpE,OAAO,CAAC,EAAE,OAAO,CAAA;CAClB;AAWD;;;;;;;;;;;;;GAaG;AACH,wBAAgB,iCAAiC,CAC/C,MAAM,EAAE,sBAAsB,EAC9B,OAAO,GAAE,wCAA6C,GACrD,2BAA2B,CAc7B"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { WeaverseNextRequestContext } from './types';
|
|
2
|
+
/** Trust context used when resolving a Studio bridge script URL. */
|
|
3
|
+
export interface ResolveWeaverseNextStudioScriptSrcOptions {
|
|
4
|
+
/** Storefront hostname; required to permit loopback Studio origins. */
|
|
5
|
+
storefrontHostname?: string;
|
|
6
|
+
}
|
|
7
|
+
/**
|
|
8
|
+
* Resolve the Studio script URL from request/search context. `@weaverse/hydrogen/next`
|
|
9
|
+
* uses the dedicated Next bridge path served by Builder.
|
|
10
|
+
*/
|
|
11
|
+
export declare function resolveWeaverseNextStudioScriptSrc(context?: WeaverseNextRequestContext, options?: ResolveWeaverseNextStudioScriptSrcOptions): string | null;
|
|
12
|
+
//# sourceMappingURL=studio-script-src.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"studio-script-src.d.ts","sourceRoot":"","sources":["../../../src/next/studio-script-src.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,SAAS,CAAA;AAmFzD,oEAAoE;AACpE,MAAM,WAAW,yCAAyC;IACxD,uEAAuE;IACvE,kBAAkB,CAAC,EAAE,MAAM,CAAA;CAC5B;AAED;;;GAGG;AACH,wBAAgB,kCAAkC,CAChD,OAAO,CAAC,EAAE,0BAA0B,EACpC,OAAO,GAAE,yCAA8C,GACtD,MAAM,GAAG,IAAI,CA+Bf"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { SchemaType } from '@weaverse/schema';
|
|
2
|
+
import type { WeaverseNextThemeSchema, WeaverseNextThemeSettingsStore } from './types';
|
|
3
|
+
/** Initial values for a root-scoped theme-settings store. */
|
|
4
|
+
export interface CreateWeaverseNextThemeSettingsStoreOptions {
|
|
5
|
+
/** Public environment values exposed alongside the store. */
|
|
6
|
+
publicEnv?: Record<string, string | undefined>;
|
|
7
|
+
/** Theme schema associated with the settings. */
|
|
8
|
+
schema?: SchemaType | WeaverseNextThemeSchema;
|
|
9
|
+
/** Initial setting values. */
|
|
10
|
+
settings?: Record<string, unknown>;
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* Small external store shape compatible with the Studio bridge and React's
|
|
14
|
+
* `useSyncExternalStore` contract. The bridge calls `updateThemeSettings` during
|
|
15
|
+
* live theme edits, so keep that method name stable.
|
|
16
|
+
*/
|
|
17
|
+
export declare function createWeaverseNextThemeSettingsStore(options?: CreateWeaverseNextThemeSettingsStoreOptions): WeaverseNextThemeSettingsStore;
|
|
18
|
+
//# sourceMappingURL=theme-settings-store.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"theme-settings-store.d.ts","sourceRoot":"","sources":["../../../src/next/theme-settings-store.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAA;AAClD,OAAO,KAAK,EACV,uBAAuB,EACvB,8BAA8B,EAC/B,MAAM,SAAS,CAAA;AAEhB,6DAA6D;AAC7D,MAAM,WAAW,2CAA2C;IAC1D,6DAA6D;IAC7D,SAAS,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,SAAS,CAAC,CAAA;IAC9C,iDAAiD;IACjD,MAAM,CAAC,EAAE,UAAU,GAAG,uBAAuB,CAAA;IAC7C,8BAA8B;IAC9B,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;CACnC;AAED;;;;GAIG;AACH,wBAAgB,oCAAoC,CAClD,OAAO,GAAE,2CAAgD,GACxD,8BAA8B,CAuBhC"}
|
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
import { type ReactNode } from 'react';
|
|
2
|
+
import { type TranslateFunction } from '../utils/translate';
|
|
3
|
+
import type { TranslationStore } from '../utils/translation-store';
|
|
4
|
+
/** Translation function and live override stores exposed by `useTranslation`. */
|
|
5
|
+
export interface TranslationValue {
|
|
6
|
+
/** Active-locale translated keys loaded from the storefront API. */
|
|
7
|
+
merchantOverrides: Record<string, unknown> | null;
|
|
8
|
+
/**
|
|
9
|
+
* Translate a key with optional variable interpolation.
|
|
10
|
+
*
|
|
11
|
+
* Priority chain (highest wins):
|
|
12
|
+
* 1. External `t` (passed into `WeaverseNextRootProvider` / `TranslationProvider`)
|
|
13
|
+
* 2. Design overrides (live Builder edits from `TranslationStore`)
|
|
14
|
+
* 3. `merchantOverrides` (DB/API overrides for the current locale)
|
|
15
|
+
* 4. `staticContent` (theme default JSON)
|
|
16
|
+
* 5. The key itself (fallback)
|
|
17
|
+
*
|
|
18
|
+
* @example
|
|
19
|
+
* t('cart.title') // => "Cart"
|
|
20
|
+
* t('badge.sale', { percentage: 15 }) // => "-15% Off"
|
|
21
|
+
*/
|
|
22
|
+
t: TranslateFunction;
|
|
23
|
+
/**
|
|
24
|
+
* Legacy name for the live design-mode translation store.
|
|
25
|
+
*
|
|
26
|
+
* @deprecated Migrate to {@link TranslationValue.translationStore}. This
|
|
27
|
+
* alias points at the same store instance.
|
|
28
|
+
*/
|
|
29
|
+
themeTextStore: TranslationStore | null;
|
|
30
|
+
/** Exposed so the runtime/Studio bridge can attach it to `internal`. */
|
|
31
|
+
translationStore: TranslationStore | null;
|
|
32
|
+
}
|
|
33
|
+
/** Sources and content rendered by {@link TranslationProvider}. */
|
|
34
|
+
export interface TranslationProviderProps {
|
|
35
|
+
/** React subtree that can call `useTranslation`. */
|
|
36
|
+
children: ReactNode;
|
|
37
|
+
/** Active-locale static-text overrides loaded from Weaverse. */
|
|
38
|
+
merchantOverrides?: Record<string, unknown>;
|
|
39
|
+
/** Default-locale static content from the theme schema. */
|
|
40
|
+
staticContent: Record<string, unknown>;
|
|
41
|
+
/**
|
|
42
|
+
* Optional external translation function.
|
|
43
|
+
* When provided it becomes the **highest-priority** source:
|
|
44
|
+
* if it returns a non-empty string that differs from the raw key,
|
|
45
|
+
* that value is used; otherwise the internal resolution chain continues.
|
|
46
|
+
*/
|
|
47
|
+
t?: TranslateFunction;
|
|
48
|
+
/**
|
|
49
|
+
* Legacy prop name for the live translation store.
|
|
50
|
+
*
|
|
51
|
+
* @deprecated Migrate to {@link TranslationProviderProps.translationStore}.
|
|
52
|
+
* Still accepted for backward compatibility; ignored when `translationStore`
|
|
53
|
+
* is also provided.
|
|
54
|
+
*/
|
|
55
|
+
themeTextStore?: TranslationStore | null;
|
|
56
|
+
/** Optional store for live design-mode text overrides from the builder. */
|
|
57
|
+
translationStore?: TranslationStore | null;
|
|
58
|
+
}
|
|
59
|
+
/**
|
|
60
|
+
* Provider that wraps the app to expose the `t()` function.
|
|
61
|
+
*
|
|
62
|
+
* - `staticContent` – the theme's default locale JSON (from themeSchema.i18n)
|
|
63
|
+
* - `merchantOverrides` – locale-specific overrides fetched from the API
|
|
64
|
+
* - `translationStore` – optional store for live design-mode text overrides
|
|
65
|
+
* (the deprecated `themeTextStore` prop is accepted as a fallback)
|
|
66
|
+
*/
|
|
67
|
+
export declare function TranslationProvider({ staticContent, merchantOverrides, t: externalT, translationStore, themeTextStore, children, }: TranslationProviderProps): import("react/jsx-runtime").JSX.Element;
|
|
68
|
+
/**
|
|
69
|
+
* Hook to access the translation `t()` function.
|
|
70
|
+
*
|
|
71
|
+
* Must be used inside a component wrapped by `WeaverseNextRootProvider` or
|
|
72
|
+
* `TranslationProvider`.
|
|
73
|
+
*
|
|
74
|
+
* @example
|
|
75
|
+
* ```tsx
|
|
76
|
+
* function CartTitle() {
|
|
77
|
+
* let { t } = useTranslation()
|
|
78
|
+
* return <h2>{t('cart.title')}</h2>
|
|
79
|
+
* }
|
|
80
|
+
* ```
|
|
81
|
+
*/
|
|
82
|
+
export declare function useTranslation(): TranslationValue;
|
|
83
|
+
/**
|
|
84
|
+
* Legacy name for {@link TranslationProvider}.
|
|
85
|
+
*
|
|
86
|
+
* @deprecated Replace `ThemeTextProvider` with {@link TranslationProvider};
|
|
87
|
+
* the props and runtime behavior are unchanged.
|
|
88
|
+
*/
|
|
89
|
+
export declare const ThemeTextProvider: typeof TranslationProvider;
|
|
90
|
+
/**
|
|
91
|
+
* Legacy name for {@link useTranslation}.
|
|
92
|
+
*
|
|
93
|
+
* @deprecated Replace `useThemeText` with {@link useTranslation}; the return
|
|
94
|
+
* value is unchanged.
|
|
95
|
+
*/
|
|
96
|
+
export declare const useThemeText: typeof useTranslation;
|
|
97
|
+
/**
|
|
98
|
+
* Legacy name for {@link TranslationValue}.
|
|
99
|
+
*
|
|
100
|
+
* @deprecated Import {@link TranslationValue} instead.
|
|
101
|
+
*/
|
|
102
|
+
export type ThemeTextValue = TranslationValue;
|
|
103
|
+
/**
|
|
104
|
+
* Legacy name for {@link TranslationProviderProps}.
|
|
105
|
+
*
|
|
106
|
+
* @deprecated Import {@link TranslationProviderProps} instead.
|
|
107
|
+
*/
|
|
108
|
+
export type ThemeTextProviderProps = TranslationProviderProps;
|
|
109
|
+
//# sourceMappingURL=translation-context.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"translation-context.d.ts","sourceRoot":"","sources":["../../../src/next/translation-context.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAiB,KAAK,SAAS,EAAuB,MAAM,OAAO,CAAA;AAC1E,OAAO,EAAmB,KAAK,iBAAiB,EAAE,MAAM,oBAAoB,CAAA;AAC5E,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,4BAA4B,CAAA;AAMlE,iFAAiF;AACjF,MAAM,WAAW,gBAAgB;IAC/B,oEAAoE;IACpE,iBAAiB,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI,CAAA;IACjD;;;;;;;;;;;;;OAaG;IACH,CAAC,EAAE,iBAAiB,CAAA;IACpB;;;;;OAKG;IACH,cAAc,EAAE,gBAAgB,GAAG,IAAI,CAAA;IACvC,wEAAwE;IACxE,gBAAgB,EAAE,gBAAgB,GAAG,IAAI,CAAA;CAC1C;AAKD,mEAAmE;AACnE,MAAM,WAAW,wBAAwB;IACvC,oDAAoD;IACpD,QAAQ,EAAE,SAAS,CAAA;IACnB,gEAAgE;IAChE,iBAAiB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;IAC3C,2DAA2D;IAC3D,aAAa,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;IACtC;;;;;OAKG;IACH,CAAC,CAAC,EAAE,iBAAiB,CAAA;IACrB;;;;;;OAMG;IACH,cAAc,CAAC,EAAE,gBAAgB,GAAG,IAAI,CAAA;IACxC,2EAA2E;IAC3E,gBAAgB,CAAC,EAAE,gBAAgB,GAAG,IAAI,CAAA;CAC3C;AAUD;;;;;;;GAOG;AACH,wBAAgB,mBAAmB,CAAC,EAClC,aAAa,EACb,iBAAiB,EACjB,CAAC,EAAE,SAAS,EACZ,gBAAgB,EAChB,cAAc,EACd,QAAQ,GACT,EAAE,wBAAwB,2CAgC1B;AAED;;;;;;;;;;;;;GAaG;AACH,wBAAgB,cAAc,IAAI,gBAAgB,CAQjD;AAMD;;;;;GAKG;AACH,eAAO,MAAM,iBAAiB,4BAAsB,CAAA;AACpD;;;;;GAKG;AACH,eAAO,MAAM,YAAY,uBAAiB,CAAA;AAC1C;;;;GAIG;AACH,MAAM,MAAM,cAAc,GAAG,gBAAgB,CAAA;AAC7C;;;;GAIG;AACH,MAAM,MAAM,sBAAsB,GAAG,wBAAwB,CAAA"}
|