Releases: manzt/anywidget
[email protected]
Patch Changes
- Updated dependencies [
581e40c
]:- @anywidget/[email protected]
@anywidget/[email protected]
Patch Changes
-
feat: Autocomplete event names for known model events (#151)
/** * @typedef Model * @prop {number} value - the current count */ /** @type {import("@anywidget/types").Render<Model>} */ export function render({ model, el }) { model.on("change:value", () => { /* ... */); // ^ auto-completed in editor }
[email protected]
Patch Changes
-
fix: re-expose model.send for custom messages (#146)
-
Updated dependencies [
5a5787b
,774f139
]:- @anywidget/[email protected]
- @anywidget/[email protected]
@anywidget/[email protected]
Patch Changes
- fix: Support refreshing muliple contexts (#144)
@anywidget/[email protected]
Patch Changes
- fix: re-expose model.send for custom messages (#146)
[email protected]
Patch Changes
- Updated dependencies [
79098be
]:- @anywidget/[email protected]
[email protected]
Minor Changes
-
feat: restrict backbone model access in render context (#140)
-
feat!: Limit view fields exposed to render function (#138)
BREAKING: The render function's argument has been refactored from a full
AnyView
to a simple object. This object only exposes themodel
andel
fields to the user-providedrender
function. This change aims to simplify the API and reduce potential misuse. Please ensure your render function only depends on these fields.
Patch Changes
- Updated dependencies [
fc2a626
,521c0ed
]:- @anywidget/[email protected]
@anywidget/[email protected]
Minor Changes
- fix: Support new user render context (#142)
@anywidget/[email protected]
Minor Changes
-
feat: restrict backbone model access in render context (#140)
-
feat!: Limit view fields exposed to render function (#138)
BREAKING: The render function's argument has been refactored from a full
AnyView
to a simple object. This object only exposes themodel
andel
fields to the user-providedrender
function. This change aims to simplify the API and reduce potential misuse. Please ensure your render function only depends on these fields.
[email protected]
Patch Changes
-
fix: Specify UTF-8 encoding in
FileContents.__str__
(#135)Fixes an
UnicodeDecodeError
observed on Windows when special characters are present in_esm
or_css
elements of a widget.