@microsoft/webui-framework 0.0.24 → 0.0.25

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.
@@ -1,14 +1,15 @@
1
1
  export type { CompiledAttrGroupMeta, CompiledAttrMeta, CompiledAttrPart, CompiledCondition, CompiledConditionFn, CompiledConditionalMeta, CompiledEventArg, CompiledEventArgs, CompiledEventBindingMeta, CompiledEventGroupMeta, SerializedCompiledCondition, TemplateCondition, CompiledTextRunMeta, TemplateBlockMeta, TemplateMeta, TemplateNodeIndex, TemplateSlot, } from './template-types.js';
2
2
  import type { CompiledConditionFn, TemplateMeta } from './template-types.js';
3
3
  declare global {
4
+ interface WebUIRuntimeGlobal {
5
+ state?: Record<string, unknown>;
6
+ templates?: Record<string, TemplateMeta>;
7
+ templateFns?: Record<string, CompiledConditionFn[]>;
8
+ templateHostExclusions?: Set<string>;
9
+ [key: string]: unknown;
10
+ }
4
11
  interface Window {
5
- __webui?: {
6
- state?: Record<string, unknown>;
7
- templates?: Record<string, TemplateMeta>;
8
- templateFns?: Record<string, CompiledConditionFn[]>;
9
- templateHostExclusions?: Set<string>;
10
- [key: string]: unknown;
11
- };
12
+ __webui?: WebUIRuntimeGlobal;
12
13
  }
13
14
  }
14
15
  export declare function getTemplate(name: string): TemplateMeta | undefined;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@microsoft/webui-framework",
3
- "version": "0.0.24",
3
+ "version": "0.0.25",
4
4
  "type": "module",
5
5
  "description": "WebUI Framework Next — Preact-inspired lightweight Web Component runtime with SSR hydration and compiled-template path mapping.",
6
6
  "license": "MIT",
@@ -37,7 +37,7 @@
37
37
  "@playwright/test": "^1.61.1",
38
38
  "@types/node": "^26.1.0",
39
39
  "typescript": "^6.0.3",
40
- "@microsoft/webui-test-support": "0.0.24"
40
+ "@microsoft/webui-test-support": "0.0.25"
41
41
  },
42
42
  "scripts": {
43
43
  "build": "tsc",