@motionscript/sdk 0.1.0-alpha.6 → 0.1.0-alpha.7

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 CHANGED
@@ -1,5 +1,23 @@
1
1
  # @motionscript/sdk
2
2
 
3
+ ## 0.1.0-alpha.7
4
+
5
+ ### Minor Changes
6
+
7
+ - 737f7d0: What was left of the class authoring system is gone. Each piece existed to write or extend a node class, and a node type is a component now; no built-in, kit or host used them.
8
+
9
+ Removed from `@motionscript/core`:
10
+
11
+ - the registration functions `property`, `node`, `command` and `withdraw`, and the thirteen typed property helpers (`fillProperty`, `strokeProperty`, `shadowProperty`, `effectsProperty`, `colorProperty`, `cornerRadiusProperty`, `cornerStyleProperty`, `pathProperty`, `insetsProperty`, `alignmentProperty`, `vector2Property`, `sizeProperty`, `textProperty`) with their `AttributePropOptions` type. A component declares its entries with `Types`. `getPropertyMeta`, `getNodeDescriptor`, `getCommandMeta` and the metadata types stay;
12
+ - `TextSelection`, `TextSelectionHost`, `TextSelectionProps`, `TextRange`, `SelectionOverrides` and `normalizeRanges`: the component `Text` has no selection API, so nothing could make one. Style a range with `runs`;
13
+ - `AudioScope` and the `declareAudio` hook on `Node`: sound plays from commands (`timeline.sound`). `busPathOf` and `busPathTo` take a function answering a node's span instead of an `AudioScope`;
14
+ - the `Node.tick` hook and the `Node2D` hooks `beforeRender`, `afterRender`, `renderStroke`, `clipPathSelf`, `resolveSizeInput` and `constraints`, which only a subclass could reach;
15
+ - `NodeTypeRecord.withdrawn` and `CommandMeta.withdrawn`. `PropertyMeta.withdrawn` stays, deprecated: nothing sets it.
16
+
17
+ Removed from `@motionscript/core/component`, and so from `@motionscript/sdk/component` and `@motionscript/charts/kit`, which re-export it: the seekable composition `at`, `hold`, `sequence` and `together`, with the `Seekable` and `Placed` types. A component command returns timeline pieces.
18
+
19
+ Removed from `@motionscript/sdk`: `TextSelection`, `TextSelectionProps`, `TextRange`, `SelectionOverrides`, `AudioScope` and `AudioClip`.
20
+
3
21
  ## 0.1.0-alpha.6
4
22
 
5
23
  ### Minor Changes
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../src/component.ts"],
4
- "sourcesContent": ["/**\r\n * `@motionscript/sdk/component` — what a component package needs beyond the\r\n * authoring barrel: seekable entrances (`at`, `sequence`, `together`, `hold`,\r\n * `compose`, `drive`, and `asCommand` to return one from a `@command()` method),\r\n * `declarePaints`, number formatting and the orbit-camera lerps.\r\n *\r\n * A subpath, not part of `.`, because a scene author never reaches for it and\r\n * one name collides: `hold` here is a seekable pause, where the barrel's `hold`\r\n * is an audio curve. The curation is `@motionscript/core/component`'s, for the\r\n * same reason `index.ts` passes through `@motionscript/core/sdk`.\r\n */\r\nexport * from \"@motionscript/core/component\";\r\n"],
5
- "mappings": "AAWA,WAAc",
4
+ "sourcesContent": ["/**\r\n * `@motionscript/sdk/component` — what a component package needs beyond the\r\n * authoring barrel: number formatting, text defaults, the named shape outlines\r\n * and the orbit-camera lerps.\r\n *\r\n * A subpath, not part of `.`, because a scene author never reaches for it. The\r\n * curation is `@motionscript/core/component`'s, for the same reason\r\n * `index.ts` passes through `@motionscript/core/sdk`.\r\n */\r\nexport * from \"@motionscript/core/component\";\r\n"],
5
+ "mappings": "AASA,WAAc",
6
6
  "names": []
7
7
  }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@motionscript/sdk",
