@widgetic/ui-sdk 0.1.3 → 0.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.
Files changed (98) hide show
  1. package/README.md +161 -10
  2. package/dist/{index.js → index.cjs} +17 -24
  3. package/dist/index.cjs.map +1 -0
  4. package/dist/index.d.cts +52 -0
  5. package/dist/index.esm.js +16 -23
  6. package/dist/index.esm.js.map +1 -1
  7. package/dist/sdk/core/component.d.cts +46 -0
  8. package/dist/sdk/core/component.d.ts +1 -1
  9. package/dist/sdk/core/component.d.ts.map +1 -1
  10. package/dist/sdk/core/events.d.cts +25 -0
  11. package/dist/sdk/core/events.d.ts +1 -1
  12. package/dist/sdk/core/events.d.ts.map +1 -1
  13. package/dist/sdk/core/index.d.cts +32 -0
  14. package/dist/sdk/core/index.d.ts +6 -6
  15. package/dist/sdk/core/index.d.ts.map +1 -1
  16. package/dist/sdk/core/lifecycle.d.cts +96 -0
  17. package/dist/sdk/core/lifecycle.d.ts +3 -3
  18. package/dist/sdk/core/lifecycle.d.ts.map +1 -1
  19. package/dist/sdk/core/local-events.d.cts +24 -0
  20. package/dist/sdk/core/local-events.d.ts +1 -1
  21. package/dist/sdk/core/local-events.d.ts.map +1 -1
  22. package/dist/sdk/core/messaging.d.cts +57 -0
  23. package/dist/sdk/core/messaging.d.ts +2 -2
  24. package/dist/sdk/core/messaging.d.ts.map +1 -1
  25. package/dist/sdk/core/state.d.cts +64 -0
  26. package/dist/sdk/core/state.d.ts +10 -3
  27. package/dist/sdk/core/state.d.ts.map +1 -1
  28. package/dist/sdk/core/theme-mode.d.cts +43 -0
  29. package/dist/sdk/core/theme-mode.d.ts +1 -1
  30. package/dist/sdk/core/theme-mode.d.ts.map +1 -1
  31. package/dist/sdk/core/theme.d.cts +57 -0
  32. package/dist/sdk/core/theme.d.ts +2 -2
  33. package/dist/sdk/core/theme.d.ts.map +1 -1
  34. package/dist/sdk/index.d.cts +3 -0
  35. package/dist/sdk/index.d.ts +1 -1
  36. package/dist/sdk/index.d.ts.map +1 -1
  37. package/dist/sdk/integration/host.d.cts +53 -0
  38. package/dist/sdk/integration/host.d.ts +2 -2
  39. package/dist/sdk/integration/host.d.ts.map +1 -1
  40. package/dist/sdk/integration/index.d.cts +18 -0
  41. package/dist/sdk/integration/index.d.ts +1 -1
  42. package/dist/sdk/integration/index.d.ts.map +1 -1
  43. package/dist/sdk/layers/index.d.cts +35 -0
  44. package/dist/sdk/loader/ui.d.cts +207 -0
  45. package/dist/sdk/loader/ui.d.ts +49 -6
  46. package/dist/sdk/loader/ui.d.ts.map +1 -1
  47. package/dist/sdk/modules/index.d.cts +8 -0
  48. package/dist/sdk/modules/index.d.ts +1 -1
  49. package/dist/sdk/modules/index.d.ts.map +1 -1
  50. package/dist/sdk/modules/loader.d.cts +83 -0
  51. package/dist/sdk/modules/loader.d.ts +1 -1
  52. package/dist/sdk/modules/loader.d.ts.map +1 -1
  53. package/dist/sdk/types/component.d.cts +214 -0
  54. package/dist/sdk/types/component.d.ts +49 -11
  55. package/dist/sdk/types/component.d.ts.map +1 -1
  56. package/dist/sdk/types/events.d.cts +111 -0
  57. package/dist/sdk/types/events.d.ts.map +1 -1
  58. package/dist/sdk/types/index.d.cts +43 -0
  59. package/dist/sdk/types/index.d.ts +8 -6
  60. package/dist/sdk/types/index.d.ts.map +1 -1
  61. package/dist/sdk/types/messaging.d.cts +40 -0
  62. package/dist/sdk/types/module-events.d.cts +212 -0
  63. package/dist/sdk/types/module-events.d.ts +213 -0
  64. package/dist/sdk/types/module-events.d.ts.map +1 -0
  65. package/dist/sdk/types/module-language.d.cts +46 -0
  66. package/dist/sdk/types/module-media-library.d.cts +143 -0
  67. package/dist/sdk/types/module-media-library.d.ts +144 -0
  68. package/dist/sdk/types/module-media-library.d.ts.map +1 -0
  69. package/dist/sdk/types/module-theme.d.cts +96 -0
  70. package/dist/sdk/types/module-theme.d.ts +1 -1
  71. package/dist/sdk/types/module-theme.d.ts.map +1 -1
  72. package/dist/sdk/types/state.d.cts +37 -0
  73. package/dist/sdk/types/state.d.ts.map +1 -1
  74. package/dist/sdk/types/theme.d.cts +75 -0
  75. package/dist/sdk/utils/config.d.cts +69 -0
  76. package/dist/sdk/utils/config.d.ts.map +1 -1
  77. package/dist/sdk/utils/errors.d.cts +55 -0
  78. package/dist/sdk/utils/errors.d.ts +1 -1
  79. package/dist/sdk/utils/errors.d.ts.map +1 -1
  80. package/dist/sdk/utils/http.d.cts +20 -0
  81. package/dist/sdk/utils/security.d.cts +94 -0
  82. package/dist/sdk/utils/validation.d.cts +63 -0
  83. package/dist/sdk/utils/validation.d.ts +1 -1
  84. package/dist/sdk/utils/validation.d.ts.map +1 -1
  85. package/dist/sdk/version.d.cts +10 -0
  86. package/dist/sdk/version.d.ts +5 -2
  87. package/dist/sdk/version.d.ts.map +1 -1
  88. package/dist/services/dataService.d.cts +9 -0
  89. package/dist/services/dataService.d.ts +4 -4
  90. package/dist/services/dataService.d.ts.map +1 -1
  91. package/dist/umd/ui-sdk.js +1 -1
  92. package/dist/umd/ui-sdk.js.map +1 -1
  93. package/dist/utils/caseConversion.d.cts +2 -0
  94. package/dist/utils/caseConversion.d.ts +2 -2
  95. package/dist/utils/caseConversion.d.ts.map +1 -1
  96. package/modules/README.md +79 -43
  97. package/package.json +24 -10
  98. package/dist/index.js.map +0 -1
