@widgetic/embed-sdk 2.1.4 → 2.1.6

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 CHANGED
@@ -125,6 +125,7 @@ A workflow shows a path of compositions in one place. When a visitor saves an en
125
125
 
126
126
  - `composition-id` is the composition a **new** visitor starts on, and it has to be one of the workflow's. A workflow that is paused, gone or cannot be read leaves a plain embed of `composition-id`, so the page never shows nothing.
127
127
  - Every composition keeps the tag's `width`, `resize`, theme, overlay, and the page's `values`, `context` and `media-resolver`. Inline `design` and `content` overrides written in the tag apply to the composition the tag names only.
128
+ - **Languages.** A composition that has translations is shown in the language of the visitor's browser, the way `<widgetic-translations>` shows it, and so is every composition the visitor moves to, not only the first. The gateway lists the copies with the workflow, so a language added later shows up without a new version. The first composition is built when that list is in (never later than two seconds; a slower answer shows the composition as it is and swaps it for its copy), and a copy that cannot be shown is replaced by the composition itself.
128
129
  - Autoscale is always on for a workflow tag and reads `autoscale-min-height`, `autoscale-max-height`, `autoscale-debounce`, `autoscale-threshold`, `autoscale-animate` and `autoscale-animation-duration` (defaults 50, 2000, 150, 5, animated, 300). `fixed-height` and `autoscale="false"` are ignored.
129
130
  - The tag fires `widgetic:workflow-step` (`{ workflowId, from, to }`) when a visitor moves on. A page tells its workflow that something happened with `sendWorkflowEvent(tag, "name", { value: 1 })`, exported by this package, or by dispatching a `widgetic:workflow-event` (`{ name, values }`) on the tag.
130
131
  - Where the visitor is stays in the visitor's own browser (`localStorage`): ids and times, never a value. A visitor finishes the version they started on, for up to 30 days.