wrec 0.20.9 → 0.20.11

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/README.md CHANGED
@@ -138,7 +138,7 @@ To run the examples in the `src/examples` directory:
138
138
  1. cd to the `wrec` project directory.
139
139
  1. Enter `npm install`.
140
140
  1. Enter `npm run dev`.
141
- 1. Browse `localhost:5173/examples/{name}.html` where `name`
141
+ 1. Browse `localhost:5173/src/examples/{name}.html` where `name`
142
142
  is the name of one of the `.html` files in that directory.
143
143
 
144
144
  `hello-world.html` demonstrates a basic Wrec component.
package/dist/wrec.d.ts CHANGED
@@ -10,6 +10,8 @@ export declare function html(strings: TemplateStringsArray, ...values: unknown[]
10
10
 
11
11
  declare type LooseObject = Record<string, unknown>;
12
12
 
13
+ declare type LooseObject_2 = Record<string, any>;
14
+
13
15
  export declare abstract class Wrec extends HTMLElement implements ChangeListener {
14
16
  #private;
15
17
  static attrToPropMap: Map<string, string>;
@@ -18,7 +20,7 @@ export declare abstract class Wrec extends HTMLElement implements ChangeListener
18
20
  static elementName: string;
19
21
  static formAssociated: boolean;
20
22
  static html: string;
21
- static properties: Record<string, any>;
23
+ static properties: LooseObject_2;
22
24
  static propToComputedMap: Map<string, string[][]>;
23
25
  static propToExprsMap: Map<string, string[]>;
24
26
  static template: HTMLTemplateElement | null;
@@ -26,6 +28,7 @@ export declare abstract class Wrec extends HTMLElement implements ChangeListener
26
28
  static define(elementName: string): void;
27
29
  constructor();
28
30
  attributeChangedCallback(attrName: string, oldValue: string, newValue: string | number | boolean | undefined): void;
31
+ batch(changes: LooseObject_2): void;
29
32
  changed(_statePath: string, componentProp: string, newValue: unknown): void;
30
33
  connectedCallback(): void;
31
34
  disconnectedCallback(): void;