@rohal12/spindle 0.3.2 → 0.5.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 +9 -0
- package/dist/pkg/format.js +1 -1
- package/dist/pkg/types/index.d.ts +26 -0
- package/package.json +8 -2
- package/src/automation/runner.ts +1 -1
- package/src/components/SaveLoadDialog.tsx +8 -3
- package/src/components/macros/Checkbox.tsx +2 -2
- package/src/components/macros/Computed.tsx +22 -17
- package/src/components/macros/For.tsx +12 -19
- package/src/components/macros/If.tsx +3 -15
- package/src/components/macros/MacroLink.tsx +3 -3
- package/src/components/macros/Meter.tsx +12 -22
- package/src/components/macros/Numberbox.tsx +1 -1
- package/src/components/macros/Print.tsx +3 -15
- package/src/components/macros/Radiobutton.tsx +5 -5
- package/src/components/macros/Switch.tsx +5 -15
- package/src/components/macros/Textarea.tsx +1 -1
- package/src/components/macros/Textbox.tsx +1 -1
- package/src/components/macros/Timed.tsx +13 -14
- package/src/components/macros/VarDisplay.tsx +3 -2
- package/src/expression.ts +82 -10
- package/src/hooks/use-merged-locals.ts +26 -0
- package/src/markup/ast.ts +12 -7
- package/src/markup/render.tsx +13 -6
- package/src/markup/tokenizer.ts +12 -12
- package/src/parser.ts +16 -1
- package/src/prng.ts +128 -0
- package/src/saves/save-manager.ts +25 -10
- package/src/saves/types.ts +31 -0
- package/src/settings.ts +26 -1
- package/src/store.ts +101 -35
- package/src/story-api.ts +63 -0
- package/src/story-variables.ts +18 -9
package/README.md
CHANGED
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
# Spindle
|
|
2
2
|
|
|
3
|
+
[](https://www.npmjs.com/package/@rohal12/spindle)
|
|
4
|
+
[](https://www.npmjs.com/package/@rohal12/spindle)
|
|
5
|
+
[](https://bundlephobia.com/package/@rohal12/spindle)
|
|
6
|
+
[](https://github.com/rohal12/spindle/actions/workflows/ci.yml)
|
|
7
|
+
[](https://github.com/rohal12/spindle/commits)
|
|
8
|
+
[](UNLICENSE)
|
|
9
|
+
[](https://www.typescriptlang.org/)
|
|
10
|
+
[](https://rohal12.github.io/spindle/)
|
|
11
|
+
|
|
3
12
|
A modern [Twine 2](https://twinery.org/) story format built with [Preact](https://preactjs.com/). Variables, macros, saves, settings, widgets, and full CommonMark markdown — all using a concise curly-brace syntax.
|
|
4
13
|
|
|
5
14
|
**[Documentation](https://rohal12.github.io/spindle/)**
|