@polyipseity/obsidian-plugin-library 1.7.0 → 1.8.0
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,4 @@
|
|
|
1
|
+
// repository: https://github.com/polyipseity/obsidian-plugin-library
|
|
2
|
+
function r(...e){return self.activeWindow.requestAnimationFrame(...e)}function t(...e){return self.activeWindow.setInterval(...e)}function o(...e){return self.activeWindow.setTimeout(...e)}export{r as requestAnimationFrame,t as setInterval,o as setTimeout};
|
|
3
|
+
// repository: https://github.com/polyipseity/obsidian-plugin-library
|
|
4
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../sources/inject/index.ts"],
|
|
4
|
+
"sourcesContent": ["import type { } from \"obsidian\"\r\n\r\nexport function requestAnimationFrame(\r\n\t...args: Parameters<AnimationFrameProvider[\"requestAnimationFrame\"]>\r\n): ReturnType<AnimationFrameProvider[\"requestAnimationFrame\"]> {\r\n\treturn self.activeWindow.requestAnimationFrame(...args)\r\n}\r\n\r\nexport function setInterval(\r\n\t...args: Parameters<WindowOrWorkerGlobalScope[\"setInterval\"]>\r\n): ReturnType<WindowOrWorkerGlobalScope[\"setInterval\"]> {\r\n\treturn self.activeWindow.setInterval(...args)\r\n}\r\n\r\nexport function setTimeout(\r\n\t...args: Parameters<WindowOrWorkerGlobalScope[\"setTimeout\"]>\r\n): ReturnType<WindowOrWorkerGlobalScope[\"setTimeout\"]> {\r\n\treturn self.activeWindow.setTimeout(...args)\r\n}\r\n"],
|
|
5
|
+
"mappings": ";AAEO,SAASA,KACZC,EAC2D,CAC9D,OAAO,KAAK,aAAa,sBAAsB,GAAGA,CAAI,CACvD,CAEO,SAASC,KACZD,EACoD,CACvD,OAAO,KAAK,aAAa,YAAY,GAAGA,CAAI,CAC7C,CAEO,SAASE,KACZF,EACmD,CACtD,OAAO,KAAK,aAAa,WAAW,GAAGA,CAAI,CAC5C",
|
|
6
|
+
"names": ["requestAnimationFrame", "args", "setInterval", "setTimeout"]
|
|
7
|
+
}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export declare function requestAnimationFrame(...args: Parameters<AnimationFrameProvider["requestAnimationFrame"]>): ReturnType<AnimationFrameProvider["requestAnimationFrame"]>;
|
|
2
|
+
export declare function setInterval(...args: Parameters<WindowOrWorkerGlobalScope["setInterval"]>): ReturnType<WindowOrWorkerGlobalScope["setInterval"]>;
|
|
3
|
+
export declare function setTimeout(...args: Parameters<WindowOrWorkerGlobalScope["setTimeout"]>): ReturnType<WindowOrWorkerGlobalScope["setTimeout"]>;
|
|
4
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../sources/inject/index.ts"],"names":[],"mappings":"AAEA,wBAAgB,qBAAqB,CACpC,GAAG,IAAI,EAAE,UAAU,CAAC,sBAAsB,CAAC,uBAAuB,CAAC,CAAC,GAClE,UAAU,CAAC,sBAAsB,CAAC,uBAAuB,CAAC,CAAC,CAE7D;AAED,wBAAgB,WAAW,CAC1B,GAAG,IAAI,EAAE,UAAU,CAAC,yBAAyB,CAAC,aAAa,CAAC,CAAC,GAC3D,UAAU,CAAC,yBAAyB,CAAC,aAAa,CAAC,CAAC,CAEtD;AAED,wBAAgB,UAAU,CACzB,GAAG,IAAI,EAAE,UAAU,CAAC,yBAAyB,CAAC,YAAY,CAAC,CAAC,GAC1D,UAAU,CAAC,yBAAyB,CAAC,YAAY,CAAC,CAAC,CAErD"}
|
package/package.json
CHANGED
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
"i18next": "^23.2.11",
|
|
13
13
|
"i18next-resources-to-backend": "^1.1.4",
|
|
14
14
|
"lodash-es": "^4.17.21",
|
|
15
|
-
"lucide": "^0.
|
|
15
|
+
"lucide": "^0.260.0",
|
|
16
16
|
"monkey-around": "^2.3.0",
|
|
17
17
|
"obsidian": "^1.2.8",
|
|
18
18
|
"p-lazy": "^4.0.0",
|
|
@@ -32,17 +32,17 @@
|
|
|
32
32
|
"@types/browser-util-inspect": "^0.2.0",
|
|
33
33
|
"@types/deep-equal": "^1.0.1",
|
|
34
34
|
"@types/file-saver": "^2.0.5",
|
|
35
|
-
"@types/lodash-es": "^4.17.
|
|
35
|
+
"@types/lodash-es": "^4.17.8",
|
|
36
36
|
"@types/node": "^20.4.2",
|
|
37
37
|
"@types/semver": "^7.5.0",
|
|
38
38
|
"@typescript-eslint/eslint-plugin": "^6.0.0",
|
|
39
39
|
"@typescript-eslint/parser": "^6.0.0",
|
|
40
|
-
"esbuild": "^0.18.
|
|
40
|
+
"esbuild": "^0.18.13",
|
|
41
41
|
"esbuild-compress": "^1.2.2",
|
|
42
42
|
"esbuild-node-externals": "^1.8.0",
|
|
43
43
|
"esbuild-plugin-copy": "^2.1.1",
|
|
44
44
|
"esbuild-svelte": "^0.7.4",
|
|
45
|
-
"eslint": "^8.
|
|
45
|
+
"eslint": "^8.45.0",
|
|
46
46
|
"eslint-import-resolver-typescript": "^3.5.5",
|
|
47
47
|
"eslint-plugin-import": "^2.27.5",
|
|
48
48
|
"eslint-plugin-svelte3": "^4.0.0",
|
|
@@ -54,6 +54,25 @@
|
|
|
54
54
|
"which": "^3.0.1"
|
|
55
55
|
},
|
|
56
56
|
"displayName": "Obsidian Plugin Library",
|
|
57
|
+
"exports": {
|
|
58
|
+
".": {
|
|
59
|
+
"types": "./dist/sources/index.d.ts",
|
|
60
|
+
"module": "./dist/index.js",
|
|
61
|
+
"import": "./dist/index.js",
|
|
62
|
+
"require": null,
|
|
63
|
+
"default": "./dist/index.js"
|
|
64
|
+
},
|
|
65
|
+
"./inject": {
|
|
66
|
+
"types": "./dist/sources/inject/index.d.ts",
|
|
67
|
+
"module": "./dist/inject/index.js",
|
|
68
|
+
"import": "./dist/inject/index.js",
|
|
69
|
+
"require": null,
|
|
70
|
+
"default": "./dist/inject/index.js"
|
|
71
|
+
},
|
|
72
|
+
"./style": {
|
|
73
|
+
"default": "./dist/style.css"
|
|
74
|
+
}
|
|
75
|
+
},
|
|
57
76
|
"files": [
|
|
58
77
|
"dist"
|
|
59
78
|
],
|
|
@@ -90,7 +109,7 @@
|
|
|
90
109
|
"style": "dist/style.css",
|
|
91
110
|
"type": "module",
|
|
92
111
|
"types": "dist/sources/index.d.ts",
|
|
93
|
-
"version": "1.
|
|
112
|
+
"version": "1.8.0",
|
|
94
113
|
"workspaces": [
|
|
95
114
|
"build/*"
|
|
96
115
|
],
|