@hadoku/task-ui-components 4.22.1 → 4.22.4

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/src/index.ts CHANGED
@@ -20,6 +20,7 @@
20
20
  export { HadokuThemePicker } from './components/HadokuThemePicker'
21
21
  export { AppHeader } from './components/AppHeader'
22
22
  export { ConnectedSettings } from './components/ConnectedSettings'
23
+ export { AVATAR_EVENT } from './lib/avatarEvent'
23
24
  // Re-exported from @wolffm/themes, which now owns the context AND the provider
24
25
  // that fills it. These are RE-EXPORTS, not re-declarations: every consumer gets
25
26
  // the one context object from themes, which is what makes a duplicated copy of
@@ -94,7 +95,7 @@ export {
94
95
  // a prop type you cannot render is only useful for reimplementing the control.
95
96
  export type { ThemeName, ThemeFamily, DropdownPlacement, ThemeMode } from './types'
96
97
  export type { AppHeaderProps } from './components/AppHeader'
97
- export type { ConnectedSettingsProps } from './components/ConnectedSettings'
98
+ export type { AppSettingsTab, ConnectedSettingsProps } from './components/ConnectedSettings'
98
99
  export type {
99
100
  ContentLevelState,
100
101
  Identity,
@@ -0,0 +1,11 @@
1
+ /**
2
+ * Fired on `window` after every avatar change made in the settings popout
3
+ * (AvatarPicker), with the new avatar settings as `detail` (hadoku_site's
4
+ * `AvatarSettings`, @wolffm/prefs-client/avatar). A host page listens to update
5
+ * what it shows (watchparty sends the new character to its room) without
6
+ * polling prefs-api.
7
+ *
8
+ * Its own module, free of imports, so exporting it from the package entry adds
9
+ * no type dependency on prefs-client for consumers.
10
+ */
11
+ export const AVATAR_EVENT = 'hadoku:avatar'