@seedprotocol/react 0.7.13-next.1564.gb56e6c2 → 0.7.14-next.1599.gf17a207

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.
@@ -3,7 +3,11 @@ import { SeedConstructorOptions, SchemaFileInput } from '@seedprotocol/sdk';
3
3
  /** Schema input: path string or schema object. Merged into config.schema at init. */
4
4
  type SchemaInput = string | SchemaFileInput;
5
5
  export type SeedClientGateProps = {
6
- /** Seed client init options (config + addresses). Required. */
6
+ /**
7
+ * Seed client init options (config + addresses). Required. When `addresses` later holds
8
+ * different addresses the gate calls `client.setAddresses` with them; a remount runs init again,
9
+ * which leaves the stored addresses alone.
10
+ */
7
11
  initConfig: SeedConstructorOptions;
8
12
  /** Optional canonical schema. When provided, merged into config.schema and loaded at init (no separate import). */
9
13
  schema?: SchemaInput;
@@ -1 +1 @@
1
- {"version":3,"file":"SeedClientGate.d.ts","sourceRoot":"","sources":["../src/SeedClientGate.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAqB,KAAK,SAAS,EAAE,MAAM,OAAO,CAAA;AAEhE,OAAO,KAAK,EAAE,sBAAsB,EAAc,eAAe,EAAE,MAAM,mBAAmB,CAAA;AAG5F,qFAAqF;AACrF,KAAK,WAAW,GAAG,MAAM,GAAG,eAAe,CAAA;AAkB3C,MAAM,MAAM,mBAAmB,GAAG;IAChC,+DAA+D;IAC/D,UAAU,EAAE,sBAAsB,CAAA;IAClC,mHAAmH;IACnH,MAAM,CAAC,EAAE,WAAW,CAAA;IACpB,qEAAqE;IACrE,gBAAgB,CAAC,EAAE,SAAS,CAAA;IAC5B,gJAAgJ;IAChJ,mBAAmB,CAAC,EAAE,CAAC,GAAG,EAAE,OAAO,KAAK,IAAI,CAAA;IAC5C;;;;;OAKG;IACH,WAAW,CAAC,EAAE,CAAC,GAAG,EAAE,OAAO,KAAK,IAAI,CAAA;IACpC,yEAAyE;IACzE,gBAAgB,CAAC,EAAE,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 -10,7 +10,11 @@ export type SeedProviderProps = {
10
10
  * the config object changes, so define it outside the component.
11
11
  */
12
12
  config?: SeedConfig;
13
- /** Addresses passed to `client.init` with `config`. See `SeedConstructorOptions.addresses`. */
13
+ /**
14
+ * Addresses passed to `client.init` with `config`. See `SeedConstructorOptions.addresses`. When
15
+ * the prop later holds different addresses the provider calls `client.setAddresses` with them,
16
+ * so `[]` after a disconnect clears them. Leaving it out keeps the stored ones.
17
+ */
14
18
  addresses?: SeedConstructorOptions['addresses'];
15
19
  /**
16
20
  * Called when `client.init` fails, e.g. with `DatabaseNotPersistentError` (`DB_NOT_PERSISTENT`),
@@ -1 +1 @@
1
- {"version":3,"file":"SeedProvider.d.ts","sourceRoot":"","sources":["../src/SeedProvider.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,KAAK,SAAS,EAA8B,MAAM,OAAO,CAAA;AAEzE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AAGxD,OAAO,KAAK,EAAE,UAAU,EAAE,sBAAsB,EAAE,MAAM,mBAAmB,CAAA;AAG3E,MAAM,MAAM,iBAAiB,GAAG;IAC9B,QAAQ,EAAE,SAAS,CAAA;IACnB;;;;;OAKG;IACH,MAAM,CAAC,EAAE,UAAU,CAAA;IACnB,+FAA+F;IAC/F,SAAS,CAAC,EAAE,sBAAsB,CAAC,WAAW,CAAC,CAAA;IAC/C;;;;OAIG;IACH,WAAW,CAAC,EAAE,CAAC,GAAG,EAAE,OAAO,KAAK,IAAI,CAAA;IACpC,0GAA0G;IAC1G,WAAW,CAAC,EAAE,WAAW,CAAA;IACzB,0EAA0E;IAC1E,cAAc,CAAC,EAAE,KAAK,CAAC,gBAAgB,CAAC,WAAW,GAAG,IAAI,CAAC,CAAA;CAC5D,CAAA;AAKD;;;;GAIG;AACH,wBAAgB,+BAA+B,CAAC,WAAW,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAElF;AAwCD;;;;;;;GAOG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