@rohal12/spindle 0.52.8 → 0.53.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 +2 -0
- package/dist/pkg/format.js +1 -1
- package/dist/pkg/headless.js +1886 -611
- package/package.json +5 -1
- package/src/class-registry.ts +252 -250
- package/src/components/App.tsx +2 -0
- package/src/components/RuntimeErrors.tsx +46 -0
- package/src/components/macros/Computed.tsx +5 -2
- package/src/components/macros/Do.tsx +3 -1
- package/src/components/macros/Goto.tsx +13 -3
- package/src/components/macros/MacroError.tsx +14 -7
- package/src/components/macros/SaveManager.tsx +2 -2
- package/src/markup/render.tsx +117 -53
- package/src/parser.ts +119 -13
- package/src/runtime-errors.ts +65 -0
- package/src/saves/format.ts +199 -0
- package/src/saves/save-manager.ts +45 -63
- package/src/saves/types.ts +71 -88
- package/src/store.ts +167 -87
- package/src/structural.ts +266 -57
- package/src/styles.css +45 -0
- package/src/utils/object-path.ts +13 -12
- package/src/utils/stable-key.ts +2 -1
- package/src/utils/value-kinds.ts +45 -0
- package/types/index.d.ts +32 -8
package/README.md
CHANGED
|
@@ -18,6 +18,8 @@ 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` and `@rohal12/spindle/headless`) needs Node.js 22.17 or later. Compiled stories run in current browsers.
|
|
22
|
+
|
|
21
23
|
## Features
|
|
22
24
|
|
|
23
25
|
- Curly-brace macro syntax: `{if $health > 0}...{/if}`, `{set $name = "Hero"}`
|