@azphalt/importer-transition 0.1.0 → 0.1.2
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/index.d.ts +1 -1
- package/dist/index.js +3 -1
- package/dist/ui.d.ts +1 -1
- package/package.json +6 -6
package/dist/index.d.ts
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* its own engine. See `spec/package-format.md` § Assets.
|
|
7
7
|
*/
|
|
8
8
|
import { type WriteResult } from "@azphalt/azp";
|
|
9
|
-
import type { Panel } from "@azphalt/
|
|
9
|
+
import type { Panel } from "@azphalt/azdk";
|
|
10
10
|
import { type ParsedGlTransition } from "./parse-gl-transition.js";
|
|
11
11
|
export interface TransitionImportOptions {
|
|
12
12
|
/** Reverse-DNS id, e.g. `"com.hereliesaz.crosswarp"`. Required. */
|
package/dist/index.js
CHANGED
|
@@ -52,7 +52,9 @@ export function importGlTransition(source, licenseText, opts) {
|
|
|
52
52
|
}
|
|
53
53
|
/** Filesystem-safe stem: lowercase, runs of non-alphanumerics to single hyphens. */
|
|
54
54
|
function slug(s) {
|
|
55
|
-
|
|
55
|
+
// The prior collapse leaves at most one leading/trailing hyphen, so trim a single one — `/^-+/`,
|
|
56
|
+
// `/-+$/` would backtrack polynomially on a crafted run (CodeQL js/polynomial-redos).
|
|
57
|
+
return s.toLowerCase().replace(/[^a-z0-9]+/g, "-").replace(/^-/, "").replace(/-$/, "") || "transition";
|
|
56
58
|
}
|
|
57
59
|
export { parseGlTransition, HOST_PROVIDED } from "./parse-gl-transition.js";
|
|
58
60
|
export { uniformsToPanel, uniformToControl, isHostBound } from "./ui.js";
|
package/dist/ui.d.ts
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* transition's parameters render natively in any adopting host. `sampler2D` uniforms are textures
|
|
4
4
|
* the host binds, not user controls, so they are excluded from the panel.
|
|
5
5
|
*/
|
|
6
|
-
import type { Control, Panel } from "@azphalt/
|
|
6
|
+
import type { Control, Panel } from "@azphalt/azdk";
|
|
7
7
|
import type { GlUniform } from "./parse-gl-transition.js";
|
|
8
8
|
/** A texture uniform the host binds — not a user control. */
|
|
9
9
|
export declare function isHostBound(u: GlUniform): boolean;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@azphalt/importer-transition",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.2",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -23,13 +23,13 @@
|
|
|
23
23
|
"dist"
|
|
24
24
|
],
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@azphalt/
|
|
27
|
-
"@azphalt/
|
|
26
|
+
"@azphalt/azdk": "0.2.0",
|
|
27
|
+
"@azphalt/azp": "0.2.0"
|
|
28
28
|
},
|
|
29
29
|
"devDependencies": {
|
|
30
|
-
"
|
|
31
|
-
"
|
|
32
|
-
"
|
|
30
|
+
"@types/node": "^22.20.1",
|
|
31
|
+
"typescript": "^5.9.3",
|
|
32
|
+
"vitest": "^3.2.7"
|
|
33
33
|
},
|
|
34
34
|
"sideEffects": false,
|
|
35
35
|
"scripts": {
|