@aglyn/tenant-feature-instance 1.0.0-beta.143

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 (154) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +3 -0
  3. package/jest.config.d.ts +36 -0
  4. package/package.json +45 -0
  5. package/src/index.d.ts +17 -0
  6. package/src/index.js +18 -0
  7. package/src/index.js.map +1 -0
  8. package/src/lib/components/duplicate-resource-dialog.d.ts +77 -0
  9. package/src/lib/components/duplicate-resource-dialog.js +217 -0
  10. package/src/lib/components/duplicate-resource-dialog.js.map +1 -0
  11. package/src/lib/constants/firebase-config.d.ts +68 -0
  12. package/src/lib/constants/firebase-config.js +155 -0
  13. package/src/lib/constants/firebase-config.js.map +1 -0
  14. package/src/lib/constants/firebase-emulator-hosts.d.ts +60 -0
  15. package/src/lib/constants/firebase-emulator-hosts.js +81 -0
  16. package/src/lib/constants/firebase-emulator-hosts.js.map +1 -0
  17. package/src/lib/constants/mock-data.d.ts +24 -0
  18. package/src/lib/constants/mock-data.js +49 -0
  19. package/src/lib/constants/mock-data.js.map +1 -0
  20. package/src/lib/constants/site-paths.d.ts +47 -0
  21. package/src/lib/constants/site-paths.js +66 -0
  22. package/src/lib/constants/site-paths.js.map +1 -0
  23. package/src/lib/hooks/firebase/auth-persistence.d.ts +74 -0
  24. package/src/lib/hooks/firebase/auth-persistence.js +117 -0
  25. package/src/lib/hooks/firebase/auth-persistence.js.map +1 -0
  26. package/src/lib/hooks/firebase/firebase-services.d.ts +172 -0
  27. package/src/lib/hooks/firebase/firebase-services.js +522 -0
  28. package/src/lib/hooks/firebase/firebase-services.js.map +1 -0
  29. package/src/lib/hooks/firebase/firestore-cache.d.ts +125 -0
  30. package/src/lib/hooks/firebase/firestore-cache.js +152 -0
  31. package/src/lib/hooks/firebase/firestore-cache.js.map +1 -0
  32. package/src/lib/hooks/firebase/firestore-shared-client-state.d.ts +169 -0
  33. package/src/lib/hooks/firebase/firestore-shared-client-state.js +316 -0
  34. package/src/lib/hooks/firebase/firestore-shared-client-state.js.map +1 -0
  35. package/src/lib/hooks/firestore-denial-reporter.d.ts +192 -0
  36. package/src/lib/hooks/firestore-denial-reporter.js +293 -0
  37. package/src/lib/hooks/firestore-denial-reporter.js.map +1 -0
  38. package/src/lib/hooks/helpers/besigner-nodes-converter.d.ts +62 -0
  39. package/src/lib/hooks/helpers/besigner-nodes-converter.js +91 -0
  40. package/src/lib/hooks/helpers/besigner-nodes-converter.js.map +1 -0
  41. package/src/lib/hooks/helpers/guarded-nodes-save.d.ts +80 -0
  42. package/src/lib/hooks/helpers/guarded-nodes-save.js +89 -0
  43. package/src/lib/hooks/helpers/guarded-nodes-save.js.map +1 -0
  44. package/src/lib/hooks/helpers/guarded-seed-write.d.ts +125 -0
  45. package/src/lib/hooks/helpers/guarded-seed-write.js +193 -0
  46. package/src/lib/hooks/helpers/guarded-seed-write.js.map +1 -0
  47. package/src/lib/hooks/helpers/listen-options.d.ts +91 -0
  48. package/src/lib/hooks/helpers/listen-options.js +92 -0
  49. package/src/lib/hooks/helpers/listen-options.js.map +1 -0
  50. package/src/lib/hooks/helpers/use-doc.d.ts +38 -0
  51. package/src/lib/hooks/helpers/use-doc.js +213 -0
  52. package/src/lib/hooks/helpers/use-doc.js.map +1 -0
  53. package/src/lib/hooks/helpers/use-modify-doc-callback.d.ts +28 -0
  54. package/src/lib/hooks/helpers/use-modify-doc-callback.js +110 -0
  55. package/src/lib/hooks/helpers/use-modify-doc-callback.js.map +1 -0
  56. package/src/lib/hooks/host-collection-queries.d.ts +125 -0
  57. package/src/lib/hooks/host-collection-queries.js +126 -0
  58. package/src/lib/hooks/host-collection-queries.js.map +1 -0
  59. package/src/lib/hooks/list-filter-constraints.d.ts +64 -0
  60. package/src/lib/hooks/list-filter-constraints.js +288 -0
  61. package/src/lib/hooks/list-filter-constraints.js.map +1 -0
  62. package/src/lib/hooks/sorted-collection-window.d.ts +207 -0
  63. package/src/lib/hooks/sorted-collection-window.js +150 -0
  64. package/src/lib/hooks/sorted-collection-window.js.map +1 -0
  65. package/src/lib/hooks/use-component-version.d.ts +43 -0
  66. package/src/lib/hooks/use-component-version.js +73 -0
  67. package/src/lib/hooks/use-component-version.js.map +1 -0
  68. package/src/lib/hooks/use-component.d.ts +39 -0
  69. package/src/lib/hooks/use-component.js +55 -0
  70. package/src/lib/hooks/use-component.js.map +1 -0
  71. package/src/lib/hooks/use-console-host-route.d.ts +24 -0
  72. package/src/lib/hooks/use-console-host-route.js +77 -0
  73. package/src/lib/hooks/use-console-host-route.js.map +1 -0
  74. package/src/lib/hooks/use-duplicate-resource-api.d.ts +43 -0
  75. package/src/lib/hooks/use-duplicate-resource-api.js +61 -0
  76. package/src/lib/hooks/use-duplicate-resource-api.js.map +1 -0
  77. package/src/lib/hooks/use-firestore-collection.d.ts +62 -0
  78. package/src/lib/hooks/use-firestore-collection.js +307 -0
  79. package/src/lib/hooks/use-firestore-collection.js.map +1 -0
  80. package/src/lib/hooks/use-firestore-doc.d.ts +42 -0
  81. package/src/lib/hooks/use-firestore-doc.js +192 -0
  82. package/src/lib/hooks/use-firestore-doc.js.map +1 -0
  83. package/src/lib/hooks/use-form-version.d.ts +44 -0
  84. package/src/lib/hooks/use-form-version.js +73 -0
  85. package/src/lib/hooks/use-form-version.js.map +1 -0
  86. package/src/lib/hooks/use-host-activity-logger.d.ts +35 -0
  87. package/src/lib/hooks/use-host-activity-logger.js +96 -0
  88. package/src/lib/hooks/use-host-activity-logger.js.map +1 -0
  89. package/src/lib/hooks/use-host-campaigns.d.ts +53 -0
  90. package/src/lib/hooks/use-host-campaigns.js +93 -0
  91. package/src/lib/hooks/use-host-campaigns.js.map +1 -0
  92. package/src/lib/hooks/use-host-org-id.d.ts +96 -0
  93. package/src/lib/hooks/use-host-org-id.js +154 -0
  94. package/src/lib/hooks/use-host-org-id.js.map +1 -0
  95. package/src/lib/hooks/use-host-resource-api.d.ts +43 -0
  96. package/src/lib/hooks/use-host-resource-api.js +60 -0
  97. package/src/lib/hooks/use-host-resource-api.js.map +1 -0
  98. package/src/lib/hooks/use-host-template.d.ts +44 -0
  99. package/src/lib/hooks/use-host-template.js +82 -0
  100. package/src/lib/hooks/use-host-template.js.map +1 -0
  101. package/src/lib/hooks/use-host-version-api.d.ts +59 -0
  102. package/src/lib/hooks/use-host-version-api.js +69 -0
  103. package/src/lib/hooks/use-host-version-api.js.map +1 -0
  104. package/src/lib/hooks/use-host.d.ts +101 -0
  105. package/src/lib/hooks/use-host.js +45 -0
  106. package/src/lib/hooks/use-host.js.map +1 -0
  107. package/src/lib/hooks/use-layout-version.d.ts +33 -0
  108. package/src/lib/hooks/use-layout-version.js +64 -0
  109. package/src/lib/hooks/use-layout-version.js.map +1 -0
  110. package/src/lib/hooks/use-layout.d.ts +41 -0
  111. package/src/lib/hooks/use-layout.js +49 -0
  112. package/src/lib/hooks/use-layout.js.map +1 -0
  113. package/src/lib/hooks/use-live-artifact-count.d.ts +50 -0
  114. package/src/lib/hooks/use-live-artifact-count.js +102 -0
  115. package/src/lib/hooks/use-live-artifact-count.js.map +1 -0
  116. package/src/lib/hooks/use-org-member-options.d.ts +57 -0
  117. package/src/lib/hooks/use-org-member-options.js +112 -0
  118. package/src/lib/hooks/use-org-member-options.js.map +1 -0
  119. package/src/lib/hooks/use-org-plan.d.ts +46 -0
  120. package/src/lib/hooks/use-org-plan.js +86 -0
  121. package/src/lib/hooks/use-org-plan.js.map +1 -0
  122. package/src/lib/hooks/use-paged-collection.d.ts +95 -0
  123. package/src/lib/hooks/use-paged-collection.js +130 -0
  124. package/src/lib/hooks/use-paged-collection.js.map +1 -0
  125. package/src/lib/hooks/use-plugin-config.d.ts +38 -0
  126. package/src/lib/hooks/use-plugin-config.js +120 -0
  127. package/src/lib/hooks/use-plugin-config.js.map +1 -0
  128. package/src/lib/hooks/use-scope-tokens.d.ts +28 -0
  129. package/src/lib/hooks/use-scope-tokens.js +100 -0
  130. package/src/lib/hooks/use-scope-tokens.js.map +1 -0
  131. package/src/lib/hooks/use-screen-version.d.ts +33 -0
  132. package/src/lib/hooks/use-screen-version.js +65 -0
  133. package/src/lib/hooks/use-screen-version.js.map +1 -0
  134. package/src/lib/hooks/use-screen.d.ts +68 -0
  135. package/src/lib/hooks/use-screen.js +50 -0
  136. package/src/lib/hooks/use-screen.js.map +1 -0
  137. package/src/lib/hooks/use-sending-identity-api.d.ts +197 -0
  138. package/src/lib/hooks/use-sending-identity-api.js +95 -0
  139. package/src/lib/hooks/use-sending-identity-api.js.map +1 -0
  140. package/src/lib/hooks/use-sorted-paged-collection.d.ts +48 -0
  141. package/src/lib/hooks/use-sorted-paged-collection.js +213 -0
  142. package/src/lib/hooks/use-sorted-paged-collection.js.map +1 -0
  143. package/src/lib/hooks/use-switcher-collection.d.ts +105 -0
  144. package/src/lib/hooks/use-switcher-collection.js +275 -0
  145. package/src/lib/hooks/use-switcher-collection.js.map +1 -0
  146. package/src/lib/hooks/use-user-name.d.ts +51 -0
  147. package/src/lib/hooks/use-user-name.js +90 -0
  148. package/src/lib/hooks/use-user-name.js.map +1 -0
  149. package/src/lib/hooks/use-user-photo.d.ts +50 -0
  150. package/src/lib/hooks/use-user-photo.js +87 -0
  151. package/src/lib/hooks/use-user-photo.js.map +1 -0
  152. package/src/lib/tenant.d.ts +61 -0
  153. package/src/lib/tenant.js +62 -0
  154. package/src/lib/tenant.js.map +1 -0
