@ox-content/vite-plugin-svelte 3.1.3 → 3.1.5

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,6 +1,6 @@
1
- import { C as SvelteHtmlHostModuleIdResolver, S as SvelteHtmlHostInitIslands, _ as SvelteHtmlHostClientRuntimeLoader, a as createSvelteHtmlHostDomRenderer, b as SvelteHtmlHostDomRuntime, c as InitSvelteHtmlHostInput, d as SvelteHtmlHostClientDiagnosticCode, f as SvelteHtmlHostClientError, g as SvelteHtmlHostClientRenderer, h as SvelteHtmlHostClientModules, i as SvelteHtmlHostDomRenderer, l as SvelteHtmlHostClientComponentValue, m as SvelteHtmlHostClientModuleValue, n as initSvelteHtmlHost, o as loadSvelteHtmlHostDomRuntime, p as SvelteHtmlHostClientModuleLoader, r as readSvelteHtmlHostSlot, s as CreateSvelteHtmlHostLazyHydrateInput, t as createSvelteHtmlHostLazyHydrate, u as SvelteHtmlHostClientContext, v as SvelteHtmlHostDomMode, x as SvelteHtmlHostExportNameResolver, y as SvelteHtmlHostDomRendererInput } from "./html-host-client.cjs";
2
- import { Plugin, PluginOption } from "vite";
3
- import { CollectionEntry, DocumentImportDiagnostic, HeadInput, MdxImport, MdxImport as MdxImport$1, MdxImportSpecifier, MdxImportSpecifierKind, OxContentOptions, RenderIslandFn, RenderedHead, oxContent, renderHead } from "@ox-content/vite-plugin";
1
+ import { C as SvelteHtmlHostInitIslands, _ as SvelteHtmlHostClientRuntimeLoader, a as createSvelteHtmlHostDomRenderer, b as SvelteHtmlHostDomRuntime, c as InitSvelteHtmlHostInput, d as SvelteHtmlHostClientDiagnosticCode, f as SvelteHtmlHostClientError, g as SvelteHtmlHostClientRenderer, h as SvelteHtmlHostClientModules, i as SvelteHtmlHostDomRenderer, l as SvelteHtmlHostClientComponentValue, m as SvelteHtmlHostClientModuleValue, n as initSvelteHtmlHost, o as loadSvelteHtmlHostDomRuntime, p as SvelteHtmlHostClientModuleLoader, r as readSvelteHtmlHostSlot, s as CreateSvelteHtmlHostLazyHydrateInput, t as createSvelteHtmlHostLazyHydrate, u as SvelteHtmlHostClientContext, v as SvelteHtmlHostDomMode, w as SvelteHtmlHostModuleIdResolver, x as SvelteHtmlHostExportNameResolver, y as SvelteHtmlHostDomRendererInput } from "./html-host-client.cjs";
2
+ import { PluginOption } from "vite";
3
+ import { CreateHtmlHostHydrateInput, CreateHtmlHostIslandRegistryInput, HeadInput, HtmlHostClientModule, HtmlHostCollectionDocument, HtmlHostCollectionDocumentsOptions, HtmlHostComponentRenderer, HtmlHostDiagnostic, HtmlHostDiagnosticCode, HtmlHostHeadContribution, HtmlHostHydrateRenderer, HtmlHostIslandDocument, HtmlHostIslandEntry, HtmlHostIslandRegistry, HtmlHostIslandRegistryContext, HtmlHostModule, HtmlHostServerModuleLoader, MdxImport, MdxImport as MdxImport$1, MdxImportSpecifier, MdxImportSpecifierKind, OxContentOptions, RenderHtmlHostInput, RenderIslandFn, RenderedHead, ResolvedHtmlHostIslandRegistry, oxContent, renderHead, toHtmlHostClientModuleId } from "@ox-content/vite-plugin";
4
4
  import { CompileOptions, Warning } from "svelte/compiler";
5
5
  //#region src/types.d.ts
