@motionscript/patterns 0.3.0 → 0.4.0-alpha.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.
- package/CHANGELOG.md +8 -0
- package/README.md +1 -0
- package/dist/browser/chunks/chunk-YCLTCQ7M.js +2 -0
- package/dist/browser/chunks/chunk-YCLTCQ7M.js.map +7 -0
- package/dist/browser/index.js +1 -1
- package/dist/browser/index.js.map +4 -4
- package/dist/browser/manifest.json +2 -1
- package/dist/browser/v1.js +2 -0
- package/dist/browser/v1.js.map +7 -0
- package/dist/v1.d.ts +2 -0
- package/dist/v1.d.ts.map +1 -0
- package/dist/v1.js +3 -0
- package/dist/v1.js.map +1 -0
- package/package.json +8 -4
- package/src/v1.ts +2 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# @motionscript/patterns
|
|
2
2
|
|
|
3
|
+
## 0.4.0-alpha.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- b996da5: Versioned component-API paths. `@motionscript/sdk/v1`, `@motionscript/sdk/v1/component` and each kit's `@motionscript/<kit>/v1` are the v1 API, today exactly the bare paths. A custom component imports the `/v1` paths, so a later major, which ships a v1 shim in the same engine, keeps it linking against one core. A bare import means the latest API, for npm users who follow the newest release. Each kit's `./kit` stays unstable and unversioned.
|
|
8
|
+
|
|
9
|
+
A dynamic node's `require("@motionscript/sdk/v1")` resolves to the host's `sdk`, as `@motionscript/sdk` does, and the error for an unknown specifier now names `@motionscript/sdk/v1`. `@motionscript/sdk/v1/component` and the kit paths link through `dynamicNodes.modules`, like `@motionscript/sdk/component`.
|
|
10
|
+
|
|
3
11
|
## 0.3.0
|
|
4
12
|
|
|
5
13
|
### Minor Changes
|
package/README.md
CHANGED
|
@@ -72,6 +72,7 @@ npm install @motionscript/patterns @motionscript/sdk
|
|
|
72
72
|
| Entry | What |
|
|
73
73
|
| --- | --- |
|
|
74
74
|
| `@motionscript/patterns` | The public surface: the three patterns and `NODES`. A name leaves it only after a deprecation, in the next major (the next minor while on 0.x). |
|
|
75
|
+
| `@motionscript/patterns/v1` | The v1 public surface, the same names as the root today. A custom component imports this path, so a later major keeps it linking; the bare path follows the latest API. |
|
|
75
76
|
| `@motionscript/patterns/kit` | Everything (`src/unstable.ts`): `ViewportPattern`, the tiling helpers (`src/engine.ts`) and the pattern modules. **Unstable**: any release may change it. |
|
|
76
77
|
|
|
77
78
|
A copy of `line-grid-pattern`, `dot-grid-pattern` or `grid-pattern`
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../src/nodes.ts"],
|
|
4
|
+
"sourcesContent": ["import { DotGridPattern } from \"./dot-grid-pattern\"\nimport { GridPattern } from \"./grid-pattern\"\nimport { LineGridPattern } from \"./line-grid-pattern\"\n\n// Typed by name, so the declaration names each component rather than spelling out its type through core.\ntype KitNode =\n | typeof LineGridPattern\n | typeof DotGridPattern\n | typeof GridPattern\n\nexport const NODES: KitNode[] = [\n LineGridPattern,\n DotGridPattern,\n GridPattern,\n]\n"],
|
|
5
|
+
"mappings": "sDAUO,IAAMA,EAAmB,CAC5BC,EACAC,EACAC",
|
|
6
|
+
"names": ["NODES", "LineGridPattern", "DotGridPattern", "GridPattern"]
|
|
7
|
+
}
|
package/dist/browser/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{i as
|
|
1
|
+
import{a as d}from"./chunks/chunk-YCLTCQ7M.js";import{i as a,j as b,k as c}from"./chunks/chunk-H7QJB37I.js";export{b as DotGridPattern,c as GridPattern,a as LineGridPattern,d as NODES};
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
|
-
"sources": [
|
|
4
|
-
"sourcesContent": [
|
|
5
|
-
"mappings": "
|
|
6
|
-
"names": [
|
|
3
|
+
"sources": [],
|
|
4
|
+
"sourcesContent": [],
|
|
5
|
+
"mappings": "",
|
|
6
|
+
"names": []
|
|
7
7
|
}
|
package/dist/v1.d.ts
ADDED
package/dist/v1.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"v1.d.ts","sourceRoot":"","sources":["../src/v1.ts"],"names":[],"mappings":"AACA,cAAc,GAAG,CAAC"}
|
package/dist/v1.js
ADDED
package/dist/v1.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"v1.js","sourceRoot":"","sources":["../src/v1.ts"],"names":[],"mappings":"AAAA,yFAAyF;AACzF,cAAc,GAAG,CAAC","sourcesContent":["// `@motionscript/patterns/v1`: the root as of v1. A later major keeps this path working.\nexport * from \".\";\n"]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@motionscript/patterns",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.4.0-alpha.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Background patterns for Motion Script: line and dot grids that fill a box, and an infinite grid that fills whatever a camera can see.",
|
|
6
6
|
"repository": {
|
|
@@ -35,6 +35,10 @@
|
|
|
35
35
|
"types": "./dist/index.d.ts",
|
|
36
36
|
"default": "./dist/index.js"
|
|
37
37
|
},
|
|
38
|
+
"./v1": {
|
|
39
|
+
"types": "./dist/v1.d.ts",
|
|
40
|
+
"default": "./dist/v1.js"
|
|
41
|
+
},
|
|
38
42
|
"./kit": {
|
|
39
43
|
"types": "./dist/unstable.d.ts",
|
|
40
44
|
"default": "./dist/unstable.js"
|
|
@@ -51,7 +55,7 @@
|
|
|
51
55
|
"license": "Apache-2.0",
|
|
52
56
|
"author": "Motionscript",
|
|
53
57
|
"peerDependencies": {
|
|
54
|
-
"@motionscript/sdk": "^0.
|
|
58
|
+
"@motionscript/sdk": "^0.4.0-alpha.0"
|
|
55
59
|
},
|
|
56
60
|
"devDependencies": {
|
|
57
61
|
"@types/node": "^25.6.2",
|
|
@@ -62,8 +66,8 @@
|
|
|
62
66
|
"typescript": "^6.0.3",
|
|
63
67
|
"typescript-eslint": "^8.48.0",
|
|
64
68
|
"vitest": "^4.1.5",
|
|
65
|
-
"@motionscript/
|
|
66
|
-
"@motionscript/
|
|
69
|
+
"@motionscript/core": "0.4.0-alpha.0",
|
|
70
|
+
"@motionscript/sdk": "0.4.0-alpha.0"
|
|
67
71
|
},
|
|
68
72
|
"scripts": {
|
|
69
73
|
"build": "tsc -p tsconfig.build.json && tsc-alias -p tsconfig.build.json --resolve-full-paths && node ../../../scripts/build-browser.mjs",
|
package/src/v1.ts
ADDED