3
- "version": "0.1.0-alpha.6",
3
+ "version": "0.1.0-alpha.7",
4
4
  "exports": {
5
5
  ".": "dist/browser/index.js",
6
6
  "./component": "dist/browser/component.js"
@@ -1,13 +1,11 @@
1
1
  /**
2
2
  * `@motionscript/sdk/component` — what a component package needs beyond the
3
- * authoring barrel: seekable entrances (`at`, `sequence`, `together`, `hold`,
4
- * `compose`, `drive`, and `asCommand` to return one from a `@command()` method),
5
- * `declarePaints`, number formatting and the orbit-camera lerps.
3
+ * authoring barrel: number formatting, text defaults, the named shape outlines
4
+ * and the orbit-camera lerps.
6
5
  *
7
- * A subpath, not part of `.`, because a scene author never reaches for it and
8
- * one name collides: `hold` here is a seekable pause, where the barrel's `hold`
9
- * is an audio curve. The curation is `@motionscript/core/component`'s, for the
10
- * same reason `index.ts` passes through `@motionscript/core/sdk`.
6
+ * A subpath, not part of `.`, because a scene author never reaches for it. The
7
+ * curation is `@motionscript/core/component`'s, for the same reason
8
+ * `index.ts` passes through `@motionscript/core/sdk`.
11
9
  */
12
10
  export * from "@motionscript/core/component";
13
11
  //# sourceMappingURL=component.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"component.d.ts","sourceRoot":"","sources":["../src/component.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AACH,cAAc,8BAA8B,CAAC"}
1
+ {"version":3,"file":"component.d.ts","sourceRoot":"","sources":["../src/component.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AACH,cAAc,8BAA8B,CAAC"}
package/dist/component.js CHANGED
@@ -1,13 +1,11 @@
1
1
  /**
2
2
  * `@motionscript/sdk/component` — what a component package needs beyond the
3
- * authoring barrel: seekable entrances (`at`, `sequence`, `together`, `hold`,
4
- * `compose`, `drive`, and `asCommand` to return one from a `@command()` method),
5
- * `declarePaints`, number formatting and the orbit-camera lerps.
3
+ * authoring barrel: number formatting, text defaults, the named shape outlines
4
+ * and the orbit-camera lerps.
6
5
  *
7
- * A subpath, not part of `.`, because a scene author never reaches for it and
8
- * one name collides: `hold` here is a seekable pause, where the barrel's `hold`
9
- * is an audio curve. The curation is `@motionscript/core/component`'s, for the
10
- * same reason `index.ts` passes through `@motionscript/core/sdk`.
6
+ * A subpath, not part of `.`, because a scene author never reaches for it. The
7
+ * curation is `@motionscript/core/component`'s, for the same reason
8
+ * `index.ts` passes through `@motionscript/core/sdk`.
11
9
  */
12
10
  export * from "@motionscript/core/component";
13
11
  //# sourceMappingURL=component.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"component.js","sourceRoot":"","sources":["../src/component.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AACH,cAAc,8BAA8B,CAAC","sourcesContent":["/**\r\n * `@motionscript/sdk/component` — what a component package needs beyond the\r\n * authoring barrel: seekable entrances (`at`, `sequence`, `together`, `hold`,\r\n * `compose`, `drive`, and `asCommand` to return one from a `@command()` method),\r\n * `declarePaints`, number formatting and the orbit-camera lerps.\r\n *\r\n * A subpath, not part of `.`, because a scene author never reaches for it and\r\n * one name collides: `hold` here is a seekable pause, where the barrel's `hold`\r\n * is an audio curve. The curation is `@motionscript/core/component`'s, for the\r\n * same reason `index.ts` passes through `@motionscript/core/sdk`.\r\n */\r\nexport * from \"@motionscript/core/component\";\r\n"]}
1
+ {"version":3,"file":"component.js","sourceRoot":"","sources":["../src/component.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AACH,cAAc,8BAA8B,CAAC","sourcesContent":["/**\r\n * `@motionscript/sdk/component` — what a component package needs beyond the\r\n * authoring barrel: number formatting, text defaults, the named shape outlines\r\n * and the orbit-camera lerps.\r\n *\r\n * A subpath, not part of `.`, because a scene author never reaches for it. The\r\n * curation is `@motionscript/core/component`'s, for the same reason\r\n * `index.ts` passes through `@motionscript/core/sdk`.\r\n */\r\nexport * from \"@motionscript/core/component\";\r\n"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@motionscript/sdk",
3
- "version": "0.1.0-alpha.6",
3
+ "version": "0.1.0-alpha.7",
4
4
  "type": "module",
5
5
  "description": "The Motion Script authoring surface behind one import: document types, components and their modules, commands, styling, and the machinery component kits build on.",
6
6
  "repository": {
@@ -41,7 +41,7 @@
41
41
  }
42
42
  },
43
43
  "peerDependencies": {
44
- "@motionscript/core": "^0.1.0-alpha.6"
44
+ "@motionscript/core": "^0.1.0-alpha.7"
45
45
  },
46
46
  "devDependencies": {
47
47
  "@types/node": "^25.6.2",
@@ -53,7 +53,7 @@
53
53
  "typescript": "^6.0.3",
54
54
  "typescript-eslint": "^8.48.0",
55
55
  "vitest": "^4.1.5",
56
- "@motionscript/core": "0.1.0-alpha.6"
56
+ "@motionscript/core": "0.1.0-alpha.7"
57
57
  },
58
58
  "scripts": {
59
59
  "build": "eslint . && tsc -p tsconfig.build.json && tsc-alias -p tsconfig.build.json && node ../../scripts/build-browser.mjs",