6
6
  /**
@@ -261,58 +261,31 @@ interface ComponentIsland {
261
261
  }
262
262
  //#endregion
263
263
  //#region src/html-host.d.ts
264
- interface SvelteHtmlHostModule {
265
- name: string;
266
- serverModuleId: string;
267
- exportName: string;
268
- source: "document" | "components";
269
- clientModuleId?: string;
270
- }
271
- interface SvelteHtmlHostClientModule {
272
- name: string;
273
- moduleId: string;
274
- exportName: string;
275
- }
276
- type SvelteHtmlHostDiagnosticCode = DocumentImportDiagnostic["code"] | "missing-component" | "module-load-failed" | "missing-export" | "ssr-failed";
277
- interface SvelteHtmlHostDiagnostic {
278
- code: SvelteHtmlHostDiagnosticCode;
279
- message: string;
280
- documentPath: string;
281
- component?: string;
282
- moduleId?: string;
283
- }
284
- type SvelteServerModuleLoader = (moduleId: string) => Promise<unknown>;
285
- type SvelteHtmlComponentRenderer = (component: unknown, props: Record<string, unknown>, slotHtml: string | undefined, context: {
286
- component: string;
287
- moduleId: string;
288
- documentPath: string;
289
- }) => string | Promise<string>;
264
+ interface SvelteHtmlHostModule extends HtmlHostModule {}
265
+ interface SvelteHtmlHostClientModule extends HtmlHostClientModule {}
266
+ type SvelteHtmlHostDiagnosticCode = HtmlHostDiagnosticCode;
267
+ interface SvelteHtmlHostDiagnostic extends HtmlHostDiagnostic {}
268
+ type SvelteServerModuleLoader = HtmlHostServerModuleLoader;
269
+ type SvelteHtmlComponentRenderer = HtmlHostComponentRenderer;
290
270
  type SvelteClientModuleResolver = (module: SvelteHtmlHostModule, context: {
291
271
  documentPath: string;
292
272
  }) => string | undefined;
293
- interface RenderSvelteHtmlHostInput {
294
- html: string;
295
- documentPath: string;
273
+ interface RenderSvelteHtmlHostInput extends Omit<RenderHtmlHostInput, "components" | "frameworkName" | "adapter" | "renderComponent" | "resolveClientModule"> {
296
274
  components?: ComponentsMap;
297
- imports?: readonly MdxImport$1[];
298
- root?: string;
299
- srcDir?: string;
300
- contentRoot?: string;
301
- loadModule: SvelteServerModuleLoader;
302
275
  renderComponent?: SvelteHtmlComponentRenderer;
303
276
  resolveClientModule?: SvelteClientModuleResolver;
304
277
  }
305
278
  interface RenderSvelteHtmlHostResult {
306
279
  html: string;
280
+ headHtml: string;
281
+ headContributions: SvelteHtmlHostHeadContribution[];
307
282
  modules: SvelteHtmlHostModule[];
308
283
  clientModules: SvelteHtmlHostClientModule[];
309
284
  diagnostics: SvelteHtmlHostDiagnostic[];
310
285
  }
311
- type SvelteHostHydrateRenderer = (component: unknown, props: Record<string, unknown>, element: HTMLElement, slotHtml: string | undefined) => void | (() => void);
312
- interface CreateSvelteHtmlHostHydrateInput {
313
- components: Readonly<Record<string, unknown>> | ReadonlyMap<string, unknown>;
314
- render: SvelteHostHydrateRenderer;
315
- }
286
+ interface SvelteHtmlHostHeadContribution extends HtmlHostHeadContribution {}
287
+ type SvelteHostHydrateRenderer = HtmlHostHydrateRenderer;
288
+ type CreateSvelteHtmlHostHydrateInput = CreateHtmlHostHydrateInput;
316
289
  declare function renderSvelteHtmlHost(input: RenderSvelteHtmlHostInput): Promise<RenderSvelteHtmlHostResult>;
317
290
  declare function createSvelteHtmlHostHydrate(input: CreateSvelteHtmlHostHydrateInput): (element: HTMLElement, props: Record<string, unknown>) => void | (() => void);
318
291
  //#endregion
@@ -345,70 +318,22 @@ declare class SvelteHtmlHostRenderError extends Error {
345
318
  }
346
319
  declare function createSvelteHtmlHostRenderer(input: CreateSvelteHtmlHostRendererInput): SvelteHtmlHostRenderer;
347
320
  //#endregion
348
- //#region src/html-host-collection-documents.d.ts
349
- type MaybePromise$1<T> = T | Promise<T>;
350
- interface SvelteHtmlHostCollectionDocument extends SvelteHtmlHostIslandDocument {
351
- collection: string;
352
- entry: CollectionEntry;
353
- frontmatter: Record<string, unknown>;
354
- path: string;
355
- source: string;
356
- }
357
- interface SvelteHtmlHostCollectionDocumentsOptions {
358
- oxContent?: OxContentOptions;
359
- collections?: string | readonly string[];
360
- select?: (document: SvelteHtmlHostCollectionDocument, context: SvelteHtmlHostIslandRegistryContext) => MaybePromise$1<boolean>;
361
- }
362
- declare function createSvelteHtmlHostCollectionDocuments(input?: SvelteHtmlHostCollectionDocumentsOptions): (context: SvelteHtmlHostIslandRegistryContext) => Promise<readonly SvelteHtmlHostCollectionDocument[]>;
363
- declare function resolveSvelteHtmlHostCollectionDocuments(input: SvelteHtmlHostCollectionDocumentsOptions, context: SvelteHtmlHostIslandRegistryContext): Promise<readonly SvelteHtmlHostCollectionDocument[]>;
364
- //#endregion
365
- //#region src/html-host-registry-paths.d.ts
366
- declare function toSvelteHtmlHostClientModuleId(moduleId: string, root?: string): string;
367
- //#endregion
368
321
  //#region src/html-host-registry.d.ts
369
322
  declare const SVELTE_HTML_HOST_MODULES_VIRTUAL_ID = "virtual:ox-content-svelte/html-host/modules";
370
- type MaybePromise<T> = T | Promise<T>;
371
- interface SvelteHtmlHostIslandDocument {
372
- documentPath: string;
373
- source?: string;
374
- html?: string;
375
- imports?: readonly MdxImport$1[];
376
- components?: ComponentsMap;
377
- dependencies?: readonly string[];
378
- }
379
- interface SvelteHtmlHostIslandEntry {
380
- moduleId: string;
381
- name?: string;
382
- exportName?: string;
383
- documentPath?: string;
384
- }
385
- interface SvelteHtmlHostIslandRegistryContext {
386
- root: string;
387
- mode: string;
388
- command: "build" | "serve";
389
- }
390
- interface CreateSvelteHtmlHostIslandRegistryInput {
391
- documents?: readonly SvelteHtmlHostIslandDocument[] | ((context: SvelteHtmlHostIslandRegistryContext) => MaybePromise<readonly SvelteHtmlHostIslandDocument[]>);
392
- collectionDocuments?: false | SvelteHtmlHostCollectionDocumentsOptions;
393
- entries?: readonly SvelteHtmlHostIslandEntry[] | ((context: SvelteHtmlHostIslandRegistryContext) => MaybePromise<readonly SvelteHtmlHostIslandEntry[]>);
394
- components?: ComponentsOption;
395
- oxContent?: OxContentOptions;
396
- root?: string;
397
- watch?: readonly string[];
398
- virtualModuleId?: string;
399
- }
400
- interface ResolvedSvelteHtmlHostIslandRegistry {
401
- modules: SvelteHtmlHostClientModule[];
402
- watchFiles: string[];
403
- }
404
- interface SvelteHtmlHostIslandRegistry {
405
- plugin: Plugin;
406
- virtualModuleId: string;
407
- resolve(): Promise<ResolvedSvelteHtmlHostIslandRegistry>;
408
- resolveClientModule(module: Pick<SvelteHtmlHostModule, "serverModuleId">): string;
409
- }
323
+ type SvelteHtmlHostIslandDocument = HtmlHostIslandDocument;
324
+ type SvelteHtmlHostIslandEntry = HtmlHostIslandEntry;
325
+ type SvelteHtmlHostIslandRegistryContext = HtmlHostIslandRegistryContext;
326
+ type CreateSvelteHtmlHostIslandRegistryInput = CreateHtmlHostIslandRegistryInput;
327
+ type ResolvedSvelteHtmlHostIslandRegistry = ResolvedHtmlHostIslandRegistry;
328
+ type SvelteHtmlHostIslandRegistry = HtmlHostIslandRegistry;
410
329
  declare function createSvelteHtmlHostIslandRegistry(input?: CreateSvelteHtmlHostIslandRegistryInput): SvelteHtmlHostIslandRegistry;
411
- declare function resolveSvelteHtmlHostIslandRegistry(input: CreateSvelteHtmlHostIslandRegistryInput, context: SvelteHtmlHostIslandRegistryContext, resolvedComponents?: ComponentsMap): Promise<ResolvedSvelteHtmlHostIslandRegistry>;
330
+ declare function resolveSvelteHtmlHostIslandRegistry(input: CreateSvelteHtmlHostIslandRegistryInput, context: SvelteHtmlHostIslandRegistryContext, resolvedComponents?: Record<string, string>): Promise<ResolvedSvelteHtmlHostIslandRegistry>;
331
+ //#endregion
332
+ //#region src/html-host-collection-documents.d.ts
333
+ type SvelteHtmlHostCollectionDocument = HtmlHostCollectionDocument;
334
+ type SvelteHtmlHostCollectionDocumentsOptions = HtmlHostCollectionDocumentsOptions;
335
+ declare function createSvelteHtmlHostCollectionDocuments(input?: SvelteHtmlHostCollectionDocumentsOptions): (context: HtmlHostIslandRegistryContext) => Promise<readonly SvelteHtmlHostCollectionDocument[]>;
336
+ declare function resolveSvelteHtmlHostCollectionDocuments(input: SvelteHtmlHostCollectionDocumentsOptions, context: HtmlHostIslandRegistryContext): Promise<readonly SvelteHtmlHostCollectionDocument[]>;
412
337
  //#endregion
413
338
  //#region src/index.d.ts
414
339
  /**
@@ -440,5 +365,5 @@ declare function resolveSvelteHtmlHostIslandRegistry(input: CreateSvelteHtmlHost
440
365
  */