package/modules/README.md CHANGED
@@ -110,8 +110,14 @@ has all of it: file fields, paging, limits, what is validated, CORS for previews
110
110
  and saves the address it returns. Use it when `list` returns short-lived signed urls but embeds need a stable or
111
111
  redirecting address. Time limit 10 seconds; on failure or a result that is not `http:` or `https:`, the file's own
112
112
  `url` is kept and one `console.warn` is written. **Memoreco pattern:** addresses should work without a sign-in (no
113
- cookies), or redirect to one that does; browsers follow redirects for images, video and audio. Font files need CORS
114
- headers on their final address after redirects (to verify in your stack).
113
+ cookies), or redirect to one that does. Measured in Chromium 153 (local servers on three different origins, no
114
+ cookies): a redirect to another origin works for images, video and audio loaded the plain way (`<img>`, `<video>`,
115
+ `<audio>`) with no CORS headers at all. Anything loaded in CORS mode needs `Access-Control-Allow-Origin` on the
116
+ redirect answer **and** on the final file: fonts (`@font-face` and `FontFace` always load that way), pictures, video
117
+ or audio with `crossorigin="anonymous"` (read through a canvas, WebGL or Web Audio), and `fetch`. After a redirect to
118
+ another site the browser sends `Origin: null` to the final host, so a rule that names the page's origin fails there:
119
+ answer `*`, or echo the `Origin` you receive. Firefox and Safari were not run (the Fetch standard says the same), and
120
+ a Content-Security-Policy on the widget's page applies on top.
115
121
  - **`upload` with `purpose`** (widget creator and composition editor file fields): when `upload` is given on
116
122
  `mediaLibrary`, the **widget creator** calls it once per file for chat attachments (`purpose: 'chat'`) and for
117
123
  prompt or canvas reference images (`purpose: 'canvas'`). File pickers in the creator and composition editor pass
@@ -145,10 +151,13 @@ pickFile: async ({ accept, multiple, signal }) => {
145
151
  },
146
152
  ```
147
153
 
148
- `accept` is the MIME patterns the field allows (for example `image/*`). `signal` aborts when the visitor closes the
149
- editor or starts another pick. A rejected promise or `AbortError` means nothing was picked (the field is unchanged). A
150
- result that is not an array of valid files is ignored with one `console.warn`. When `pickFile` is not given, behaviour
151
- is unchanged.
154
+ `accept` is the list of file types the field allows, as the field gives it (for example `['image/*']`), and `['*/*']` when
155
+ the field names none. `multiple` is `false` for file fields, and a field takes the first file of the list you return.
156
+ `signal` aborts when the visitor closes the editor or starts another pick. Resolving `[]` or rejecting with an
157
+ `AbortError` means cancelled; any other rejection is written to the console once and also counts as nothing picked (the
158
+ field is unchanged, and the visitor sees nothing). A result that is not an array is ignored with one `console.warn`, and
159
+ so is an entry of it that has no `id` or no `url`. When `pickFile` is not given, behaviour is unchanged. It serves file
160
+ fields only: chat attachments and pictures dropped on the creator's canvas use `mediaLibrary.upload` (with `purpose`).
152
161
 
153
162
  ## Using the composition editor module
154
163
 
@@ -405,7 +414,7 @@ written on it), whatever your page declares on `:root`.
405
414
  | `mode` | `'light'` or `'dark'`. (`'system'` belongs to the SDK's own `theme`, which turns it into one of the two and follows the visitor's setting; a module on its own takes the two.) |
406
415
  | `colors` | Any of `primary`, `primaryForeground` (the text on the primary colour), `background`, `foreground` (the text), `muted` (quiet surfaces), `mutedForeground` (secondary text), `border`, `accent` (the soft highlight), `destructive` (errors), `surface` (panel and card backgrounds — mapped to `--background`, `--card`, `--popover` and `--surface-canvas`) and `secondary` (quiet fills and rows — mapped to `--muted`, `--secondary` and `--grey1`, unless you also set `muted`). Give only the ones you want to decide: the rest follows from them (hover tints, borders, the greys of icons and secondary text, and a readable text colour on your `primary`). Naming only a `primary` changes the brand colours and leaves the greys alone. |
407
416
  | `radius` | `'none'` (square, pills too), `'small'` (4 px), `'medium'` (8 px) or `'large'` (12 px), or a number of pixels from 0 to 32. The larger corners (cards, dialogs) scale with it. Without it the corners are as they were. The **widget creator** follows `radius` on its panels, toolbar, menus and chat the same way as the File Browser and the composition editor. |
