@plitzi/sdk-authoring 0.38.10 → 0.38.11
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 +175 -0
- package/dist/index-src.js +4741 -4602
- package/dist/index.d.ts +82 -21
- package/dist/index.js +2 -2
- package/dist/node.d.ts +17 -7
- package/dist/node.js +1 -1
- package/package.json +7 -7
- package/skills/plitzi-authoring/CHEATSHEET.md +3 -1
- package/skills/plitzi-authoring/recipes/style-a-page.ts +1 -1
- package/skills/plitzi-authoring/reference/accessibility.md +1 -0
- package/skills/plitzi-authoring/reference/authoring-errors.md +5 -3
- package/skills/plitzi-authoring/reference/data-and-visibility.md +11 -10
- package/skills/plitzi-authoring/reference/flows.md +2 -2
- package/skills/plitzi-authoring/reference/layouts.md +1 -0
- package/skills/plitzi-authoring/reference/lists.md +1 -0
- package/skills/plitzi-authoring/reference/plugins.md +3 -2
- package/skills/plitzi-authoring/reference/realtime.md +4 -1
- package/skills/plitzi-authoring/reference/typed-sources.md +6 -4
|
@@ -14,7 +14,10 @@ channel({ id: 'room', topic: 'room:{{ id }}', keep: 0, bind: { presence: 'comput
|
|
|
14
14
|
|
|
15
15
|
Its descendants bind `room.members`, `room.connected`, `room.last`; flows use `on('onMessage')` (`type`, `data`,
|
|
16
16
|
`from`), `onJoin`/`onLeave` (`from`, `user` and the `state` the member announced — `onJoin` only for who came after
|
|
17
|
-
this page), `publishOn('room', 'reaction', data)` and `announceOn('room', state)`.
|
|
17
|
+
this page), `publishOn('room', 'reaction', data)` and `announceOn('room', state)`. What a page publishes reaches
|
|
18
|
+
every OTHER page on the topic: one that shows it the moment it sends — a reaction, a chat line — says
|
|
19
|
+
`publishOn('room', 'reaction', data, { echo: true })` and hears it back once the server took it (its `from` is
|
|
20
|
+
`room.me`). What a server action publishes reaches every page, the one that ran it included. State everyone must
|
|
18
21
|
agree on goes through a server action whose last step is `realtime.publish` — validated and saved first, announced
|
|
19
22
|
after.
|
|
20
23
|
|
|
@@ -13,10 +13,12 @@ apiContainer({ id: site.id, query: '/data/home.json', children: [
|
|
|
13
13
|
] })
|
|
14
14
|
```
|
|
15
15
|
|
|
16
|
-
- A path is the source's full name (`apiContainer_site.data.hero.title`), so it goes in `from`, `items`, `bind
|
|
17
|
-
`visible`
|
|
18
|
-
type-checked lint refuses an object in
|
|
19
|
-
|
|
16
|
+
- A path is the source's full name (`apiContainer_site.data.hero.title`), so it goes in `from`, `items`, `bind`,
|
|
17
|
+
`visible` and the binding helpers (`bindTemplate`, `visibleWhen`, `hiddenWhen`, `variantFrom`) as it is, and into a
|
|
18
|
+
template through `twig` (a plain template literal writes the same text, but a type-checked lint refuses an object in
|
|
19
|
+
one).
|
|
20
|
+
- A list fed by a path hands its `row` the item typed: every field any item of the sample has — `p.item`, `p.index`,
|
|
21
|
+
and `p.inTemplate` as an untyped row has it, so turning a list typed changes none of its templates.
|
|
20
22
|
- An item of a list is read by position: `site.data.sections[1]`.
|
|
21
23
|
- A provider fed by a server action publishes the action's output at its root: `actionSource('feed', sample)` types
|
|
22
24
|
it — `feed.stories`, and `feed.data` is a type error — with a sample of what the action's last step answers.
|