@burdenoff/microfe-export 2026.1124.2 → 2026.1125.2
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/dist/export/ExportRoutes.js +62 -57
- package/dist/export/ExportRoutes.js.map +1 -1
- package/dist/export/components/ConfirmDestructiveDialog.js +18 -14
- package/dist/export/components/ConfirmDestructiveDialog.js.map +1 -1
- package/dist/export/components/DownloadStatus.js +14 -10
- package/dist/export/components/DownloadStatus.js.map +1 -1
- package/dist/export/components/ExportProgressBar.d.ts +3 -1
- package/dist/export/components/ExportProgressBar.js +23 -11
- package/dist/export/components/ExportProgressBar.js.map +1 -1
- package/dist/export/components/loadingSystem.d.ts +64 -0
- package/dist/export/components/loadingSystem.js +49 -0
- package/dist/export/components/loadingSystem.js.map +1 -0
- package/dist/export/hooks/exportBackgroundTask.d.ts +18 -0
- package/dist/export/hooks/exportBackgroundTask.js +46 -0
- package/dist/export/hooks/exportBackgroundTask.js.map +1 -0
- package/dist/export/hooks/useExportQueries.d.ts +12 -12
- package/dist/export/hooks/useExportQueries.js +166 -156
- package/dist/export/hooks/useExportQueries.js.map +1 -1
- package/dist/export/pages/CreateExportPage.js +29 -27
- package/dist/export/pages/CreateExportPage.js.map +1 -1
- package/dist/export/pages/ExportDashboardPage.js +114 -113
- package/dist/export/pages/ExportDashboardPage.js.map +1 -1
- package/dist/export/pages/ExportDetailPage.js +104 -98
- package/dist/export/pages/ExportDetailPage.js.map +1 -1
- package/dist/export/pages/ExportHistoryPage.js +150 -149
- package/dist/export/pages/ExportHistoryPage.js.map +1 -1
- package/dist/export/pages/ExportTemplatesPage.js +156 -154
- package/dist/export/pages/ExportTemplatesPage.js.map +1 -1
- package/dist/export/pages/TemplateDetailPage.js +142 -136
- package/dist/export/pages/TemplateDetailPage.js.map +1 -1
- package/dist/export/pages/v2/DownloadDetailPage.js +108 -103
- package/dist/export/pages/v2/DownloadDetailPage.js.map +1 -1
- package/dist/export/pages/v2/DownloadsPage.js +153 -152
- package/dist/export/pages/v2/DownloadsPage.js.map +1 -1
- package/dist/export/pages/v2/NewDownloadPage.js +142 -138
- package/dist/export/pages/v2/NewDownloadPage.js.map +1 -1
- package/dist/export/workspace-v2/DownloadCells.js +32 -20
- package/dist/export/workspace-v2/DownloadCells.js.map +1 -1
- package/dist/export/workspace-v2/NewDownloadDialog.js +1 -1
- package/dist/export/workspace-v2/NewDownloadDialog.js.map +1 -1
- package/dist/export/workspace-v2/useExportAccess.d.ts +2 -2
- package/dist/export/workspace-v2/useExportAccess.js.map +1 -1
- package/dist/generated/wspace-operations.d.ts +0 -42
- package/dist/generated/wspace-operations.js +6 -16
- package/dist/generated/wspace-operations.js.map +1 -1
- package/package.json +2 -2
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { Loader2 as e } from "lucide-react";
|
|
2
|
+
import { Fragment as t, jsx as n } from "react/jsx-runtime";
|
|
3
|
+
import { useLoadingSystem as r } from "@burdenoff/fe-libs/ui/loading/LoadingSystemProvider";
|
|
4
|
+
import "@burdenoff/fe-libs/ui/loading/BrandLoader";
|
|
5
|
+
import { SectionLoader as i } from "@burdenoff/fe-libs/ui/loading/Loaders";
|
|
6
|
+
import { SpinnerIcon as a } from "@burdenoff/fe-libs/ui/loading/SpinnerIcon";
|
|
7
|
+
import { Skeleton as o } from "@burdenoff/fe-libs/ui/skeleton";
|
|
8
|
+
import { useShellLabel as s } from "@burdenoff/fe-libs/shared/providers/shell/useShellLabel";
|
|
9
|
+
// src/export/components/loadingSystem.tsx
|
|
10
|
+
function c({ tone: t, ...i }) {
|
|
11
|
+
return r() ? /* @__PURE__ */ n(a, {
|
|
12
|
+
tone: t,
|
|
13
|
+
...i
|
|
14
|
+
}) : /* @__PURE__ */ n(e, { ...i });
|
|
15
|
+
}
|
|
16
|
+
var l = /^(?:[\w-]+:)*(?:animate-pulse|animate-vc-shimmer|bg-\S+)$/;
|
|
17
|
+
function u(e) {
|
|
18
|
+
return (e ?? "").split(/\s+/).filter((e) => e && !l.test(e)).join(" ") || void 0;
|
|
19
|
+
}
|
|
20
|
+
function d({ as: e = "div", ...t }) {
|
|
21
|
+
if (!r()) return /* @__PURE__ */ n(e, { ...t });
|
|
22
|
+
let { className: i, ...a } = t, s = u(i);
|
|
23
|
+
if (e === "span") {
|
|
24
|
+
let e = s && /(?:^|\s|:)rounded/.test(s) ? "" : "rounded-card";
|
|
25
|
+
return /* @__PURE__ */ n("span", {
|
|
26
|
+
"data-slot": "skeleton",
|
|
27
|
+
"data-loading-system": "skeleton",
|
|
28
|
+
"aria-hidden": "true",
|
|
29
|
+
className: [e, s].filter(Boolean).join(" "),
|
|
30
|
+
...a
|
|
31
|
+
});
|
|
32
|
+
}
|
|
33
|
+
return /* @__PURE__ */ n(o, {
|
|
34
|
+
className: s,
|
|
35
|
+
...a
|
|
36
|
+
});
|
|
37
|
+
}
|
|
38
|
+
function f({ today: e, label: a, minHeight: o, route: c, className: l }) {
|
|
39
|
+
let u = r(), d = s();
|
|
40
|
+
return u ? /* @__PURE__ */ n(i, {
|
|
41
|
+
label: a ?? d("loading.generic", "Loading…"),
|
|
42
|
+
minHeight: o,
|
|
43
|
+
route: c,
|
|
44
|
+
className: l
|
|
45
|
+
}) : /* @__PURE__ */ n(t, { children: e });
|
|
46
|
+
}
|
|
47
|
+
export { f as SectionLoaderOr, d as SkeletonBlock, c as SpinnerIcon };
|
|
48
|
+
|
|
49
|
+
//# sourceMappingURL=loadingSystem.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"loadingSystem.js","names":["SpinnerIcon","SystemSpinnerIcon","Today","_Fragment","SpinnerIcon$1","props","useLoadingSystem","SpinnerIcon","Loader2","TODAYS_PAINT","skeletonClasses","className","c","SkeletonBlock","as","rest","kept","corner","Skeleton","SectionLoaderOr","loadingSystem","shellLabel","useShellLabel","SectionLoader","label","Fragment","today"],"sources":["../../../src/export/components/loadingSystem.tsx"],"sourcesContent":["/**\n * The loading system's pieces for this module's own hand-made loaders (BOFF-16259). Without the\n * product's opt-in (`AppShellConfig.loadingSystem`, FluidGrids only) each renders exactly today's\n * markup, so every other product that mounts the module sees no change; under it, the fe-libs\n * piece: the compact mark for a spinner, the system's skeleton for a pulse block, the section\n * loader for a box that waits.\n *\n * fe-libs is imported by its per-file paths (the same modules its barrels re-export), so a test\n * that stubs a barrel never takes these pieces with it; a component that branches on the opt-in\n * itself reads `useLoadingSystem` from `@burdenoff/fe-libs/ui/loading/LoadingSystemProvider`.\n */\nimport type { HTMLAttributes, ReactNode } from \"react\";\nimport { Loader2 } from \"lucide-react\";\nimport { BrandLoader } from \"@burdenoff/fe-libs/ui/loading/BrandLoader\";\nimport { useLoadingSystem } from \"@burdenoff/fe-libs/ui/loading/LoadingSystemProvider\";\nimport { SectionLoader } from \"@burdenoff/fe-libs/ui/loading/Loaders\";\nimport {\n SpinnerIcon as SystemSpinnerIcon,\n type SpinnerIconProps,\n} from \"@burdenoff/fe-libs/ui/loading/SpinnerIcon\";\nimport { Skeleton } from \"@burdenoff/fe-libs/ui/skeleton\";\nimport { useShellLabel } from \"@burdenoff/fe-libs/shared/providers/shell/useShellLabel\";\n\n/**\n * A drop-in for `<Loader2 className=\"… animate-spin\" />`. Without the opt-in it IS this module's\n * `Loader2`, with exactly the props it was given: fe-libs resolves a newer lucide-react than the\n * module's (its icons add `aria-hidden`), so fe-libs' own `SpinnerIcon` would not draw the module's\n * spinner byte for byte. Under the opt-in, fe-libs' `SpinnerIcon`: the compact mark, sized from\n * the classes, `animate-spin` dropped; `tone=\"current\"` lights it in the label's colour (a filled\n * button).\n */\nexport function SpinnerIcon({ tone, ...props }: SpinnerIconProps) {\n const loadingSystem = useLoadingSystem();\n if (!loadingSystem) return <Loader2 {...props} />;\n return <SystemSpinnerIcon tone={tone} {...props} />;\n}\n\n/**\n * A spinner the module draws itself (a CSS ring, its own svg, a turning icon): `today` exactly\n * without the opt-in; under it, the compact mark. As fe-libs' `CompactMarkOr`, with the mark's\n * `tone`: in a filled button it lights in the label's colour (an accent light on an accent fill\n * would not show).\n */\nexport function CompactMarkOr({\n today,\n className,\n tone,\n}: {\n /** The spinner as the module draws it today. */\n today: ReactNode;\n /** The compact mark's classes (its size, its margins). */\n className?: string;\n tone?: \"brand\" | \"current\";\n}) {\n const loadingSystem = useLoadingSystem();\n if (!loadingSystem) return <>{today}</>;\n return <BrandLoader size=\"s\" tone={tone} className={className} />;\n}\n\n/** What today's block paints itself, which the system's skeleton paints instead. */\nconst TODAYS_PAINT =\n /^(?:[\\w-]+:)*(?:animate-pulse|animate-vc-shimmer|bg-\\S+)$/;\n\n/** A pulse block's classes under the opt-in: its size, shape and place, not its paint. */\nfunction skeletonClasses(className: string | undefined): string | undefined {\n const kept = (className ?? \"\")\n .split(/\\s+/)\n .filter((c) => c && !TODAYS_PAINT.test(c))\n .join(\" \");\n return kept || undefined;\n}\n\nexport type SkeletonBlockProps = HTMLAttributes<HTMLElement> & {\n /** Today's element: a `span` stays a `span` (it may sit in a line of text). */\n as?: \"div\" | \"span\";\n};\n\n/**\n * A grey block standing in for content on its way: a drop-in for today's hand-made\n * `<div className=\"… animate-pulse bg-…\" />`. Without the opt-in it IS that element, with exactly\n * the props it was given, in their order; under it, the system's skeleton (one light passing, still\n * under reduced motion, hidden from assistive technology) in the block's size, shape and place.\n */\nexport function SkeletonBlock({ as = \"div\", ...props }: SkeletonBlockProps) {\n const loadingSystem = useLoadingSystem();\n if (!loadingSystem) {\n const Today = as;\n return <Today {...props} />;\n }\n const { className, ...rest } = props;\n const kept = skeletonClasses(className);\n if (as === \"span\") {\n // fe-libs' Skeleton is a div; in a line of text the same skeleton is a span (its attributes,\n // its corner unless the block sets its own).\n const corner = kept && /(?:^|\\s|:)rounded/.test(kept) ? \"\" : \"rounded-card\";\n return (\n <span\n data-slot=\"skeleton\"\n data-loading-system=\"skeleton\"\n aria-hidden=\"true\"\n className={[corner, kept].filter(Boolean).join(\" \")}\n {...rest}\n />\n );\n }\n return (\n <Skeleton className={kept} {...(rest as HTMLAttributes<HTMLDivElement>)} />\n );\n}\n\n/**\n * A box that pulses as a whole around its grey blocks (today's `<div className=\"animate-pulse …\">`\n * with plain blocks inside): a drop-in for that element. Without the opt-in it IS that element,\n * prop for prop; under it, the same element without the pulse (its blocks are `SkeletonBlock`s,\n * each with the system's light).\n */\nexport type SkeletonGroupProps = HTMLAttributes<HTMLElement> & {\n /** Today's element. */\n as?: \"div\" | \"span\" | \"li\" | \"section\";\n};\n\nexport function SkeletonGroup({ as = \"div\", ...props }: SkeletonGroupProps) {\n const loadingSystem = useLoadingSystem();\n const Today = as;\n if (!loadingSystem) return <Today {...props} />;\n const className =\n props.className\n ?.split(/\\s+/)\n .filter(\n (c) =>\n c && !/^(?:[\\w-]+:)*(?:animate-pulse|animate-vc-shimmer)$/.test(c),\n )\n .join(\" \") || undefined;\n return <Today {...props} className={className} />;\n}\n\nexport interface SectionLoaderOrProps {\n /** Today's loader, rendered exactly as it is without the opt-in. */\n today: ReactNode;\n /** What is loading, from today's words; the shell's \"Loading…\" when the box had none. */\n label?: string;\n /** Today's box height, so nothing moves when the content lands. */\n minHeight?: string;\n /** A page's loader (a route's code or its first data): it also runs the route wire. */\n route?: boolean;\n /** Where today's box sat (its grid span, margins). */\n className?: string;\n}\n\n/**\n * A box that waits on content of unknown shape. Without the opt-in it is `today`, exactly; under\n * it, fe-libs' `SectionLoader`: nothing for 300 ms, then the product's mark and the words, held at\n * least 600 ms, in a box of today's height.\n */\nexport function SectionLoaderOr({\n today,\n label,\n minHeight,\n route,\n className,\n}: SectionLoaderOrProps) {\n const loadingSystem = useLoadingSystem();\n const shellLabel = useShellLabel();\n if (!loadingSystem) return <>{today}</>;\n return (\n <SectionLoader\n label={label ?? shellLabel(\"loading.generic\", \"Loading…\")}\n minHeight={minHeight}\n route={route}\n className={className}\n />\n );\n}\n"],"mappings":";;;;;;;;;AA+BA,SAAgBA,EAAY,EAAE,SAAM,GAAGK,KAA2B;CAGhE,OAFsBC,EACjB,IACE,kBAACL,GAAD;EAAyB;EAAM,GAAII;CAAQ,CAAA,IADvB,kBAACG,GAAD,EAAS,GAAIH,EAAQ,CAAA;AAElD;AAyBA,IAAMI,IACJ;AAGF,SAASC,EAAgB,GAAmD;CAK1E,QAJcC,KAAa,GAAA,CACxB,MAAM,KAAK,CAAC,CACZ,QAAQ,MAAMC,KAAK,CAACH,EAAa,KAAKG,CAAC,CAAC,CAAC,CACzC,KAAK,GACD,KAAQ,KAAA;AACjB;AAaA,SAAgBC,EAAc,EAAE,QAAK,OAAO,GAAGR,KAA6B;CAE1E,IAAI,CADkBC,EACjB,GAEH,OAAO,kBAACJ,GAAD,EAAO,GAAIG,EAAQ,CAAA;CAE5B,IAAM,EAAE,cAAW,GAAGU,MAASV,GACzBW,IAAON,EAAgBC,CAAS;CACtC,IAAIG,MAAO,QAAQ;EAGjB,IAAMG,IAASD,KAAQ,oBAAoB,KAAKA,CAAI,IAAI,KAAK;EAC7D,OACE,kBAAC,QAAD;GACE,aAAU;GACV,uBAAoB;GACpB,eAAY;GACZ,WAAW,CAACC,GAAQD,CAAI,CAAC,CAAC,OAAO,OAAO,CAAC,CAAC,KAAK,GAAG;GAClD,GAAID;EACL,CAAA;CAEL;CACA,OACE,kBAACG,GAAD;EAAU,WAAWF;EAAM,GAAKD;CAA0C,CAAA;AAE9E;AA8CA,SAAgBI,EAAgB,EAC9B,UACA,UACA,cACA,UACA,gBACuB;CACvB,IAAMC,IAAgBd,EAAiB,GACjCe,IAAaC,EAAc;CAEjC,OADKF,IAEH,kBAACG,GAAD;EACE,OAAOC,KAASH,EAAW,mBAAmB,UAAU;EAC7C;EACJ;EACI;CACZ,CAAA,IAPwB,kBAAAlB,GAAA,EAAA,UAAGuB,EAAQ,CAAA;AASxC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { ApolloClient } from '@apollo/client';
|
|
2
|
+
import { ExportJob } from '../types';
|
|
3
|
+
export interface FollowExportOptions {
|
|
4
|
+
client: ApolloClient;
|
|
5
|
+
job: Pick<ExportJob, "id" | "name">;
|
|
6
|
+
/** The toast's words when the download is ready, and its action's. */
|
|
7
|
+
readyMessage: string;
|
|
8
|
+
openLabel: string;
|
|
9
|
+
/** Opens the download (its page). */
|
|
10
|
+
onOpen: () => void;
|
|
11
|
+
}
|
|
12
|
+
/** The chip's id for a job: starting the same job again replaces its chip. */
|
|
13
|
+
export declare function exportTaskId(jobId: string): string;
|
|
14
|
+
/**
|
|
15
|
+
* Follow a job in the top bar until it is ready (a toast with `openLabel`) or stops (the chip
|
|
16
|
+
* goes). Returns a stop function that ends the follow-up and takes the chip away.
|
|
17
|
+
*/
|
|
18
|
+
export declare function followExportInBackground({ client, job, readyMessage, openLabel, onOpen, }: FollowExportOptions): () => void;
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { ExportJobProgressDocument as e } from "../../generated/wspace-operations.js";
|
|
2
|
+
import { startBackgroundTask as t } from "@burdenoff/fe-libs/ui/loading/backgroundTasks";
|
|
3
|
+
// src/export/hooks/exportBackgroundTask.ts
|
|
4
|
+
var n = /* @__PURE__ */ new Set([
|
|
5
|
+
"FAILED",
|
|
6
|
+
"CANCELLED",
|
|
7
|
+
"EXPIRED",
|
|
8
|
+
"DELETED"
|
|
9
|
+
]);
|
|
10
|
+
function r(e) {
|
|
11
|
+
return `export:${e}`;
|
|
12
|
+
}
|
|
13
|
+
function i({ client: i, job: a, readyMessage: o, openLabel: s, onOpen: c }) {
|
|
14
|
+
let l = t({
|
|
15
|
+
id: r(a.id),
|
|
16
|
+
name: a.name,
|
|
17
|
+
onOpen: c
|
|
18
|
+
}), u = !1, d = {};
|
|
19
|
+
d.current = i.subscribe({
|
|
20
|
+
query: e,
|
|
21
|
+
variables: { jobId: a.id }
|
|
22
|
+
}).subscribe({
|
|
23
|
+
next: ({ data: e }) => {
|
|
24
|
+
let t = e?.exportJobProgress;
|
|
25
|
+
if (!t || u) return;
|
|
26
|
+
let r = t.status;
|
|
27
|
+
r === "COMPLETED" ? (f(), l.finish({
|
|
28
|
+
message: o,
|
|
29
|
+
actionLabel: s,
|
|
30
|
+
onAction: c
|
|
31
|
+
})) : n.has(r) ? (f(), l.remove()) : l.update(Math.min(100, Math.max(0, t.progress)) / 100);
|
|
32
|
+
},
|
|
33
|
+
error: () => {
|
|
34
|
+
f(), l.remove();
|
|
35
|
+
}
|
|
36
|
+
}), u && d.current.unsubscribe();
|
|
37
|
+
function f() {
|
|
38
|
+
u = !0, d.current?.unsubscribe();
|
|
39
|
+
}
|
|
40
|
+
return () => {
|
|
41
|
+
u || (f(), l.remove());
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
export { r as exportTaskId, i as followExportInBackground };
|
|
45
|
+
|
|
46
|
+
//# sourceMappingURL=exportBackgroundTask.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"exportBackgroundTask.js","names":["STOPPED","exportTaskId","jobId","followExportInBackground","handle","startBackgroundTask","job","ended","subscription","client","ExportJobProgressDocument","progress","data","status","end","readyMessage","openLabel","onOpen"],"sources":["../../../src/export/hooks/exportBackgroundTask.ts"],"sourcesContent":["/**\n * An export the person keeps working through (BOFF-16259). Under the loading system's opt-in\n * (FluidGrids), a download just started is followed in the top bar's task chip (fe-libs\n * `TaskChip`): its real progress from the job's progress subscription, then a toast when it is\n * ready, with a way to it. The follow-up lives at module scope, like a toast: it outlives the page\n * or dialog that started the export. Without the opt-in nothing is followed.\n */\nimport type { ApolloClient } from \"@apollo/client\";\nimport { startBackgroundTask } from \"@burdenoff/fe-libs/ui/loading/backgroundTasks\";\nimport {\n ExportJobProgressDocument,\n type ExportJobProgressSubscription,\n type ExportJobProgressSubscriptionVariables,\n} from \"../../generated/wspace-operations\";\nimport type { ExportJob, ExportJobStatus } from \"../types\";\n\n/** The statuses after which a job makes no more progress. */\nconst STOPPED: ReadonlySet<ExportJobStatus> = new Set([\n \"FAILED\",\n \"CANCELLED\",\n \"EXPIRED\",\n \"DELETED\",\n]);\n\nexport interface FollowExportOptions {\n client: ApolloClient;\n job: Pick<ExportJob, \"id\" | \"name\">;\n /** The toast's words when the download is ready, and its action's. */\n readyMessage: string;\n openLabel: string;\n /** Opens the download (its page). */\n onOpen: () => void;\n}\n\n/** The chip's id for a job: starting the same job again replaces its chip. */\nexport function exportTaskId(jobId: string): string {\n return `export:${jobId}`;\n}\n\n/**\n * Follow a job in the top bar until it is ready (a toast with `openLabel`) or stops (the chip\n * goes). Returns a stop function that ends the follow-up and takes the chip away.\n */\nexport function followExportInBackground({\n client,\n job,\n readyMessage,\n openLabel,\n onOpen,\n}: FollowExportOptions): () => void {\n const handle = startBackgroundTask({\n id: exportTaskId(job.id),\n name: job.name,\n onOpen,\n });\n let ended = false;\n // Held in an object: a report may end the follow-up before `subscribe` has returned.\n const subscription: { current?: { unsubscribe(): void } } = {};\n subscription.current = client\n .subscribe<\n ExportJobProgressSubscription,\n ExportJobProgressSubscriptionVariables\n >({ query: ExportJobProgressDocument, variables: { jobId: job.id } })\n .subscribe({\n next: ({ data }) => {\n const progress = data?.exportJobProgress;\n if (!progress || ended) return;\n // The generated enum's values are the module's own status words (as `mapJob` reads them).\n const status = progress.status as ExportJobStatus;\n if (status === \"COMPLETED\") {\n end();\n handle.finish({\n message: readyMessage,\n actionLabel: openLabel,\n onAction: onOpen,\n });\n return;\n }\n if (STOPPED.has(status)) {\n end();\n handle.remove();\n return;\n }\n handle.update(Math.min(100, Math.max(0, progress.progress)) / 100);\n },\n // The progress can no longer be followed: no chip that would never move again.\n error: () => {\n end();\n handle.remove();\n },\n });\n\n // A report that ended the job before `subscribe` returned leaves no subscription to keep.\n if (ended) subscription.current.unsubscribe();\n\n function end() {\n ended = true;\n subscription.current?.unsubscribe();\n }\n\n return () => {\n if (ended) return;\n end();\n handle.remove();\n };\n}\n"],"mappings":";;;AAiBA,IAAMA,oBAAwC,IAAI,IAAI;CACpD;CACA;CACA;CACA;AACF,CAAC;AAaD,SAAgBC,EAAa,GAAuB;CAClD,OAAO,UAAUC;AACnB;AAMA,SAAgBC,EAAyB,EACvC,WACA,QACA,iBACA,cACA,aACkC;CAClC,IAAMC,IAASC,EAAoB;EACjC,IAAIJ,EAAaK,EAAI,EAAE;EACvB,MAAMA,EAAI;EACV;CACF,CAAC,GACGC,IAAQ,IAENC,IAAsD,CAAC;CAoC7D,AAnCA,EAAa,UAAUC,EACpB,UAGC;EAAE,OAAOC;EAA2B,WAAW,EAAE,OAAOJ,EAAI,GAAG;CAAE,CAAC,CAAC,CACpE,UAAU;EACT,OAAO,EAAE,cAAW;GAClB,IAAMK,IAAWC,GAAM;GACvB,IAAI,CAACD,KAAYJ,GAAO;GAExB,IAAMM,IAASF,EAAS;GACxB,AAAIE,MAAW,eACbC,EAAI,GACJV,EAAO,OAAO;IACZ,SAASW;IACT,aAAaC;IACb,UAAUC;GACZ,CAAC,KAGCjB,EAAQ,IAAIa,CAAM,KACpBC,EAAI,GACJV,EAAO,OAAO,KAGhBA,EAAO,OAAO,KAAK,IAAI,KAAK,KAAK,IAAI,GAAGO,EAAS,QAAQ,CAAC,IAAI,GAAG;EACnE;EAEA,aAAa;GAEX,AADAG,EAAI,GACJV,EAAO,OAAO;EAChB;CACF,CAAC,GAGCG,KAAOC,EAAa,QAAQ,YAAY;CAE5C,SAASM,IAAM;EAEb,AADA,IAAQ,IACRN,EAAa,SAAS,YAAY;CACpC;CAEA,aAAa;EACX,AAAID,MACJO,EAAI,GACJV,EAAO,OAAO;CAChB;AACF"}
|
|
@@ -273,16 +273,16 @@ export declare function useDeleteExportTemplate(): {
|
|
|
273
273
|
isPending: boolean;
|
|
274
274
|
error: import('@apollo/client').ErrorLike | null;
|
|
275
275
|
};
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
export declare function useOrganizationExportPermission(
|
|
276
|
+
/**
|
|
277
|
+
* Whether the person may download the whole organization: no, for everyone, and nothing is
|
|
278
|
+
* asked (BOFF-16327). The organization option stays locked, as it always was in practice.
|
|
279
|
+
*
|
|
280
|
+
* This used to ask the workspace access service (`myPermissions` with the organization's id).
|
|
281
|
+
* That service answers only for the person's own workspace, so every member got a 403 in the
|
|
282
|
+
* console on each visit, and its catalog has no organization export grant at all, so no one,
|
|
283
|
+
* admins included, could get a yes. The grant (`export:organization_admin`) belongs to Global
|
|
284
|
+
* RBAC (BOFF-8579). When organization downloads are checked there, ask Global RBAC's
|
|
285
|
+
* `myPermissions` (a self query: the person's own grants, in any scope).
|
|
286
|
+
*/
|
|
287
|
+
export declare function useOrganizationExportPermission(_organizationId: string | undefined): boolean;
|
|
288
288
|
export {};
|