408
- | `themeFromHost` | When `true`, the module reads colours and `radius` once at mount from the **host element** it is mounted in (the container you pass to the constructor), from computed CSS custom properties: `--primary`, `--primary-foreground`, `--background`, `--foreground`, `--muted`, `--muted-foreground`, `--border`, `--accent`, `--destructive`, `--secondary`, `--surface`, `--radius`. Only variables that are set are used. The module watches the host's `style` and `class` attributes and refreshes at most once per animation frame. Values you pass in `theme` explicitly (including `setTheme` later) win over the host's. Default: `false`. An invalid value is ignored after one `console.warn` and behaves like `false`. |
417
+ | `themeFromHost` | When `true`, the module reads colours and `radius` from the **host element** it is mounted in (the container you pass to the constructor), from computed CSS custom properties (ones set on a parent count): `--primary`, `--primary-foreground`, `--background`, `--foreground`, `--muted`, `--muted-foreground`, `--border`, `--accent`, `--destructive`, `--secondary`, `--surface`, `--radius`. Only variables that are set and that the module can read are used; the rest is left out and never fails the mount. Colours are read as `#rgb`, `#rrggbb` (with or without a transparency), `rgb()` and `hsl()`; a bare `H S% L%` triplet, `oklch()`, colour names and `var()` are not read. `--radius` is read in pixels (`8px`), in rem (`0.5rem`, at the page's root font size), as a bare number of pixels or as `none`, `small`, `medium`, `large`; more than 32 pixels is drawn as 32. It reads at mount and again when the host's own `style` or `class` attribute changes (at most once per animation frame; a change on a parent is not noticed). Values you pass in `theme` explicitly (including `setTheme` later) win over the host's. Default: `false`. An invalid value is ignored after one `console.warn` and behaves like `false`. |
409
418
  | `font` | `{ family, stylesheetUrl? }`. `family` is a CSS `font-family` value: a single name (`'Poppins'`) gets system fonts behind it, a list (`'"Poppins", Arial, sans-serif'`) is used as written. It applies to the module's text, not to your page. |
410
419
 
411
420
  The built-in themes:
@@ -739,8 +748,8 @@ itself, which no `messages` could ever translate. The same trick works on your o
739
748
 
740
749
  | Command | What it does |
741
750
  | --- | --- |
742
- | `npm install` | Installs, then `patch-package` applies `patches/` (see "Workarounds, and when to delete each") |
743
- | `npm run build` / `npm run build:file-browser` / `npm run build:composition-editor` / `npm run build:widget-creator` | Builds `dist/<name>/index.js` and the lazy files in `dist/<name>/chunks/` (+ source maps), prints the size, and fails when a file imports another to start, when it is over its budget or holds a script in a `data:` URL (see "Size budget" and "One file, and the parts that are not in it") |
751
+ | `npm install` | Installs, then `patch-package` applies each file in `patches/` (one at the moment, `@widgetic+creator+0.4.3.patch`: see "Workarounds, and when to delete each"). A patch that no longer applies stops the install in the pipeline, where `patch-package` turns `--error-on-fail` on by itself; on your machine it prints the error and exits 0, and `tests/creatorPartnerUpload.test.ts` is what goes red |
752
+ | `npm run build` / `npm run build:file-browser` / `npm run build:composition-editor` / `npm run build:widget-creator` | Builds `dist/<name>/index.js` and the lazy files in `dist/<name>/chunks/` (+ hidden source maps: no file points at them), prints the size, and fails when a file imports another to start, when it is over its budget or holds a script in a `data:` URL (see "Size budget" and "One file, and the parts that are not in it"). `npm run build` builds the three modules **one process each** (`scripts/lib/buildPlan.mjs`): the CSS compiler keeps what it learned in one build for the next, so the third module of a single process (widget-creator) came out with rules for the composition editor's classes and in another order than the file that is live, which a hand publish builds alone. Every process gets the flags of the first, the 6 GB heap that `npm run build` sets (`--max-old-space-size=6144`, the same as the pipeline's build job): at Node's default of about 4 GB the third module of one process used to stop with `JavaScript heap out of memory`, and one module alone fits (peak about 3.2 GB), so the `build:<name>` scripts need no flag |
744
753
  | `npm test` | Unit tests (vitest): token source, session token provider, emitter, picked files, shadow mount, the composition editor and widget creator modules, the creator's route list, CSS transforms, fonts, the publishing rules, the R2 store, the release plan and the two scripts of the release pipeline |
745
754
  | `npm run harness` | Serves `harness/hostile.html`, `harness/composition-editor.html`, `harness/widget-creator.html` and a mock Widgetic API on http://localhost:5290 |
