@brokerize/elements 1.4.1 → 1.5.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/CHANGELOG.md CHANGED
@@ -1,5 +1,16 @@
1
1
  # Changelog
2
2
 
3
+ # 1.5.0 (released 2025-12-01)
4
+
5
+ - `ADDED` option for switching between order size in `pieces` vs. monetary amount (available automatically if a `SecurityQuotesProvider` provides quotes)
6
+ - `FIXED` styling issue (light font on light background) in the `PortfolioSelect` dropdown
7
+ - `CLEANUP` update `@brokerize/client` package to `v1.3.7` (cf. https://github.com/brokerize/client-js/compare/v1.3.0...v1.3.7)
8
+
9
+ # 1.4.2 (released 2025-09-26)
10
+
11
+ - `ADDED` `preferredExchangeId` can now be provided in the `BrokerizeMain` config
12
+ - `ADDED` `zl-brokerlist` font size variables for more granular theming
13
+
3
14
  # 1.4.1 (released 2025-09-08)
4
15
 
5
16
  - `FIXED` In some environments, `crypto.randomUUID()` is not available. This was used for generating IDs in the previous version and is now replaced with `nanoid`
package/README.md CHANGED
@@ -267,15 +267,16 @@ createBrokerizeMain({
267
267
 
268
268
  ### properties
269
269
 
270
- | Property | Description | optional |
271
- | :--------------- | -------------------------------------------------------------------------------------------------------------- | :------: |
272
- | apiCtx | Instance of `AuthorizedApiContext` from `@brokerize/client` | ❌ |
273
- | theme | You can use the <a href="https://app.brokerize.com/theming">brokerize theme designer</a> to build a theme JSON | &#9989; |
274
- | useNavigation | Show the default navigation bar on `BrokerizeMain` | &#9989; |
275
- | addFrame | Add a "powered by brokerize" frame to the component. Defaults to true. | &#9989; |
276
- | supportLink | Add a support link to the brokerize frame config, e.g. `{ emailSubject: 'Help needed for trading in XYZ app'}` | &#9989; |
277
- | openExternalLink | A function for handling links to external documents, e.g. cost estimations | &#9989; |
278
- | returnToUrl | URL to return to after login | &#9989; |
270
+ | Property | Description | optional |
271
+ | :------------------ | -------------------------------------------------------------------------------------------------------------------------------------------------- | :------: |
272
+ | apiCtx | Instance of `AuthorizedApiContext` from `@brokerize/client` | &#10060; |
273
+ | theme | You can use the <a href="https://app.brokerize.com/theming">brokerize theme designer</a> to build a theme JSON | &#9989; |
274
+ | useNavigation | Show the default navigation bar on `BrokerizeMain` | &#9989; |
275
+ | addFrame | Add a "powered by brokerize" frame to the component. Defaults to true. | &#9989; |
276
+ | supportLink | Add a support link to the brokerize frame config, e.g. `{ emailSubject: 'Help needed for trading in XYZ app'}` | &#9989; |
277
+ | openExternalLink | A function for handling links to external documents, e.g. cost estimations | &#9989; |
278
+ | returnToUrl | URL to return to after login | &#9989; |
279
+ | preferredExchangeId | One of the Exchange IDs as returned by the brokerize API's GetExchanges endpoint, will be set as the default exchange _if_ supported by the broker | &#9989; |
279
280
 
280
281
  ### events
281
282
 
package/dist/bundle.d.ts CHANGED
@@ -106,6 +106,11 @@ export declare type BrokerizeMainConfig = BrokerizeBaseConfig & {
106
106
  * If provided, OAuth broker logins will return to this URL. Defaults to window.location.href.
107
107
  */
108
108
  returnToUrl?: string;
109
+ /**
110
+ * Can be provided to pick a default exchange from the known brokerize exchanges.
111
+ * Note that it may be ignored depending on broker's preferences.
112
+ */
113
+ preferredExchangeId?: number;
109
114
  };
110
115
 
111
116
  export declare type BrokerizeMainElement = BrokerizeElement & {
@@ -905,6 +910,8 @@ export declare type ThemeTokens = {
905
910
  'zl-font-weight-semibold'?: string;
906
911
  'zl-footer-color'?: string;
907
912
  'zl-footer-font-size'?: string;
913
+ 'zl-brokerlist-font-size'?: string;
914
+ 'zl-brokerlist-checkbox-font-size'?: string;
908
915
  'zl-form-item-background-color'?: string;
909
916
  'zl-form-item-border-radius'?: string;
910
917
  'zl-form-item-border'?: string;