441
366
  declare function oxContentSvelte(options?: SvelteIntegrationOptions): PluginOption[];
442
367
  //#endregion
443
- export { type BuiltinEmbedOptions, type ComponentIsland, type ComponentsMap, type ComponentsOption, type CreateSvelteHtmlHostHydrateInput, type CreateSvelteHtmlHostIslandRegistryInput, type CreateSvelteHtmlHostLazyHydrateInput, type CreateSvelteHtmlHostRendererInput, type GitHubEmbedOptions, type HeadInput, type InitSvelteHtmlHostInput, type MdxDocumentPropsOption, type MdxImport, type MdxImportSpecifier, type MdxImportSpecifierKind, type OpenGraphEmbedOptions, type RenderSvelteHtmlHostInput, type RenderSvelteHtmlHostResult, type RenderedHead, type ResolvedBuiltinEmbedOptions, type ResolvedSvelteHtmlHostIslandRegistry, type ResolvedSvelteOptions, SVELTE_HTML_HOST_MODULES_VIRTUAL_ID, type SvelteClientModuleResolver, type SvelteCompileFunction, type SvelteCompilerOption, type SvelteCompilerOptions, type SvelteCompilerResult, type SvelteCompilerWarning, type SvelteHostHydrateRenderer, type SvelteHtmlComponentRenderer, type SvelteHtmlHostClientComponentValue, type SvelteHtmlHostClientContext, type SvelteHtmlHostClientDiagnosticCode, type SvelteHtmlHostClientError, type SvelteHtmlHostClientModule, type SvelteHtmlHostClientModuleLoader, type SvelteHtmlHostClientModuleValue, type SvelteHtmlHostClientModules, type SvelteHtmlHostClientRenderer, type SvelteHtmlHostClientRuntimeLoader, type SvelteHtmlHostCollectionDocument, type SvelteHtmlHostCollectionDocumentsOptions, type SvelteHtmlHostDiagnostic, type SvelteHtmlHostDiagnosticCode, type SvelteHtmlHostDomMode, type SvelteHtmlHostDomRenderer, type SvelteHtmlHostDomRendererInput, type SvelteHtmlHostDomRuntime, type SvelteHtmlHostExportNameResolver, type SvelteHtmlHostInitIslands, type SvelteHtmlHostIslandDocument, type SvelteHtmlHostIslandEntry, type SvelteHtmlHostIslandRegistry, type SvelteHtmlHostIslandRegistryContext, type SvelteHtmlHostModule, type SvelteHtmlHostModuleIdResolver, SvelteHtmlHostRenderError, type SvelteHtmlHostRenderer, type SvelteHtmlHostRendererContext, type SvelteHtmlHostRendererDiagnosticPolicy, type SvelteIntegrationOptions, type SvelteServerModuleLoader, type SvelteTransformResult, createSvelteHtmlHostCollectionDocuments, createSvelteHtmlHostDomRenderer, createSvelteHtmlHostHydrate, createSvelteHtmlHostIslandRegistry, createSvelteHtmlHostLazyHydrate, createSvelteHtmlHostRenderer, initSvelteHtmlHost, loadSvelteHtmlHostDomRuntime, oxContent, oxContentSvelte, readSvelteHtmlHostSlot, renderHead, renderSvelteHtmlHost, resolveSvelteHtmlHostCollectionDocuments, resolveSvelteHtmlHostIslandRegistry, toSvelteHtmlHostClientModuleId };
368
+ export { type BuiltinEmbedOptions, type ComponentIsland, type ComponentsMap, type ComponentsOption, type CreateSvelteHtmlHostHydrateInput, type CreateSvelteHtmlHostIslandRegistryInput, type CreateSvelteHtmlHostLazyHydrateInput, type CreateSvelteHtmlHostRendererInput, type GitHubEmbedOptions, type HeadInput, type InitSvelteHtmlHostInput, type MdxDocumentPropsOption, type MdxImport, type MdxImportSpecifier, type MdxImportSpecifierKind, type OpenGraphEmbedOptions, type RenderSvelteHtmlHostInput, type RenderSvelteHtmlHostResult, type RenderedHead, type ResolvedBuiltinEmbedOptions, type ResolvedSvelteHtmlHostIslandRegistry, type ResolvedSvelteOptions, SVELTE_HTML_HOST_MODULES_VIRTUAL_ID, type SvelteClientModuleResolver, type SvelteCompileFunction, type SvelteCompilerOption, type SvelteCompilerOptions, type SvelteCompilerResult, type SvelteCompilerWarning, type SvelteHostHydrateRenderer, type SvelteHtmlComponentRenderer, type SvelteHtmlHostClientComponentValue, type SvelteHtmlHostClientContext, type SvelteHtmlHostClientDiagnosticCode, type SvelteHtmlHostClientError, type SvelteHtmlHostClientModule, type SvelteHtmlHostClientModuleLoader, type SvelteHtmlHostClientModuleValue, type SvelteHtmlHostClientModules, type SvelteHtmlHostClientRenderer, type SvelteHtmlHostClientRuntimeLoader, type SvelteHtmlHostCollectionDocument, type SvelteHtmlHostCollectionDocumentsOptions, type SvelteHtmlHostDiagnostic, type SvelteHtmlHostDiagnosticCode, type SvelteHtmlHostDomMode, type SvelteHtmlHostDomRenderer, type SvelteHtmlHostDomRendererInput, type SvelteHtmlHostDomRuntime, type SvelteHtmlHostExportNameResolver, type SvelteHtmlHostHeadContribution, type SvelteHtmlHostInitIslands, type SvelteHtmlHostIslandDocument, type SvelteHtmlHostIslandEntry, type SvelteHtmlHostIslandRegistry, type SvelteHtmlHostIslandRegistryContext, type SvelteHtmlHostModule, type SvelteHtmlHostModuleIdResolver, SvelteHtmlHostRenderError, type SvelteHtmlHostRenderer, type SvelteHtmlHostRendererContext, type SvelteHtmlHostRendererDiagnosticPolicy, type SvelteIntegrationOptions, type SvelteServerModuleLoader, type SvelteTransformResult, createSvelteHtmlHostCollectionDocuments, createSvelteHtmlHostDomRenderer, createSvelteHtmlHostHydrate, createSvelteHtmlHostIslandRegistry, createSvelteHtmlHostLazyHydrate, createSvelteHtmlHostRenderer, initSvelteHtmlHost, loadSvelteHtmlHostDomRuntime, oxContent, oxContentSvelte, readSvelteHtmlHostSlot, renderHead, renderSvelteHtmlHost, resolveSvelteHtmlHostCollectionDocuments, resolveSvelteHtmlHostIslandRegistry, toHtmlHostClientModuleId as toSvelteHtmlHostClientModuleId };
444
369
  //# sourceMappingURL=index.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.cts","names":[],"sources":["../src/types.ts","../src/html-host.ts","../src/html-host-renderer.ts","../src/html-host-collection-documents.ts","../src/html-host-registry-paths.ts","../src/html-host-registry.ts","../src/index.ts"],"mappings":";;;;;;;;;;;UASiB;;;;;;EAMf;;UAGe;EACf;EACA;;;;;KAMU,gBAAgB;;;;;;;;KAShB,mBAAmB;KAEnB,wBAAwB;UAEnB,8BAA8B,KAC7C;EAGA;EACA;EACA;;UAGe;EACf;EACA;;UAGe;EACf,IAAI;EACJ,oBAAoB;;KAGV,uBAAuB;KAEvB,yBACV,gBACA,SAAS,0BACN,uBAAuB,QAAQ;KAExB,uBACR;EAEE,SAAS;;;;;;;;;KAUH;;;;;;;;UASK,iCAAiC;;;;;;;;EAQhD;;;;;;;;;;;;;;;;;;EAmBA,aAAa;;;;;;;;EASb,4BAA4B;;;;;;;;;EAU5B;;;;;;;;;;EAWA,WAAW;;;;;;;;;EAUX,SAAS;;;;;;;EAQT,eAAe;;;;;;;;;;;;EAaf,mBAAmB;;;;;UAMJ;;;;;EAKf;;;;;EAMA;;;;;EAMA;;;;;EAMA;;;;;EAMA;;;;;UAMe;;;;;EAKf;;;;;EAMA;;;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YAAY;EACZ;EACA,UACE,UAAU,kCACV,SAAS,wCACN;;iBAGS,wCACd,QAAO,4CAEP,SAAS,wCACN,iBAAiB;iBAIA,yCACpB,OAAO,0CACP,SAAS,sCACR,iBAAiB;;;iBC7CJ,+BAA+B,kBAAkB;;;cC0BpD;KAER,aAAa,KAAK,IAAI,QAAQ;UAElB;EACf;EACA;EACA;EACA,mBAAmB;EACnB,aAAa;EACb;;UAGe;EACf;EACA;EACA;EACA;;UAGe;EACf;EACA;EACA;;UAGe;EACf,qBACa,mCAEP,SAAS,wCACN,sBAAsB;EAC/B,8BAA8B;EAC9B,mBACa,gCAEP,SAAS,wCACN,sBAAsB;EAC/B,aAAa;EACb,YAAY;EACZ;EACA;EACA;;UAGe;EACf,SAAS;EACT;;UAGe;EACf,QAAQ;EACR;EACA,WAAW,QAAQ;EACnB,oBAAoB,QAAQ,KAAK;;iBAGnB,mCACd,QAAO,0CACN;iBAoFmB,oCACpB,OAAO,yCACP,SAAS,qCACT,qBAAqB,gBACpB,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBCPK,gBAAgB,UAAS,2BAAgC"}