746
755
  | `npm run test:e2e` | Playwright against the harness (`PLAYWRIGHT_CHANNEL=chrome` uses the installed Google Chrome instead of Playwright's download) |
@@ -1051,8 +1060,9 @@ Every one of these is a defect in a published package. Each is guarded (a test o
1051
1060
  | `dropReferenceAtRulesPlugin` in `scripts/plugins/packageCss.mjs` removes every Tailwind `@reference` from the module stylesheet | The design system's `editor.css` says `@reference '../../styles/global.css'`; Vite flattens `@import`s before PostCSS runs, so that relative path is then resolved from `module.css`'s folder and the build fails. The module stylesheet already contains everything the reference points at | A design system release whose `editor.css` has no `@reference`, or the build resolves it from the right folder |
1052
1061
  | `scripts/stubs/app-environment.js` stands in for SvelteKit's `$app/environment` | The File Browser imports it | The File Browser stops importing SvelteKit |
1053
1062
  | `instanceOnPage` in `src/file-browser/index.ts` refuses a second File Browser | The component keeps its file list, its selection and its history in stores that belong to the whole page; two instances would show each other's files and picks | The component keeps them per instance |
1054
- | `patches/@widgetic+editor+4.1.0.patch` (`patch-package` on install) | Published `@widgetic/editor` 4.1.0 does not yet pass `lockPreviewSize`, `pickFile`, or `storeFileUrl` into the composition editor and PropsEditor file fields (R-05a partner-owned embed size; R-16 partner file picker; R-17 stable stored file urls via `urlResolver`) | Delete when the first `@widgetic/editor` release **after** 4.1.0 ships those props and behaviour in its published `dist/` (likely 4.2.0 if the editor repo version is bumped on the next publish). Remove the patch file and the matching `postinstall` entry if patch-package lists only this package |
1055
- | `patches/@widgetic+creator+0.4.0.patch` (`patch-package` on install) | Published `@widgetic/creator` 0.4.0 lacks `pickFile` / `storeFileUrl` on PropsEditor (R-16, R-17) and partner `mediaLibrary.upload` with `purpose` for chat, canvas and fields (R-10). The patch touches only `dist/CreatorApp.svelte`, `dist/CreatorApp.svelte.d.ts`, `dist/creator-types.d.ts`, and `dist/utils/partnerMediaUpload.js` (+ `.d.ts`). | Delete when the first `@widgetic/creator` release **after** 0.4.0 ships those behaviours in its published `dist/`. Remove the patch file |
1063
+ | `patches/@widgetic+creator+0.4.3.patch` (`patch-package`, applied by `npm install` and `npm ci`; 4 files of `dist/`: `utils/partnerMediaUpload.js` and `.d.ts`, `CreatorApp.svelte`, `creator-types.d.ts`) gives `@widgetic/creator` 0.4.3 the upload-once rule of R-10 and the error toast | The published 0.4.3 has the `purpose` and the helper `tryPartnerMediaUpload`, but it asks for a file again with the `File` the visitor chose, which the helper does not know: an attached picture is uploaded to the partner's `mediaLibrary.upload` when it is attached and again when the message is sent, and a failed upload of a chat attachment says nothing to the visitor. The patch adds `options.originalFile` (a `WeakMap` per media library that keeps the stored copy of each `File`, or the upload that is still on its way, and forgets a failed one), passes `originalFile: file` at the two call sites in `CreatorApp.svelte` and shows the message of the partner's error in a toast (not for the second attempt, `options.source === 'chat-message-persist'`, when the message is saved). It is a file in `patches/` and not a change in `node_modules/` on one machine, so a clean `npm ci` has it: `tests/creatorPartnerUpload.test.ts` (its "attach, then send" specs and the two that read `CreatorApp.svelte`) and `npm run typecheck` fail on an install that does not | A `@widgetic/creator` release does the same itself (its `tryPartnerMediaUpload` takes `originalFile`, or it uploads once some other way). Then: `npm install @widgetic/creator@<release>`, delete the patch file, and run `npm test`: the specs say whether the package does it. Until then, a newer version of the package makes `patch-package` warn that the patch was made for 0.4.3, and fail in the pipeline once the lines it changes are no longer in the file, which is the reminder |
1064
+
1065
+ The two `patch-package` patches this table used to list, for `@widgetic/editor` 4.1.0 and `@widgetic/creator` 0.4.0 (R-05a `lockPreviewSize`, R-16 `pickFile`, R-17 `storeFileUrl` and `urlResolver`, R-10 `mediaLibrary.upload` with a `purpose`), are gone: `@widgetic/editor` 4.1.3 and `@widgetic/creator` 0.4.3 ship that behaviour in their published `dist/`, and `tests/creatorPartnerUpload.test.ts` fails if the range allows a creator older than 0.4.3. What 0.4.3 still lacks, R-10's "uploaded once", is the one patch in the table above. It was missing from the clean installs for a while because the old patch's four changed files stayed in `node_modules/@widgetic/creator` on one machine: the tests passed there and failed on a clean install (two specs, ten type errors), and the file that is live (0.1.0) does not have the rule (checked on 13 October 2026: its `index.js` has no use of `originalFile`; the only hits are `originalFilename`). **A change to a package is a file in `patches/`, never an edit of `node_modules/`**; make it with `npx patch-package @widgetic/creator` after the edit, check it with `rm -rf node_modules && npm ci` (or the clean copy of "Before a release" in the rule file), and give it a row in this table with the test or build error that guards it. With no file in `patches/`, `patch-package` prints "No patch files found" and exits cleanly.
1056
1066
 
1057
1067
  ## Known gaps
1058
1068
 
@@ -1187,11 +1197,13 @@ the one the API gateway writes to), and a fourth is there for the partner to rea
1187
1197
  | `modules/<name>/manifest.json` | `{ "name", "version", "entry": "<version>/index.js" }`. What a page that does not pin a version gets. Cached for a minute. Overwritten at every release, as `changelog.json` is: the only two files that ever are. |
1188
1198
  | `modules/<name>/changelog.json` | What changed in each version, newest first, up to the version the manifest names (see "Versions and the changelog"). Written from `src/<name>/CHANGELOG.md` just before the manifest moves. Cached for a minute. |
1189
1199
 
1190
- A release is made in one of two ways, and both end in the same rules (`scripts/lib/publishModule.mjs`): **by pushing a
1191
- tag**, which the pipeline turns into a release ("Releasing from a tag", the normal way), or **by one command run by a
1192
- person** who has the R2 write keys ("By hand"). The command is how a module's first release is made, how a release
1193
- candidate or a rollback can be made, and what the pipeline itself runs. Whoever can publish can run code on every
1194
- partner's page, so neither way is open to everyone: "What to set up once" says who can push the tag and who can see the keys.
1200
+ A release is made in one of three ways, and all end in the same rules (`scripts/lib/publishModule.mjs`): **by pushing
1201
+ `main`** when the loader's `version` (in the `package.json` at the root) changed, which raises the modules patch and
1202
+ releases it ("Releasing from a tag" says how); **by pushing a tag**, which the pipeline turns into a release (same
1203
+ section); or **by one command run by a person** who has the R2 write keys
1204
+ ("By hand"). The command is how a module's first release is made, how a release candidate or a rollback can be made,
1205
+ and what the pipeline itself runs. Whoever can publish can run code on every partner's page, so none of these is open
1206
+ to everyone: "What to set up once" says who can push `main` or the tag and who can see the keys.
1195
1207
 
1196
1208
  ### Releasing from a tag
1197
1209
 
@@ -1208,9 +1220,11 @@ git switch main && git pull
1208
1220
  git tag modules-v<x.y.z> && git push origin modules-v<x.y.z>
1209
1221
  ```
1210
1222
 
1211
- The tag starts a pipeline (`Frontend/ui-sdk/.gitlab-ci.yml`). Nothing else does: a push to a branch and a merge request
1212
- make no pipeline, so the CDN never changes because someone merged. A tag whose name is not `modules-v<version>` makes no
1213
- pipeline either, so if nothing started, check the name first.
1223
+ The tag starts a pipeline (`Frontend/ui-sdk/.gitlab-ci.yml`). A push to `main` starts the same release only when
1224
+ `version` in the loader `package.json` changed. The job then raises the modules patch, writes one changelog sentence,
1225
+ publishes that version, and pushes the commit back to `main` with the job's own token, which acts as the person who
1226
+ pushed ("What to set up once", step 3). A push that does not change the package version does not release the modules.
1227
+ A tag whose name is not `modules-v<version>` makes no pipeline, so if a tag started nothing, check the name first.
1214
1228
 
1215
1229
  - **`verify`** holds no key. It refuses a tag that is not protected, a commit that is not on the default branch, a tag
1216
1230
  whose version is not the one in `package.json`, a lockfile the pipeline cannot install, and a module whose changelog
@@ -1249,7 +1263,11 @@ happens. What lets them choose is knowing what each version changed, so **a vers
1249
1263
  - An entry starts with `## <version> - <YYYY-MM-DD>`, may have a paragraph about the release, and then lists under
1250
1264
  `### Breaking`, `### Added`, `### Changed`, `### Deprecated`, `### Removed`, `### Fixed` and `### Security`, each item
1251
1265
  starting with `- ` (only the lists it needs). Work that is not released yet goes under `## Unreleased`, which is neither
1252
- read nor published. A release candidate may be listed under its own version or under the one it leads to.
1266
+ read nor published, and **a release from `main` does not promote it either**: that one raises the patch number, writes
1267
+ one sentence as the entry of the new version (above the newest entry) and leaves `## Unreleased` where it is. What a
1268
+ partner should read about a change has to be in the entry of the version that carries it: write it in the commit that
1269
+ raises the version (a release by tag), or correct the entry afterwards and publish the changelog again (below). A
1270
+ release candidate may be listed under its own version or under the one it leads to.
1253
1271
  - A version with no entry is refused, by `npm run release:check` and the `verify` job, by the release before it reads the
1254
1272
  CDN, and by `publish:cdn` before it builds. So is a file that cannot be read (the message says which line), and **a
1255
1273
  version that lists breaking changes without being a new major version** (a new minor one while the major is 0). The
@@ -1278,24 +1296,37 @@ By a person who can change the project's settings in GitLab.
1278
1296
  `verify` refuses a tag that is not protected, and the keys below reach only a protected tag.
1279
1297
  2. **The keys, as CI/CD variables** (Settings, CI/CD, Variables): `CLOUDFLARE_PUBLIC_ENDPOINT`, `R2_WIDGETS_NAME`,
1280
1298
  `R2_ACCESS_KEY_ID` and `R2_SECRET_ACCESS_KEY` (the same settings as under "By hand"). Each one **Protected**, with the
1281
- environment scope **`cdn`** (the `publish` job is the only one that runs in that environment), and the two secrets
1282
- **Masked**. Use an R2 token of its own, limited to the `widgets` bucket with object read and write, so that it can be
1283
- rotated without touching the gateway's.
1284
- 3. **Keep `main` reviewed.** A tag must be on `main`, and whoever can change `.gitlab-ci.yml` or `modules/` on `main`
1299
+ environment scope **`cdn`** (the two jobs that publish, `publish` for a tag and `modules-publish` for `main`, are the
1300
+ only ones that run in that environment), and the two secrets **Masked**. Use an R2 token of its own, limited to the
1301
+ `widgets` bucket with object read and write, so that it can be rotated without touching the gateway's.
1302
+ 3. **Let the pipeline push the version commit,** for a release from `main`: in Settings, CI/CD, Job token permissions,
1303
+ turn on **Allow Git push requests to the repository** (it is off by default; a Maintainer or Owner can turn it on).
1304
+ A release made by pushing `main` publishes first and then pushes the version commit back to `main` with the job's
1305
+ own token, which acts as **the person who pushed**. No token of a person is stored, and it works for whoever pushes
1306
+ `main`, as long as that person may push to it (Settings, Repository, Protected branches). The token lets only this
1307
+ project's own jobs push, and a push made with it starts no pipeline. When the push is refused, or `main` changed in
1308
+ a way that conflicts with the version commit, the modules are on the CDN and `main` does not have their version: the
1309
+ job says so and how to finish by hand (run `node modules/scripts/advance-module-version.mjs` in a checkout of `main`,
1310
+ then commit and push what it changed). Until that is done, the next release from `main` would raise the same number
1311
+ and be refused. A release by tag pushes nothing.
1312
+ 4. **Keep `main` reviewed.** A tag must be on `main`, and whoever can change `.gitlab-ci.yml` or `modules/` on `main`
1285
1313
  changes what the next release does: protect the branch the way the project's others are.
1286
- 4. **A lockfile the pipeline can install.** `npm ci` installs exactly what `package-lock.json` lists, from the registry.
1314
+ 5. **A lockfile the pipeline can install.** `npm ci` installs exactly what `package-lock.json` lists, from the registry.
1287
1315
  Release the `@widgetic/*` packages the modules are built from first, then run `npm install` in `modules/` once and
1288
1316
  commit the lockfile. `npm run release:check` says what is missing, and `verify` stops at its first step when the
1289
1317
  lockfile cannot be installed, which is where it should. (Done on 2026-10-09: every package is released, the ranges
1290
1318
  in `package.json` ask for them and `npm run release:check -- --tag modules-v0.1.0` passes.)
1291
- 5. **The first release of every module is made by hand,** with `--allow-create` (below).
1319
+ 6. **The first release of every module is made by hand,** with `--allow-create` (below).
1292
1320
 
1293
1321
  ### The first release, in order
1294
1322
 
1295
1323
  The pipeline never makes a module's first release, so the first one is made by a person, once. These are the steps in the
1296
1324
  order they have to be done, because each one checks the one before it. They need your credentials, so nobody else can do
1297
- them for you. State on 2026-10-09: the packages are released, the lockfile is committed, `npm run release:check` passes
1298
- and the build is inside its budgets; none of the steps below has been done, and every manifest answers 404.
1325
+ them for you. State on 2026-10-13: the three modules are on the CDN at 0.1.0 (released by hand on 2026-10-12: their
1326
+ manifests were written between 19:01:14 and 19:01:41 UTC), and every manifest answers 200 with
1327
+ `Access-Control-Allow-Origin: *`. Whether steps 7 and 8 (the pipeline's one-time setup in GitLab, and the first release
1328
+ that goes by tag) are done is not recorded here: GitLab's Settings, CI/CD shows it. The steps stay here for the next
1329
+ module that needs a first release.
1299
1330
 
1300
1331
  1. **Put the work on `main`.** `publish:cdn` refuses a `modules/` with uncommitted changes, and a release has to come
1301
1332
  from a commit that is on the default branch.
@@ -1388,8 +1419,8 @@ and the build is inside its budgets; none of the steps below has been done, and
1388
1419
  8. **The next release goes by tag and proves the pipeline:** `npm version 0.1.1 --no-git-tag-version`, commit, merge,
1389
1420
  `git tag modules-v0.1.1 && git push origin modules-v0.1.1`.
1390
1421
 
1391
- Publish the modules **before** a `@widgetic/ui-sdk` version whose defaults point at them: `@widgetic/ui-sdk` 0.1.1 is on
1392
- npm already, and until step 5 is done its `mountModule` fails with `MODULE_NOT_FOUND`.
1422
+ Publish the modules **before** a `@widgetic/ui-sdk` version whose defaults point at them: `@widgetic/ui-sdk` 0.1.1 was on
1423
+ npm before step 5 was done, and until then its `mountModule` failed with `MODULE_NOT_FOUND`.
1393
1424
 
1394
1425
  ### By hand
1395
1426
 
@@ -1405,7 +1436,10 @@ What it does, in this order (`scripts/lib/publishModule.mjs` holds the rules, wi
1405
1436
 
1406
1437
  1. Builds `dist/<name>/` (`--skip-build` uses what is there) and refuses a build that has a file the CDN has no rule
1407
1438
  for (only `index.js` and `chunks/<name>.js`, and their source maps, are published), a file that is tiny, or one that
1408
- contains an R2 key, the Cloudflare token, or any secret-looking value from the `.env` files around it.
1439
+ contains an R2 key, the Cloudflare token, or any secret-looking value from the `.env` files around it. It also
1440
+ refuses anything shaped like a gateway service key (`wgt_srv_` followed by 32 or more hex characters). That one is
1441
+ found by its shape, with no `.env` needed, so it holds on a CI runner too. The error names the file and how many
1442
+ there are, never the text.
1409
1443
  2. Reads the bucket and **refuses before writing anything** if this version is already there with other bytes in any of
1410
1444
  its files (raise the version), if the manifest would point at a version that is not there, or if the module has no
1411
1445
  manifest yet and you did not say `--allow-create`.
@@ -1425,9 +1459,12 @@ published rather than refused as a conflict, and only the missing steps are done
1425
1459
  lazy files and before `index.js` is completed the same way). A rebuild on a different machine may differ; if it
1426
1460
  reports "different bytes", run with `--skip-build` from the `dist/` you published from, or raise the version.
1427
1461
 
1428
- Each file ends with a `//# sourceMappingURL=<file>.map` comment (`index.js.map`, `chunks/pdf-DyTSsyHP.js.map`). Without
1429
- `--with-source-map` those files are not on the CDN, so a browser's DevTools (and only DevTools) shows a 404 for them;
1430
- nothing else is affected.
1462
+ The build writes a source map next to every file (`index.js.map`, `chunks/pdf-DyTSsyHP.js.map`) as a **hidden** one: no
1463
+ file ends with a `//# sourceMappingURL=` comment, so a browser's DevTools does not ask the CDN for a map that is not
1464
+ there. (The files of 0.1.0 do have the comment and their maps answer 404; a published version never changes, so that
1465
+ stays until the next release.) `build-module.mjs` refuses a build in which any file points at a map. `--with-source-map`
1466
+ still publishes the maps, but nothing points at them, so whoever wants one loads it by its address in DevTools. A map
1467
+ carries the text of every source file it was made from, so publishing it is a decision about who may read the code.
1431
1468
 
1432
1469
  The settings are the API gateway's own names, so the same values work: `CLOUDFLARE_PUBLIC_ENDPOINT`, `R2_WIDGETS_NAME`,
1433
1470
  `R2_ACCESS_KEY_ID`, `R2_SECRET_ACCESS_KEY` (and `CLOUDFLARE_API_TOKEN` + `CLOUDFLARE_ZONE_ID` for `--purge`). The real
@@ -1438,7 +1475,7 @@ environment wins over `modules/.env` (git-ignored, or `--env-file <path>`). Noth
1438
1475
  | make the first release of a module | `file-browser --allow-create` |
1439
1476
  | try a version before everyone gets it | `file-browser --skip-manifest`, then mount it with `version: '<x.y.z>'`; later `file-browser --manifest-only --version <x.y.z>` |
1440
1477
  | roll back | `file-browser --manifest-only --version <earlier>`. The earlier file is still there; only the manifest changes |
1441
- | publish the source map too | `file-browser --with-source-map` (off by default) |
1478
+ | publish the source map too | `file-browser --with-source-map` (off by default; the files do not point at it, see above) |
1442
1479
 
1443
1480
  **Prerequisite: CORS on the CDN.** A page on another origin `import()`s the module and `fetch`es the manifest, so the CDN
1444
1481
  must answer `Access-Control-Allow-Origin: *` for `modules/*` (an R2 bucket CORS rule allowing `GET` from any origin, or
@@ -1446,17 +1483,16 @@ a Cloudflare response-header rule for `/modules/*`). Step 4 checks it and stops
1446
1483
  only a real publish can: a dry run has nothing on the CDN to ask.
1447
1484
 
1448
1485
  Publish a module **before** the `@widgetic/ui-sdk` version whose defaults point at it: the SDK looks at
1449
- `https://cdn.widgetic.com/modules`, which has nothing in it until the first release.
1486
+ `https://cdn.widgetic.com/modules`, and a module that has no manifest there makes `mountModule` fail with
1487
+ `MODULE_NOT_FOUND`.
1450
1488
 
1451
1489
  ## Not done yet
1452
1490
 
1453
- - The first release of the three modules. Everything they are built from is released (checked on 2026-10-09:
1454
- `@widgetic/design-system` 0.5.16, `@widgetic/file-browser` 0.5.26, `@widgetic/canvas` 0.5.19, `@widgetic/chat` 0.1.18,
1455
- `@widgetic/creator` 0.4.0, `@widgetic/editor` 4.1.0), `package.json` asks for them and the lockfile pins them, so
1456
- `npm run release:check` passes and `npm ci` can recreate `node_modules`. What is left is done by a person with the keys,
1457
- in this order: the CORS rule on `modules/*`, the GitLab protected tag and the four variables, then the first release of
1458
- each module with `--allow-create` ("Publishing", "What to set up once" and "By hand"). Until then
1459
- `https://cdn.widgetic.com/modules/<name>/manifest.json` answers 404.
1491
+ - The pipeline's own release. The three modules were released by hand on 2026-10-12 and are on the CDN at 0.1.0. Whether
1492
+ the GitLab side is set up (the protected tag pattern `modules-v*`, the four R2 variables and, for a release from `main`,
1493
+ the job token's permission to push, "What to set up once") is not
1494
+ recorded here: until it is, a release is made by hand ("By hand"), and the first release that goes by tag
1495
+ (`modules-v0.1.1`, step 8 of "The first release, in order") proves the pipeline.
1460
1496
  - The composition editor on the Widgetic site itself: the site still has its own copy of the editor screen; it moves to
1461
1497
  the shared `CompositionEditorApp` the module uses.
1462
1498
  - More lazy files. pdf.js and its worker are done; highlight.js (275 kB, in the composition editor and the creator) is
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "@widgetic/ui-sdk",
3
- "version": "0.1.3",
3
+ "version": "0.1.6",
4
4
  "description": "Framework-agnostic UI components for building Widgetic integrations",
5
- "main": "dist/index.js",
5
+ "main": "dist/index.cjs",
6
6
  "module": "dist/index.esm.js",
7
7
  "types": "dist/index.d.ts",
8
8
  "unpkg": "dist/umd/ui-sdk.js",
@@ -10,9 +10,14 @@
10
10
  "sideEffects": false,
11
11
  "exports": {
12
12
  ".": {
13
- "types": "./dist/index.d.ts",
14
- "import": "./dist/index.esm.js",
15
- "require": "./dist/index.js"
13
+ "import": {
14
+ "types": "./dist/index.d.ts",
15
+ "default": "./dist/index.esm.js"
16
+ },
17
+ "require": {
18
+ "types": "./dist/index.d.cts",
19
+ "default": "./dist/index.cjs"
20
+ }
16
21
  },
17
22
  "./package.json": "./package.json"
18
23
  },
@@ -36,12 +41,14 @@
36
41
  ],
37
42
  "scripts": {
38
43
  "i": "rm -rf node_modules && npm i && npm run lapisdk",
39
- "build": "rollup -c",
40
- "build:publish": "rm -rf dist && npm run build",
44
+ "prebuild": "node scripts-sdk/check-version.js",
45
+ "build": "rollup -c && node scripts-sdk/make-cjs-declarations.js",
46
+ "build:publish": "rm -rf dist && npm run build && node scripts-sdk/check-declarations.js",
41
47
  "build:dev": "rollup -c --watch",
42
48
  "dev": "vite dev",
43
49
  "dev:demo": "vite dev",
44
50
  "dev:sdk": "rollup -c ./scripts-sdk/rollup.config.js -w",
51
+ "prebuild:sdk": "node scripts-sdk/check-version.js",
45
52
  "build:sdk": "REPLICABLE=1 NODE_ENV=production rollup -c ./scripts-sdk/rollup.config.js",
46
53
  "lapisdk": "rm -rf node_modules/@widgetic/api-sdk && ln -s ../../../api-sdk node_modules/@widgetic/api-sdk",
47
54
  "clean-npm-cache": "npm cache clean --force",
@@ -57,9 +64,11 @@
57
64
  "test:coverage": "vitest run --coverage",
58
65
  "lint": "eslint .",
59
66
  "build:sdk:local": "NODE_ENV=production rollup -c ./scripts-sdk/rollup.config.js",
60
- "prepublishOnly": "npm run build:publish && node scripts-sdk/check-no-secrets.js"
67
+ "prepublishOnly": "npm run build:publish && node scripts-sdk/check-no-secrets.js",
68
+ "publish-to-npm": "npm version patch --no-git-tag-version && node -e \"const fs=require('fs'); const v=require('./package.json').version; const p='src/sdk/version.ts'; fs.writeFileSync(p, fs.readFileSync(p,'utf8').replace(/SDK_VERSION = '[^']+'/, \\\"SDK_VERSION = '\\\"+v+\\\"'\\\"))\"; npm run build:publish && node scripts-sdk/check-no-secrets.js && npm publish --ignore-scripts --access public && node modules/scripts/advance-module-version.mjs && cd modules && ver=$(node -p \"require('./package.json').version\") && npm run release:check -- --tag modules-v$ver && NODE_OPTIONS=--max-old-space-size=8192 npm run build && npm run release:publish -- --tag modules-v$ver"
61
69
  },
62
70
  "devDependencies": {
71
+ "@eslint/js": "^10.0.1",
63
72
  "@playwright/test": "^1.48.2",
64
73
  "@rollup/plugin-commonjs": "^28.0.1",
65
74
  "@rollup/plugin-json": "^6.1.0",
@@ -70,22 +79,27 @@
70
79
  "@sveltejs/adapter-auto": "^3.0.0",
71
80
  "@sveltejs/kit": "^2.20.3",
72
81
  "@sveltejs/vite-plugin-svelte": "^5.0.3",
82
+ "@tailwindcss/postcss": "^4.3.3",
73
83
  "@testing-library/dom": "^9.3.3",
74
84
  "@testing-library/jest-dom": "^6.6.3",
75
85
  "@testing-library/svelte": "^4.2.3",
76
86
  "@types/node": "^22.20.5",
77
87
  "@types/testing-library__jest-dom": "^5.14.9",
78
88
  "@widgetic/api-sdk": "^1.0.0",
79
- "autoprefixer": "^10.4.20",
89
+ "eslint": "^10.12.0",
90
+ "eslint-config-prettier": "^10.1.8",
91
+ "eslint-plugin-svelte": "^3.23.1",
92
+ "globals": "^17.13.0",
80
93
  "jsdom": "^22.1.0",
81
94
  "rollup": "^4.0.0",
82
95
  "rollup-plugin-polyfill-node": "^0.13.0",
83
96
  "svelte": "^5.25.6",
84
97
  "svelte-check": "^4.0.0",
85
- "tailwindcss": "^3.4.14",
98
+ "tailwindcss": "^4.3.3",
86
99
  "terser": "^5.0.0",
87
100
  "tslib": "^2.8.1",
88
101
  "typescript": "^5.2.2",
102
+ "typescript-eslint": "^8.71.2",
89
103
  "vite": "^6.2.6",
90
104
  "vitest": "^5.0.3"
91
105
  },
package/dist/index.js.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sources":["../src/sdk/utils/errors.ts","../src/sdk/utils/validation.ts","../src/sdk/core/theme-mode.ts","../src/sdk/core/lifecycle.ts","../src/sdk/core/local-events.ts","../src/sdk/utils/config.ts","../src/sdk/modules/loader.ts","../src/sdk/loader/ui.ts","../src/sdk/layers/index.ts","../src/sdk/core/events.ts","../src/sdk/core/state.ts","../src/sdk/core/theme.ts","../src/sdk/core/component.ts","../src/sdk/core/messaging.ts","../src/sdk/core/index.ts","../src/sdk/integration/host.ts","../src/sdk/utils/http.ts","../src/sdk/utils/security.ts","../src/sdk/version.ts","../src/index.ts"],"sourcesContent":[null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null],"names":[],"mappings":";;;;MAOa,eAAe,CAAA;AACxB;;;;;;AAMG;AACH,IAAA,OAAO,WAAW,CAAC,OAAe,EAAE,IAAY,EAAA;AAC5C,QAAA,MAAM,KAAK,GAAG,IAAI,KAAK,CAAC,OAAO,CAAC;AAC/B,QAAA,KAAa,CAAC,IAAI,GAAG,IAAI;AAC1B,QAAA,OAAO,KAAK;IAChB;AAEA;;;;;;AAMG;AACH,IAAA,OAAO,WAAW,CAAC,KAAc,EAAE,OAAe,EAAA;;AAE9C,QAAA,IAAI,KAAK,YAAY,KAAK,EAAE;AACxB,YAAA,IAAK,KAAa,CAAC,IAAI,EAAE;AACrB,gBAAA,OAAO,KAAK;YAChB;YACA,OAAO,IAAI,CAAC,WAAW,CAAC,KAAK,CAAC,OAAO,EAAE,eAAe,CAAC;QAC3D;;AAGA,QAAA,IAAI,OAAO,KAAK,KAAK,QAAQ,EAAE;YAC3B,OAAO,IAAI,CAAC,WAAW,CAAC,KAAK,EAAE,cAAc,CAAC;QAClD;;QAGA,OAAO,IAAI,CAAC,WAAW,CACnB,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