@hiver/connector-agent 4.21.2 → 4.21.3-slackPerf-beta.0

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hiver/connector-agent",
3
- "version": "4.21.2",
3
+ "version": "4.21.3-slackPerf-beta.0",
4
4
  "main": "index.es.js",
5
5
  "module": "index.es.js",
6
6
  "types": "index.d.ts",
@@ -3,6 +3,15 @@ export declare const useConnectorTheme: () => {
3
3
  mode: ConnectorColorScheme;
4
4
  tokens: ConnectorThemeTokens;
5
5
  };
6
+ export declare const DEFAULT_THEME_CONFIG: ConnectorThemeConfig;
7
+ /**
8
+ * Memoised `--connector-*` custom properties for a surface's root element.
9
+ * Every public entry point set these via an inline
10
+ * `style={connectorThemeCssVariables(...)}` call, which rebuilt a ~90-key
11
+ * object on every render. React then diffed all 90 keys against identical
12
+ * values for zero DOM writes.
13
+ */
14
+ export declare const useConnectorThemeRootStyle: (config?: ConnectorThemeConfig) => import('react').CSSProperties;
6
15
  export declare const ConnectorThemeProvider: ({ config, children }: {
7
16
  config?: ConnectorThemeConfig;
8
17
  children: React.ReactNode;
@@ -1 +1 @@
1
- {"version":3,"file":"connector-theme-provider.d.ts","sourceRoot":"","sources":["../../src/theme/connector-theme-provider.tsx"],"names":[],"mappings":"AAWA,OAAO,KAAK,EAAE,oBAAoB,EAAE,oBAAoB,EAAE,oBAAoB,EAAE,MAAM,mBAAmB,CAAC;AAa1G,eAAO,MAAM,iBAAiB;UAVtB,oBAAoB;YAClB,oBAAoB;CAS0C,CAAC;AAEzE,eAAO,MAAM,sBAAsB,yBAGhC;IACD,MAAM,CAAC,EAAE,oBAAoB,CAAC;IAC9B,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B,4CAyIA,CAAC"}
1
+ {"version":3,"file":"connector-theme-provider.d.ts","sourceRoot":"","sources":["../../src/theme/connector-theme-provider.tsx"],"names":[],"mappings":"AAWA,OAAO,KAAK,EAAE,oBAAoB,EAAE,oBAAoB,EAAE,oBAAoB,EAAE,MAAM,mBAAmB,CAAC;AAa1G,eAAO,MAAM,iBAAiB;UAVtB,oBAAoB;YAClB,oBAAoB;CAS0C,CAAC;AASzE,eAAO,MAAM,oBAAoB,EAAE,oBAAwC,CAAC;AAE5E;;;;;;GAMG;AAEH,eAAO,MAAM,0BAA0B,YAAY,oBAAoB,kCAMtE,CAAC;AAEF,eAAO,MAAM,sBAAsB,yBAGhC;IACD,MAAM,CAAC,EAAE,oBAAoB,CAAC;IAC9B,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B,4CAgCA,CAAC"}