@hiver/connector-agent 4.22.5-appsActivation-beta.1 → 4.22.5-appsActivation-beta.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hiver/connector-agent",
3
- "version": "4.22.5-appsActivation-beta.1",
3
+ "version": "4.22.5-appsActivation-beta.2",
4
4
  "main": "index.es.js",
5
5
  "module": "index.es.js",
6
6
  "types": "index.d.ts",
@@ -1,12 +1,15 @@
1
1
  import { RootState, AppStore } from '../store';
2
2
  import { render as rtlRender, RenderOptions } from '@testing-library/react';
3
3
  import { default as userEvent } from '@testing-library/user-event';
4
+ import { IAvailableFtr } from '../context';
4
5
  interface ExtendedRenderOptions extends Omit<RenderOptions, 'queries'> {
5
6
  preloadedState?: Partial<RootState>;
6
7
  store?: AppStore;
8
+ /** Feature flags for the subtree. Defaults to none, so gated behaviour stays off. */
9
+ availableFeatures?: IAvailableFtr;
7
10
  }
8
11
  export declare const waitForLoadingToFinish: () => Promise<void>;
9
- export declare const renderApp: (ui: React.ReactElement, { preloadedState, store, ...renderOptions }?: ExtendedRenderOptions) => Promise<{
12
+ export declare const renderApp: (ui: React.ReactElement, { preloadedState, store, availableFeatures, ...renderOptions }?: ExtendedRenderOptions) => Promise<{
10
13
  container: HTMLElement;
11
14
  baseElement: HTMLElement;
12
15
  debug: (baseElement?: import('react-dom/client').Container | (Element | Document) | Array<import('react-dom/client').Container | (Element | Document)> | undefined, maxLength?: number | undefined, options?: import('pretty-format').OptionsReceived | undefined) => void;
@@ -1 +1 @@
1
- {"version":3,"file":"test-utils.d.ts","sourceRoot":"","sources":["../../src/testing/test-utils.tsx"],"names":[],"mappings":"AAKA,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAE9C,OAAO,EAAE,MAAM,IAAI,SAAS,EAAqC,MAAM,wBAAwB,CAAC;AAChG,OAAO,SAAS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