@opendaw/lib-dom 0.0.24 → 0.0.26
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 +0 -1
- package/dist/constraint.d.ts +2 -2
- package/dist/constraint.d.ts.map +1 -1
- package/dist/constraint.js +2 -2
- package/dist/index.d.ts +0 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +0 -1
- package/package.json +4 -4
- package/dist/errors.d.ts +0 -6
- package/dist/errors.d.ts.map +0 -1
- package/dist/errors.js +0 -8
package/README.md
CHANGED
@@ -30,7 +30,6 @@ DOM utilities and web browser interaction helpers for TypeScript projects.
|
|
30
30
|
|
31
31
|
* Browser detection and compatibility utilities **browser.ts**
|
32
32
|
* Font loading and management **fonts.ts**
|
33
|
-
* Error handling for DOM operations **errors.ts**
|
34
33
|
* Console utility commands **console-commands.ts**
|
35
34
|
|
36
35
|
## Performance & Lifecycle
|
package/dist/constraint.d.ts
CHANGED
@@ -1,5 +1,5 @@
|
|
1
|
-
import {
|
1
|
+
import { Maybe } from "@opendaw/lib-std";
|
2
2
|
export declare namespace ConstrainDOM {
|
3
|
-
const resolveString: (constrain:
|
3
|
+
const resolveString: (constrain: Maybe<ConstrainDOMString>) => Maybe<string>;
|
4
4
|
}
|
5
5
|
//# sourceMappingURL=constraint.d.ts.map
|
package/dist/constraint.d.ts.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"constraint.d.ts","sourceRoot":"","sources":["../src/constraint.ts"],"names":[],"mappings":"AAAA,OAAO,
|
1
|
+
{"version":3,"file":"constraint.d.ts","sourceRoot":"","sources":["../src/constraint.ts"],"names":[],"mappings":"AAAA,OAAO,EAAW,KAAK,EAAC,MAAM,kBAAkB,CAAA;AAEhD,yBAAiB,YAAY,CAAC;IACnB,MAAM,aAAa,GAAI,WAAW,KAAK,CAAC,kBAAkB,CAAC,KAAG,KAAK,CAAC,MAAM,CAWhF,CAAA;CACJ"}
|
package/dist/constraint.js
CHANGED
@@ -1,8 +1,8 @@
|
|
1
|
-
import {
|
1
|
+
import { isAbsent } from "@opendaw/lib-std";
|
2
2
|
export var ConstrainDOM;
|
3
3
|
(function (ConstrainDOM) {
|
4
4
|
ConstrainDOM.resolveString = (constrain) => {
|
5
|
-
if (
|
5
|
+
if (isAbsent(constrain)) {
|
6
6
|
return undefined;
|
7
7
|
}
|
8
8
|
if (typeof constrain === "string") {
|
package/dist/index.d.ts
CHANGED
package/dist/index.d.ts.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AASA,cAAc,WAAW,CAAA;AACzB,cAAc,eAAe,CAAA;AAC7B,cAAc,oBAAoB,CAAA;AAClC,cAAc,cAAc,CAAA;AAC5B,cAAc,cAAc,CAAA;AAC5B,cAAc,aAAa,CAAA;AAC3B,cAAc,YAAY,CAAA;AAC1B,cAAc,UAAU,CAAA;AACxB,cAAc,
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AASA,cAAc,WAAW,CAAA;AACzB,cAAc,eAAe,CAAA;AAC7B,cAAc,oBAAoB,CAAA;AAClC,cAAc,cAAc,CAAA;AAC5B,cAAc,cAAc,CAAA;AAC5B,cAAc,aAAa,CAAA;AAC3B,cAAc,YAAY,CAAA;AAC1B,cAAc,UAAU,CAAA;AACxB,cAAc,SAAS,CAAA;AACvB,cAAc,SAAS,CAAA;AACvB,cAAc,UAAU,CAAA;AACxB,cAAc,QAAQ,CAAA;AACtB,cAAc,YAAY,CAAA;AAC1B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,UAAU,CAAA;AACxB,cAAc,OAAO,CAAA;AACrB,cAAc,cAAc,CAAA"}
|
package/dist/index.js
CHANGED
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@opendaw/lib-dom",
|
3
|
-
"version": "0.0.
|
3
|
+
"version": "0.0.26",
|
4
4
|
"main": "./dist/index.js",
|
5
5
|
"types": "./dist/index.d.ts",
|
6
6
|
"license": "LGPL-3.0-or-later",
|
@@ -22,13 +22,13 @@
|
|
22
22
|
"test": "vitest run"
|
23
23
|
},
|
24
24
|
"dependencies": {
|
25
|
-
"@opendaw/lib-runtime": "^0.0.
|
26
|
-
"@opendaw/lib-std": "^0.0.
|
25
|
+
"@opendaw/lib-runtime": "^0.0.26",
|
26
|
+
"@opendaw/lib-std": "^0.0.26",
|
27
27
|
"@types/wicg-file-system-access": "^2023.10.6"
|
28
28
|
},
|
29
29
|
"devDependencies": {
|
30
30
|
"@opendaw/eslint-config": "^0.0.18",
|
31
31
|
"@opendaw/typescript-config": "^0.0.19"
|
32
32
|
},
|
33
|
-
"gitHead": "
|
33
|
+
"gitHead": "8ae54e26d0349a928fc5dbeae90190d76904167a"
|
34
34
|
}
|
package/dist/errors.d.ts
DELETED
package/dist/errors.d.ts.map
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../src/errors.ts"],"names":[],"mappings":"AAEA,yBAAiB,MAAM,CAAC;IACb,MAAM,UAAU,iCACkC,CAAA;IAElD,MAAM,OAAO,GAAI,OAAO,OAAO,YACoD,CAAA;IAEnF,MAAM,UAAU,GAAI,OAAO,OAAO,cAAoD,CAAA;CAChG"}
|
package/dist/errors.js
DELETED
@@ -1,8 +0,0 @@
|
|
1
|
-
import { panic } from "@opendaw/lib-std";
|
2
|
-
export var Errors;
|
3
|
-
(function (Errors) {
|
4
|
-
Errors.AbortError = typeof DOMException === "undefined"
|
5
|
-
? NaN : Object.freeze(new DOMException("AbortError"));
|
6
|
-
Errors.isAbort = (error) => error === Errors.AbortError || (error instanceof DOMException && error.name === "AbortError");
|
7
|
-
Errors.CatchAbort = (error) => error === Errors.AbortError ? undefined : panic(error);
|
8
|
-
})(Errors || (Errors = {}));
|