1
+ {"version":3,"file":"index.d.cts","names":[],"sources":["../src/types.ts","../src/html-host.ts","../src/html-host-renderer.ts","../src/html-host-registry.ts","../src/html-host-collection-documents.ts","../src/index.ts"],"mappings":";;;;;;;;;;;UASiB;;;;;;EAMf;;UAGe;EACf;EACA;;;;;KAMU,gBAAgB;;;;;;;;KAShB,mBAAmB;KAEnB,wBAAwB;UAEnB,8BAA8B,KAC7C;EAGA;EACA;EACA;;UAGe;EACf;EACA;;UAGe;EACf,IAAI;EACJ,oBAAoB;;KAGV,uBAAuB;KAEvB,yBACV,gBACA,SAAS,0BACN,uBAAuB,QAAQ;KAExB,uBACR;EAEE,SAAS;;;;;;;;;KAUH;;;;;;;;UASK,iCAAiC;;;;;;;;EAQhD;;;;;;;;;;;;;;;;;;EAmBA,aAAa;;;;;;;;EASb,4BAA4B;;;;;;;;;EAU5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tC,0CAA0C;KAC1C,uCAAuC;KACvC,+BAA+B;iBAE3B,mCACd,QAAO,0CACN;iBAQa,oCACd,OAAO,yCACP,SAAS,qCACT,qBAAqB,yBACpB,QAAQ;;;KC9BC,mCAAmC;KACnC,2CAA2C;iBAEvC,wCACd,QAAO,4CAEP,SAAS,kCACN,iBAAiB;iBAIN,yCACd,OAAO,0CACP,SAAS,gCACR,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBCsJJ,gBAAgB,UAAS,2BAAgC"}
package/dist/index.d.mts CHANGED
@@ -1,7 +1,7 @@
1
- import { C as SvelteHtmlHostModuleIdResolver, S as SvelteHtmlHostInitIslands, _ as SvelteHtmlHostClientRuntimeLoader, a as createSvelteHtmlHostDomRenderer, b as SvelteHtmlHostDomRuntime, c as InitSvelteHtmlHostInput, d as SvelteHtmlHostClientDiagnosticCode, f as SvelteHtmlHostClientError, g as SvelteHtmlHostClientRenderer, h as SvelteHtmlHostClientModules, i as SvelteHtmlHostDomRenderer, l as SvelteHtmlHostClientComponentValue, m as SvelteHtmlHostClientModuleValue, n as initSvelteHtmlHost, o as loadSvelteHtmlHostDomRuntime, p as SvelteHtmlHostClientModuleLoader, r as readSvelteHtmlHostSlot, s as CreateSvelteHtmlHostLazyHydrateInput, t as createSvelteHtmlHostLazyHydrate, u as SvelteHtmlHostClientContext, v as SvelteHtmlHostDomMode, x as SvelteHtmlHostExportNameResolver, y as SvelteHtmlHostDomRendererInput } from "./html-host-client.mjs";
2
- import { CollectionEntry, DocumentImportDiagnostic, HeadInput, MdxImport, MdxImport as MdxImport$1, MdxImportSpecifier, MdxImportSpecifierKind, OxContentOptions, RenderIslandFn, RenderedHead, oxContent, renderHead } from "@ox-content/vite-plugin";
1
+ import { C as SvelteHtmlHostInitIslands, _ as SvelteHtmlHostClientRuntimeLoader, a as createSvelteHtmlHostDomRenderer, b as SvelteHtmlHostDomRuntime, c as InitSvelteHtmlHostInput, d as SvelteHtmlHostClientDiagnosticCode, f as SvelteHtmlHostClientError, g as SvelteHtmlHostClientRenderer, h as SvelteHtmlHostClientModules, i as SvelteHtmlHostDomRenderer, l as SvelteHtmlHostClientComponentValue, m as SvelteHtmlHostClientModuleValue, n as initSvelteHtmlHost, o as loadSvelteHtmlHostDomRuntime, p as SvelteHtmlHostClientModuleLoader, r as readSvelteHtmlHostSlot, s as CreateSvelteHtmlHostLazyHydrateInput, t as createSvelteHtmlHostLazyHydrate, u as SvelteHtmlHostClientContext, v as SvelteHtmlHostDomMode, w as SvelteHtmlHostModuleIdResolver, x as SvelteHtmlHostExportNameResolver, y as SvelteHtmlHostDomRendererInput } from "./html-host-client.mjs";
2
+ import { CreateHtmlHostHydrateInput, CreateHtmlHostIslandRegistryInput, HeadInput, HtmlHostClientModule, HtmlHostCollectionDocument, HtmlHostCollectionDocumentsOptions, HtmlHostComponentRenderer, HtmlHostDiagnostic, HtmlHostDiagnosticCode, HtmlHostHeadContribution, HtmlHostHydrateRenderer, HtmlHostIslandDocument, HtmlHostIslandEntry, HtmlHostIslandRegistry, HtmlHostIslandRegistryContext, HtmlHostModule, HtmlHostServerModuleLoader, MdxImport, MdxImport as MdxImport$1, MdxImportSpecifier, MdxImportSpecifierKind, OxContentOptions, RenderHtmlHostInput, RenderIslandFn, RenderedHead, ResolvedHtmlHostIslandRegistry, oxContent, renderHead, toHtmlHostClientModuleId } from "@ox-content/vite-plugin";
3
3
  import { CompileOptions, Warning } from "svelte/compiler";
