@api-client/ui 0.0.12 → 0.0.14

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.
Files changed (194) hide show
  1. package/demo/elements/authorization/cc.ts +56 -27
  2. package/dist/bindings/base/FileBindings.d.ts +4 -0
  3. package/dist/bindings/base/FileBindings.d.ts.map +1 -1
  4. package/dist/bindings/base/FileBindings.js +21 -1
  5. package/dist/bindings/base/FileBindings.js.map +1 -1
  6. package/dist/bindings/base/StoreBindings.d.ts +1 -17
  7. package/dist/bindings/base/StoreBindings.d.ts.map +1 -1
  8. package/dist/bindings/base/StoreBindings.js +0 -59
  9. package/dist/bindings/base/StoreBindings.js.map +1 -1
  10. package/dist/bindings/web/WebFileBindings.js +1 -1
  11. package/dist/bindings/web/WebFileBindings.js.map +1 -1
  12. package/dist/define/http/certificate-add.d.ts +9 -0
  13. package/dist/define/http/certificate-add.d.ts.map +1 -0
  14. package/dist/define/http/certificate-add.js +10 -0
  15. package/dist/define/http/certificate-add.js.map +1 -0
  16. package/dist/define/http/http-body-editor.d.ts.map +1 -1
  17. package/dist/define/http/http-body-editor.js +1 -1
  18. package/dist/define/http/http-body-editor.js.map +1 -1
  19. package/dist/define/ui/ui-segmented-button-set.d.ts +1 -1
  20. package/dist/define/ui/ui-segmented-button-set.d.ts.map +1 -1
  21. package/dist/define/ui/ui-segmented-button-set.js.map +1 -1
  22. package/dist/elements/authorization/ui/CC.styles.d.ts.map +1 -1
  23. package/dist/elements/authorization/ui/CC.styles.js +4 -9
  24. package/dist/elements/authorization/ui/CC.styles.js.map +1 -1
  25. package/dist/elements/authorization/ui/CcAuthorization.d.ts +14 -29
  26. package/dist/elements/authorization/ui/CcAuthorization.d.ts.map +1 -1
  27. package/dist/elements/authorization/ui/CcAuthorization.js +67 -158
  28. package/dist/elements/authorization/ui/CcAuthorization.js.map +1 -1
  29. package/dist/elements/http/BodyEditor.js +5 -5
  30. package/dist/elements/http/BodyEditor.js.map +1 -1
  31. package/dist/elements/http/BodyEditor.styles.d.ts +1 -1
  32. package/dist/elements/http/BodyEditor.styles.d.ts.map +1 -1
  33. package/dist/elements/http/BodyEditor.styles.js +5 -19
  34. package/dist/elements/http/BodyEditor.styles.js.map +1 -1
  35. package/dist/elements/http/CertificateAdd.element.d.ts +91 -0
  36. package/dist/elements/http/CertificateAdd.element.d.ts.map +1 -0
  37. package/dist/elements/http/CertificateAdd.element.js +389 -0
  38. package/dist/elements/http/CertificateAdd.element.js.map +1 -0
  39. package/dist/elements/http/CertificateAdd.styles.d.ts +3 -0
  40. package/dist/elements/http/CertificateAdd.styles.d.ts.map +1 -0
  41. package/dist/elements/http/CertificateAdd.styles.js +61 -0
  42. package/dist/elements/http/CertificateAdd.styles.js.map +1 -0
  43. package/dist/elements/project/ProjectRunReport.d.ts +2 -1
  44. package/dist/elements/project/ProjectRunReport.d.ts.map +1 -1
  45. package/dist/elements/project/ProjectRunReport.js.map +1 -1
  46. package/dist/elements/store/FilePicker.styles.d.ts.map +1 -1
  47. package/dist/elements/store/FilePicker.styles.js +1 -0
  48. package/dist/elements/store/FilePicker.styles.js.map +1 -1
  49. package/dist/elements/store/FilesLib.d.ts +2 -2
  50. package/dist/elements/store/FilesLib.d.ts.map +1 -1
  51. package/dist/elements/store/FilesLib.js.map +1 -1
  52. package/dist/events/EventTypes.d.ts +6 -7
  53. package/dist/events/EventTypes.d.ts.map +1 -1
  54. package/dist/events/EventTypes.js +7 -7
  55. package/dist/events/EventTypes.js.map +1 -1
  56. package/dist/events/Events.d.ts +6 -1
  57. package/dist/events/Events.d.ts.map +1 -1
  58. package/dist/events/Events.js +2 -0
  59. package/dist/events/Events.js.map +1 -1
  60. package/dist/events/FilesystemEvents.d.ts +8 -0
  61. package/dist/events/FilesystemEvents.d.ts.map +1 -0
  62. package/dist/events/FilesystemEvents.js +59 -0
  63. package/dist/events/FilesystemEvents.js.map +1 -0
  64. package/dist/events/HttpClientEvents.d.ts +0 -2
  65. package/dist/events/HttpClientEvents.d.ts.map +1 -1
  66. package/dist/events/HttpClientEvents.js +0 -2
  67. package/dist/events/HttpClientEvents.js.map +1 -1
  68. package/dist/http-client/idb/Arc18DataUpgrade.d.ts +0 -8
  69. package/dist/http-client/idb/Arc18DataUpgrade.d.ts.map +1 -1
  70. package/dist/http-client/idb/Arc18DataUpgrade.js +11 -206
  71. package/dist/http-client/idb/Arc18DataUpgrade.js.map +1 -1
  72. package/dist/http-client/store/Cursor.js +2 -2
  73. package/dist/http-client/store/Cursor.js.map +1 -1
  74. package/dist/http-client/store/HttpClientIdbDatabase.d.ts.map +1 -1
  75. package/dist/http-client/store/HttpClientIdbDatabase.js +2 -6
  76. package/dist/http-client/store/HttpClientIdbDatabase.js.map +1 -1
  77. package/dist/http-client/store/State.d.ts +1 -3
  78. package/dist/http-client/store/State.d.ts.map +1 -1
  79. package/dist/http-client/store/State.js.map +1 -1
  80. package/dist/http-client/store/StoreBroadcast.d.ts +0 -5
  81. package/dist/http-client/store/StoreBroadcast.d.ts.map +1 -1
  82. package/dist/http-client/store/StoreBroadcast.js +0 -7
  83. package/dist/http-client/store/StoreBroadcast.js.map +1 -1
  84. package/dist/http-client/store/idb/IdbStore.d.ts +1 -10
  85. package/dist/http-client/store/idb/IdbStore.d.ts.map +1 -1
  86. package/dist/http-client/store/idb/IdbStore.js +0 -48
  87. package/dist/http-client/store/idb/IdbStore.js.map +1 -1
  88. package/dist/http-client/store/types.d.ts +2 -56
  89. package/dist/http-client/store/types.d.ts.map +1 -1
  90. package/dist/http-client/store/types.js.map +1 -1
  91. package/dist/index.d.ts +1 -0
  92. package/dist/index.d.ts.map +1 -1
  93. package/dist/index.js +2 -0
  94. package/dist/index.js.map +1 -1
  95. package/dist/lib/files/FileUtils.d.ts +9 -0
  96. package/dist/lib/files/FileUtils.d.ts.map +1 -0
  97. package/dist/lib/files/FileUtils.js +13 -0
  98. package/dist/lib/files/FileUtils.js.map +1 -0
  99. package/dist/mixins/RouteMixin.d.ts +4 -0
  100. package/dist/mixins/RouteMixin.d.ts.map +1 -1
  101. package/dist/mixins/RouteMixin.js +1 -0
  102. package/dist/mixins/RouteMixin.js.map +1 -1
  103. package/dist/pages/api-client/ApiClient.screen.d.ts +8 -4
  104. package/dist/pages/api-client/ApiClient.screen.d.ts.map +1 -1
  105. package/dist/pages/api-client/ApiClient.screen.js +25 -4
  106. package/dist/pages/api-client/ApiClient.screen.js.map +1 -1
  107. package/dist/pages/api-client/ApiClient.styles.d.ts.map +1 -1
  108. package/dist/pages/api-client/ApiClient.styles.js +0 -12
  109. package/dist/pages/api-client/ApiClient.styles.js.map +1 -1
  110. package/dist/pages/api-client/pages/Files.page.d.ts.map +1 -1
  111. package/dist/pages/api-client/pages/Files.page.js +13 -0
  112. package/dist/pages/api-client/pages/Files.page.js.map +1 -1
  113. package/dist/pages/api-client/pages/Trash.page.d.ts.map +1 -1
  114. package/dist/pages/api-client/pages/Trash.page.js +3 -11
  115. package/dist/pages/api-client/pages/Trash.page.js.map +1 -1
  116. package/dist/ui/button/SegmentedButtonsSet.d.ts +14 -0
  117. package/dist/ui/button/SegmentedButtonsSet.d.ts.map +1 -1
  118. package/dist/ui/button/SegmentedButtonsSet.js.map +1 -1
  119. package/dist/ui/list/UiDropdownList.js +1 -1
  120. package/dist/ui/list/UiDropdownList.js.map +1 -1
  121. package/dist/ui/notification/SnackNotifications.d.ts +1 -0
  122. package/dist/ui/notification/SnackNotifications.d.ts.map +1 -1
  123. package/dist/ui/notification/SnackNotifications.js +7 -0
  124. package/dist/ui/notification/SnackNotifications.js.map +1 -1
  125. package/package.json +2 -2
  126. package/src/bindings/base/FileBindings.ts +25 -1
  127. package/src/bindings/base/StoreBindings.ts +1 -73
  128. package/src/bindings/web/WebFileBindings.ts +1 -1
  129. package/src/define/http/certificate-add.ts +12 -0
  130. package/src/define/http/http-body-editor.ts +1 -1
  131. package/src/define/ui/ui-segmented-button-set.ts +1 -1
  132. package/src/elements/authorization/ui/CC.styles.ts +4 -9
  133. package/src/elements/authorization/ui/CcAuthorization.ts +67 -167
  134. package/src/elements/http/BodyEditor.styles.ts +5 -19
  135. package/src/elements/http/BodyEditor.ts +5 -5
  136. package/src/elements/http/CertificateAdd.element.ts +443 -0
  137. package/src/elements/http/CertificateAdd.styles.ts +61 -0
  138. package/src/elements/project/ProjectRunReport.ts +2 -1
  139. package/src/elements/store/FilePicker.styles.ts +1 -0
  140. package/src/elements/store/FilesLib.ts +2 -2
  141. package/src/events/EventTypes.ts +7 -7
  142. package/src/events/Events.ts +2 -0
  143. package/src/events/FilesystemEvents.ts +63 -0
  144. package/src/events/HttpClientEvents.ts +0 -2
  145. package/src/http-client/idb/Arc18DataUpgrade.ts +84 -84
  146. package/src/http-client/store/Cursor.ts +2 -2
  147. package/src/http-client/store/HttpClientIdbDatabase.ts +5 -9
  148. package/src/http-client/store/State.ts +1 -5
  149. package/src/http-client/store/StoreBroadcast.ts +0 -8
  150. package/src/http-client/store/idb/IdbStore.ts +1 -51
  151. package/src/http-client/store/types.ts +2 -57
  152. package/src/index.ts +3 -0
  153. package/src/lib/files/FileUtils.ts +12 -0
  154. package/src/mixins/RouteMixin.ts +8 -1
  155. package/src/pages/api-client/ApiClient.screen.ts +33 -9
  156. package/src/pages/api-client/ApiClient.styles.ts +0 -12
  157. package/src/pages/api-client/pages/Files.page.ts +11 -0
  158. package/src/pages/api-client/pages/Trash.page.ts +3 -10
  159. package/src/ui/button/SegmentedButtonsSet.ts +16 -1
  160. package/src/ui/list/UiDropdownList.ts +1 -1
  161. package/src/ui/notification/SnackNotifications.ts +8 -0
  162. package/test/elements/http/BodyFormdataEditorElement.test.ts +458 -454
  163. package/test/elements/http/BodyMultipartEditorElement.test.ts +609 -605
  164. package/test/elements/http/BodyRawEditorElement.test.ts +60 -56
  165. package/test/elements/http/CertificateAdd.test.ts +430 -0
  166. package/test/events/EventTypes.test.ts +0 -22
  167. package/test/helpers/UiMock.ts +19 -2
  168. package/web-test-runner.config.mjs +6 -5
  169. package/dist/events/http-client/models/CertificatesEvents.d.ts +0 -12
  170. package/dist/events/http-client/models/CertificatesEvents.d.ts.map +0 -1
  171. package/dist/events/http-client/models/CertificatesEvents.js +0 -18
  172. package/dist/events/http-client/models/CertificatesEvents.js.map +0 -1
  173. package/dist/http-client/idb/AuthDataModel.d.ts +0 -60
  174. package/dist/http-client/idb/AuthDataModel.d.ts.map +0 -1
  175. package/dist/http-client/idb/AuthDataModel.js +0 -150
  176. package/dist/http-client/idb/AuthDataModel.js.map +0 -1
  177. package/dist/http-client/idb/HostsModel.d.ts +0 -25
  178. package/dist/http-client/idb/HostsModel.d.ts.map +0 -1
  179. package/dist/http-client/idb/HostsModel.js +0 -82
  180. package/dist/http-client/idb/HostsModel.js.map +0 -1
  181. package/dist/http-client/idb/LegacyMockedStore.d.ts +0 -214
  182. package/dist/http-client/idb/LegacyMockedStore.d.ts.map +0 -1
  183. package/dist/http-client/idb/LegacyMockedStore.js +0 -486
  184. package/dist/http-client/idb/LegacyMockedStore.js.map +0 -1
  185. package/dist/http-client/store/Validator.d.ts +0 -4
  186. package/dist/http-client/store/Validator.d.ts.map +0 -1
  187. package/dist/http-client/store/Validator.js +0 -32
  188. package/dist/http-client/store/Validator.js.map +0 -1
  189. package/src/events/http-client/models/CertificatesEvents.ts +0 -23
  190. package/src/http-client/idb/AuthDataModel.ts +0 -175
  191. package/src/http-client/idb/HostsModel.ts +0 -125
  192. package/src/http-client/idb/LegacyMockedStore.ts +0 -544
  193. package/src/http-client/store/Validator.ts +0 -33
  194. package/test/apic-ui.test.ts +0 -31
