@aglyn/tenant-feature-instance 1.0.0-beta.200 → 1.0.0-beta.202

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aglyn/tenant-feature-instance",
3
- "version": "1.0.0-beta.200",
3
+ "version": "1.0.0-beta.202",
4
4
  "license": "Apache-2.0",
5
5
  "homepage": "https://aglyn.com",
6
6
  "repository": {
@@ -25,11 +25,11 @@
25
25
  "./package.json": "./package.json"
26
26
  },
27
27
  "dependencies": {
28
- "@aglyn/aglyn": "1.0.0-beta.200",
29
- "@aglyn/shared-data-enums": "1.0.0-beta.200",
30
- "@aglyn/shared-ui-jsx": "1.0.0-beta.200",
31
- "@aglyn/shared-util-http": "1.0.0-beta.200",
32
- "@aglyn/shared-util-timestamp": "1.0.0-beta.200",
28
+ "@aglyn/aglyn": "1.0.0-beta.202",
29
+ "@aglyn/shared-data-enums": "1.0.0-beta.202",
30
+ "@aglyn/shared-ui-jsx": "1.0.0-beta.202",
31
+ "@aglyn/shared-util-http": "1.0.0-beta.202",
32
+ "@aglyn/shared-util-timestamp": "1.0.0-beta.202",
33
33
  "@swc/helpers": "0.5.23",
34
34
  "lodash-es": "^4.18.1"
35
35
  },
