arethesis 0.1.0 → 0.1.3
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 +34 -0
- package/LICENSE +0 -0
- package/README.md +2 -1
- package/dist/{arethesis-z8eGA7mL.js → arethesis-D0-ZaXOM.js} +622 -466
- package/dist/arethesis-D0-ZaXOM.js.map +1 -0
- package/dist/arethesis.js +2 -2
- package/dist/arethesis.js.map +1 -1
- package/dist/binding/data-binder.d.ts +0 -0
- package/dist/binding/data-binder.d.ts.map +0 -0
- package/dist/binding/types.d.ts +0 -0
- package/dist/binding/types.d.ts.map +0 -0
- package/dist/binding/validation-engine.d.ts +0 -0
- package/dist/binding/validation-engine.d.ts.map +0 -0
- package/dist/components/component.d.ts +0 -0
- package/dist/components/component.d.ts.map +0 -0
- package/dist/components/decorators.d.ts +0 -0
- package/dist/components/decorators.d.ts.map +0 -0
- package/dist/components/runtime.d.ts +0 -0
- package/dist/components/runtime.d.ts.map +0 -0
- package/dist/components/template-loader.d.ts +0 -0
- package/dist/components/template-loader.d.ts.map +0 -0
- package/dist/components/types.d.ts +0 -0
- package/dist/components/types.d.ts.map +0 -0
- package/dist/components.js +44 -6
- package/dist/components.js.map +1 -1
- package/dist/core/arethesis.d.ts +3 -2
- package/dist/core/arethesis.d.ts.map +1 -1
- package/dist/core/types.d.ts +0 -0
- package/dist/core/types.d.ts.map +0 -0
- package/dist/data/list-view-registry.d.ts +0 -0
- package/dist/data/list-view-registry.d.ts.map +0 -0
- package/dist/data/object-store.d.ts +0 -0
- package/dist/data/object-store.d.ts.map +0 -0
- package/dist/data/optimistic-updates.d.ts +0 -0
- package/dist/data/optimistic-updates.d.ts.map +0 -0
- package/dist/data/persistence-manager.d.ts +0 -0
- package/dist/data/persistence-manager.d.ts.map +0 -0
- package/dist/data/types.d.ts +0 -0
- package/dist/data/types.d.ts.map +0 -0
- package/dist/http/auth-manager.d.ts +0 -0
- package/dist/http/auth-manager.d.ts.map +0 -0
- package/dist/http/http-client.d.ts +0 -0
- package/dist/http/http-client.d.ts.map +0 -0
- package/dist/http/http-error.d.ts +0 -0
- package/dist/http/http-error.d.ts.map +0 -0
- package/dist/http/mapping.d.ts +0 -0
- package/dist/http/mapping.d.ts.map +0 -0
- package/dist/http/types.d.ts +0 -0
- package/dist/http/types.d.ts.map +0 -0
- package/dist/index.d.ts +0 -0
- package/dist/index.d.ts.map +0 -0
- package/dist/kit/data-table.d.ts +0 -0
- package/dist/kit/data-table.d.ts.map +0 -0
- package/dist/kit/flex-view.d.ts +0 -0
- package/dist/kit/flex-view.d.ts.map +0 -0
- package/dist/kit/form.d.ts +0 -0
- package/dist/kit/form.d.ts.map +0 -0
- package/dist/kit/index.d.ts +6 -0
- package/dist/kit/index.d.ts.map +1 -1
- package/dist/kit/list.d.ts +0 -0
- package/dist/kit/list.d.ts.map +0 -0
- package/dist/kit/theme-boot.generated.d.ts +3 -0
- package/dist/kit/theme-boot.generated.d.ts.map +1 -0
- package/dist/kit/theme.d.ts +34 -0
- package/dist/kit/theme.d.ts.map +1 -0
- package/dist/mixins/context-menu.d.ts +0 -0
- package/dist/mixins/context-menu.d.ts.map +0 -0
- package/dist/mixins/draggable.d.ts +0 -0
- package/dist/mixins/draggable.d.ts.map +0 -0
- package/dist/mixins/dropdown.d.ts +0 -0
- package/dist/mixins/dropdown.d.ts.map +0 -0
- package/dist/mixins/editable.d.ts +0 -0
- package/dist/mixins/editable.d.ts.map +0 -0
- package/dist/mixins/grid-navigation.d.ts +0 -0
- package/dist/mixins/grid-navigation.d.ts.map +0 -0
- package/dist/mixins/index.d.ts +0 -0
- package/dist/mixins/index.d.ts.map +0 -0
- package/dist/mixins/infinite-scroll.d.ts +0 -0
- package/dist/mixins/infinite-scroll.d.ts.map +0 -0
- package/dist/mixins/registry.d.ts +0 -0
- package/dist/mixins/registry.d.ts.map +1 -1
- package/dist/mixins/resizable.d.ts +0 -0
- package/dist/mixins/resizable.d.ts.map +0 -0
- package/dist/mixins/sortable.d.ts +0 -0
- package/dist/mixins/sortable.d.ts.map +1 -1
- package/dist/mixins/tooltip.d.ts +0 -0
- package/dist/mixins/tooltip.d.ts.map +0 -0
- package/dist/mixins/types.d.ts +8 -0
- package/dist/mixins/types.d.ts.map +1 -1
- package/dist/mixins/utils.d.ts +0 -0
- package/dist/mixins/utils.d.ts.map +0 -0
- package/dist/plugins/async-validators.d.ts +0 -0
- package/dist/plugins/async-validators.d.ts.map +1 -1
- package/dist/plugins/builtins.d.ts +0 -0
- package/dist/plugins/builtins.d.ts.map +0 -0
- package/dist/plugins/date-utils.d.ts +0 -0
- package/dist/plugins/date-utils.d.ts.map +1 -1
- package/dist/plugins/plugin-manager.d.ts +0 -0
- package/dist/plugins/plugin-manager.d.ts.map +0 -0
- package/dist/plugins/rich-text.d.ts +0 -0
- package/dist/plugins/rich-text.d.ts.map +1 -1
- package/dist/plugins/types.d.ts +0 -0
- package/dist/plugins/types.d.ts.map +0 -0
- package/dist/realtime/azure-pubsub-manager.d.ts +0 -0
- package/dist/realtime/azure-pubsub-manager.d.ts.map +0 -0
- package/dist/realtime/collab/collab-session.d.ts +0 -0
- package/dist/realtime/collab/collab-session.d.ts.map +0 -0
- package/dist/realtime/collab/cursor-overlay.d.ts +0 -0
- package/dist/realtime/collab/cursor-overlay.d.ts.map +0 -0
- package/dist/realtime/collab/textarea-adapter.d.ts +0 -0
- package/dist/realtime/collab/textarea-adapter.d.ts.map +0 -0
- package/dist/realtime/ot/client.d.ts +0 -0
- package/dist/realtime/ot/client.d.ts.map +0 -0
- package/dist/realtime/ot/server.d.ts +0 -0
- package/dist/realtime/ot/server.d.ts.map +0 -0
- package/dist/realtime/ot/text-operation.d.ts +0 -0
- package/dist/realtime/ot/text-operation.d.ts.map +0 -0
- package/dist/realtime/reconnect.d.ts +0 -0
- package/dist/realtime/reconnect.d.ts.map +0 -0
- package/dist/realtime/sse-manager.d.ts +0 -0
- package/dist/realtime/sse-manager.d.ts.map +0 -0
- package/dist/realtime/types.d.ts +0 -0
- package/dist/realtime/types.d.ts.map +0 -0
- package/dist/realtime/websocket-manager.d.ts +0 -0
- package/dist/realtime/websocket-manager.d.ts.map +0 -0
- package/dist/theme-boot.js +17 -0
- package/dist/theme.css +184 -18
- package/dist/tokens/arethesis.resolver.json +57 -0
- package/dist/tokens/base.tokens.json +55 -0
- package/dist/tokens/dark-high-contrast.tokens.json +172 -0
- package/dist/tokens/dark.tokens.json +331 -0
- package/dist/tokens/light-high-contrast.tokens.json +115 -0
- package/dist/tokens/light.tokens.json +331 -0
- package/dist/utils/backoff.d.ts +0 -0
- package/dist/utils/backoff.d.ts.map +0 -0
- package/dist/utils/dates.d.ts +0 -0
- package/dist/utils/dates.d.ts.map +0 -0
- package/dist/utils/dom.d.ts +0 -0
- package/dist/utils/dom.d.ts.map +0 -0
- package/dist/utils/emitter.d.ts +0 -0
- package/dist/utils/emitter.d.ts.map +0 -0
- package/dist/utils/path.d.ts +0 -0
- package/dist/utils/path.d.ts.map +0 -0
- package/dist/utils/sanitize.d.ts +0 -0
- package/dist/utils/sanitize.d.ts.map +0 -0
- package/dist/utils/url.d.ts +0 -0
- package/dist/utils/url.d.ts.map +0 -0
- package/dist/version.d.ts +3 -0
- package/dist/version.d.ts.map +1 -0
- package/package.json +11 -4
- package/dist/arethesis-z8eGA7mL.js.map +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,39 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.1.3
|
|
4
|
+
|
|
5
|
+
0.1.2 was tagged but never published; its changes are in this release.
|
|
6
|
+
|
|
7
|
+
### Changed
|
|
8
|
+
|
|
9
|
+
- **Smoother drag and drop** (`sortable`), following [dnd kit](https://dndkit.com/)'s approach:
|
|
10
|
+
- **Starting:** a drag starts after a few pixels of movement, or a press-and-hold on touch screens, so clicks, taps and scrolling still work.
|
|
11
|
+
- **The item stays in place in the DOM** while it's lifted, so components inside it keep their state. Dragging a dashboard panel no longer re-renders it.
|
|
12
|
+
- **The drop position** is the item under the pointer, or the nearest one in two dimensions, so grids, wrapping rows and panels of mixed sizes behave. The closest container wins even from the gap between containers.
|
|
13
|
+
- **Animation:** neighbours slide aside instead of jumping, and the item glides into place on drop. There's no animation with reduced motion.
|
|
14
|
+
- **Auto-scroll** near the edges of scroll containers and the page.
|
|
15
|
+
- New options: `animation`, `activationDistance`, `touchDelay`, `autoScroll`. New event: `sortable:move`.
|
|
16
|
+
|
|
17
|
+
### Fixed
|
|
18
|
+
|
|
19
|
+
- `<a-flex-view>`: splitters now appear next to a panel as soon as it's dragged into another row.
|
|
20
|
+
- `sortable:end` now fires once the dropped item is in its final position, so listeners can measure it.
|
|
21
|
+
- Mixins destroyed with `instance.destroy()` are now removed from the registry, so they can be applied to the same element again. Before, `<a-flex-view>` panels could no longer be dragged after "Reset layout".
|
|
22
|
+
|
|
23
|
+
## 0.1.1
|
|
24
|
+
|
|
25
|
+
### Added
|
|
26
|
+
|
|
27
|
+
- **Design tokens.** The theme is now defined as [W3C design tokens](https://www.w3.org/community/reports/design-tokens/CG-FINAL-format-20251028/) (Design Tokens Format Module 2025.10), with a resolver document for light, dark and high-contrast themes. They're published as `arethesis/tokens/*`, so design tools (such as Tokens Studio) and Style Dictionary can use the same values. `theme.css` is generated from them, and tests keep the two in sync.
|
|
28
|
+
- **High-contrast theme.** Follows `prefers-contrast: more`, or `data-contrast="more"` on `<html>`. Every text color meets WCAG AAA contrast (7:1), borders reach 3:1, and focus rings are solid.
|
|
29
|
+
- **Flash-free theme switching.**
|
|
30
|
+
- `setTheme()`, `setContrast()`, `getTheme()` and `getContrast()` switch and remember the user's choice.
|
|
31
|
+
- A boot snippet applies a saved choice before the first paint, so the page never flashes the wrong theme: either the drop-in `arethesis/components/theme-boot.js`, or `themeBootHtml()` for servers.
|
|
32
|
+
|
|
33
|
+
### Changed
|
|
34
|
+
|
|
35
|
+
- The release workflow is safe to re-run: it skips versions already on npm and releases that already exist.
|
|
36
|
+
|
|
3
37
|
## 0.1.0
|
|
4
38
|
|
|
5
39
|
The first public release.
|
package/LICENSE
CHANGED
|
File without changes
|
package/README.md
CHANGED
|
@@ -83,7 +83,8 @@ When the server sends `invalidate { type: "Person", id: 42 }` over SSE, every `<
|
|
|
83
83
|
| **Collaboration** | `TextOperation` OT, `OTClient`, a reference `CollabServer`, and `CollabSession` with presence and live cursors |
|
|
84
84
|
| **Mixins** | `draggable`, `editable`, `grid-navigation`, `infinite-scroll`, `sortable`, `resizable`, `dropdown`, `tooltip`, `context-menu` |
|
|
85
85
|
| **Plugins** | `date-utils`, `async-validators`, a dependency-free `rich-text` editor, and an API for your own |
|
|
86
|
-
| **Component kit** | `<a-data-table>`, `<a-flex-view>`, `<a-list>`, `<a-form>` and a themeable stylesheet
|
|
86
|
+
| **Component kit** | `<a-data-table>`, `<a-flex-view>`, `<a-list>`, `<a-form>` and a themeable stylesheet: light, dark and high contrast, without a flash on load |
|
|
87
|
+
| **Design tokens** | The theme as [W3C design tokens](https://www.w3.org/community/reports/design-tokens/CG-FINAL-format-20251028/) (2025.10) with a resolver, published as `arethesis/tokens/*` |
|
|
87
88
|
|
|
88
89
|
## Documentation
|
|
89
90
|
|