@@ -1,12 +1,14 @@
1
1
  import { html, TemplateResult } from 'lit';
2
- import { IRequestAuthorization, RequestAuthorization, ProjectMock } from '@api-client/core/build/browser.js';
2
+ import { IRequestAuthorization, RequestAuthorization, ProjectMock, ISpace, CertificateFile } from '@api-client/core/build/browser.js';
3
3
  import { reactive } from '../../../src/lib/decorators.js';
4
4
  import { DemoPage } from '../../../src/pages/demo/DemoPage.js';
5
5
  import { Authorization } from '../../../src/elements/authorization/ui/Authorization.js';
6
- import { WebHttpClientStoreBindings } from '../../../src/bindings/web/WebHttpClientStoreBindings.js';
6
+ import { WebStoreBindings } from '../../../src/bindings/web/WebStoreBindings.js';
7
+ import { WebConfigurationBindings } from '../../../src/bindings/web/WebConfigurationBindings.js';
8
+ import AppInfo from '../../../src/pages/api-client/AppInfo.js';
7
9
  import '../../../src/define/authorization/cc-authorization.js';
8
10
 
9
- const workerUri = new URL('/src/http-client/store/IdbThread.ts', import.meta.url).toString();
11
+ const configUri = new URL('/demo/lib/io/AppConfig.ts', import.meta.url).toString();
10
12
 
