@backstage/core-app-api 1.8.1 → 1.8.2-next.1

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,24 @@
1
1
  # @backstage/core-app-api
2
2
 
3
+ ## 1.8.2-next.1
4
+
5
+ ### Patch Changes
6
+
7
+ - 8174cf4c0edf: Fixing MUI / Material UI references
8
+ - Updated dependencies
9
+ - @backstage/core-plugin-api@1.5.3-next.1
10
+ - @backstage/config@1.0.8
11
+ - @backstage/types@1.1.0
12
+ - @backstage/version-bridge@1.0.4
13
+
14
+ ## 1.8.2-next.0
15
+
16
+ ### Patch Changes
17
+
18
+ - Updated dependencies
19
+ - @backstage/core-plugin-api@1.5.3-next.0
20
+ - @backstage/config@1.0.8
21
+
3
22
  ## 1.8.1
4
23
 
5
24
  ### Patch Changes
@@ -865,7 +884,7 @@
865
884
 
866
885
  Deprecated the `SamlSession` and `GithubSession` types.
867
886
 
868
- - 784d8078ab: Removed direct and transitive MUI dependencies.
887
+ - 784d8078ab: Removed direct and transitive Material UI dependencies.
869
888
  - Updated dependencies
870
889
  - @backstage/config@0.1.12
871
890
  - @backstage/core-plugin-api@0.5.0
@@ -1064,7 +1083,7 @@
1064
1083
 
1065
1084
  The first and most commonly used one is `createApp` from the new `@backstage/app-defaults` package, which behaves just like the existing `createApp`. In the future this method is likely to be expanded to add more APIs and other pieces into the default setup, for example the Utility APIs from `@backstage/integration-react`.
1066
1085
 
1067
- The other option that we now provide is to use `createSpecializedApp` from `@backstage/core-app-api`. This is a more low-level API where you need to provide a full set of options, including your own `components`, `icons`, `defaultApis`, and `themes`. The `createSpecializedApp` way of creating an app is particularly useful if you are not using `@backstage/core-components` or MUI, as it allows you to avoid those dependencies completely.
1086
+ The other option that we now provide is to use `createSpecializedApp` from `@backstage/core-app-api`. This is a more low-level API where you need to provide a full set of options, including your own `components`, `icons`, `defaultApis`, and `themes`. The `createSpecializedApp` way of creating an app is particularly useful if you are not using `@backstage/core-components` or Material UI, as it allows you to avoid those dependencies completely.
1068
1087
 
1069
1088
  - 475edb5bc5: move the BehaviorSubject init into the constructor
1070
1089
  - Updated dependencies
