@solidjs/html 2.0.0-beta.5 → 2.0.0-beta.6

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/html.cjs CHANGED
@@ -248,7 +248,7 @@ function createHTML(r, {
248
248
  } else if (isChildProp || isStatefulDOMProperty || namespace === "prop") {
249
249
  options.exprs.push(`${tag}.${name} = ${expr}`);
250
250
  } else {
251
- const ns = name.indexOf(":") > -1 && r.SVGNamespace[name.split(":")[0]];
251
+ const ns = name.indexOf(":") > -1 && r.Namespaces[name.split(":")[0]];
252
252
  if (ns) options.exprs.push(`r.setAttributeNS(${tag},"${ns}","${name}",${expr})`);else options.exprs.push(`r.setAttribute(${tag},"${name}",${expr})`);
253
253
  }
254
254
  }
package/dist/html.js CHANGED
@@ -246,7 +246,7 @@ function createHTML(r, {
246
246
  } else if (isChildProp || isStatefulDOMProperty || namespace === "prop") {
247
247
  options.exprs.push(`${tag}.${name} = ${expr}`);
248
248
  } else {
249
- const ns = name.indexOf(":") > -1 && r.SVGNamespace[name.split(":")[0]];
249
+ const ns = name.indexOf(":") > -1 && r.Namespaces[name.split(":")[0]];
250
250
  if (ns) options.exprs.push(`r.setAttributeNS(${tag},"${ns}","${name}",${expr})`);else options.exprs.push(`r.setAttribute(${tag},"${name}",${expr})`);
251
251
  }
252
252
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@solidjs/html",
3
3
  "description": "Build-less Tagged-Template-Literal Templating for Solid",
4
- "version": "2.0.0-beta.5",
4
+ "version": "2.0.0-beta.6",
5
5
  "author": "Ryan Carniato",
6
6
  "license": "MIT",
7
7
  "homepage": "https://solidjs.com",
@@ -31,10 +31,10 @@
31
31
  "./dist/*": "./dist/*"
32
32
  },
33
33
  "peerDependencies": {
34
- "@solidjs/web": "^2.0.0-beta.5"
34
+ "@solidjs/web": "^2.0.0-beta.6"
35
35
  },
36
36
  "devDependencies": {
37
- "@solidjs/web": "2.0.0-beta.5"
37
+ "@solidjs/web": "2.0.0-beta.6"
38
38
  },
39
39
  "scripts": {
40
40
  "build": "npm-run-all -nl build:*",
package/types/lit.d.ts CHANGED
@@ -1,34 +1 @@
1
- type MountableElement = Element | Document | ShadowRoot | DocumentFragment | Node;
2
- type ClassList = Record<string, boolean> | Array<string | number | boolean | null | undefined | Record<string, boolean>>;
3
- interface Runtime {
4
- effect<T>(fn: (prev?: T) => T, effect: (value: T, prev?: T) => void, init?: T): void;
5
- untrack<T>(fn: () => T): T;
6
- insert(parent: MountableElement, accessor: any, marker?: Node | null, init?: any): any;
7
- spread<T>(node: Element, accessor: (() => T) | T, isSVG?: Boolean, skipChildren?: Boolean): void;
8
- createComponent(Comp: (props: any) => any, props: any): any;
9
- addEventListener(node: Element, name: string, handler: EventListener | EventListenerObject | (EventListenerObject & AddEventListenerOptions), delegate: boolean): void;
10
- delegateEvents(eventNames: string[]): void;
11
- className(node: Element, value: string | ClassList, isSVG?: boolean, prev?: string | ClassList): void;
12
- style(node: Element, value: {
13
- [k: string]: string;
14
- }, prev?: {
15
- [k: string]: string;
16
- }): void;
17
- mergeProps(...sources: unknown[]): unknown;
18
- dynamicProperty(props: any, key: string): any;
19
- setAttribute(node: Element, name: string, value: any): void;
20
- setAttributeNS(node: Element, namespace: string, name: string, value: any): void;
21
- Properties: Set<string>;
22
- ChildProperties: Set<string>;
23
- DelegatedEvents: Set<string>;
24
- SVGElements: Set<string>;
25
- SVGNamespace: Record<string, string>;
26
- }
27
- export type HTMLTag = {
28
- (statics: TemplateStringsArray, ...args: unknown[]): Node | Node[];
29
- };
30
- export declare function createHTML(r: Runtime, { delegateEvents, functionBuilder }?: {
31
- delegateEvents?: boolean;
32
- functionBuilder?: (...args: string[]) => Function;
33
- }): HTMLTag;
34
- export {};
1
+ export * from "lit-dom-expressions";