@@ -0,0 +1,30 @@
1
+ /**
2
+ * @license
3
+ * Copyright 2026 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
+ /**
18
+ * Posts a JSON body to a plugin's console API as the signed-in user, as a
19
+ * FOLLOW-UP to something that has already happened: a figure recounted after
20
+ * a delete, a mirror restamped after a switch (AGL-3330).
21
+ *
22
+ * Best effort, and it never throws: the act that prompted it has already
23
+ * landed, so a follow-up that fails is logged and answered `false`, and the
24
+ * caller carries on. Anything whose outcome the reader must see belongs on a
25
+ * call that reports it, not here.
26
+ *
27
+ * @returns whether the route answered 2xx.
28
+ */
29
+ export declare function usePluginApiPost(): (path: string, body: unknown) => Promise<boolean>;
30
+ export default usePluginApiPost;
@@ -0,0 +1,53 @@
1
+ /**
2
+ * @license
3
+ * Copyright 2026 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 { authorizedFetch } from "@aglyn/shared-util-http/authorized-token";
17
+ import { useCallback } from "react";
18
+ import { useUser } from "./firebase/firebase-services.js";
19
+ /**
20
+ * Posts a JSON body to a plugin's console API as the signed-in user, as a
21
+ * FOLLOW-UP to something that has already happened: a figure recounted after
22
+ * a delete, a mirror restamped after a switch (AGL-3330).
23
+ *
24
+ * Best effort, and it never throws: the act that prompted it has already
25
+ * landed, so a follow-up that fails is logged and answered `false`, and the
26
+ * caller carries on. Anything whose outcome the reader must see belongs on a
27
+ * call that reports it, not here.
28
+ *
29
+ * @returns whether the route answered 2xx.
30
+ */ export function usePluginApiPost() {
31
+ const { data: user } = useUser();
32
+ return useCallback(async (path, body)=>{
33
+ try {
34
+ const response = await authorizedFetch(user, path, {
35
+ method: 'POST',
36
+ headers: {
37
+ 'Content-Type': 'application/json'
38
+ },
39
+ body: JSON.stringify(body)
40
+ });
41
+ if (!response.ok) console.error(`${path} answered ${response.status}`);
42
+ return response.ok;
43
+ } catch (error) {
44
+ console.error(`${path} failed`, error);
45
+ return false;
46
+ }
47
+ }, [
48
+ user
49
+ ]);
50
+ }
51
+ export default usePluginApiPost;
52
+
53
+ //# sourceMappingURL=use-plugin-api-post.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../../../../../libs/tenant/feature/instance/src/lib/hooks/use-plugin-api-post.ts"],"sourcesContent":["/**\n * @license\n * Copyright 2026 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\nimport { authorizedFetch } from '@aglyn/shared-util-http/authorized-token'\nimport { useCallback } from 'react'\nimport { useUser } from './firebase/firebase-services'\n\n/**\n * Posts a JSON body to a plugin's console API as the signed-in user, as a\n * FOLLOW-UP to something that has already happened: a figure recounted after\n * a delete, a mirror restamped after a switch (AGL-3330).\n *\n * Best effort, and it never throws: the act that prompted it has already\n * landed, so a follow-up that fails is logged and answered `false`, and the\n * caller carries on. Anything whose outcome the reader must see belongs on a\n * call that reports it, not here.\n *\n * @returns whether the route answered 2xx.\n */\nexport function usePluginApiPost(): (path: string, body: unknown) => Promise<boolean> {\n const { data: user } = useUser()\n return useCallback(\n async (path, body) => {\n try {\n const response = await authorizedFetch(user, path, {\n method: 'POST',\n headers: { 'Content-Type': 'application/json' },\n body: JSON.stringify(body),\n })\n if (!response.ok) console.error(`${path} answered ${response.status}`)\n return response.ok\n } catch (error) {\n console.error(`${path} failed`, error)\n return false\n }\n },\n [user],\n )\n}\n\nexport default usePluginApiPost\n"],"names":["authorizedFetch","useCallback","useUser","usePluginApiPost","data","user","path","body","response","method","headers","JSON","stringify","ok","console","error","status"],"mappings":"AAAA;;;;;;;;;;;;;;;CAeC,GAED,SAASA,eAAe,QAAQ,2CAA0C;AAC1E,SAASC,WAAW,QAAQ,QAAO;AACnC,SAASC,OAAO,QAAQ,kCAA8B;AAEtD;;;;;;;;;;;CAWC,GACD,OAAO,SAASC;IACd,MAAM,EAAEC,MAAMC,IAAI,EAAE,GAAGH;IACvB,OAAOD,YACL,OAAOK,MAAMC;QACX,IAAI;YACF,MAAMC,WAAW,MAAMR,gBAAgBK,MAAMC,MAAM;gBACjDG,QAAQ;gBACRC,SAAS;oBAAE,gBAAgB;gBAAmB;gBAC9CH,MAAMI,KAAKC,SAAS,CAACL;YACvB;YACA,IAAI,CAACC,SAASK,EAAE,EAAEC,QAAQC,KAAK,CAAC,GAAGT,KAAK,UAAU,EAAEE,SAASQ,MAAM,EAAE;YACrE,OAAOR,SAASK,EAAE;QACpB,EAAE,OAAOE,OAAO;YACdD,QAAQC,KAAK,CAAC,GAAGT,KAAK,OAAO,CAAC,EAAES;YAChC,OAAO;QACT;IACF,GACA;QAACV;KAAK;AAEV;AAEA,eAAeF,iBAAgB"}
@@ -0,0 +1,34 @@
1
+ /**
2
+ * @license
3
+ * Copyright 2026 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
+ interface ActorRowLike {
18
+ actorId?: string | null;
19
+ actorEmail?: string | null;
20
+ }
21
+ /**
22
+ * A site activity feed's rows, each one that recorded a uid and no address
23
+ * given the address that uid holds now as `actorEmailNow` (AGL-3369).
24
+ *
25
+ * The site feeds read `hosts/{hostId}/activity` in the browser, which sees a
26
+ * uid but cannot turn one into an address; `/api/hosts/activity-actors`
27
+ * does, for members of the site and only for uids its log names. Rows render
28
+ * at once and gain the address when it arrives; a failed lookup leaves them
29
+ * as they were, and the presenter names the uid instead.
30
+ */
31
+ export declare function useResolvedActivityActors<T extends ActorRowLike>(hostId: string | null | undefined, rows: readonly T[]): Array<T & {
32
+ actorEmailNow?: string;
33
+ }>;
34
+ export {};
@@ -0,0 +1,92 @@
1
+ import { _ as _extends } from "@swc/helpers/_/_extends";
2
+ /**
3
+ * @license
4
+ * Copyright 2026 Aglyn LLC
5
+ *
6
+ * Licensed under the Apache License, Version 2.0 (the "License");
7
+ * you may not use this file except in compliance with the License.
8
+ * You may obtain a copy of the License at
9
+ *
10
+ * http://www.apache.org/licenses/LICENSE-2.0
11
+ *
12
+ * Unless required by applicable law or agreed to in writing, software
13
+ * distributed under the License is distributed on an "AS IS" BASIS,
14
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
+ * See the License for the specific language governing permissions and
16
+ * limitations under the License.
17
+ */ import { useEffect, useMemo, useRef, useState } from "react";
18
+ import { authorizedFetch } from "@aglyn/shared-util-http/authorized-token";
19
+ import { useUser } from "./firebase/firebase-services.js";
20
+ /** What the route resolves per request; a larger page asks in turns. */ const ACTORS_PER_REQUEST = 50;
21
+ /** A uid the row recorded with no address beside it, or null. */ function unaddressedUid(row) {
22
+ if (row.actorEmail) return null;
23
+ const uid = typeof row.actorId === 'string' ? row.actorId.trim() : '';
24
+ return uid && uid !== 'api' && !uid.startsWith('system:') ? uid : null;
25
+ }
26
+ /**
27
+ * A site activity feed's rows, each one that recorded a uid and no address
28
+ * given the address that uid holds now as `actorEmailNow` (AGL-3369).
29
+ *
30
+ * The site feeds read `hosts/{hostId}/activity` in the browser, which sees a
31
+ * uid but cannot turn one into an address; `/api/hosts/activity-actors`
32
+ * does, for members of the site and only for uids its log names. Rows render
33
+ * at once and gain the address when it arrives; a failed lookup leaves them
34
+ * as they were, and the presenter names the uid instead.
35
+ */ export function useResolvedActivityActors(hostId, rows) {
36
+ const { data: user } = useUser();
37
+ const [resolved, setResolved] = useState({});
38
+ // Asked once per site, in a ref: marking a uid asked must not re-run the
39
+ // effect that is still waiting on its answer.
40
+ const asked = useRef(new Set());
41
+ const currentHost = useRef(hostId);
42
+ // A different site is a different log: nothing resolved for one is asked
43
+ // of another's.
44
+ useEffect(()=>{
45
+ currentHost.current = hostId;
46
+ asked.current = new Set();
47
+ setResolved({});
48
+ }, [
49
+ hostId
50
+ ]);
51
+ useEffect(()=>{
52
+ if (!hostId || !user) return;
53
+ const fresh = [
54
+ ...new Set(rows.map(unaddressedUid).filter((uid)=>Boolean(uid)))
55
+ ].filter((uid)=>!asked.current.has(uid));
56
+ if (!fresh.length) return;
57
+ for (const uid of fresh)asked.current.add(uid);
58
+ void (async ()=>{
59
+ for(let start = 0; start < fresh.length; start += ACTORS_PER_REQUEST){
60
+ const url = new URL('/api/hosts/activity-actors', window.location.origin);
61
+ url.searchParams.set('hostId', hostId);
62
+ url.searchParams.set('uids', fresh.slice(start, start + ACTORS_PER_REQUEST).join(','));
63
+ try {
64
+ const response = await authorizedFetch(user, url.toString());
65
+ if (!response.ok) continue;
66
+ const payload = await response.json();
67
+ if (currentHost.current === hostId && payload.actors) {
68
+ setResolved((previous)=>_extends({}, previous, payload.actors));
69
+ }
70
+ } catch (unused) {
71
+ // The row keeps its uid; the presenter names it.
72
+ }
73
+ }
74
+ })();
75
+ }, [
76
+ hostId,
77
+ user,
78
+ rows
79
+ ]);
80
+ return useMemo(()=>rows.map((row)=>{
81
+ const uid = unaddressedUid(row);
82
+ const now = uid ? resolved[uid] : undefined;
83
+ return now ? _extends({}, row, {
84
+ actorEmailNow: now
85
+ }) : row;
86
+ }), [
87
+ rows,
88
+ resolved
89
+ ]);
90
+ }
91
+
92
+ //# sourceMappingURL=use-resolved-activity-actors.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../../../../../libs/tenant/feature/instance/src/lib/hooks/use-resolved-activity-actors.ts"],"sourcesContent":["/**\n * @license\n * Copyright 2026 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\nimport { useEffect, useMemo, useRef, useState } from 'react'\nimport { authorizedFetch } from '@aglyn/shared-util-http/authorized-token'\nimport { useUser } from './firebase/firebase-services'\n\n/** What the route resolves per request; a larger page asks in turns. */\nconst ACTORS_PER_REQUEST = 50\n\ninterface ActorRowLike {\n actorId?: string | null\n actorEmail?: string | null\n}\n\n/** A uid the row recorded with no address beside it, or null. */\nfunction unaddressedUid(row: ActorRowLike): string | null {\n if (row.actorEmail) return null\n const uid = typeof row.actorId === 'string' ? row.actorId.trim() : ''\n return uid && uid !== 'api' && !uid.startsWith('system:') ? uid : null\n}\n\n/**\n * A site activity feed's rows, each one that recorded a uid and no address\n * given the address that uid holds now as `actorEmailNow` (AGL-3369).\n *\n * The site feeds read `hosts/{hostId}/activity` in the browser, which sees a\n * uid but cannot turn one into an address; `/api/hosts/activity-actors`\n * does, for members of the site and only for uids its log names. Rows render\n * at once and gain the address when it arrives; a failed lookup leaves them\n * as they were, and the presenter names the uid instead.\n */\nexport function useResolvedActivityActors<T extends ActorRowLike>(\n hostId: string | null | undefined,\n rows: readonly T[],\n): Array<T & { actorEmailNow?: string }> {\n const { data: user } = useUser()\n const [resolved, setResolved] = useState<Record<string, string>>({})\n // Asked once per site, in a ref: marking a uid asked must not re-run the\n // effect that is still waiting on its answer.\n const asked = useRef(new Set<string>())\n const currentHost = useRef(hostId)\n\n // A different site is a different log: nothing resolved for one is asked\n // of another's.\n useEffect(() => {\n currentHost.current = hostId\n asked.current = new Set()\n setResolved({})\n }, [hostId])\n\n useEffect(() => {\n if (!hostId || !user) return\n const fresh = [\n ...new Set(rows.map(unaddressedUid).filter((uid): uid is string => Boolean(uid))),\n ].filter((uid) => !asked.current.has(uid))\n if (!fresh.length) return\n for (const uid of fresh) asked.current.add(uid)\n void (async () => {\n for (let start = 0; start < fresh.length; start += ACTORS_PER_REQUEST) {\n const url = new URL('/api/hosts/activity-actors', window.location.origin)\n url.searchParams.set('hostId', hostId)\n url.searchParams.set('uids', fresh.slice(start, start + ACTORS_PER_REQUEST).join(','))\n try {\n const response = await authorizedFetch(user, url.toString())\n if (!response.ok) continue\n const payload = (await response.json()) as { actors?: Record<string, string> }\n if (currentHost.current === hostId && payload.actors) {\n setResolved((previous) => ({ ...previous, ...payload.actors }))\n }\n } catch {\n // The row keeps its uid; the presenter names it.\n }\n }\n })()\n }, [hostId, user, rows])\n\n return useMemo(\n () =>\n rows.map((row) => {\n const uid = unaddressedUid(row)\n const now = uid ? resolved[uid] : undefined\n return now ? { ...row, actorEmailNow: now } : row\n }),\n [rows, resolved],\n )\n}\n"],"names":["useEffect","useMemo","useRef","useState","authorizedFetch","useUser","ACTORS_PER_REQUEST","unaddressedUid","row","actorEmail","uid","actorId","trim","startsWith","useResolvedActivityActors","hostId","rows","data","user","resolved","setResolved","asked","Set","currentHost","current","fresh","map","filter","Boolean","has","length","add","start","url","URL","window","location","origin","searchParams","set","slice","join","response","toString","ok","payload","json","actors","previous","now","undefined","actorEmailNow"],"mappings":";AAAA;;;;;;;;;;;;;;;CAeC,GAED,SAASA,SAAS,EAAEC,OAAO,EAAEC,MAAM,EAAEC,QAAQ,QAAQ,QAAO;AAC5D,SAASC,eAAe,QAAQ,2CAA0C;AAC1E,SAASC,OAAO,QAAQ,kCAA8B;AAEtD,sEAAsE,GACtE,MAAMC,qBAAqB;AAO3B,+DAA+D,GAC/D,SAASC,eAAeC,GAAiB;IACvC,IAAIA,IAAIC,UAAU,EAAE,OAAO;IAC3B,MAAMC,MAAM,OAAOF,IAAIG,OAAO,KAAK,WAAWH,IAAIG,OAAO,CAACC,IAAI,KAAK;IACnE,OAAOF,OAAOA,QAAQ,SAAS,CAACA,IAAIG,UAAU,CAAC,aAAaH,MAAM;AACpE;AAEA;;;;;;;;;CASC,GACD,OAAO,SAASI,0BACdC,MAAiC,EACjCC,IAAkB;IAElB,MAAM,EAAEC,MAAMC,IAAI,EAAE,GAAGb;IACvB,MAAM,CAACc,UAAUC,YAAY,GAAGjB,SAAiC,CAAC;IAClE,yEAAyE;IACzE,8CAA8C;IAC9C,MAAMkB,QAAQnB,OAAO,IAAIoB;IACzB,MAAMC,cAAcrB,OAAOa;IAE3B,yEAAyE;IACzE,gBAAgB;IAChBf,UAAU;QACRuB,YAAYC,OAAO,GAAGT;QACtBM,MAAMG,OAAO,GAAG,IAAIF;QACpBF,YAAY,CAAC;IACf,GAAG;QAACL;KAAO;IAEXf,UAAU;QACR,IAAI,CAACe,UAAU,CAACG,MAAM;QACtB,MAAMO,QAAQ;eACT,IAAIH,IAAIN,KAAKU,GAAG,CAACnB,gBAAgBoB,MAAM,CAAC,CAACjB,MAAuBkB,QAAQlB;SAC5E,CAACiB,MAAM,CAAC,CAACjB,MAAQ,CAACW,MAAMG,OAAO,CAACK,GAAG,CAACnB;QACrC,IAAI,CAACe,MAAMK,MAAM,EAAE;QACnB,KAAK,MAAMpB,OAAOe,MAAOJ,MAAMG,OAAO,CAACO,GAAG,CAACrB;QAC3C,KAAK,AAAC,CAAA;YACJ,IAAK,IAAIsB,QAAQ,GAAGA,QAAQP,MAAMK,MAAM,EAAEE,SAAS1B,mBAAoB;gBACrE,MAAM2B,MAAM,IAAIC,IAAI,8BAA8BC,OAAOC,QAAQ,CAACC,MAAM;gBACxEJ,IAAIK,YAAY,CAACC,GAAG,CAAC,UAAUxB;gBAC/BkB,IAAIK,YAAY,CAACC,GAAG,CAAC,QAAQd,MAAMe,KAAK,CAACR,OAAOA,QAAQ1B,oBAAoBmC,IAAI,CAAC;gBACjF,IAAI;oBACF,MAAMC,WAAW,MAAMtC,gBAAgBc,MAAMe,IAAIU,QAAQ;oBACzD,IAAI,CAACD,SAASE,EAAE,EAAE;oBAClB,MAAMC,UAAW,MAAMH,SAASI,IAAI;oBACpC,IAAIvB,YAAYC,OAAO,KAAKT,UAAU8B,QAAQE,MAAM,EAAE;wBACpD3B,YAAY,CAAC4B,WAAc,aAAKA,UAAaH,QAAQE,MAAM;oBAC7D;gBACF,EAAE,eAAM;gBACN,iDAAiD;gBACnD;YACF;QACF,CAAA;IACF,GAAG;QAAChC;QAAQG;QAAMF;KAAK;IAEvB,OAAOf,QACL,IACEe,KAAKU,GAAG,CAAC,CAAClB;YACR,MAAME,MAAMH,eAAeC;YAC3B,MAAMyC,MAAMvC,MAAMS,QAAQ,CAACT,IAAI,GAAGwC;YAClC,OAAOD,MAAM,aAAKzC;gBAAK2C,eAAeF;iBAAQzC;QAChD,IACF;QAACQ;QAAMG;KAAS;AAEpB"}
@@ -50,6 +50,7 @@ export * from './hooks/use-scope-tokens';
50
50
  export * from './hooks/use-host-resource-api';
51
51
  export * from './hooks/use-host-version-api';
52
52
  export * from './hooks/use-duplicate-resource-api';
53
+ export * from './hooks/use-plugin-api-post';
53
54
  export * from './components/duplicate-resource-dialog';
54
55
  export * from './hooks/use-plugin-config';
55
56
  export * from './hooks/use-host';
package/src/lib/tenant.js CHANGED
@@ -49,6 +49,7 @@ export * from "./hooks/use-scope-tokens.js";
49
49
  export * from "./hooks/use-host-resource-api.js";
50
50
  export * from "./hooks/use-host-version-api.js";
51
51
  export * from "./hooks/use-duplicate-resource-api.js";
52
+ export * from "./hooks/use-plugin-api-post.js";
52
53
  export * from "./components/duplicate-resource-dialog.js";
53
54
  export * from "./hooks/use-plugin-config.js";
54
55
  export * from "./hooks/use-host.js";
@@ -1 +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"}
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 './hooks/use-plugin-api-post'\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,iCAA6B;AAC3C,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"}