@ethora/chat-component 26.9.0 → 26.9.2

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/dist/main.js CHANGED
@@ -1,4 +1,4 @@
1
- import { b5 as a, b6 as r, b7 as b, b8 as o, b9 as t, ba as i, bb as p, bc as u, bd as h, be as n, bf as l, bg as d, bh as f, L as m, bi as T, bj as g, bk as y, bl as I, bm as R, bn as c, bo as k, bp as C, bq as A, ak as E, al as Q, br as F, bs as M } from "./main-BHtKhpBZ.js";
1
+ import { b5 as a, b6 as r, b7 as b, b8 as o, b9 as t, ba as i, bb as p, bc as u, bd as h, be as n, bf as l, bg as d, bh as f, L as m, bi as T, bj as g, bk as y, bl as I, bm as R, bn as c, bo as k, bp as C, bq as A, ak as E, al as Q, br as F, bs as M } from "./main-DaxJ3rMp.js";
2
2
  export {
3
3
  a as AuthTestIds,
4
4
  r as Chat,
@@ -29,6 +29,18 @@ export declare function useThemeTokenStyle(colors?: IConfig['colors'], typograph
29
29
  export declare function ThemeTokens({ config, }: {
30
30
  config?: Pick<IConfig, 'colors' | 'typography' | 'colorScheme'>;
31
31
  }): null;
32
+ /**
33
+ * The config the HOST passed as a prop, published so the inner roots can
34
+ * theme themselves from it on the very first frame.
35
+ *
36
+ * The store copy of the config only exists after ConfigEnabler has
37
+ * dispatched it, which is a render later. Until then a component reading
38
+ * the store sees the slice default - light - and paints light tokens over
39
+ * the dark ones it inherits, which is the white flash a dark-mode chat
40
+ * showed while it started up.
41
+ */
42
+ export declare const HostConfigContext: import('react').Context<Pick<IConfig, "colorScheme" | "colors" | "typography">>;
43
+ export declare const useHostConfig: () => Pick<IConfig, "colorScheme" | "colors" | "typography">;
32
44
  /**
33
45
  * Resolve `config.colorScheme` to the scheme to render. `'system'` tracks the
34
46
  * OS setting live; anything else (including unset) is taken as given, with
package/dist/version.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const ETHORA_CHAT_COMPONENT_VERSION = "26.7.4";
1
+ export declare const ETHORA_CHAT_COMPONENT_VERSION = "26.9.1";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ethora/chat-component",
3
- "version": "26.9.0",
3
+ "version": "26.9.2",
4
4
  "type": "module",
5
5
  "main": "dist/main.js",
6
6
  "types": "dist/main.d.ts",