@rohal12/spindle 0.61.6 → 0.62.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/README.md +3 -1
- package/dist/pkg/format.js +1 -1
- package/dist/pkg/headless.js +200 -90
- package/dist/pkg/play.js +3 -49
- package/dist/pkg/story-variables.js +142 -77
- package/dist/pkg/tooling.js +3 -0
- package/package.json +5 -5
- package/src/components/macros/PassageDisplay.tsx +172 -35
- package/src/components/macros/arg-utils.ts +7 -2
- package/src/components/macros/macro-args.ts +113 -19
- package/src/format/format-passage.ts +14 -6
- package/src/format/placeholders.ts +20 -18
- package/src/index.tsx +8 -3
- package/src/js-lexer.ts +47 -12
- package/src/play/resolve-story.ts +5 -63
- package/src/tooling.ts +26 -9
- package/src/types-drift-check.ts +17 -23
- package/src/utils/object-path.ts +12 -1
- package/types/tooling.d.ts +56 -1
package/README.md
CHANGED
|
@@ -18,7 +18,7 @@ A modern [Twine 2](https://twinery.org/) story format built with [Preact](https:
|
|
|
18
18
|
npm install @rohal12/spindle
|
|
19
19
|
```
|
|
20
20
|
|
|
21
|
-
The package (the compiler entry point, `@rohal12/spindle/tooling`, `@rohal12/spindle/headless` and `@rohal12/spindle/play`) needs Node.js
|
|
21
|
+
The package (the compiler entry point, `@rohal12/spindle/tooling`, `@rohal12/spindle/headless` and `@rohal12/spindle/play`) needs Node.js 24 or later. Compiled stories run in current browsers.
|
|
22
22
|
|
|
23
23
|
## Features
|
|
24
24
|
|
|
@@ -44,6 +44,8 @@ const result = await compile({
|
|
|
44
44
|
});
|
|
45
45
|
```
|
|
46
46
|
|
|
47
|
+
Spindle’s optional compiler/play integration requires twee-ts 2.x.
|
|
48
|
+
|
|
47
49
|
Or install both and let twee-ts auto-discover the format via the `twine-story-format` keyword.
|
|
48
50
|
|
|
49
51
|
## Documentation
|