11
13
  const STORE_KEY = 'demo.authorization.editor.cc';
12
14
 
@@ -15,12 +17,16 @@ class ComponentDemoPage extends DemoPage {
15
17
 
16
18
  @reactive() authorization: IRequestAuthorization;
17
19
 
18
- store = new WebHttpClientStoreBindings({ code: 'demo', name: 'Demo', 'version': '0' }, workerUri);
19
-
20
- mock = new ProjectMock();
20
+ mocking = new ProjectMock();
21
21
 
22
22
  @reactive() initialized = false;
23
23
 
24
+ store = new WebStoreBindings(AppInfo, `http://localhost:8550/v1`);
25
+
26
+ config = new WebConfigurationBindings(AppInfo, configUri);
27
+
28
+ space?: ISpace;
29
+
24
30
  constructor() {
25
31
  super();
26
32
  this.store.space = 'demo-space';
@@ -30,13 +36,41 @@ class ComponentDemoPage extends DemoPage {
30
36
  const auth = RequestAuthorization.fromTypedConfig('client certificate', {}, false);
31
37
  this.authorization = auth.toJSON();
32
38
  }
33
-
34
- this.init();
35
39
  }
36
40
 
37
- async init(): Promise<void> {
41
+ async initialize(): Promise<void> {
42
+ await this.config.initialize();
38
43
  await this.store.initialize();
44
+ const env = await this.config.environment.read();
45
+ await this.store.global.set(env);
46
+ this.authenticated = await this.store.auth.isAuthenticated();
47
+ if (!this.authenticated) {
48
+ this.initialized = true;
49
+ return;
50
+ }
51
+ await this.afterAuth();
52
+ }
53
+
54
+ protected async afterAuth(): Promise<void> {
55
+ const spacesResult = await this.store.spaces.list();
56
+ const { items } = spacesResult;
57
+ const [space] = items;
58
+ if (!space) {
59
+ return;
60
+ }
61
+ this.space = space;
62
+ this.store.space = space.key;
63
+ await this.store.observeFiles();
39
64
  this.initialized = true;
65
+ this.render();
66
+ }
67
+
68
+ async handleAuthenticate(): Promise<void> {
69
+ const { store } = this;
70
+ await store.auth.authenticate({ updateEnvironment: true });
71
+ this.authenticated = true;
72
+ this.initialized = false;
73
+ await this.afterAuth();
40
74
  }
41
75
 
42
76
  restoreAuth(): void {
@@ -64,21 +98,15 @@ class ComponentDemoPage extends DemoPage {
64
98
  console.log('Requested to delete.');
65
99
  }
66
100
 
67
- protected handleGenerateCertificates(): void {
68
- this.generateCertificates();
69
- }
70
-
71
- protected handleClearCertificates(): void {
72
- this.clearCertificates();
73
- }
74
-
75
- async generateCertificates(): Promise<void> {
76
- const values = this.mock.certificates.certificates(100);
77
- await Promise.all(values.map(i => this.store.certificateAdd(i, '')));
78
- }
79
-
80
- async clearCertificates(): Promise<void> {
81
- await this.store.certificateEmpty('');
101
+ async handleCertificateAdd(): Promise<void> {
102
+ const { space, store } = this;
103
+ if (!space) {
104
+ return;
105
+ }
106
+ const cert = this.mocking.certificates.certificate();
107
+ const file = CertificateFile.fromCertificate(cert, space.key).toJSON();
108
+ await store.files.add(file);
109
+ await store.media.add(file.key, cert, 'application/json');
82
110
  }
83
111
 
84
112
  contentTemplate(): TemplateResult {
@@ -97,13 +125,14 @@ class ComponentDemoPage extends DemoPage {
97
125
  <section class="demo-section">
98
126
  <h2 class="title-large">Data configuration</h2>
99
127
  <div class="demo-row">
100
- <ui-button type="outlined" @click="${this.handleGenerateCertificates}">Generate Certificates</ui-button>
101
- <ui-button type="outlined" @click="${this.handleClearCertificates}">Clear certificates</ui-button>
128
+ <ui-button type="outlined" @click="${this.handleCertificateAdd}">Add a certificate</ui-button>
102
129
  </div>
103
130
  </section>
104
131
 
105
132
  <section class="demo-section">
106
133
  <cc-authorization
134
+ canDelete
135
+ canToggle
107
136
  .authorization="${this.authorization}"
108
137
  @change="${this.handleChange}"
109
138
  @delete="${this.handleDelete}"
@@ -114,4 +143,4 @@ class ComponentDemoPage extends DemoPage {
114
143
  }
115
144
 
116
145
  const instance = new ComponentDemoPage();
117
- instance.render();
146
+ instance.initialize();
@@ -130,6 +130,10 @@ export interface FileWriteOptions extends ReadWriteOptions {
130
130
  */
131
131
  export declare abstract class FileBindings extends PlatformBindings {
132
132
  initialize(): Promise<void>;
133
+ protected handleRequestSaveFile(e: Event): void;
134
+ protected handleRequestOpenFile(e: Event): void;
135
+ protected handleWriteFile(e: Event): void;
136
+ protected handleReadFile(e: Event): void;
133
137
  /**
134
138
  * Opens a dialog to pick a file to save.
135
139
  *
@@ -1 +1 @@
1
- {"version":3,"file":"FileBindings.d.ts","sourceRoot":"","sources":["../../../src/bindings/base/FileBindings.ts"],"names":[],"mappings":";;AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AAGzD,MAAM,WAAW,WAAW;IAC1B;;;;;OAKG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;;;;;;;;;;;OAYG;IACH,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,EAAE,CAAC,CAAC;CAClC;AAED,MAAM,WAAW,mBAAmB;IAClC;;;OAGG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;;OAGG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB;;OAEG;IACH,OAAO,CAAC,EAAE,WAAW,EAAE,CAAC;IAExB;;;;;OAKG;IACH,sBAAsB,CAAC,EAAE,OAAO,CAAC;CAClC;AAED,MAAM,WAAW,qBAAqB;IACpC;;OAEG;IACH,QAAQ,EAAE,OAAO,CAAC;IAElB;;;;;;OAMG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,WAAW,mBAAmB;IAClC;;;OAGG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;;OAGG;IACH,WAAW,CAAC,EAAE,MAAM,CA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/F;;;;;OAKG;IACH,QAAQ,CAAC,OAAO,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;CAC9C"}
1
+ {"version":3,"file":"FileBindings.d.ts","sourceRoot":"","sources":["../../../src/bindings/base/FileBindings.ts"],"names":[],"mappings":";;AACA,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AAGzD,MAAM,WAAW,WAAW;IAC1B;;;;;OAKG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;;;;;;;;;;;OAYG;IACH,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,EAAE,CAAC,CAAC;CAClC;AAED,MAAM,WAAW,mBAAmB;IAClC;;;OAGG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;;OAGG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB;;OAEG;IACH,OAAO,CAAC,EAAE,WAAW,EAAE,CAAC;IAExB;;;;;OAKG;IACH,sBAAsB,CAAC,EAAE,OAAO,CAAC;CAClC;AAED,MAAM,WAAW,qBAAqB;IACpC;;OAEG;IACH,QAAQ,EAAE,OAAO,CAAC;IAElB;;;;;;OAMG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,WAAW,mBAAmB;IAClC;;;OAGG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;;OAGG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;OAEG;IACH,OAAO,CAAC,EAAE,WAAW,EAAE,CAAC;IAExB;;;;;OAKG;IACH,sBAAsB,CAAC,EAAE,OAAO,CAAC;IAEjC;;;OAGG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED,MAAM,WAAW,qBAAqB;IACpC;;OAEG;IACH,QAAQ,EAAE,OAAO,CAAC;IAElB;;;;;;OAMG;IACH,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAC;CACrB;AAED,UAAU,gBAAgB;IACxB;;;;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AI,CAAC;CAC9C"}
@@ -1,10 +1,30 @@
1
+ import { EventTypes } from '../../events/EventTypes.js';
1
2
  import { PlatformBindings } from './PlatformBindings.js';
2
3
  /**
3
4
  * The base class for file access bindings.
4
5
  */
5
6
  export class FileBindings extends PlatformBindings {
6
7
  async initialize() {
7
- //
8
+ window.addEventListener(EventTypes.Filesystem.requestSaveFile, this.handleRequestSaveFile.bind(this));
9
+ window.addEventListener(EventTypes.Filesystem.requestOpenFile, this.handleRequestOpenFile.bind(this));
10
+ window.addEventListener(EventTypes.Filesystem.writeFile, this.handleWriteFile.bind(this));
11
+ window.addEventListener(EventTypes.Filesystem.readFile, this.handleReadFile.bind(this));
12
+ }
13
+ handleRequestSaveFile(e) {
14
+ const event = e;
15
+ event.detail.result = this.saveFileDialog(event.detail.options);
16
+ }
17
+ handleRequestOpenFile(e) {
18
+ const event = e;
19
+ event.detail.result = this.openFileDialog(event.detail.options);
20
+ }
21
+ handleWriteFile(e) {
22
+ const event = e;
23
+ event.detail.result = this.writeFile(event.detail.path, event.detail.contents, event.detail.options);
24
+ }
25
+ handleReadFile(e) {
26
+ const event = e;
27
+ event.detail.result = this.readFile(event.detail.path, event.detail.options);
8
28
  }
9
29
  }
10
30
  //# sourceMappingURL=FileBindings.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"FileBindings.js","sourceRoot":"","sources":["../../../src/bindings/base/FileBindings.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AA6IzD;;GAEG;AACH,MAAM,OAAgB,YAAa,SAAQ,gBAAgB;IACzD,KAAK,CAAC,UAAU;QACd,GAAG;IACL,CAAC;CAsCF","sourcesContent":["import { PlatformBindings } from './PlatformBindings.js';\n// import { EventTypes } from '../../events/EventTypes.js';\n\nexport interface IFileFilter {\n /**\n * An optional description of the category of files types allowed.\n * \n * @platform web\n * @platform electron\n */\n description?: string;\n /**\n * An Object with the keys set to the MIME type and the values an Array of file extensions.\n * \n * ```\n * \"description\": \"Images\",\n * \"accept\": {\n * 'image/*': ['.png', '.gif', '.jpeg', '.jpg']\n * }\n * ```\n * \n * @platform web\n * @platform electron\n */\n accept: Record<string, string[]>;\n}\n\nexport interface ISaveFileDialogInit {\n /**\n * Only when the platform supports it.\n * The dialog title. Cannot be displayed on some _Linux_ desktop environments.\n */\n title?: string;\n /**\n * Only when the platform supports it.\n * Absolute directory path, absolute file path, or file name to use by default.\n */\n defaultPath?: string;\n\n /**\n * The list of file filters to apply to the dialog.\n */\n filters?: IFileFilter[];\n\n /**\n * Default false. By default the picker should include an option to not apply any file type filters. \n * Setting this option to true means that option is not available.\n * \n * @platform web\n */\n excludeAcceptAllOption?: boolean;\n}\n\nexport interface ISaveFileDialogResult {\n /**\n * Whether or not the dialog was canceled.\n */\n canceled: boolean;\n\n /**\n * If the dialog is canceled, this will be `undefined`.\n * \n * In **electron** this is the path to the selected file.\n * In the **web** platform this is autogenerated id to the file handle\n * the app should use with the further communication.\n */\n filePath?: string;\n}\n\nexport interface IOpenFileDialogInit {\n /**\n * Only when the platform supports it.\n * The dialog title. Cannot be displayed on some _Linux_ desktop environments.\n */\n title?: string;\n /**\n * Only when the platform supports it.\n * Absolute directory path, absolute file path, or file name to use by default.\n */\n defaultPath?: string;\n /**\n * The list of file filters to apply to the dialog.\n */\n filters?: IFileFilter[];\n\n /**\n * Default false. By default the picker should include an option to not apply any file type filters. \n * Setting this option to true means that option is not available.\n * \n * @platform web\n */\n excludeAcceptAllOption?: boolean;\n\n /**\n * When set to true multiple files may be selected.\n * @platform web\n */\n multiple?: boolean;\n}\n\nexport interface IOpenFileDialogResult {\n /**\n * Whether or not the dialog was canceled.\n */\n canceled: boolean;\n\n /**\n * If the dialog is cancelled this will be an empty array.\n * \n * In **electron** this is an array of file paths chosen by the user.\n * In the **web** platform this is autogenerated list of ids to the file handles\n * the app should use with the further communication.\n */\n filePath?: string[];\n}\n\ninterface ReadWriteOptions {\n /**\n * Whether the `path` will no longer be used.\n * This is relevant for the `web` environment when the bindings keep a reference to a file entry.\n * This should always be set to true when the read/write operation is done only once.\n */\n dispose?: boolean;\n}\n\nexport interface FileReadOptions extends ReadWriteOptions {\n /**\n * The type of the return value. It can be either a buffer (ArrayBuffer in the web or Buffer in Node) or a string.\n * \n * @default string\n */\n returnType?: 'buffer' | 'string';\n}\n\nexport interface FileWriteOptions extends ReadWriteOptions {\n /**\n * File encoding.\n */\n encoding?: 'utf8';\n}\n\n/**\n * The base class for file access bindings.\n */\nexport abstract class FileBindings extends PlatformBindings {\n async initialize(): Promise<void> {\n // \n }\n\n /**\n * Opens a dialog to pick a file to save.\n * \n * @param opts The dialog configuration.\n */\n abstract saveFileDialog(opts?: ISaveFileDialogInit): Promise<ISaveFileDialogResult>;\n\n /**\n * Opens a dialog to pick a file for reading.\n * \n * @param opts The dialog configuration.\n */\n abstract openFileDialog(opts?: IOpenFileDialogInit): Promise<IOpenFileDialogResult>;\n\n /**\n * Writes contents to the file.\n * \n * @param path The path returned by the `saveFileDialog()`.\n * @param contents The contents to write to the file.\n */\n abstract writeFile(path: string, contents: BufferSource | Blob | string | Buffer, opts?: FileWriteOptions): Promise<void>;\n\n /**\n * Reads file data.\n * @param path The path returned by the `openFileDialog()`.\n * @param returnType The type of the return value. It can be either a buffer (ArrayBuffer in the web or Buffer in Node) or a string.\n */\n abstract readFile(path: string, opts?: FileReadOptions): Promise<Buffer | ArrayBuffer | string>;\n\n /**\n * Disposes of previously created path with the `saveFileDialog()` or `openFileDialog()`.\n * This is mandatory to call when during reading or writing to a file the `dispose` option is not set to true, after the file is no longer in use.\n * \n * @param path The previously created path.\n */\n abstract dispose(path: string): Promise<void>;\n}\n"]}
1
+ {"version":3,"file":"FileBindings.js","sourceRoot":"","sources":["../../../src/bindings/base/FileBindings.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,4BAA4B,CAAC;AACxD,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AA6IzD;;GAE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cAAc,CAAC,CAAQ;QAC/B,MAAM,KAAK,GAAG,CAA6G,CAAC;QAC5H,KAAK,CAAC,MAAM,CAAC,MAAM,GAAG,IAAI,CAAC,QAAQ,CAAC,KAAK,CAAC,MAAM,CAAC,IAAI,EAAE,KAAK,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;IAC/E,CAAC;CAsCF","sourcesContent":["import { EventTypes } from '../../events/EventTypes.js';\nimport { PlatformBindings } from './PlatformBindings.js';\n// import { EventTypes } from '../../events/EventTypes.js';\n\nexport interface IFileFilter {\n /**\n * An optional description of the category of files types allowed.\n * \n * @platform web\n * @platform electron\n */\n description?: string;\n /**\n * An Object with the keys set to the MIME type and the values an Array of file extensions.\n * \n * ```\n * \"description\": \"Images\",\n * \"accept\": {\n * 'image/*': ['.png', '.gif', '.jpeg', '.jpg']\n * }\n * ```\n * \n * @platform web\n * @platform electron\n */\n accept: Record<string, string[]>;\n}\n\nexport interface ISaveFileDialogInit {\n /**\n * Only when the platform supports it.\n * The dialog title. Cannot be displayed on some _Linux_ desktop environments.\n */\n title?: string;\n /**\n * Only when the platform supports it.\n * Absolute directory path, absolute file path, or file name to use by default.\n */\n defaultPath?: string;\n\n /**\n * The list of file filters to apply to the dialog.\n */\n filters?: IFileFilter[];\n\n /**\n * Default false. By default the picker should include an option to not apply any file type filters. \n * Setting this option to true means that option is not available.\n * \n * @platform web\n */\n excludeAcceptAllOption?: boolean;\n}\n\nexport interface ISaveFileDialogResult {\n /**\n * Whether or not the dialog was canceled.\n */\n canceled: boolean;\n\n /**\n * If the dialog is canceled, this will be `undefined`.\n * \n * In **electron** this is the path to the selected file.\n * In the **web** platform this is autogenerated id to the file handle\n * the app should use with the further communication.\n */\n filePath?: string;\n}\n\nexport interface IOpenFileDialogInit {\n /**\n * Only when the platform supports it.\n * The dialog title. Cannot be displayed on some _Linux_ desktop environments.\n */\n title?: string;\n /**\n * Only when the platform supports it.\n * Absolute directory path, absolute file path, or file name to use by default.\n */\n defaultPath?: string;\n /**\n * The list of file filters to apply to the dialog.\n */\n filters?: IFileFilter[];\n\n /**\n * Default false. By default the picker should include an option to not apply any file type filters. \n * Setting this option to true means that option is not available.\n * \n * @platform web\n */\n excludeAcceptAllOption?: boolean;\n\n /**\n * When set to true multiple files may be selected.\n * @platform web\n */\n multiple?: boolean;\n}\n\nexport interface IOpenFileDialogResult {\n /**\n * Whether or not the dialog was canceled.\n */\n canceled: boolean;\n\n /**\n * If the dialog is cancelled this will be an empty array.\n * \n * In **electron** this is an array of file paths chosen by the user.\n * In the **web** platform this is autogenerated list of ids to the file handles\n * the app should use with the further communication.\n */\n filePath?: string[];\n}\n\ninterface ReadWriteOptions {\n /**\n * Whether the `path` will no longer be used.\n * This is relevant for the `web` environment when the bindings keep a reference to a file entry.\n * This should always be set to true when the read/write operation is done only once.\n */\n dispose?: boolean;\n}\n\nexport interface FileReadOptions extends ReadWriteOptions {\n /**\n * The type of the return value. It can be either a buffer (ArrayBuffer in the web or Buffer in Node) or a string.\n * \n * @default string\n */\n returnType?: 'buffer' | 'string';\n}\n\nexport interface FileWriteOptions extends ReadWriteOptions {\n /**\n * File encoding.\n */\n encoding?: 'utf8';\n}\n\n/**\n * The base class for file access bindings.\n */\nexport abstract class FileBindings extends PlatformBindings {\n async initialize(): Promise<void> {\n window.addEventListener(EventTypes.Filesystem.requestSaveFile, this.handleRequestSaveFile.bind(this));\n window.addEventListener(EventTypes.Filesystem.requestOpenFile, this.handleRequestOpenFile.bind(this));\n window.addEventListener(EventTypes.Filesystem.writeFile, this.handleWriteFile.bind(this));\n window.addEventListener(EventTypes.Filesystem.readFile, this.handleReadFile.bind(this));\n }\n\n protected handleRequestSaveFile(e: Event): void {\n const event = e as CustomEvent<{ options?: ISaveFileDialogInit, result: Promise<ISaveFileDialogResult> }>;\n event.detail.result = this.saveFileDialog(event.detail.options);\n }\n\n protected handleRequestOpenFile(e: Event): void {\n const event = e as CustomEvent<{ options?: IOpenFileDialogInit, result: Promise<IOpenFileDialogResult> }>;\n event.detail.result = this.openFileDialog(event.detail.options);\n }\n\n protected handleWriteFile(e: Event): void {\n const event = e as CustomEvent<{ path: string, contents: BufferSource | Blob | string | Buffer, options?: FileWriteOptions, result: Promise<void> }>;\n event.detail.result = this.writeFile(event.detail.path, event.detail.contents, event.detail.options);\n }\n\n protected handleReadFile(e: Event): void {\n const event = e as CustomEvent<{ path: string, options?: FileReadOptions, result: Promise<Buffer | ArrayBuffer | string> }>;\n event.detail.result = this.readFile(event.detail.path, event.detail.options);\n }\n\n /**\n * Opens a dialog to pick a file to save.\n * \n * @param opts The dialog configuration.\n */\n abstract saveFileDialog(opts?: ISaveFileDialogInit): Promise<ISaveFileDialogResult>;\n\n /**\n * Opens a dialog to pick a file for reading.\n * \n * @param opts The dialog configuration.\n */\n abstract openFileDialog(opts?: IOpenFileDialogInit): Promise<IOpenFileDialogResult>;\n\n /**\n * Writes contents to the file.\n * \n * @param path The path returned by the `saveFileDialog()`.\n * @param contents The contents to write to the file.\n */\n abstract writeFile(path: string, contents: BufferSource | Blob | string | Buffer, opts?: FileWriteOptions): Promise<void>;\n\n /**\n * Reads file data.\n * @param path The path returned by the `openFileDialog()`.\n * @param returnType The type of the return value. It can be either a buffer (ArrayBuffer in the web or Buffer in Node) or a string.\n */\n abstract readFile(path: string, opts?: FileReadOptions): Promise<Buffer | ArrayBuffer | string>;\n\n /**\n * Disposes of previously created path with the `saveFileDialog()` or `openFileDialog()`.\n * This is mandatory to call when during reading or writing to a file the `dispose` option is not set to true, after the file is no longer in use.\n * \n * @param path The previously created path.\n */\n abstract dispose(path: string): Promise<void>;\n}\n"]}
@@ -1,4 +1,4 @@
1
- import { IBackendInfo, ContextListOptions, ContextListResult, IFile, IFileCreateOptions, AccessOperation, IUser, IAccessPatchInfo, IPatchInfo, IPatchRevision, IApplication, ListFileKind, IBulkOperationResult, ContextChangeRecord, ContextDeleteRecord, IProjectExecution, IProjectExecutionListOptions, ISpace, PermissionRole, HttpCertificate, ContextSpaceListOptions, IRevision, TrashEntry, TrashEntryCreate, ContextDeleteBulkEvent, FileAddOptions, FileBreadcrumb } from '@api-client/core/build/browser.js';
1
+ import { IBackendInfo, ContextListOptions, ContextListResult, IFile, IFileCreateOptions, AccessOperation, IUser, IAccessPatchInfo, IPatchInfo, IPatchRevision, IApplication, ListFileKind, IBulkOperationResult, ContextChangeRecord, ContextDeleteRecord, IProjectExecution, IProjectExecutionListOptions, ISpace, PermissionRole, ContextSpaceListOptions, IRevision, TrashEntry, TrashEntryCreate, ContextDeleteBulkEvent, FileAddOptions, FileBreadcrumb } from '@api-client/core/build/browser.js';
2
2
  import { Patch } from '@api-client/json';
3
3
  import { PlatformBindings } from './PlatformBindings.js';
4
4
  import { IConfigEnvironment, IConfigInit } from '../../lib/config/Config.js';
@@ -72,7 +72,6 @@ export declare abstract class StoreBindings extends PlatformBindings {
72
72
  trashChannel: BroadcastChannel;
73
73
  historyChannel: BroadcastChannel;
74
74
  projectExeChannel: BroadcastChannel;
75
- certificatesChannel: BroadcastChannel;
76
75
  initialized: boolean;
77
76
  initializeStore(): Promise<void>;
78
77
  initialize(): Promise<void>;
@@ -246,15 +245,6 @@ export declare abstract class StoreBindings extends PlatformBindings {
246
245
  removeUser: (space: string, otherUserKey: string) => Promise<void>;
247
246
  patchUsers: (space: string, value: IAccessPatchInfo) => Promise<void>;
248
247
  };
249
- certificates: {
250
- add: (value: HttpCertificate, space: string) => Promise<ContextChangeRecord<HttpCertificate>>;
251
- addBulk: (values: HttpCertificate[], space: string) => Promise<IBulkOperationResult<ContextChangeRecord<HttpCertificate>>>;
252
- read: (key: string) => Promise<HttpCertificate>;
253
- list: (options?: ContextSpaceListOptions) => Promise<ContextListResult<HttpCertificate>>;
254
- delete: (key: string) => Promise<ContextDeleteRecord>;
255
- deleteBulk: (keys: string[]) => Promise<IBulkOperationResult<ContextDeleteRecord>>;
256
- empty: (space: string) => Promise<void>;
257
- };
258
248
  trash: {
259
249
  add: (entry: TrashEntryCreate, space: string) => Promise<ContextChangeRecord<TrashEntry>>;
260
250
  list: (options: ContextSpaceListOptions) => Promise<ContextListResult<TrashEntry>>;
@@ -289,12 +279,6 @@ export declare abstract class StoreBindings extends PlatformBindings {
289
279
  me: () => Promise<IUser>;
290
280
  read: (key: string) => Promise<IUser>;
291
281
  };
292
- protected handleCertificateList(event: Event): void;
293
- protected handleCertificateRead(event: Event): void;
294
- protected handleCertificateDelete(event: Event): void;
295
- protected handleCertificateInsert(event: Event): void;
296
- observeCertificates(): Promise<void>;
297
- unobserveCertificates(): Promise<void>;
298
282
  observeSpaces(): Promise<void>;
299
283
  unobserveSpaces(): Promise<void>;
300
284
  observeFiles(): Promise<void>;
@@ -1 +1 @@
1
- {"version":3,"file":"StoreBindings.d.ts","sourceRoot":"","sources":["../../../src/bindings/base/StoreBindings.ts"],"names":[],"mappings":"AAGA,OAAO,EACL,YAAY,EAAyC,kBAAkB,EAAE,iBAAiB,EAAE,KAAK,EACjG,kBAAkB,EAAE,eAAe,EAAE,KAAK,EACrB,gBAAgB,EAAE,UAAU,EAAE,cAAc,EAAE,YAAY,EACf,YAAY,EAC5E,oBAAoB,EAAE,mBAAmB,EAEzC,mBAAmB,EACnB,iBAAiB,EACjB,4BAA4B,EAC5B,MAAM,EAGN,cAAc,EACd,eAAe,EACf,uBAAuB,EACvB,SAAS,EACT,UAAU,EACV,gBAAgB,EAChB,sBAAsB,EAKtB,cAAc,EACd,cAAc,EAQf,MAAM,mCAAmC,CAAC;AAC3C,OAAO,EAAE,KAAK,EAAE,MAAM,kBAAkB,CAAC;AACzC,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AAGzD,OAAO,EAAE,kBAAkB,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAC;AAC7E,OAAO,EAAE,gBAAgB,EAAE,SAAS,EAAE,MAAM,0BAA0B,CAAC;AAGvE,MAAM,WAAW,mBAAmB;IAClC;;;;OAIG;IACH,IAAI,CAAC,IAAI,EAAE,WAAW,GAAG,OAAO,CAAC,IAAI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@ -25,7 +25,6 @@ export class StoreBindings extends PlatformBindings {
25
25
  this.trashChannel = new BroadcastChannel(StoreBroadcast.trash);
26
26
  this.historyChannel = new BroadcastChannel(StoreBroadcast.history);
27
27
  this.projectExeChannel = new BroadcastChannel(StoreBroadcast.projectRuns);
28
- this.certificatesChannel = new BroadcastChannel(StoreBroadcast.certificates);
29
28
  this.initialized = false;
30
29
  this.auth = {
31
30
  isAuthenticated: async (env) => {
@@ -110,26 +109,6 @@ export class StoreBindings extends PlatformBindings {
110
109
  removeUser: (space, otherUserKey) => this.getStore().sdk.spaces.removeUser(this.space || space, otherUserKey),
111
110
  patchUsers: (space, value) => this.getStore().sdk.spaces.patchUsers(this.space || space, value),
112
111
  };
113
- this.certificates = {
114
- add: (value, space) => this.getStore().sdk.certificates.add(value, this.space || space),
115
- addBulk: (values, space) => this.getStore().sdk.certificates.addBulk(values, this.space || space),
116
- read: (key) => this.getStore().sdk.certificates.read(key),
117
- list: (options) => {
118
- const cp = { ...options };
119
- if (!cp.space) {
120
- cp.space = this.space;
121
- }
122
- return this.getStore().sdk.certificates.list(cp);
123
- },
124
- delete: async (key) => {
125
- await this.getStore().sdk.certificates.delete(key);
126
- return {
127
- key,
128
- };
129
- },
130
- deleteBulk: (keys) => this.getStore().sdk.certificates.deleteBulk(keys),
131
- empty: (space) => this.getStore().sdk.certificates.empty(this.space || space),
132
- };
133
112
  this.trash = {
134
113
  add: (entry, space) => this.getStore().sdk.trash.add(entry, this.space || space),
135
114
  list: (options) => {
@@ -225,11 +204,6 @@ export class StoreBindings extends PlatformBindings {
225
204
  target.addEventListener(EventTypes.Store.ProjectRuns.clearSpace, this.handleProjectExecutionClearSpace.bind(this));
226
205
  target.addEventListener(EventTypes.Store.ProjectRuns.clearProject, this.handleProjectExecutionClearProject.bind(this));
227
206
  target.addEventListener(EventTypes.Store.ProjectRuns.clearParent, this.handleProjectExecutionClearFolder.bind(this));
228
- // certificates
229
- target.addEventListener(EventTypes.Store.Certificate.list, this.handleCertificateList.bind(this));
230
- target.addEventListener(EventTypes.Store.Certificate.read, this.handleCertificateRead.bind(this));
231
- target.addEventListener(EventTypes.Store.Certificate.delete, this.handleCertificateDelete.bind(this));
232
- target.addEventListener(EventTypes.Store.Certificate.insert, this.handleCertificateInsert.bind(this));
233
207
  }
234
208
  handleInitializeEnvironment(input) {
235
209
  const e = input;
@@ -526,36 +500,6 @@ export class StoreBindings extends PlatformBindings {
526
500
  }
527
501
  return store;
528
502
  }
529
- handleCertificateList(event) {
530
- const e = event;
531
- e.preventDefault();
532
- const options = {
533
- ...e.detail,
534
- space: this.space,
535
- };
536
- e.detail.result = this.certificates.list(options);
537
- }
538
- handleCertificateRead(event) {
539
- const e = event;
540
- e.preventDefault();
541
- e.detail.result = this.certificates.read(e.detail.key);
542
- }
543
- handleCertificateDelete(event) {
544
- const e = event;
545
- e.preventDefault();
546
- e.detail.result = this.certificates.delete(e.detail.key);
547
- }
548
- handleCertificateInsert(event) {
549
- const e = event;
550
- e.preventDefault();
551
- e.detail.result = this.certificates.add(e.detail.item, this.space);
552
- }
553
- async observeCertificates() {
554
- await this.observePath(RouteBuilder.certificates());
555
- }
556
- async unobserveCertificates() {
557
- await this.unobservePath(RouteBuilder.certificates());
558
- }
559
503
  async observeSpaces() {
560
504
  await this.observePath(RouteBuilder.spaces());
561
505
  }
@@ -673,9 +617,6 @@ export class StoreBindings extends PlatformBindings {
673
617
  else if (event.path === RouteBuilder.projectExecutions()) {
674
618
  this.projectExeChannel.postMessage(event);
675
619
  }
676
- else if (event.path === RouteBuilder.certificates()) {
677
- this.certificatesChannel.postMessage(event);
678
- }
679
620
  else {
680
621
  // eslint-disable-next-line no-console
681
622
  console.warn(`Broadcast path not handled`, event.path, event);