@vcp-dev/site-edit-engine 0.10.28 → 0.10.30

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.
@@ -0,0 +1,18 @@
1
+ export type ComponentI18nHostCompatibilityResult = {
2
+ ok: true;
3
+ } | {
4
+ ok: false;
5
+ message: string;
6
+ };
7
+ export declare function checkComponentI18nHostCompatibility(input: {
8
+ files: readonly {
9
+ path: string;
10
+ content: string;
11
+ }[];
12
+ exists: (path: string) => Promise<boolean>;
13
+ readFile: (path: string) => Promise<string>;
14
+ /** Working Set preparation only; schema/dependency/provider guards stay on. */
15
+ deferTargetLocale?: boolean;
16
+ /** When supplied, the host must agree with the authoritative site language. */
17
+ targetLocale?: string;
18
+ }): Promise<ComponentI18nHostCompatibilityResult>;
package/dist/index.d.ts CHANGED
@@ -1,4 +1,5 @@
1
1
  export { parseSourceModule, resolveImportBase } from "./source-module.js";
2
+ export { checkComponentI18nHostCompatibility } from "./component-i18n-host-compatibility.js";
2
3
  export { instrumentSiteEditRuntimeAttributes } from "./site-edit-instrumentation.js";
3
4
  export { createSiteEditEngineRuntime, SnapshotSiteEditEngineRuntime, } from "./runtime.js";
4
5
  export { createPreviewSiteEditEngineRuntime, PreviewFileSystemSiteEditEngineRuntime, } from "./preview-runtime.js";