@@ -0,0 +1,50 @@
1
+ /** The avatar on the Firebase Auth record, and only that. */
2
+ export declare function useUserPhotoUrl(): string;
3
+ /**
4
+ * The avatar on the signed-in user's own profile document, `users/{uid}`
5
+ * (AGL-1961).
6
+ *
7
+ * `photoUrl`, lowercase `url` — that document's spelling deliberately differs
8
+ * from the roster's `photoURL`, and reading the roster's casing here would
9
+ * silently yield nothing forever. See `seedUserProfile`, which writes this
10
+ * field and says the same.
11
+ */
12
+ export declare function useUserProfilePhotoUrl(): string | undefined;
13
+ /**
14
+ * The signed-in user's own avatar URL, or nothing (AGL-1683, AGL-1961).
15
+ *
16
+ * This used to fall back to `gravatarUrlFromEmail(email)`, so every console
17
+ * page that showed the account chip sent gravatar.com an MD5 of the signed-in
18
+ * user's email address along with their IP and a `Referer` naming the console.
19
+ * An email MD5 is not an anonymisation — a gravatar hash is *designed* to be
20
+ * looked up by anyone who has seen the address — and Automattic is on no
21
+ * subprocessor register of ours.
22
+ *
23
+ * Worse than the leak itself: `gravatar.url(undefined)` still returns a URL
24
+ * (the MD5 of the string "undefined"), so this hook never returned a falsy
25
+ * value and the request fired even for a user with no email resolved yet.
26
+ * Callers that treat "no photo" as "draw the initial" were unreachable.
27
+ *
28
+ * Callers now render initials themselves when this is empty — see
29
+ * `MemberAvatar` in the console, which is the shared answer for a member's
30
+ * face. No options: there is nothing left to size.
31
+ *
32
+ * THE PROFILE DOCUMENT COMES FIRST, and used not to be read here at all
33
+ * (AGL-1961). `users/{uid}.photoUrl` is what `seedUserProfile` fills from the
34
+ * identity provider on EVERY sign-in, and what `user-profiles.ts` calls "the
35
+ * avatar the console shows for you" — but the app bar resolved the auth
36
+ * record's `photoURL` alone, and nothing mirrors the document onto the auth
37
+ * record except an interactive save on Manage Account. So a customer whose
38
+ * IdP maps a picture attribute had it stored on every sign-in and still saw a
39
+ * drawn initial in the header, while Manage Account's own card three inches
40
+ * below showed the photo — it already resolved `photoUrl ?? photoURL`. One
41
+ * user, two answers.
42
+ *
43
+ * Blank-not-null is the join, so a photo that exists in either place wins over
44
+ * an empty one in the other. That also heals the non-atomic save: Manage
45
+ * Account writes the document and then calls `updateProfile`, and a failure
46
+ * between the two used to leave the console showing no avatar for a photo it
47
+ * had successfully stored.
48
+ */
49
+ export declare function useUserPhoto(): string | undefined;
50
+ export default useUserPhoto;
@@ -0,0 +1,87 @@
1
+ /**
2
+ * @license
3
+ * Copyright 2022 Aglyn LLC
4
+ *
5
+ * Licensed under the Apache License, Version 2.0 (the "License");
6
+ * you may not use this file except in compliance with the License.
7
+ * You may obtain a copy of the License at
8
+ *
9
+ * http://www.apache.org/licenses/LICENSE-2.0
10
+ *
11
+ * Unless required by applicable law or agreed to in writing, software
12
+ * distributed under the License is distributed on an "AS IS" BASIS,
13
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ * See the License for the specific language governing permissions and
15
+ * limitations under the License.
16
+ */ import { doc } from "firebase/firestore";
17
+ import { useFirestore, useUser } from "./firebase/firebase-services.js";
18
+ import { useFirestoreDoc } from "./use-firestore-doc.js";
19
+ /** The avatar on the Firebase Auth record, and only that. */ export function useUserPhotoUrl() {
20
+ const { data } = useUser();
21
+ return data == null ? void 0 : data.photoURL;
22
+ }
23
+ /**
24
+ * The avatar on the signed-in user's own profile document, `users/{uid}`
25
+ * (AGL-1961).
26
+ *
27
+ * `photoUrl`, lowercase `url` — that document's spelling deliberately differs
28
+ * from the roster's `photoURL`, and reading the roster's casing here would
29
+ * silently yield nothing forever. See `seedUserProfile`, which writes this
30
+ * field and says the same.
31
+ */ export function useUserProfilePhotoUrl() {
32
+ var _ref;
33
+ const firestore = useFirestore();
34
+ const { data: user } = useUser();
35
+ const uid = user == null ? void 0 : user.uid;
36
+ const { data } = useFirestoreDoc(// Null ref until a uid exists, so a signed-out mount opens no listen at
37
+ // all rather than one the rules refuse.
38
+ ()=>uid ? doc(firestore, 'users', uid) : null, [
39
+ firestore,
40
+ uid
41
+ ]);
42
+ const stored = String((_ref = data == null ? void 0 : data.photoUrl) != null ? _ref : '').trim();
43
+ return stored || undefined;
44
+ }
45
+ /**
46
+ * The signed-in user's own avatar URL, or nothing (AGL-1683, AGL-1961).
47
+ *
48
+ * This used to fall back to `gravatarUrlFromEmail(email)`, so every console
49
+ * page that showed the account chip sent gravatar.com an MD5 of the signed-in
50
+ * user's email address along with their IP and a `Referer` naming the console.
51
+ * An email MD5 is not an anonymisation — a gravatar hash is *designed* to be
52
+ * looked up by anyone who has seen the address — and Automattic is on no
53
+ * subprocessor register of ours.
54
+ *
55
+ * Worse than the leak itself: `gravatar.url(undefined)` still returns a URL
56
+ * (the MD5 of the string "undefined"), so this hook never returned a falsy
57
+ * value and the request fired even for a user with no email resolved yet.
58
+ * Callers that treat "no photo" as "draw the initial" were unreachable.
59
+ *
60
+ * Callers now render initials themselves when this is empty — see
61
+ * `MemberAvatar` in the console, which is the shared answer for a member's
62
+ * face. No options: there is nothing left to size.
63
+ *
64
+ * THE PROFILE DOCUMENT COMES FIRST, and used not to be read here at all
65
+ * (AGL-1961). `users/{uid}.photoUrl` is what `seedUserProfile` fills from the
66
+ * identity provider on EVERY sign-in, and what `user-profiles.ts` calls "the
67
+ * avatar the console shows for you" — but the app bar resolved the auth
68
+ * record's `photoURL` alone, and nothing mirrors the document onto the auth
69
+ * record except an interactive save on Manage Account. So a customer whose
70
+ * IdP maps a picture attribute had it stored on every sign-in and still saw a
71
+ * drawn initial in the header, while Manage Account's own card three inches
72
+ * below showed the photo — it already resolved `photoUrl ?? photoURL`. One
73
+ * user, two answers.
74
+ *
75
+ * Blank-not-null is the join, so a photo that exists in either place wins over
76
+ * an empty one in the other. That also heals the non-atomic save: Manage
77
+ * Account writes the document and then calls `updateProfile`, and a failure
78
+ * between the two used to leave the console showing no avatar for a photo it
79
+ * had successfully stored.
80
+ */ export function useUserPhoto() {
81
+ const profilePhoto = useUserProfilePhotoUrl();
82
+ const authPhoto = useUserPhotoUrl();
83
+ return profilePhoto || String(authPhoto != null ? authPhoto : '').trim() || undefined;
84
+ }
85
+ export default useUserPhoto;
86
+
87
+ //# sourceMappingURL=use-user-photo.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../../../../../libs/tenant/feature/instance/src/lib/hooks/use-user-photo.tsx"],"sourcesContent":["/**\n * @license\n * Copyright 2022 Aglyn LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nimport { doc } from 'firebase/firestore'\nimport { useFirestore, useUser } from './firebase/firebase-services'\nimport { useFirestoreDoc } from './use-firestore-doc'\n\n/** The avatar on the Firebase Auth record, and only that. */\nexport function useUserPhotoUrl() {\n const { data } = useUser()\n return data?.photoURL\n}\n\n/**\n * The avatar on the signed-in user's own profile document, `users/{uid}`\n * (AGL-1961).\n *\n * `photoUrl`, lowercase `url` — that document's spelling deliberately differs\n * from the roster's `photoURL`, and reading the roster's casing here would\n * silently yield nothing forever. See `seedUserProfile`, which writes this\n * field and says the same.\n */\nexport function useUserProfilePhotoUrl(): string | undefined {\n const firestore = useFirestore()\n const { data: user } = useUser()\n const uid = user?.uid\n const { data } = useFirestoreDoc<{ photoUrl?: string }>(\n // Null ref until a uid exists, so a signed-out mount opens no listen at\n // all rather than one the rules refuse.\n () => (uid ? doc(firestore, 'users', uid) : null),\n [firestore, uid],\n )\n const stored = String(data?.photoUrl ?? '').trim()\n return stored || undefined\n}\n\n/**\n * The signed-in user's own avatar URL, or nothing (AGL-1683, AGL-1961).\n *\n * This used to fall back to `gravatarUrlFromEmail(email)`, so every console\n * page that showed the account chip sent gravatar.com an MD5 of the signed-in\n * user's email address along with their IP and a `Referer` naming the console.\n * An email MD5 is not an anonymisation — a gravatar hash is *designed* to be\n * looked up by anyone who has seen the address — and Automattic is on no\n * subprocessor register of ours.\n *\n * Worse than the leak itself: `gravatar.url(undefined)` still returns a URL\n * (the MD5 of the string \"undefined\"), so this hook never returned a falsy\n * value and the request fired even for a user with no email resolved yet.\n * Callers that treat \"no photo\" as \"draw the initial\" were unreachable.\n *\n * Callers now render initials themselves when this is empty — see\n * `MemberAvatar` in the console, which is the shared answer for a member's\n * face. No options: there is nothing left to size.\n *\n * THE PROFILE DOCUMENT COMES FIRST, and used not to be read here at all\n * (AGL-1961). `users/{uid}.photoUrl` is what `seedUserProfile` fills from the\n * identity provider on EVERY sign-in, and what `user-profiles.ts` calls \"the\n * avatar the console shows for you\" — but the app bar resolved the auth\n * record's `photoURL` alone, and nothing mirrors the document onto the auth\n * record except an interactive save on Manage Account. So a customer whose\n * IdP maps a picture attribute had it stored on every sign-in and still saw a\n * drawn initial in the header, while Manage Account's own card three inches\n * below showed the photo — it already resolved `photoUrl ?? photoURL`. One\n * user, two answers.\n *\n * Blank-not-null is the join, so a photo that exists in either place wins over\n * an empty one in the other. That also heals the non-atomic save: Manage\n * Account writes the document and then calls `updateProfile`, and a failure\n * between the two used to leave the console showing no avatar for a photo it\n * had successfully stored.\n */\nexport function useUserPhoto(): string | undefined {\n const profilePhoto = useUserProfilePhotoUrl()\n const authPhoto = useUserPhotoUrl()\n return profilePhoto || String(authPhoto ?? '').trim() || undefined\n}\n\nexport default useUserPhoto\n"],"names":["doc","useFirestore","useUser","useFirestoreDoc","useUserPhotoUrl","data","photoURL","useUserProfilePhotoUrl","firestore","user","uid","stored","String","photoUrl","trim","undefined","useUserPhoto","profilePhoto","authPhoto"],"mappings":"AAAA;;;;;;;;;;;;;;;CAeC,GACD,SAASA,GAAG,QAAQ,qBAAoB;AACxC,SAASC,YAAY,EAAEC,OAAO,QAAQ,kCAA8B;AACpE,SAASC,eAAe,QAAQ,yBAAqB;AAErD,2DAA2D,GAC3D,OAAO,SAASC;IACd,MAAM,EAAEC,IAAI,EAAE,GAAGH;IACjB,OAAOG,wBAAAA,KAAMC,QAAQ;AACvB;AAEA;;;;;;;;CAQC,GACD,OAAO,SAASC;;IACd,MAAMC,YAAYP;IAClB,MAAM,EAAEI,MAAMI,IAAI,EAAE,GAAGP;IACvB,MAAMQ,MAAMD,wBAAAA,KAAMC,GAAG;IACrB,MAAM,EAAEL,IAAI,EAAE,GAAGF,gBACf,wEAAwE;IACxE,wCAAwC;IACxC,IAAOO,MAAMV,IAAIQ,WAAW,SAASE,OAAO,MAC5C;QAACF;QAAWE;KAAI;IAElB,MAAMC,SAASC,eAAOP,wBAAAA,KAAMQ,QAAQ,mBAAI,IAAIC,IAAI;IAChD,OAAOH,UAAUI;AACnB;AAEA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAmCC,GACD,OAAO,SAASC;IACd,MAAMC,eAAeV;IACrB,MAAMW,YAAYd;IAClB,OAAOa,gBAAgBL,OAAOM,oBAAAA,YAAa,IAAIJ,IAAI,MAAMC;AAC3D;AAEA,eAAeC,aAAY"}
@@ -0,0 +1,61 @@
1
+ /**
2
+ * @license
3
+ * Copyright 2022 Aglyn LLC
4
+ *
5
+ * Licensed under the Apache License, Version 2.0 (the "License");
6
+ * you may not use this file except in compliance with the License.
7
+ * You may obtain a copy of the License at
8
+ *
9
+ * http://www.apache.org/licenses/LICENSE-2.0
10
+ *
11
+ * Unless required by applicable law or agreed to in writing, software
12
+ * distributed under the License is distributed on an "AS IS" BASIS,
13
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ * See the License for the specific language governing permissions and
15
+ * limitations under the License.
16
+ */
17
+ export * from './constants/mock-data';
18
+ export * from './constants/site-paths';
19
+ export * from './constants/firebase-config';
20
+ export * from './constants/firebase-emulator-hosts';
21
+ export * from './hooks/firebase/auth-persistence';
22
+ export * from './hooks/firebase/firebase-services';
23
+ export * from './hooks/firebase/firestore-cache';
24
+ export * from './hooks/helpers/use-doc';
25
+ export * from './hooks/helpers/use-modify-doc-callback';
26
+ export * from './hooks/helpers/besigner-nodes-converter';
27
+ export * from './hooks/helpers/guarded-nodes-save';
28
+ export * from './hooks/helpers/guarded-seed-write';
29
+ export * from './hooks/firestore-denial-reporter';
30
+ export * from './hooks/use-firestore-collection';
31
+ export * from './hooks/use-paged-collection';
32
+ export * from './hooks/use-sorted-paged-collection';
33
+ export * from './hooks/sorted-collection-window';
34
+ export * from './hooks/host-collection-queries';
35
+ export * from './hooks/list-filter-constraints';
36
+ export * from './hooks/use-firestore-doc';
37
+ export * from './hooks/use-switcher-collection';
38
+ export * from './hooks/use-host-activity-logger';
39
+ export * from './hooks/use-live-artifact-count';
40
+ export * from './hooks/use-component';
41
+ export * from './hooks/use-component-version';
42
+ export * from './hooks/use-form-version';
43
+ export * from './hooks/use-host-template';
44
+ export * from './hooks/use-console-host-route';
45
+ export * from './hooks/use-host-org-id';
46
+ export * from './hooks/use-host-campaigns';
47
+ export * from './hooks/use-org-member-options';
48
+ export * from './hooks/use-org-plan';
49
+ export * from './hooks/use-scope-tokens';
50
+ export * from './hooks/use-host-resource-api';
51
+ export * from './hooks/use-host-version-api';
52
+ export * from './hooks/use-duplicate-resource-api';
53
+ export * from './components/duplicate-resource-dialog';
54
+ export * from './hooks/use-plugin-config';
55
+ export * from './hooks/use-host';
56
+ export * from './hooks/use-layout';
57
+ export * from './hooks/use-layout-version';
58
+ export * from './hooks/use-screen';
59
+ export * from './hooks/use-screen-version';
60
+ export * from './hooks/use-user-name';
61
+ export * from './hooks/use-user-photo';
@@ -0,0 +1,62 @@
1
+ /**
2
+ * @license
3
+ * Copyright 2022 Aglyn LLC
4
+ *
5
+ * Licensed under the Apache License, Version 2.0 (the "License");
6
+ * you may not use this file except in compliance with the License.
7
+ * You may obtain a copy of the License at
8
+ *
9
+ * http://www.apache.org/licenses/LICENSE-2.0
10
+ *
11
+ * Unless required by applicable law or agreed to in writing, software
12
+ * distributed under the License is distributed on an "AS IS" BASIS,
13
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ * See the License for the specific language governing permissions and
15
+ * limitations under the License.
16
+ */ export * from "./constants/mock-data.js";
17
+ export * from "./constants/site-paths.js";
18
+ export * from "./constants/firebase-config.js";
19
+ export * from "./constants/firebase-emulator-hosts.js";
20
+ export * from "./hooks/firebase/auth-persistence.js";
21
+ export * from "./hooks/firebase/firebase-services.js";
22
+ export * from "./hooks/firebase/firestore-cache.js";
23
+ export * from "./hooks/helpers/use-doc.js";
24
+ export * from "./hooks/helpers/use-modify-doc-callback.js";
25
+ export * from "./hooks/helpers/besigner-nodes-converter.js";
26
+ export * from "./hooks/helpers/guarded-nodes-save.js";
27
+ export * from "./hooks/helpers/guarded-seed-write.js";
28
+ export * from "./hooks/firestore-denial-reporter.js";
29
+ export * from "./hooks/use-firestore-collection.js";
30
+ export * from "./hooks/use-paged-collection.js";
31
+ export * from "./hooks/use-sorted-paged-collection.js";
32
+ export * from "./hooks/sorted-collection-window.js";
33
+ export * from "./hooks/host-collection-queries.js";
34
+ export * from "./hooks/list-filter-constraints.js";
35
+ export * from "./hooks/use-firestore-doc.js";
36
+ export * from "./hooks/use-switcher-collection.js";
37
+ export * from "./hooks/use-host-activity-logger.js";
38
+ export * from "./hooks/use-live-artifact-count.js";
39
+ export * from "./hooks/use-component.js";
40
+ export * from "./hooks/use-component-version.js";
41
+ export * from "./hooks/use-form-version.js";
42
+ export * from "./hooks/use-host-template.js";
43
+ export * from "./hooks/use-console-host-route.js";
44
+ export * from "./hooks/use-host-org-id.js";
45
+ export * from "./hooks/use-host-campaigns.js";
46
+ export * from "./hooks/use-org-member-options.js";
47
+ export * from "./hooks/use-org-plan.js";
48
+ export * from "./hooks/use-scope-tokens.js";
49
+ export * from "./hooks/use-host-resource-api.js";
50
+ export * from "./hooks/use-host-version-api.js";
51
+ export * from "./hooks/use-duplicate-resource-api.js";
52
+ export * from "./components/duplicate-resource-dialog.js";
53
+ export * from "./hooks/use-plugin-config.js";
54
+ export * from "./hooks/use-host.js";
55
+ export * from "./hooks/use-layout.js";
56
+ export * from "./hooks/use-layout-version.js";
57
+ export * from "./hooks/use-screen.js";
58
+ export * from "./hooks/use-screen-version.js";
59
+ export * from "./hooks/use-user-name.js";
60
+ export * from "./hooks/use-user-photo.js";
61
+
62
+ //# sourceMappingURL=tenant.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../../../../libs/tenant/feature/instance/src/lib/tenant.ts"],"sourcesContent":["/**\n * @license\n * Copyright 2022 Aglyn LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nexport * from './constants/mock-data'\nexport * from './constants/site-paths'\nexport * from './constants/firebase-config'\nexport * from './constants/firebase-emulator-hosts'\n\nexport * from './hooks/firebase/auth-persistence'\nexport * from './hooks/firebase/firebase-services'\nexport * from './hooks/firebase/firestore-cache'\nexport * from './hooks/helpers/use-doc'\nexport * from './hooks/helpers/use-modify-doc-callback'\nexport * from './hooks/helpers/besigner-nodes-converter'\nexport * from './hooks/helpers/guarded-nodes-save'\nexport * from './hooks/helpers/guarded-seed-write'\n\nexport * from './hooks/firestore-denial-reporter'\nexport * from './hooks/use-firestore-collection'\nexport * from './hooks/use-paged-collection'\nexport * from './hooks/use-sorted-paged-collection'\nexport * from './hooks/sorted-collection-window'\nexport * from './hooks/host-collection-queries'\nexport * from './hooks/list-filter-constraints'\nexport * from './hooks/use-firestore-doc'\nexport * from './hooks/use-switcher-collection'\nexport * from './hooks/use-host-activity-logger'\nexport * from './hooks/use-live-artifact-count'\nexport * from './hooks/use-component'\nexport * from './hooks/use-component-version'\nexport * from './hooks/use-form-version'\nexport * from './hooks/use-host-template'\nexport * from './hooks/use-console-host-route'\nexport * from './hooks/use-host-org-id'\nexport * from './hooks/use-host-campaigns'\nexport * from './hooks/use-org-member-options'\nexport * from './hooks/use-org-plan'\nexport * from './hooks/use-scope-tokens'\nexport * from './hooks/use-host-resource-api'\nexport * from './hooks/use-host-version-api'\nexport * from './hooks/use-duplicate-resource-api'\nexport * from './components/duplicate-resource-dialog'\nexport * from './hooks/use-plugin-config'\nexport * from './hooks/use-host'\nexport * from './hooks/use-layout'\nexport * from './hooks/use-layout-version'\nexport * from './hooks/use-screen'\nexport * from './hooks/use-screen-version'\nexport * from './hooks/use-user-name'\nexport * from './hooks/use-user-photo'\n"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;CAeC,GAED,cAAc,2BAAuB;AACrC,cAAc,4BAAwB;AACtC,cAAc,iCAA6B;AAC3C,cAAc,yCAAqC;AAEnD,cAAc,uCAAmC;AACjD,cAAc,wCAAoC;AAClD,cAAc,sCAAkC;AAChD,cAAc,6BAAyB;AACvC,cAAc,6CAAyC;AACvD,cAAc,8CAA0C;AACxD,cAAc,wCAAoC;AAClD,cAAc,wCAAoC;AAElD,cAAc,uCAAmC;AACjD,cAAc,sCAAkC;AAChD,cAAc,kCAA8B;AAC5C,cAAc,yCAAqC;AACnD,cAAc,sCAAkC;AAChD,cAAc,qCAAiC;AAC/C,cAAc,qCAAiC;AAC/C,cAAc,+BAA2B;AACzC,cAAc,qCAAiC;AAC/C,cAAc,sCAAkC;AAChD,cAAc,qCAAiC;AAC/C,cAAc,2BAAuB;AACrC,cAAc,mCAA+B;AAC7C,cAAc,8BAA0B;AACxC,cAAc,+BAA2B;AACzC,cAAc,oCAAgC;AAC9C,cAAc,6BAAyB;AACvC,cAAc,gCAA4B;AAC1C,cAAc,oCAAgC;AAC9C,cAAc,0BAAsB;AACpC,cAAc,8BAA0B;AACxC,cAAc,mCAA+B;AAC7C,cAAc,kCAA8B;AAC5C,cAAc,wCAAoC;AAClD,cAAc,4CAAwC;AACtD,cAAc,+BAA2B;AACzC,cAAc,sBAAkB;AAChC,cAAc,wBAAoB;AAClC,cAAc,gCAA4B;AAC1C,cAAc,wBAAoB;AAClC,cAAc,gCAA4B;AAC1C,cAAc,2BAAuB;AACrC,cAAc,4BAAwB"}