x-runtime-lib 0.8.187 → 0.8.188

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,2 @@
1
+ import { a as QuickJSModuleCallbacks, c as applyModuleEvalRuntimeOptions, o as QuickJSWASMModule, s as applyBaseRuntimeOptions } from "./vendor.pfrgnj2n.js";
2
+ export { QuickJSModuleCallbacks, QuickJSWASMModule, applyBaseRuntimeOptions, applyModuleEvalRuntimeOptions };
@@ -0,0 +1,21 @@
1
+ var __create = Object.create, __defProp = Object.defineProperty, __getOwnPropDesc = Object.getOwnPropertyDescriptor, __getOwnPropNames = Object.getOwnPropertyNames, __getProtoOf = Object.getPrototypeOf, __hasOwnProp = Object.prototype.hasOwnProperty, __commonJSMin = (e, t) => () => (t || e((t = { exports: {} }).exports, t), t.exports), __export = (e, n) => {
2
+ let r = {};
3
+ for (var i in e) __defProp(r, i, {
4
+ get: e[i],
5
+ enumerable: !0
6
+ });
7
+ return n && __defProp(r, Symbol.toStringTag, { value: "Module" }), r;
8
+ }, __copyProps = (e, i, o, s) => {
9
+ if (i && typeof i == "object" || typeof i == "function") for (var c = __getOwnPropNames(i), l = 0, u = c.length, d; l < u; l++) d = c[l], !__hasOwnProp.call(e, d) && d !== o && __defProp(e, d, {
10
+ get: ((e) => i[e]).bind(null, d),
11
+ enumerable: !(s = __getOwnPropDesc(i, d)) || s.enumerable
12
+ });
13
+ return e;
14
+ }, __toESM = (n, r, a) => (a = n == null ? {} : __create(__getProtoOf(n)), __copyProps(r || !n || !n.__esModule ? __defProp(a, "default", {
15
+ value: n,
16
+ enumerable: !0
17
+ }) : a, n)), __require = /* @__PURE__ */ ((e) => typeof require < "u" ? require : typeof Proxy < "u" ? new Proxy(e, { get: (e, t) => (typeof require < "u" ? require : e)[t] }) : e)(function(e) {
18
+ if (typeof require < "u") return require.apply(this, arguments);
19
+ throw Error("Calling `require` for \"" + e + "\" in an environment that doesn't expose the `require` function.");
20
+ });
21
+ export { __toESM as i, __export as n, __require as r, __commonJSMin as t };
@@ -1,7 +1,7 @@
1
1
  export interface Hooks {
2
2
  onReady: () => void;
3
3
  onDestroy: () => void;
4
- onElementPropertyChange: (nodeId: string, propertyKeys: string[] | string, newValue: any, oldValue: any) => void;
4
+ onElementPropertyChange: (nodeId: string, propertyKeys: string | string[], newValue: any, oldValue: any) => void;
5
5
  onElementSlotPropertyChange: (nodeId: string, elementId: string, slotKey: string, propertyKey: string, newValue: any, oldValue: any) => void;
6
6
  onMultipleElementSlotPropertyChange: (nodeId: string, spec: string, elementId: string, slotKey: string, propertyKey: string, newValue: any, oldValue: any) => void;
7
7
  onCustomSlotPropetyChange: (propertyKey: string, newValue: any, oldValue: any) => void;
@@ -36,9 +36,9 @@ export declare class Sandbox {
36
36
  getGlobalVariable(key: string): any;
37
37
  callFunctionSync(funcName: string, ...params: any[]): any;
38
38
  callFunctionAsync(funcName: string, ...params: any[]): Promise<any>;
39
- isValidOfElementProperty(nodeId: string, propertyKeys: string[] | string): boolean;
40
- getElementProperty(nodeId: string, propertyKeys: string[] | string): Promise<any>;
41
- setElementProperty(nodeId: string, propertyKeys: string[] | string, newValue: any): Promise<Error | undefined>;
39
+ isValidOfElementProperty(nodeId: string, propertyKeys: string | string[]): boolean;
40
+ getElementProperty(nodeId: string, propertyKeys: string | string[]): Promise<any>;
41
+ setElementProperty(nodeId: string, propertyKeys: string | string[], newValue: any): Promise<Error | undefined>;
42
42
  isValidOfElementSlotProperty(propertyKey: string): boolean;
43
43
  getElementSlotProperty(propertyKey: string): Promise<any>;
44
44
  setElementSlotProperty(propertyKey: string, value: any): Promise<void>;
@@ -44,8 +44,8 @@ interface TriggerElementSlotProperty {
44
44
  interface TriggerMultipleElementSlotProperty {
45
45
  type: 'multipleElementSlotProperty';
46
46
  nodeId: string;
47
- elementKey: string;
48
47
  spec: string;
48
+ elementKey: string;
49
49
  slotKey: string;
50
50
  propertyKey: string;
51
51
  }
@@ -11,10 +11,10 @@ export declare function getIndexOfBreakpoint(breakpoint: Breakpoint): number;
11
11
  export declare function getBreakpointProp(current: Breakpoint, props: {
12
12
  [bp: Breakpoint]: any;
13
13
  }): any;
14
- export declare function toDotString(target: string[] | string): string;
15
- export declare function fromDotString(target: string[] | string): string[];
16
- export declare function getField(object: any, keys: string[] | string): any;
17
- export declare function setField(object: any, keys: string[] | string, value: any): void;
14
+ export declare function toDotString(target: string | string[]): string;
15
+ export declare function fromDotString(target: string | string[]): string[];
16
+ export declare function getField(object: any, keys: string | string[]): any;
17
+ export declare function setField(object: any, keys: string | string[], value: any): void;
18
18
  export declare function addIndent(code: string, spaces?: number): string;
19
19
  export declare function hasSlot(key: string): boolean;
20
20
  export declare function hasComp(key: string): boolean;
@@ -1,4 +1,4 @@
1
1
  import { Node, ZProperty } from '@/types';
2
2
  export declare function getPropertyDefault(property: ZProperty, arrayEntry?: boolean): unknown;
3
3
  export declare function initProperties(node: Node, properties: ZProperty[]): void;
4
- export declare function isLeafOfPropertyKeys(elementKey: string, type: string, subtype: string, propertyKeys: string[] | string): boolean;
4
+ export declare function isLeafOfPropertyKeys(elementKey: string, type: string, subtype: string, propertyKeys: string | string[]): boolean;
@@ -1,4 +1,3 @@
1
1
  import { Sandbox } from '@/sandbox';
2
- import { Reactivity, Trigger } from '@/types';
3
- export declare function makeTriggerId(trigger: Trigger): string;
2
+ import { Reactivity } from '@/types';
4
3
  export declare function triggerReactivity(sandbox: Sandbox, reactivity: Reactivity, triggerId: string, newValue: any, oldValue: any): Promise<void>;
@@ -1,4 +1,4 @@
1
- import { EventKind, MethodKind, PropertyKind, SlotKind } from '@/types';
1
+ import { EventKind, MethodKind, PropertyKind, SlotKind, Trigger } from '@/types';
2
2
  export declare function makePropertyId(kind: PropertyKind, nodeId: string, propertyKey: string): string;
3
3
  export declare function unwrapPropertyId(id: string): {
4
4
  kind: PropertyKind;
@@ -59,3 +59,5 @@ export declare function unwrapSlotId(id: string): {
59
59
  mainKey: string;
60
60
  slotKey: string;
61
61
  };
62
+ export declare function makeTriggerId(trigger: Trigger): string;
63
+ export declare function unwrapTriggerId(id: string): Trigger;