@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.
@@ -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)`. State everyone must
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` and
17
- `visible` as it is, and into a template through `twig` (a plain template literal writes the same text, but a
18
- type-checked lint refuses an object in one).
19
- - A list fed by a path hands its `row` the item typed: every field any item of the sample has.
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.