4
- import { Plugin, PluginOption } from "vite";
4
+ import { PluginOption } from "vite";
5
5
  //#region src/types.d.ts
6
6
  /**
7
7
  * Code annotation options for the Svelte integration.
@@ -261,58 +261,31 @@ interface ComponentIsland {
261
261
  }
262
262
  //#endregion
263
263
  //#region src/html-host.d.ts
264
- interface SvelteHtmlHostModule {
265
- name: string;
266
- serverModuleId: string;
267
- exportName: string;
268
- source: "document" | "components";
269
- clientModuleId?: string;
270
- }
271
- interface SvelteHtmlHostClientModule {
272
- name: string;
273
- moduleId: string;
274
- exportName: string;
275
- }
276
- type SvelteHtmlHostDiagnosticCode = DocumentImportDiagnostic["code"] | "missing-component" | "module-load-failed" | "missing-export" | "ssr-failed";
277
- interface SvelteHtmlHostDiagnostic {
278
- code: SvelteHtmlHostDiagnosticCode;
279
- message: string;
280
- documentPath: string;
281
- component?: string;
282
- moduleId?: string;
283
- }
284
- type SvelteServerModuleLoader = (moduleId: string) => Promise<unknown>;
285
- type SvelteHtmlComponentRenderer = (component: unknown, props: Record<string, unknown>, slotHtml: string | undefined, context: {
286
- component: string;
287
- moduleId: string;
288
- documentPath: string;
289
- }) => string | Promise<string>;
264
+ interface SvelteHtmlHostModule extends HtmlHostModule {}
265
+ interface SvelteHtmlHostClientModule extends HtmlHostClientModule {}
266
+ type SvelteHtmlHostDiagnosticCode = HtmlHostDiagnosticCode;
267
+ interface SvelteHtmlHostDiagnostic extends HtmlHostDiagnostic {}
268
+ type SvelteServerModuleLoader = HtmlHostServerModuleLoader;
269
+ type SvelteHtmlComponentRenderer = HtmlHostComponentRenderer;
290
270
  type SvelteClientModuleResolver = (module: SvelteHtmlHostModule, context: {
291
271
  documentPath: string;
292
272
  }) => string | undefined;
293
- interface RenderSvelteHtmlHostInput {
294
- html: string;
295
- documentPath: string;
273
+ interface RenderSvelteHtmlHostInput extends Omit<RenderHtmlHostInput, "components" | "frameworkName" | "adapter" | "renderComponent" | "resolveClientModule"> {
296
274
  components?: ComponentsMap;
297
- imports?: readonly MdxImport$1[];
298
- root?: string;
299
- srcDir?: string;
300
- contentRoot?: string;
301
- loadModule: SvelteServerModuleLoader;
302
275
  renderComponent?: SvelteHtmlComponentRenderer;
303
276
  resolveClientModule?: SvelteClientModuleResolver;
304
277
  }
305
278
  interface RenderSvelteHtmlHostResult {
306
279
  html: string;
280
+ headHtml: string;
281
+ headContributions: SvelteHtmlHostHeadContribution[];
307
282
  modules: SvelteHtmlHostModule[];
308
283
  clientModules: SvelteHtmlHostClientModule[];
309
284
  diagnostics: SvelteHtmlHostDiagnostic[];
310
285
  }
311
- type SvelteHostHydrateRenderer = (component: unknown, props: Record<string, unknown>, element: HTMLElement, slotHtml: string | undefined) => void | (() => void);
312
- interface CreateSvelteHtmlHostHydrateInput {
313
- components: Readonly<Record<string, unknown>> | ReadonlyMap<string, unknown>;
314
- render: SvelteHostHydrateRenderer;
315
- }
286
+ interface SvelteHtmlHostHeadContribution extends HtmlHostHeadContribution {}
287
+ type SvelteHostHydrateRenderer = HtmlHostHydrateRenderer;
288
+ type CreateSvelteHtmlHostHydrateInput = CreateHtmlHostHydrateInput;
316
289
  declare function renderSvelteHtmlHost(input: RenderSvelteHtmlHostInput): Promise<RenderSvelteHtmlHostResult>;
317
290
  declare function createSvelteHtmlHostHydrate(input: CreateSvelteHtmlHostHydrateInput): (element: HTMLElement, props: Record<string, unknown>) => void | (() => void);
318
291
  //#endregion
@@ -345,70 +318,22 @@ declare class SvelteHtmlHostRenderError extends Error {
345
318
  }
346
319
  declare function createSvelteHtmlHostRenderer(input: CreateSvelteHtmlHostRendererInput): SvelteHtmlHostRenderer;
347
320
  //#endregion
348
- //#region src/html-host-collection-documents.d.ts
349
- type MaybePromise$1<T> = T | Promise<T>;
350
- interface SvelteHtmlHostCollectionDocument extends SvelteHtmlHostIslandDocument {
351
- collection: string;
352
- entry: CollectionEntry;
353
- frontmatter: Record<string, unknown>;
354
- path: string;
355
- source: string;
356
- }
357
- interface SvelteHtmlHostCollectionDocumentsOptions {
358
- oxContent?: OxContentOptions;
359
- collections?: string | readonly string[];
360
- select?: (document: SvelteHtmlHostCollectionDocument, context: SvelteHtmlHostIslandRegistryContext) => MaybePromise$1<boolean>;
361
- }
362
- declare function createSvelteHtmlHostCollectionDocuments(input?: SvelteHtmlHostCollectionDocumentsOptions): (context: SvelteHtmlHostIslandRegistryContext) => Promise<readonly SvelteHtmlHostCollectionDocument[]>;
363
- declare function resolveSvelteHtmlHostCollectionDocuments(input: SvelteHtmlHostCollectionDocumentsOptions, context: SvelteHtmlHostIslandRegistryContext): Promise<readonly SvelteHtmlHostCollectionDocument[]>;
364
- //#endregion
365
- //#region src/html-host-registry-paths.d.ts
366
- declare function toSvelteHtmlHostClientModuleId(moduleId: string, root?: string): string;
367
- //#endregion
368
321
  //#region src/html-host-registry.d.ts
369
322
  declare const SVELTE_HTML_HOST_MODULES_VIRTUAL_ID = "virtual:ox-content-svelte/html-host/modules";
370
- type MaybePromise<T> = T | Promise<T>;
371
- interface SvelteHtmlHostIslandDocument {
372
- documentPath: string;
373
- source?: string;
374
- html?: string;
375
- imports?: readonly MdxImport$1[];
376
- components?: ComponentsMap;
377
- dependencies?: readonly string[];
378
- }
379
- interface SvelteHtmlHostIslandEntry {
380
- moduleId: string;
381
- name?: string;
382
- exportName?: string;
383
- documentPath?: string;
384
- }
385
- interface SvelteHtmlHostIslandRegistryContext {
386
- root: string;
387
- mode: string;
388
- command: "build" | "serve";
389
- }
390
- interface CreateSvelteHtmlHostIslandRegistryInput {
391
- documents?: readonly SvelteHtmlHostIslandDocument[] | ((context: SvelteHtmlHostIslandRegistryContext) => MaybePromise<readonly SvelteHtmlHostIslandDocument[]>);
392
- collectionDocuments?: false | SvelteHtmlHostCollectionDocumentsOptions;
393
- entries?: readonly SvelteHtmlHostIslandEntry[] | ((context: SvelteHtmlHostIslandRegistryContext) => MaybePromise<readonly SvelteHtmlHostIslandEntry[]>);
394
- components?: ComponentsOption;
395
- oxContent?: OxContentOptions;
396
- root?: string;
397
- watch?: readonly string[];
398
- virtualModuleId?: string;
399
- }
400
- interface ResolvedSvelteHtmlHostIslandRegistry {
401
- modules: SvelteHtmlHostClientModule[];
402
- watchFiles: string[];
403
- }
404
- interface SvelteHtmlHostIslandRegistry {
405
- plugin: Plugin;
406
- virtualModuleId: string;
407
- resolve(): Promise<ResolvedSvelteHtmlHostIslandRegistry>;
408
- resolveClientModule(module: Pick<SvelteHtmlHostModule, "serverModuleId">): string;
409
- }
323
+ type SvelteHtmlHostIslandDocument = HtmlHostIslandDocument;
324
+ type SvelteHtmlHostIslandEntry = HtmlHostIslandEntry;
325
+ type SvelteHtmlHostIslandRegistryContext = HtmlHostIslandRegistryContext;
326
+ type CreateSvelteHtmlHostIslandRegistryInput = CreateHtmlHostIslandRegistryInput;
327
+ type ResolvedSvelteHtmlHostIslandRegistry = ResolvedHtmlHostIslandRegistry;
328
+ type SvelteHtmlHostIslandRegistry = HtmlHostIslandRegistry;
410
329
  declare function createSvelteHtmlHostIslandRegistry(input?: CreateSvelteHtmlHostIslandRegistryInput): SvelteHtmlHostIslandRegistry;
411
- declare function resolveSvelteHtmlHostIslandRegistry(input: CreateSvelteHtmlHostIslandRegistryInput, context: SvelteHtmlHostIslandRegistryContext, resolvedComponents?: ComponentsMap): Promise<ResolvedSvelteHtmlHostIslandRegistry>;
330
+ declare function resolveSvelteHtmlHostIslandRegistry(input: CreateSvelteHtmlHostIslandRegistryInput, context: SvelteHtmlHostIslandRegistryContext, resolvedComponents?: Record<string, string>): Promise<ResolvedSvelteHtmlHostIslandRegistry>;
331
+ //#endregion
332
+ //#region src/html-host-collection-documents.d.ts
333
+ type SvelteHtmlHostCollectionDocument = HtmlHostCollectionDocument;
334
+ type SvelteHtmlHostCollectionDocumentsOptions = HtmlHostCollectionDocumentsOptions;
335
+ declare function createSvelteHtmlHostCollectionDocuments(input?: SvelteHtmlHostCollectionDocumentsOptions): (context: HtmlHostIslandRegistryContext) => Promise<readonly SvelteHtmlHostCollectionDocument[]>;
336
+ declare function resolveSvelteHtmlHostCollectionDocuments(input: SvelteHtmlHostCollectionDocumentsOptions, context: HtmlHostIslandRegistryContext): Promise<readonly SvelteHtmlHostCollectionDocument[]>;
412
337
  //#endregion
413
338
  //#region src/index.d.ts
414
339
  /**
@@ -440,5 +365,5 @@ declare function resolveSvelteHtmlHostIslandRegistry(input: CreateSvelteHtmlHost
440
365
  */
