onejs-core 0.3.13 → 0.3.14
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/definitions/augments.d.ts +1 -0
- package/dist/dom/document.d.ts +1 -0
- package/dist/dom/document.js +3 -0
- package/dist/index.d.ts +0 -2
- package/dom/document.ts +4 -0
- package/package.json +1 -1
package/dist/dom/document.d.ts
CHANGED
|
@@ -7,6 +7,7 @@ export declare class DocumentWrapper {
|
|
|
7
7
|
get body(): DomWrapper;
|
|
8
8
|
constructor(doc: CS.OneJS.Dom.Document);
|
|
9
9
|
addRuntimeUSS(uss: string): void;
|
|
10
|
+
clearRuntimeStyleSheets(): void;
|
|
10
11
|
createElement(tagName: string, options?: ElementCreationOptions): DomWrapper;
|
|
11
12
|
createElementNS(ns: string, tagName: string, options: ElementCreationOptions): DomWrapper;
|
|
12
13
|
createTextNode(text: string): DomWrapper;
|
package/dist/dom/document.js
CHANGED
|
@@ -10,6 +10,9 @@ export class DocumentWrapper {
|
|
|
10
10
|
addRuntimeUSS(uss) {
|
|
11
11
|
this.#doc.addRuntimeUSS(uss);
|
|
12
12
|
}
|
|
13
|
+
clearRuntimeStyleSheets() {
|
|
14
|
+
this.#doc.clearRuntimeStyleSheets();
|
|
15
|
+
}
|
|
13
16
|
createElement(tagName, options) {
|
|
14
17
|
return new DomWrapper(this.#doc.createElement(tagName));
|
|
15
18
|
}
|
package/dist/index.d.ts
CHANGED
package/dom/document.ts
CHANGED
|
@@ -19,6 +19,10 @@ export class DocumentWrapper {
|
|
|
19
19
|
this.#doc.addRuntimeUSS(uss)
|
|
20
20
|
}
|
|
21
21
|
|
|
22
|
+
clearRuntimeStyleSheets(): void {
|
|
23
|
+
this.#doc.clearRuntimeStyleSheets()
|
|
24
|
+
}
|
|
25
|
+
|
|
22
26
|
createElement(tagName: string, options?: ElementCreationOptions): DomWrapper {
|
|
23
27
|
return new DomWrapper(this.#doc.createElement(tagName))
|
|
24
28
|
}
|
package/package.json
CHANGED