package/dist/index.d.ts CHANGED
@@ -974,7 +974,7 @@ type AppContext = {
974
974
  * however, this low-level API allows you to provide a full set of options,
975
975
  * including your own `components`, `icons`, `defaultApis`, and `themes`. This
976
976
  * is particularly useful if you are not using `@backstage/core-components` or
977
- * MUI, as it allows you to avoid those dependencies completely.
977
+ * Material UI, as it allows you to avoid those dependencies completely.
978
978
  */
979
979
  declare function createSpecializedApp(options: AppOptions): BackstageApp;
980
980
 
package/dist/index.esm.js CHANGED
@@ -10,8 +10,15 @@ import { createRoutesFromChildren, Route, useLocation, matchRoutes, Routes, gene
10
10
  import useAsync from 'react-use/lib/useAsync';
11
11
  import useObservable from 'react-use/lib/useObservable';
12
12
 
13
+ var __defProp$l = Object.defineProperty;
14
+ var __defNormalProp$l = (obj, key, value) => key in obj ? __defProp$l(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
15
+ var __publicField$l = (obj, key, value) => {
16
+ __defNormalProp$l(obj, typeof key !== "symbol" ? key + "" : key, value);
17
+ return value;
18
+ };
13
19
  class ApiAggregator {
14
20
  constructor(...holders) {
21
+ __publicField$l(this, "holders");
15
22
  this.holders = holders;
16
23
  }
17
24
  get(apiRef) {
@@ -44,10 +51,16 @@ ApiProvider.propTypes = {
44
51
  children: PropTypes.node
45
52
  };
46
53
 
54
+ var __defProp$k = Object.defineProperty;
55
+ var __defNormalProp$k = (obj, key, value) => key in obj ? __defProp$k(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
56
+ var __publicField$k = (obj, key, value) => {
57
+ __defNormalProp$k(obj, typeof key !== "symbol" ? key + "" : key, value);
58
+ return value;
59
+ };
47
60
  class ApiResolver {
48
61
  constructor(factories) {
49
62
  this.factories = factories;
50
- this.apis = /* @__PURE__ */ new Map();
63
+ __publicField$k(this, "apis", /* @__PURE__ */ new Map());
51
64
  }
52
65
  /**
53
66
  * Validate factories by making sure that each of the apis can be created
@@ -113,6 +126,12 @@ class ApiResolver {
113
126
  }
114
127
  }
115
128
 
129
+ var __defProp$j = Object.defineProperty;
130
+ var __defNormalProp$j = (obj, key, value) => key in obj ? __defProp$j(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
131
+ var __publicField$j = (obj, key, value) => {
132
+ __defNormalProp$j(obj, typeof key !== "symbol" ? key + "" : key, value);
133
+ return value;
134
+ };
116
135
  var ScopePriority = /* @__PURE__ */ ((ScopePriority2) => {
117
136
  ScopePriority2[ScopePriority2["default"] = 10] = "default";
118
137
  ScopePriority2[ScopePriority2["app"] = 50] = "app";
@@ -121,7 +140,7 @@ var ScopePriority = /* @__PURE__ */ ((ScopePriority2) => {
121
140
  })(ScopePriority || {});
122
141
  class ApiFactoryRegistry {
123
142
  constructor() {
124
- this.factories = /* @__PURE__ */ new Map();
143
+ __publicField$j(this, "factories", /* @__PURE__ */ new Map());
125
144
  }
126
145
  /**
127
146
  * Register a new API factory. Returns true if the factory was added
@@ -215,12 +234,25 @@ function showLoginPopup(options) {
215
234
  });
216
235
  }
217
236
 
237
+ var __defProp$i = Object.defineProperty;
238
+ var __defNormalProp$i = (obj, key, value) => key in obj ? __defProp$i(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
239
+ var __publicField$i = (obj, key, value) => {
240
+ __defNormalProp$i(obj, typeof key !== "symbol" ? key + "" : key, value);
241
+ return value;
242
+ };
218
243
  let warned$1 = false;
219
244
  function defaultJoinScopes(scopes) {
220
245
  return [...scopes].join(" ");
221
246
  }
222
247
  class DefaultAuthConnector {
223
248
  constructor(options) {
249
+ __publicField$i(this, "discoveryApi");
250
+ __publicField$i(this, "environment");
251
+ __publicField$i(this, "provider");
252
+ __publicField$i(this, "joinScopesFunc");
253
+ __publicField$i(this, "authRequester");
254
+ __publicField$i(this, "sessionTransform");
255
+ __publicField$i(this, "enableExperimentalRedirectFlow");
224
256
  var _a;
225
257
  const {
226
258
  configApi,
@@ -364,8 +396,17 @@ class DefaultAuthConnector {
364
396
  }
365
397
  }
366
398
 
399
+ var __defProp$h = Object.defineProperty;
400
+ var __defNormalProp$h = (obj, key, value) => key in obj ? __defProp$h(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
401
+ var __publicField$h = (obj, key, value) => {
402
+ __defNormalProp$h(obj, typeof key !== "symbol" ? key + "" : key, value);
403
+ return value;
404
+ };
367
405
  class DirectAuthConnector {
368
406
  constructor(options) {
407
+ __publicField$h(this, "discoveryApi");
408
+ __publicField$h(this, "environment");
409
+ __publicField$h(this, "provider");
369
410
  const { discoveryApi, environment, provider } = options;
370
411
  this.discoveryApi = discoveryApi;
371
412
  this.environment = environment;
@@ -451,10 +492,17 @@ class SessionScopeHelper {
451
492
  }
452
493
  }
453
494
 
495
+ var __defProp$g = Object.defineProperty;
496
+ var __defNormalProp$g = (obj, key, value) => key in obj ? __defProp$g(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
497
+ var __publicField$g = (obj, key, value) => {
498
+ __defNormalProp$g(obj, typeof key !== "symbol" ? key + "" : key, value);
499
+ return value;
500
+ };
454
501
  class PublishSubject {
455
502
  constructor() {
456
- this.isClosed = false;
457
- this.observable = new ObservableImpl((subscriber) => {
503
+ __publicField$g(this, "isClosed", false);
504
+ __publicField$g(this, "terminatingError");
505
+ __publicField$g(this, "observable", new ObservableImpl((subscriber) => {
458
506
  if (this.isClosed) {
459
507
  if (this.terminatingError) {
460
508
  subscriber.error(this.terminatingError);
@@ -468,8 +516,8 @@ class PublishSubject {
468
516
  return () => {
469
517
  this.subscribers.delete(subscriber);
470
518
  };
471
- });
472
- this.subscribers = /* @__PURE__ */ new Set();
519
+ }));
520
+ __publicField$g(this, "subscribers", /* @__PURE__ */ new Set());
473
521
  }
474
522
  [Symbol.observable]() {
475
523
  return this;
@@ -509,7 +557,11 @@ class PublishSubject {
509
557
  }
510
558
  class BehaviorSubject {
511
559
  constructor(value) {
512
- this.subscribers = /* @__PURE__ */ new Set();
560
+ __publicField$g(this, "isClosed");
561
+ __publicField$g(this, "currentValue");
562
+ __publicField$g(this, "terminatingError");
563
+ __publicField$g(this, "observable");
564
+ __publicField$g(this, "subscribers", /* @__PURE__ */ new Set());
513
565
  this.isClosed = false;
514
566
  this.currentValue = value;
515
567
  this.terminatingError = void 0;
@@ -568,12 +620,18 @@ class BehaviorSubject {
568
620
  }
569
621
  }
570
622
 
623
+ var __defProp$f = Object.defineProperty;
624
+ var __defNormalProp$f = (obj, key, value) => key in obj ? __defProp$f(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
625
+ var __publicField$f = (obj, key, value) => {
626
+ __defNormalProp$f(obj, typeof key !== "symbol" ? key + "" : key, value);
627
+ return value;
628
+ };
571
629
  class SessionStateTracker {
572
630
  constructor() {
573
- this.subject = new BehaviorSubject(
631
+ __publicField$f(this, "subject", new BehaviorSubject(
574
632
  SessionState.SignedOut
575
- );
576
- this.signedIn = false;
633
+ ));
634
+ __publicField$f(this, "signedIn", false);
577
635
  }
578
636
  setIsSignedIn(isSignedIn) {
579
637
  if (this.signedIn !== isSignedIn) {
@@ -588,9 +646,21 @@ class SessionStateTracker {
588
646
  }
589
647
  }
590
648
 
649
+ var __defProp$e = Object.defineProperty;
650
+ var __defNormalProp$e = (obj, key, value) => key in obj ? __defProp$e(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
651
+ var __publicField$e = (obj, key, value) => {
652
+ __defNormalProp$e(obj, typeof key !== "symbol" ? key + "" : key, value);
653
+ return value;
654
+ };
591
655
  class RefreshingAuthSessionManager {
592
656
  constructor(options) {
593
- this.stateTracker = new SessionStateTracker();
657
+ __publicField$e(this, "connector");
658
+ __publicField$e(this, "helper");
659
+ __publicField$e(this, "sessionScopesFunc");
660
+ __publicField$e(this, "sessionShouldRefreshFunc");
661
+ __publicField$e(this, "stateTracker", new SessionStateTracker());
662
+ __publicField$e(this, "refreshPromise");
663
+ __publicField$e(this, "currentSession");
594
664
  const {
595
665
  connector,
596
666
  defaultScopes = /* @__PURE__ */ new Set(),
@@ -666,9 +736,18 @@ class RefreshingAuthSessionManager {
666
736
  }
667
737
  }
668
738
 
739
+ var __defProp$d = Object.defineProperty;
740
+ var __defNormalProp$d = (obj, key, value) => key in obj ? __defProp$d(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
741
+ var __publicField$d = (obj, key, value) => {
742
+ __defNormalProp$d(obj, typeof key !== "symbol" ? key + "" : key, value);
743
+ return value;
744
+ };
669
745
  class StaticAuthSessionManager {
670
746
  constructor(options) {
671
- this.stateTracker = new SessionStateTracker();
747
+ __publicField$d(this, "connector");
748
+ __publicField$d(this, "helper");
749
+ __publicField$d(this, "stateTracker", new SessionStateTracker());
750
+ __publicField$d(this, "currentSession");
672
751
  const { connector, defaultScopes = /* @__PURE__ */ new Set(), sessionScopes } = options;
673
752
  this.connector = connector;
674
753
  this.helper = new SessionScopeHelper({ sessionScopes, defaultScopes });
@@ -706,8 +785,19 @@ class StaticAuthSessionManager {
706
785
  }
707
786
  }
708
787
 
788
+ var __defProp$c = Object.defineProperty;
789
+ var __defNormalProp$c = (obj, key, value) => key in obj ? __defProp$c(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
790
+ var __publicField$c = (obj, key, value) => {
791
+ __defNormalProp$c(obj, typeof key !== "symbol" ? key + "" : key, value);
792
+ return value;
793
+ };
709
794
  class AuthSessionStore {
710
795
  constructor(options) {
796
+ __publicField$c(this, "manager");
797
+ __publicField$c(this, "storageKey");
798
+ __publicField$c(this, "schema");
799
+ __publicField$c(this, "sessionShouldRefreshFunc");
800
+ __publicField$c(this, "helper");
711
801
  const {
712
802
  manager,
713
803
  storageKey,
@@ -802,12 +892,24 @@ class AuthSessionStore {
802
892
  }
803
893
  }
804
894
 
895
+ var __defProp$b = Object.defineProperty;
896
+ var __defNormalProp$b = (obj, key, value) => key in obj ? __defProp$b(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
897
+ var __publicField$b = (obj, key, value) => {
898
+ __defNormalProp$b(obj, typeof key !== "symbol" ? key + "" : key, value);
899
+ return value;
900
+ };
805
901
  const DEFAULT_PROVIDER$a = {
806
902
  id: "oauth2",
807
903
  title: "Your Identity Provider",
808
904
  icon: () => null
809
905
  };
810
906
  class OAuth2 {
907
+ constructor(options) {
908
+ __publicField$b(this, "sessionManager");
909
+ __publicField$b(this, "scopeTransform");
910
+ this.sessionManager = options.sessionManager;
911
+ this.scopeTransform = options.scopeTransform;
912
+ }
811
913
  static create(options) {
812
914
  const {
813
915
  configApi,
@@ -852,10 +954,6 @@ class OAuth2 {
852
954
  });
853
955
  return new OAuth2({ sessionManager, scopeTransform });
854
956
  }
855
- constructor(options) {
856
- this.sessionManager = options.sessionManager;
857
- this.scopeTransform = options.scopeTransform;
858
- }
859
957
  async signIn() {
860
958
  await this.getAccessToken();
861
959
  }
@@ -1108,16 +1206,26 @@ class SamlAuth {
1108
1206
  }
1109
1207
  }
1110
1208
 
1209
+ var __defProp$a = Object.defineProperty;
1210
+ var __defNormalProp$a = (obj, key, value) => key in obj ? __defProp$a(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
1211
+ var __publicField$a = (obj, key, value) => {
1212
+ __defNormalProp$a(obj, typeof key !== "symbol" ? key + "" : key, value);
1213
+ return value;
1214
+ };
1111
1215
  const DEFAULT_PROVIDER$4 = {
1112
1216
  id: "microsoft",
1113
1217
  title: "Microsoft",
1114
1218
  icon: () => null
1115
1219
  };
1116
- const _MicrosoftAuth = class {
1117
- static create(options) {
1118
- return new _MicrosoftAuth(options);
1119
- }
1220
+ const _MicrosoftAuth = class _MicrosoftAuth {
1120
1221
  constructor(options) {
1222
+ __publicField$a(this, "oauth2");
1223
+ __publicField$a(this, "configApi");
1224
+ __publicField$a(this, "environment");
1225
+ __publicField$a(this, "provider");
1226
+ __publicField$a(this, "oauthRequestApi");
1227
+ __publicField$a(this, "discoveryApi");
1228
+ __publicField$a(this, "scopeTransform");
1121
1229
  const {
1122
1230
  configApi,
1123
1231
  environment = "development",
@@ -1151,6 +1259,9 @@ const _MicrosoftAuth = class {
1151
1259
  })
1152
1260
  };
1153
1261
  }
1262
+ static create(options) {
1263
+ return new _MicrosoftAuth(options);
1264
+ }
1154
1265
  microsoftGraph() {
1155
1266
  return this.oauth2[_MicrosoftAuth.MicrosoftGraphID];
1156
1267
  }
@@ -1227,8 +1338,8 @@ const _MicrosoftAuth = class {
1227
1338
  return this.microsoftGraph().sessionState$();
1228
1339
  }
1229
1340
  };
1341
+ __publicField$a(_MicrosoftAuth, "MicrosoftGraphID", "00000003-0000-0000-c000-000000000000");
1230
1342
  let MicrosoftAuth = _MicrosoftAuth;
1231
- MicrosoftAuth.MicrosoftGraphID = "00000003-0000-0000-c000-000000000000";
1232
1343
 
1233
1344
  const DEFAULT_PROVIDER$3 = {
1234
1345
  id: "onelogin",
@@ -1352,9 +1463,15 @@ class AtlassianAuth {
1352
1463
  }
1353
1464
  }
1354
1465
 
1466
+ var __defProp$9 = Object.defineProperty;
1467
+ var __defNormalProp$9 = (obj, key, value) => key in obj ? __defProp$9(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
1468
+ var __publicField$9 = (obj, key, value) => {
1469
+ __defNormalProp$9(obj, typeof key !== "symbol" ? key + "" : key, value);
1470
+ return value;
1471
+ };
1355
1472
  class AlertApiForwarder {
1356
1473
  constructor() {
1357
- this.subject = new PublishSubject();
1474
+ __publicField$9(this, "subject", new PublishSubject());
1358
1475
  }
1359
1476
  post(alert) {
1360
1477
  this.subject.next(alert);
@@ -1402,11 +1519,18 @@ class NoOpAnalyticsApi {
1402
1519
  }
1403
1520
  }
1404
1521
 
1522
+ var __defProp$8 = Object.defineProperty;
1523
+ var __defNormalProp$8 = (obj, key, value) => key in obj ? __defProp$8(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
1524
+ var __publicField$8 = (obj, key, value) => {
1525
+ __defNormalProp$8(obj, typeof key !== "symbol" ? key + "" : key, value);
1526
+ return value;
1527
+ };
1405
1528
  const STORAGE_KEY = "theme";
1406
1529
  class AppThemeSelector {
1407
1530
  constructor(themes) {
1408
1531
  this.themes = themes;
1409
- this.subject = new BehaviorSubject(void 0);
1532
+ __publicField$8(this, "activeThemeId");
1533
+ __publicField$8(this, "subject", new BehaviorSubject(void 0));
1410
1534
  }
1411
1535
  static createWithStorage(themes) {
1412
1536
  var _a;
@@ -1549,9 +1673,15 @@ class ErrorAlerter {
1549
1673
  }
1550
1674
  }
1551
1675
 
1676
+ var __defProp$7 = Object.defineProperty;
1677
+ var __defNormalProp$7 = (obj, key, value) => key in obj ? __defProp$7(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
1678
+ var __publicField$7 = (obj, key, value) => {
1679
+ __defNormalProp$7(obj, typeof key !== "symbol" ? key + "" : key, value);
1680
+ return value;
1681
+ };
1552
1682
  class ErrorApiForwarder {
1553
1683
  constructor() {
1554
- this.subject = new PublishSubject();
1684
+ __publicField$7(this, "subject", new PublishSubject());
1555
1685
  }
1556
1686
  post(error, context) {
1557
1687
  this.subject.next({ error, context });
@@ -1575,6 +1705,12 @@ class UnhandledErrorForwarder {
1575
1705
  }
1576
1706
  }
1577
1707
 
1708
+ var __defProp$6 = Object.defineProperty;
1709
+ var __defNormalProp$6 = (obj, key, value) => key in obj ? __defProp$6(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
1710
+ var __publicField$6 = (obj, key, value) => {
1711
+ __defNormalProp$6(obj, typeof key !== "symbol" ? key + "" : key, value);
1712
+ return value;
1713
+ };
1578
1714
  function validateFlagName(name) {
1579
1715
  if (name.length < 3) {
1580
1716
  throw new Error(
@@ -1594,7 +1730,8 @@ function validateFlagName(name) {
1594
1730
  }
1595
1731
  class LocalStorageFeatureFlags {
1596
1732
  constructor() {
1597
- this.registeredFeatureFlags = [];
1733
+ __publicField$6(this, "registeredFeatureFlags", []);
1734
+ __publicField$6(this, "flags");
1598
1735
  }
1599
1736
  registerFlag(flag) {
1600
1737
  validateFlagName(flag.name);
@@ -1786,6 +1923,12 @@ class FetchMiddlewares {
1786
1923
  }
1787
1924
  }
1788
1925
 
1926
+ var __defProp$5 = Object.defineProperty;
1927
+ var __defNormalProp$5 = (obj, key, value) => key in obj ? __defProp$5(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
1928
+ var __publicField$5 = (obj, key, value) => {
1929
+ __defNormalProp$5(obj, typeof key !== "symbol" ? key + "" : key, value);
1930
+ return value;
1931
+ };
1789
1932
  function hasScopes(searched, searchFor) {
1790
1933
  for (const scope of searchFor) {
1791
1934
  if (!searched.has(scope)) {
@@ -1805,10 +1948,10 @@ function joinScopes(scopes, ...moreScopess) {
1805
1948
  }
1806
1949
  class OAuthPendingRequests {
1807
1950
  constructor() {
1808
- this.requests = [];
1809
- this.subject = new BehaviorSubject(
1951
+ __publicField$5(this, "requests", []);
1952
+ __publicField$5(this, "subject", new BehaviorSubject(
1810
1953
  this.getCurrentPending()
1811
- );
1954
+ ));
1812
1955
  }
1813
1956
  request(scopes) {
1814
1957
  return new Promise((resolve, reject) => {
@@ -1855,11 +1998,17 @@ class OAuthPendingRequests {
1855
1998
  }
1856
1999
  }
1857
2000
 
2001
+ var __defProp$4 = Object.defineProperty;
2002
+ var __defNormalProp$4 = (obj, key, value) => key in obj ? __defProp$4(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
2003
+ var __publicField$4 = (obj, key, value) => {
2004
+ __defNormalProp$4(obj, typeof key !== "symbol" ? key + "" : key, value);
2005
+ return value;
2006
+ };
1858
2007
  class OAuthRequestManager {
1859
2008
  constructor() {
1860
- this.subject = new BehaviorSubject([]);
1861
- this.currentRequests = [];
1862
- this.handlerCount = 0;
2009
+ __publicField$4(this, "subject", new BehaviorSubject([]));
2010
+ __publicField$4(this, "currentRequests", []);
2011
+ __publicField$4(this, "handlerCount", 0);
1863
2012
  }
1864
2013
  createAuthRequester(options) {
1865
2014
  const handler = new OAuthPendingRequests();
@@ -1906,18 +2055,24 @@ class OAuthRequestManager {
1906
2055
  }
1907
2056
  }
1908
2057
 
2058
+ var __defProp$3 = Object.defineProperty;
2059
+ var __defNormalProp$3 = (obj, key, value) => key in obj ? __defProp$3(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
2060
+ var __publicField$3 = (obj, key, value) => {
2061
+ __defNormalProp$3(obj, typeof key !== "symbol" ? key + "" : key, value);
2062
+ return value;
2063
+ };
1909
2064
  const buckets = /* @__PURE__ */ new Map();
1910
- const _WebStorage = class {
2065
+ const _WebStorage = class _WebStorage {
1911
2066
  constructor(namespace, errorApi) {
1912
2067
  this.namespace = namespace;
1913
2068
  this.errorApi = errorApi;
1914
- this.subscribers = /* @__PURE__ */ new Set();
1915
- this.observable = new ObservableImpl((subscriber) => {
2069
+ __publicField$3(this, "subscribers", /* @__PURE__ */ new Set());
2070
+ __publicField$3(this, "observable", new ObservableImpl((subscriber) => {
1916
2071
  this.subscribers.add(subscriber);
1917
2072
  return () => {
1918
2073
  this.subscribers.delete(subscriber);
1919
2074
  };
1920
- });
2075
+ }));
1921
2076
  }
1922
2077
  static create(options) {
1923
2078
  var _a;
@@ -1998,8 +2153,8 @@ const _WebStorage = class {
1998
2153
  }
1999
2154
  }
2000
2155
  };
2156
+ __publicField$3(_WebStorage, "hasSubscribed", false);
2001
2157
  let WebStorage = _WebStorage;
2002
- WebStorage.hasSubscribed = false;
2003
2158
 
2004
2159
  const InternalAppContext = createContext(void 0);
2005
2160
 
@@ -2739,6 +2894,12 @@ const AppContextProvider = ({
2739
2894
  return /* @__PURE__ */ React.createElement(AppContext.Provider, { value: versionedValue, children });
2740
2895
  };
2741
2896
 
2897
+ var __defProp$2 = Object.defineProperty;
2898
+ var __defNormalProp$2 = (obj, key, value) => key in obj ? __defProp$2(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
2899
+ var __publicField$2 = (obj, key, value) => {
2900
+ __defNormalProp$2(obj, typeof key !== "symbol" ? key + "" : key, value);
2901
+ return value;
2902
+ };
2742
2903
  function mkError(thing) {
2743
2904
  return new Error(
2744
2905
  `Tried to access IdentityApi ${thing} before app was loaded`
@@ -2751,9 +2912,11 @@ function logDeprecation(thing) {
2751
2912
  }
2752
2913
  class AppIdentityProxy {
2753
2914
  constructor() {
2754
- this.resolveTarget = () => {
2755
- };
2756
- this.signOutTargetUrl = "/";
2915
+ __publicField$2(this, "target");
2916
+ __publicField$2(this, "waitForTarget");
2917
+ __publicField$2(this, "resolveTarget", () => {
2918
+ });
2919
+ __publicField$2(this, "signOutTargetUrl", "/");
2757
2920
  this.waitForTarget = new Promise((resolve) => {
2758
2921
  this.resolveTarget = resolve;
2759
2922
  });
@@ -2901,9 +3064,15 @@ const defaultConfigLoader = async (runtimeConfigJson = "__APP_INJECTED_RUNTIME_C
2901
3064
  return configs;
2902
3065
  };
2903
3066
 
3067
+ var __defProp$1 = Object.defineProperty;
3068
+ var __defNormalProp$1 = (obj, key, value) => key in obj ? __defProp$1(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
3069
+ var __publicField$1 = (obj, key, value) => {
3070
+ __defNormalProp$1(obj, typeof key !== "symbol" ? key + "" : key, value);
3071
+ return value;
3072
+ };
2904
3073
  class ApiRegistryBuilder {
2905
3074
  constructor() {
2906
- this.apis = [];
3075
+ __publicField$1(this, "apis", []);
2907
3076
  }
2908
3077
  add(api, impl) {
2909
3078
  this.apis.push([api.id, impl]);
@@ -2975,6 +3144,12 @@ function resolveRouteBindings(bindRoutes) {
2975
3144
  return result;
2976
3145
  }
2977
3146
 
3147
+ var __defProp = Object.defineProperty;
3148
+ var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
3149
+ var __publicField = (obj, key, value) => {
3150
+ __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
3151
+ return value;
3152
+ };
2978
3153
  var __accessCheck = (obj, member, msg) => {
2979
3154
  if (!member.has(obj))
2980
3155
  throw TypeError("Cannot " + msg);
@@ -3073,7 +3248,19 @@ class AppContextImpl {
3073
3248
  }
3074
3249
  class AppManager {
3075
3250
  constructor(options) {
3076
- this.appIdentityProxy = new AppIdentityProxy();
3251
+ __publicField(this, "apiHolder");
3252
+ __publicField(this, "configApi");
3253
+ __publicField(this, "apis");
3254
+ __publicField(this, "icons");
3255
+ __publicField(this, "plugins");
3256
+ __publicField(this, "featureFlags");
3257
+ __publicField(this, "components");
3258
+ __publicField(this, "themes");
3259
+ __publicField(this, "configLoader");
3260
+ __publicField(this, "defaultApis");
3261
+ __publicField(this, "bindRoutes");
3262
+ __publicField(this, "appIdentityProxy", new AppIdentityProxy());
3263
+ __publicField(this, "apiFactoryRegistry");
3077
3264
  __privateAdd(this, _getProviderCalled, false);
3078
3265
  var _a, _b, _c, _d, _e;
3079
3266
  this.apis = (_a = options.apis) != null ? _a : [];