441
366
  declare function oxContentSvelte(options?: SvelteIntegrationOptions): PluginOption[];
442
367
  //#endregion
443
- export { type BuiltinEmbedOptions, type ComponentIsland, type ComponentsMap, type ComponentsOption, type CreateSvelteHtmlHostHydrateInput, type CreateSvelteHtmlHostIslandRegistryInput, type CreateSvelteHtmlHostLazyHydrateInput, type CreateSvelteHtmlHostRendererInput, type GitHubEmbedOptions, type HeadInput, type InitSvelteHtmlHostInput, type MdxDocumentPropsOption, type MdxImport, type MdxImportSpecifier, type MdxImportSpecifierKind, type OpenGraphEmbedOptions, type RenderSvelteHtmlHostInput, type RenderSvelteHtmlHostResult, type RenderedHead, type ResolvedBuiltinEmbedOptions, type ResolvedSvelteHtmlHostIslandRegistry, type ResolvedSvelteOptions, SVELTE_HTML_HOST_MODULES_VIRTUAL_ID, type SvelteClientModuleResolver, type SvelteCompileFunction, type SvelteCompilerOption, type SvelteCompilerOptions, type SvelteCompilerResult, type SvelteCompilerWarning, type SvelteHostHydrateRenderer, type SvelteHtmlComponentRenderer, type SvelteHtmlHostClientComponentValue, type SvelteHtmlHostClientContext, type SvelteHtmlHostClientDiagnosticCode, type SvelteHtmlHostClientError, type SvelteHtmlHostClientModule, type SvelteHtmlHostClientModuleLoader, type SvelteHtmlHostClientModuleValue, type SvelteHtmlHostClientModules, type SvelteHtmlHostClientRenderer, type SvelteHtmlHostClientRuntimeLoader, type SvelteHtmlHostCollectionDocument, type SvelteHtmlHostCollectionDocumentsOptions, type SvelteHtmlHostDiagnostic, type SvelteHtmlHostDiagnosticCode, type SvelteHtmlHostDomMode, type SvelteHtmlHostDomRenderer, type SvelteHtmlHostDomRendererInput, type SvelteHtmlHostDomRuntime, type SvelteHtmlHostExportNameResolver, type SvelteHtmlHostInitIslands, type SvelteHtmlHostIslandDocument, type SvelteHtmlHostIslandEntry, type SvelteHtmlHostIslandRegistry, type SvelteHtmlHostIslandRegistryContext, type SvelteHtmlHostModule, type SvelteHtmlHostModuleIdResolver, SvelteHtmlHostRenderError, type SvelteHtmlHostRenderer, type SvelteHtmlHostRendererContext, type SvelteHtmlHostRendererDiagnosticPolicy, type SvelteIntegrationOptions, type SvelteServerModuleLoader, type SvelteTransformResult, createSvelteHtmlHostCollectionDocuments, createSvelteHtmlHostDomRenderer, createSvelteHtmlHostHydrate, createSvelteHtmlHostIslandRegistry, createSvelteHtmlHostLazyHydrate, createSvelteHtmlHostRenderer, initSvelteHtmlHost, loadSvelteHtmlHostDomRuntime, oxContent, oxContentSvelte, readSvelteHtmlHostSlot, renderHead, renderSvelteHtmlHost, resolveSvelteHtmlHostCollectionDocuments, resolveSvelteHtmlHostIslandRegistry, toSvelteHtmlHostClientModuleId };
368
+ export { type BuiltinEmbedOptions, type ComponentIsland, type ComponentsMap, type ComponentsOption, type CreateSvelteHtmlHostHydrateInput, type CreateSvelteHtmlHostIslandRegistryInput, type CreateSvelteHtmlHostLazyHydrateInput, type CreateSvelteHtmlHostRendererInput, type GitHubEmbedOptions, type HeadInput, type InitSvelteHtmlHostInput, type MdxDocumentPropsOption, type MdxImport, type MdxImportSpecifier, type MdxImportSpecifierKind, type OpenGraphEmbedOptions, type RenderSvelteHtmlHostInput, type RenderSvelteHtmlHostResult, type RenderedHead, type ResolvedBuiltinEmbedOptions, type ResolvedSvelteHtmlHostIslandRegistry, type ResolvedSvelteOptions, SVELTE_HTML_HOST_MODULES_VIRTUAL_ID, type SvelteClientModuleResolver, type SvelteCompileFunction, type SvelteCompilerOption, type SvelteCompilerOptions, type SvelteCompilerResult, type SvelteCompilerWarning, type SvelteHostHydrateRenderer, type SvelteHtmlComponentRenderer, type SvelteHtmlHostClientComponentValue, type SvelteHtmlHostClientContext, type SvelteHtmlHostClientDiagnosticCode, type SvelteHtmlHostClientError, type SvelteHtmlHostClientModule, type SvelteHtmlHostClientModuleLoader, type SvelteHtmlHostClientModuleValue, type SvelteHtmlHostClientModules, type SvelteHtmlHostClientRenderer, type SvelteHtmlHostClientRuntimeLoader, type SvelteHtmlHostCollectionDocument, type SvelteHtmlHostCollectionDocumentsOptions, type SvelteHtmlHostDiagnostic, type SvelteHtmlHostDiagnosticCode, type SvelteHtmlHostDomMode, type SvelteHtmlHostDomRenderer, type SvelteHtmlHostDomRendererInput, type SvelteHtmlHostDomRuntime, type SvelteHtmlHostExportNameResolver, type SvelteHtmlHostHeadContribution, type SvelteHtmlHostInitIslands, type SvelteHtmlHostIslandDocument, type SvelteHtmlHostIslandEntry, type SvelteHtmlHostIslandRegistry, type SvelteHtmlHostIslandRegistryContext, type SvelteHtmlHostModule, type SvelteHtmlHostModuleIdResolver, SvelteHtmlHostRenderError, type SvelteHtmlHostRenderer, type SvelteHtmlHostRendererContext, type SvelteHtmlHostRendererDiagnosticPolicy, type SvelteIntegrationOptions, type SvelteServerModuleLoader, type SvelteTransformResult, createSvelteHtmlHostCollectionDocuments, createSvelteHtmlHostDomRenderer, createSvelteHtmlHostHydrate, createSvelteHtmlHostIslandRegistry, createSvelteHtmlHostLazyHydrate, createSvelteHtmlHostRenderer, initSvelteHtmlHost, loadSvelteHtmlHostDomRuntime, oxContent, oxContentSvelte, readSvelteHtmlHostSlot, renderHead, renderSvelteHtmlHost, resolveSvelteHtmlHostCollectionDocuments, resolveSvelteHtmlHostIslandRegistry, toHtmlHostClientModuleId as toSvelteHtmlHostClientModuleId };
444
369
  //# sourceMappingURL=index.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.mts","names":[],"sources":["../src/types.ts","../src/html-host.ts","../src/html-host-renderer.ts","../src/html-host-collection-documents.ts","../src/html-host-registry-paths.ts","../src/html-host-registry.ts","../src/index.ts"],"mappings":";;;;;;;;;;;UASiB;;;;;;EAMf;;UAGe;EACf;EACA;;;;;KAMU,gBAAgB;;;;;;;;KAShB,mBAAmB;KAEnB,wBAAwB;UAEnB,8BAA8B,KAC7C;EAGA;EACA;EACA;;UAGe;EACf;EACA;;UAGe;EACf,IAAI;EACJ,oBAAoB;;KAGV,uBAAuB;KAEvB,yBACV,gBACA,SAAS,0BACN,uBAAuB,QAAQ;KAExB,uBACR;EAEE,SAAS;;;;;;;;;KAUH;;;;;;;;UASK,iCAAiC;;;;;;;;EAQhD;;;;;;;;;;;;;;;;;;EAmBA,aAAa;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AkB;EAClB,sBAAsB;;KAGZ,0BACV,cACA,SAAS,kCACN,QAAQ;cAEA,kCAAkC;WACpC,aAAa;EAEtB,YAAY,sBAAsB;;iBAOpB,6BACd,OAAO,oCACN;;;KClCE,eAAa,KAAK,IAAI,QAAQ;UAElB,yCAAyC;EACxD;EACA,OAAO;EACP,aAAa;EACb;EACA;;UAGe;EACf,YAAY;EACZ;EACA,UACE,UAAU,kCACV,SAAS,wCACN;;iBAGS,wCACd,QAAO,4CAEP,SAAS,wCACN,iBAAiB;iBAIA,yCACpB,OAAO,0CACP,SAAS,sCACR,iBAAiB;;;iBC7CJ,+BAA+B,kBAAkB;;;cC0BpD;KAER,aAAa,KAAK,IAAI,QAAQ;UAElB;EACf;EACA;EACA;EACA,mBAAmB;EACnB,aAAa;EACb;;UAGe;EACf;EACA;EACA;EACA;;UAGe;EACf;EACA;EACA;;UAGe;EACf,qBACa,mCAEP,SAAS,wCACN,sBAAsB;EAC/B,8BAA8B;EAC9B,mBACa,gCAEP,SAAS,wCACN,sBAAsB;EAC/B,aAAa;EACb,YAAY;EACZ;EACA;EACA;;UAGe;EACf,SAAS;EACT;;UAGe;EACf,QAAQ;EACR;EACA,WAAW,QAAQ;EACnB,oBAAoB,QAAQ,KAAK;;iBAGnB,mCACd,QAAO,0CACN;iBAoFmB,oCACpB,OAAO,yCACP,SAAS,qCACT,qBAAqB,gBACpB,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBCPK,gBAAgB,UAAS,2BAAgC"}
1
+ {"version":3,"file":"index.d.mts","names":[],"sources":["../src/types.ts","../src/html-host.ts","../src/html-host-renderer.ts","../src/html-host-registry.ts","../src/html-host-collection-documents.ts","../src/index.ts"],"mappings":";;;;;;;;;;;UASiB;;;;;;EAMf;;UAGe;EACf;EACA;;;;;KAMU,gBAAgB;;;;;;;;KAShB,mBAAmB;KAEnB,wBAAwB;UAEnB,8BAA8B,KAC7C;EAGA;EACA;EACA;;UAGe;EACf;EACA;;UAGe;EACf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