@burdenoff/microfe-export 2026.1107.2 → 2026.1108.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/dev/main.d.ts +0 -2
- package/dist/export/ExportRoot.d.ts +0 -2
- package/dist/export/ExportRoot.js +9 -6
- package/dist/export/ExportRoot.js.map +1 -1
- package/dist/export/ExportRoutes.d.ts +1 -2
- package/dist/export/ExportRoutes.js +1 -2
- package/dist/export/ExportRoutes.js.map +1 -1
- package/dist/export/components/ExportProgressBar.d.ts +1 -2
- package/dist/export/components/ExportProgressBar.js +1 -2
- package/dist/export/components/ExportProgressBar.js.map +1 -1
- package/dist/export/components/ExportStatusBadge.d.ts +1 -3
- package/dist/export/components/ExportStatusBadge.js +7 -8
- package/dist/export/components/ExportStatusBadge.js.map +1 -1
- package/dist/export/components/PageLayout.d.ts +3 -5
- package/dist/export/components/PageLayout.js +1 -2
- package/dist/export/components/PageLayout.js.map +1 -1
- package/dist/export/constants/enums.d.ts +0 -2
- package/dist/export/constants/enums.js +1 -2
- package/dist/export/constants/enums.js.map +1 -1
- package/dist/export/constants/index.d.ts +0 -1
- package/dist/export/hooks/useExportQueries.d.ts +14 -31
- package/dist/export/hooks/useExportQueries.js +162 -163
- package/dist/export/hooks/useExportQueries.js.map +1 -1
- package/dist/export/hooks/useTr.d.ts +0 -2
- package/dist/export/hooks/useTr.js +1 -2
- package/dist/export/hooks/useTr.js.map +1 -1
- package/dist/export/index.d.ts +0 -1
- package/dist/export/index.js +5 -4
- package/dist/export/pages/CreateExportPage.d.ts +1 -2
- package/dist/export/pages/CreateExportPage.js +53 -54
- package/dist/export/pages/CreateExportPage.js.map +1 -1
- package/dist/export/pages/ExportDashboardPage.d.ts +1 -2
- package/dist/export/pages/ExportDashboardPage.js +17 -18
- package/dist/export/pages/ExportDashboardPage.js.map +1 -1
- package/dist/export/pages/ExportDetailPage.d.ts +1 -2
- package/dist/export/pages/ExportDetailPage.js +20 -21
- package/dist/export/pages/ExportDetailPage.js.map +1 -1
- package/dist/export/pages/ExportHistoryPage.d.ts +1 -2
- package/dist/export/pages/ExportHistoryPage.js +21 -20
- package/dist/export/pages/ExportHistoryPage.js.map +1 -1
- package/dist/export/pages/ExportLandingPage.d.ts +1 -2
- package/dist/export/pages/ExportLandingPage.js +1 -2
- package/dist/export/pages/ExportLandingPage.js.map +1 -1
- package/dist/export/pages/ExportTemplatesPage.d.ts +1 -2
- package/dist/export/pages/ExportTemplatesPage.js +25 -30
- package/dist/export/pages/ExportTemplatesPage.js.map +1 -1
- package/dist/export/pages/TemplateDetailPage.d.ts +1 -2
- package/dist/export/pages/TemplateDetailPage.js +11 -12
- package/dist/export/pages/TemplateDetailPage.js.map +1 -1
- package/dist/export/providers/ExportProvider.d.ts +0 -2
- package/dist/export/providers/ExportProvider.js +12 -16
- package/dist/export/providers/ExportProvider.js.map +1 -1
- package/dist/export/store/exportStore.d.ts +0 -2
- package/dist/export/store/exportStore.js +1 -2
- package/dist/export/store/exportStore.js.map +1 -1
- package/dist/export/types/index.d.ts +0 -1
- package/dist/export/utils/cn.d.ts +0 -2
- package/dist/export/utils/cn.js +2 -3
- package/dist/export/utils/cn.js.map +1 -1
- package/dist/export/utils/disabledModules.d.ts +0 -1
- package/dist/export/utils/disabledModules.js +3 -4
- package/dist/export/utils/disabledModules.js.map +1 -1
- package/dist/export/utils/events.d.ts +0 -2
- package/dist/export/utils/events.js +1 -2
- package/dist/export/utils/events.js.map +1 -1
- package/dist/export/utils/exportAuthority.d.ts +0 -2
- package/dist/export/utils/exportAuthority.js +1 -2
- package/dist/export/utils/exportAuthority.js.map +1 -1
- package/dist/export/utils/i18n.d.ts +0 -2
- package/dist/export/utils/i18n.js +1 -2
- package/dist/export/utils/i18n.js.map +1 -1
- package/dist/generated/global-operations.d.ts +4 -2
- package/dist/generated/global-types.d.ts +2 -22
- package/dist/generated/wspace-operations.d.ts +226 -181
- package/dist/generated/wspace-operations.js +1 -2
- package/dist/generated/wspace-operations.js.map +1 -1
- package/dist/generated/wspace-types.d.ts +4 -24
- package/dist/generated/wspace-types.js +1 -2
- package/dist/generated/wspace-types.js.map +1 -1
- package/dist/index.d.ts +0 -1
- package/dist/node_modules/@apollo/client/errors/CombinedGraphQLErrors.js +1 -2
- package/dist/node_modules/@apollo/client/errors/CombinedGraphQLErrors.js.map +1 -1
- package/dist/node_modules/@apollo/client/errors/utils.js +1 -2
- package/dist/node_modules/@apollo/client/errors/utils.js.map +1 -1
- package/dist/node_modules/@apollo/client/link/core/ApolloLink.js +7 -8
- package/dist/node_modules/@apollo/client/link/core/ApolloLink.js.map +1 -1
- package/dist/node_modules/@apollo/client/link/subscriptions/index.js +15 -16
- package/dist/node_modules/@apollo/client/link/subscriptions/index.js.map +1 -1
- package/dist/node_modules/@apollo/client/link/utils/createOperation.js +5 -6
- package/dist/node_modules/@apollo/client/link/utils/createOperation.js.map +1 -1
- package/dist/node_modules/@apollo/client/utilities/caching/sizes.js +0 -1
- package/dist/node_modules/@apollo/client/utilities/caching/sizes.js.map +1 -1
- package/dist/node_modules/@apollo/client/utilities/graphql/print.js +4 -5
- package/dist/node_modules/@apollo/client/utilities/graphql/print.js.map +1 -1
- package/dist/node_modules/@apollo/client/utilities/internal/caches.js +1 -2
- package/dist/node_modules/@apollo/client/utilities/internal/caches.js.map +1 -1
- package/dist/node_modules/@apollo/client/utilities/internal/checkDocument.js +1 -2
- package/dist/node_modules/@apollo/client/utilities/internal/checkDocument.js.map +1 -1
- package/dist/node_modules/@apollo/client/utilities/internal/getMainDefinition.js +2 -3
- package/dist/node_modules/@apollo/client/utilities/internal/getMainDefinition.js.map +1 -1
- package/dist/node_modules/@apollo/client/utilities/internal/getMemoryInternals.js +1 -2
- package/dist/node_modules/@apollo/client/utilities/internal/getMemoryInternals.js.map +1 -1
- package/dist/node_modules/@apollo/client/utilities/internal/getOperationDefinition.js +1 -2
- package/dist/node_modules/@apollo/client/utilities/internal/getOperationDefinition.js.map +1 -1
- package/dist/node_modules/@apollo/client/utilities/internal/getOperationName.js +1 -2
- package/dist/node_modules/@apollo/client/utilities/internal/getOperationName.js.map +1 -1
- package/dist/node_modules/@apollo/client/utilities/internal/globals/global.js +1 -2
- package/dist/node_modules/@apollo/client/utilities/internal/globals/global.js.map +1 -1
- package/dist/node_modules/@apollo/client/utilities/internal/globals/maybe.js +1 -2
- package/dist/node_modules/@apollo/client/utilities/internal/globals/maybe.js.map +1 -1
- package/dist/node_modules/@apollo/client/utilities/internal/isNonNullObject.js +1 -2
- package/dist/node_modules/@apollo/client/utilities/internal/isNonNullObject.js.map +1 -1
- package/dist/node_modules/@apollo/client/utilities/internal/makeUniqueId.js +1 -2
- package/dist/node_modules/@apollo/client/utilities/internal/makeUniqueId.js.map +1 -1
- package/dist/node_modules/@apollo/client/utilities/internal/memoize.js +1 -2
- package/dist/node_modules/@apollo/client/utilities/internal/memoize.js.map +1 -1
- package/dist/node_modules/@apollo/client/utilities/internal/stringifyForDisplay.js +1 -2
- package/dist/node_modules/@apollo/client/utilities/internal/stringifyForDisplay.js.map +1 -1
- package/dist/node_modules/@apollo/client/utilities/invariant/index.js +2 -3
- package/dist/node_modules/@apollo/client/utilities/invariant/index.js.map +1 -1
- package/dist/node_modules/@apollo/client/version.js +2 -3
- package/dist/node_modules/@apollo/client/version.js.map +1 -1
- package/dist/node_modules/@wry/caches/lib/weak.js +1 -2
- package/dist/node_modules/@wry/caches/lib/weak.js.map +1 -1
- package/dist/node_modules/@wry/trie/lib/index.js +2 -3
- package/dist/node_modules/@wry/trie/lib/index.js.map +1 -1
- package/dist/node_modules/clsx/dist/clsx.js +8 -7
- package/dist/node_modules/clsx/dist/clsx.js.map +1 -1
- package/dist/node_modules/graphql-ws/dist/client.js +76 -69
- package/dist/node_modules/graphql-ws/dist/client.js.map +1 -1
- package/dist/node_modules/graphql-ws/dist/common-CGW11Fyb.js +2 -3
- package/dist/node_modules/graphql-ws/dist/common-CGW11Fyb.js.map +1 -1
- package/dist/node_modules/rxjs/dist/esm5/internal/NotificationFactories.js +2 -3
- package/dist/node_modules/rxjs/dist/esm5/internal/NotificationFactories.js.map +1 -1
- package/dist/node_modules/rxjs/dist/esm5/internal/Observable.js +41 -42
- package/dist/node_modules/rxjs/dist/esm5/internal/Observable.js.map +1 -1
- package/dist/node_modules/rxjs/dist/esm5/internal/Subscriber.js +14 -15
- package/dist/node_modules/rxjs/dist/esm5/internal/Subscriber.js.map +1 -1
- package/dist/node_modules/rxjs/dist/esm5/internal/Subscription.js +21 -18
- package/dist/node_modules/rxjs/dist/esm5/internal/Subscription.js.map +1 -1
- package/dist/node_modules/rxjs/dist/esm5/internal/config.js +1 -2
- package/dist/node_modules/rxjs/dist/esm5/internal/config.js.map +1 -1
- package/dist/node_modules/rxjs/dist/esm5/internal/observable/empty.js +1 -2
- package/dist/node_modules/rxjs/dist/esm5/internal/observable/empty.js.map +1 -1
- package/dist/node_modules/rxjs/dist/esm5/internal/scheduler/timeoutProvider.js +2 -3
- package/dist/node_modules/rxjs/dist/esm5/internal/scheduler/timeoutProvider.js.map +1 -1
- package/dist/node_modules/rxjs/dist/esm5/internal/symbol/observable.js +1 -2
- package/dist/node_modules/rxjs/dist/esm5/internal/symbol/observable.js.map +1 -1
- package/dist/node_modules/rxjs/dist/esm5/internal/util/UnsubscriptionError.js +1 -2
- package/dist/node_modules/rxjs/dist/esm5/internal/util/UnsubscriptionError.js.map +1 -1
- package/dist/node_modules/rxjs/dist/esm5/internal/util/arrRemove.js +1 -2
- package/dist/node_modules/rxjs/dist/esm5/internal/util/arrRemove.js.map +1 -1
- package/dist/node_modules/rxjs/dist/esm5/internal/util/createErrorClass.js +1 -2
- package/dist/node_modules/rxjs/dist/esm5/internal/util/createErrorClass.js.map +1 -1
- package/dist/node_modules/rxjs/dist/esm5/internal/util/errorContext.js +1 -2
- package/dist/node_modules/rxjs/dist/esm5/internal/util/errorContext.js.map +1 -1
- package/dist/node_modules/rxjs/dist/esm5/internal/util/identity.js +1 -2
- package/dist/node_modules/rxjs/dist/esm5/internal/util/identity.js.map +1 -1
- package/dist/node_modules/rxjs/dist/esm5/internal/util/isFunction.js +1 -2
- package/dist/node_modules/rxjs/dist/esm5/internal/util/isFunction.js.map +1 -1
- package/dist/node_modules/rxjs/dist/esm5/internal/util/noop.js +1 -2
- package/dist/node_modules/rxjs/dist/esm5/internal/util/noop.js.map +1 -1
- package/dist/node_modules/rxjs/dist/esm5/internal/util/pipe.js +1 -2
- package/dist/node_modules/rxjs/dist/esm5/internal/util/pipe.js.map +1 -1
- package/dist/node_modules/rxjs/dist/esm5/internal/util/reportUnhandledError.js +1 -2
- package/dist/node_modules/rxjs/dist/esm5/internal/util/reportUnhandledError.js.map +1 -1
- package/dist/node_modules/tailwind-merge/dist/bundle-mjs.js +229 -167
- package/dist/node_modules/tailwind-merge/dist/bundle-mjs.js.map +1 -1
- package/dist/node_modules/{rxjs/node_modules/tslib → tslib}/tslib.es6.js +1 -2
- package/dist/node_modules/tslib/tslib.es6.js.map +1 -0
- package/dist/test/happydom.d.ts +1 -0
- package/dist/translations/en.d.ts +0 -1
- package/dist/translations/en.js +1 -2
- package/dist/translations/en.js.map +1 -1
- package/dist/utils/nativeBridge.d.ts +0 -1
- package/dist/utils/nativeBridge.js +1 -2
- package/package.json +62 -46
- package/dist/dev/main.d.ts.map +0 -1
- package/dist/export/ExportRoot.d.ts.map +0 -1
- package/dist/export/ExportRoutes.d.ts.map +0 -1
- package/dist/export/components/ExportProgressBar.d.ts.map +0 -1
- package/dist/export/components/ExportStatusBadge.d.ts.map +0 -1
- package/dist/export/components/PageLayout.d.ts.map +0 -1
- package/dist/export/constants/enums.d.ts.map +0 -1
- package/dist/export/constants/index.d.ts.map +0 -1
- package/dist/export/hooks/useExportQueries.d.ts.map +0 -1
- package/dist/export/hooks/useTr.d.ts.map +0 -1
- package/dist/export/index.d.ts.map +0 -1
- package/dist/export/pages/CreateExportPage.d.ts.map +0 -1
- package/dist/export/pages/ExportDashboardPage.d.ts.map +0 -1
- package/dist/export/pages/ExportDetailPage.d.ts.map +0 -1
- package/dist/export/pages/ExportHistoryPage.d.ts.map +0 -1
- package/dist/export/pages/ExportLandingPage.d.ts.map +0 -1
- package/dist/export/pages/ExportTemplatesPage.d.ts.map +0 -1
- package/dist/export/pages/TemplateDetailPage.d.ts.map +0 -1
- package/dist/export/providers/ExportProvider.d.ts.map +0 -1
- package/dist/export/store/exportStore.d.ts.map +0 -1
- package/dist/export/types/index.d.ts.map +0 -1
- package/dist/export/utils/cn.d.ts.map +0 -1
- package/dist/export/utils/disabledModules.d.ts.map +0 -1
- package/dist/export/utils/events.d.ts.map +0 -1
- package/dist/export/utils/exportAuthority.d.ts.map +0 -1
- package/dist/export/utils/i18n.d.ts.map +0 -1
- package/dist/generated/global-operations.d.ts.map +0 -1
- package/dist/generated/global-types.d.ts.map +0 -1
- package/dist/generated/wspace-operations.d.ts.map +0 -1
- package/dist/generated/wspace-types.d.ts.map +0 -1
- package/dist/index.d.ts.map +0 -1
- package/dist/node_modules/rxjs/node_modules/tslib/tslib.es6.js.map +0 -1
- package/dist/translations/en.d.ts.map +0 -1
- package/dist/utils/nativeBridge.d.ts.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"exportStore.js","names":[],"sources":["../../../src/export/store/exportStore.ts"],"sourcesContent":["import { create } from \"zustand\";\nimport type {\n ExportJob,\n ExportFilter,\n ExportDisplayMode,\n ExportPagination,\n} from \"../types\";\n\ninterface ExportState {\n // View state\n selectedJob: ExportJob | null;\n viewMode: ExportDisplayMode;\n\n // Filters\n jobFilter: ExportFilter;\n\n // Pagination\n pagination: ExportPagination;\n\n // Actions\n setSelectedJob: (job: ExportJob | null) => void;\n setViewMode: (mode: ExportDisplayMode) => void;\n updateFilter: (filter: Partial<ExportFilter>) => void;\n resetFilter: () => void;\n setPagination: (p: Partial<ExportPagination>) => void;\n resetPagination: () => void;\n}\n\nconst defaultExportFilter: ExportFilter = {\n search: \"\",\n status: \"all\",\n format: \"all\",\n dateRange: \"all\",\n};\n\nconst defaultPagination: ExportPagination = {\n page: 1,\n cursor: null,\n pageSize: 20,\n};\n\nexport const useExportStore = create<ExportState>((set) => ({\n // Initial state\n selectedJob: null,\n viewMode: \"list\",\n jobFilter: defaultExportFilter,\n pagination: defaultPagination,\n\n // Actions\n setSelectedJob: (job) => set({ selectedJob: job }),\n setViewMode: (mode) => set({ viewMode: mode }),\n updateFilter: (filter) =>\n set((state) => ({\n jobFilter: { ...state.jobFilter, ...filter },\n // Reset cursor when filter changes\n pagination: { ...state.pagination, page: 1, cursor: null },\n })),\n resetFilter: () =>\n set({ jobFilter: defaultExportFilter, pagination: defaultPagination }),\n setPagination: (p) =>\n set((state) => ({\n pagination: { ...state.pagination, ...p },\n })),\n resetPagination: () => set({ pagination: defaultPagination }),\n}));\n"],"mappings":";;AA4BA,
|
|
1
|
+
{"version":3,"file":"exportStore.js","names":["defaultExportFilter","defaultPagination","useExportStore","create","set","job","mode","state","filter","p"],"sources":["../../../src/export/store/exportStore.ts"],"sourcesContent":["import { create } from \"zustand\";\nimport type {\n ExportJob,\n ExportFilter,\n ExportDisplayMode,\n ExportPagination,\n} from \"../types\";\n\ninterface ExportState {\n // View state\n selectedJob: ExportJob | null;\n viewMode: ExportDisplayMode;\n\n // Filters\n jobFilter: ExportFilter;\n\n // Pagination\n pagination: ExportPagination;\n\n // Actions\n setSelectedJob: (job: ExportJob | null) => void;\n setViewMode: (mode: ExportDisplayMode) => void;\n updateFilter: (filter: Partial<ExportFilter>) => void;\n resetFilter: () => void;\n setPagination: (p: Partial<ExportPagination>) => void;\n resetPagination: () => void;\n}\n\nconst defaultExportFilter: ExportFilter = {\n search: \"\",\n status: \"all\",\n format: \"all\",\n dateRange: \"all\",\n};\n\nconst defaultPagination: ExportPagination = {\n page: 1,\n cursor: null,\n pageSize: 20,\n};\n\nexport const useExportStore = create<ExportState>((set) => ({\n // Initial state\n selectedJob: null,\n viewMode: \"list\",\n jobFilter: defaultExportFilter,\n pagination: defaultPagination,\n\n // Actions\n setSelectedJob: (job) => set({ selectedJob: job }),\n setViewMode: (mode) => set({ viewMode: mode }),\n updateFilter: (filter) =>\n set((state) => ({\n jobFilter: { ...state.jobFilter, ...filter },\n // Reset cursor when filter changes\n pagination: { ...state.pagination, page: 1, cursor: null },\n })),\n resetFilter: () =>\n set({ jobFilter: defaultExportFilter, pagination: defaultPagination }),\n setPagination: (p) =>\n set((state) => ({\n pagination: { ...state.pagination, ...p },\n })),\n resetPagination: () => set({ pagination: defaultPagination }),\n}));\n"],"mappings":";;AA4BA,IAAMA,IAAoC;CACxC,QAAQ;CACR,QAAQ;CACR,QAAQ;CACR,WAAW;AACb,GAEMC,IAAsC;CAC1C,MAAM;CACN,QAAQ;CACR,UAAU;AACZ,GAEaC,IAAiBC,GAAqB,OAAS;CAE1D,aAAa;CACb,UAAU;CACV,WAAWH;CACX,YAAYC;CAGZ,iBAAiB,MAAQG,EAAI,EAAE,aAAaC,EAAI,CAAC;CACjD,cAAc,MAASD,EAAI,EAAE,UAAUE,EAAK,CAAC;CAC7C,eAAe,MACbF,GAAK,OAAW;EACd,WAAW;GAAE,GAAGG,EAAM;GAAW,GAAGC;EAAO;EAE3C,YAAY;GAAE,GAAGD,EAAM;GAAY,MAAM;GAAG,QAAQ;EAAK;CAC3D,EAAE;CACJ,mBACEH,EAAI;EAAE,WAAWJ;EAAqB,YAAYC;CAAkB,CAAC;CACvE,gBAAgB,MACdG,GAAK,OAAW,EACd,YAAY;EAAE,GAAGG,EAAM;EAAY,GAAGE;CAAE,EAC1C,EAAE;CACJ,uBAAuBL,EAAI,EAAE,YAAYH,EAAkB,CAAC;AAC9D,EAAE"}
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
import { ClassValue } from 'clsx';
|
|
2
|
-
|
|
3
2
|
/**
|
|
4
3
|
* Utility function to merge Tailwind CSS classes
|
|
5
4
|
* Combines clsx for conditional classes and tailwind-merge for deduplication
|
|
6
5
|
*/
|
|
7
6
|
export declare function cn(...inputs: ClassValue[]): string;
|
|
8
|
-
//# sourceMappingURL=cn.d.ts.map
|
package/dist/export/utils/cn.js
CHANGED
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
import e from "../../node_modules/clsx/dist/clsx.js";
|
|
1
|
+
import { clsx as e } from "../../node_modules/clsx/dist/clsx.js";
|
|
2
2
|
import { twMerge as t } from "../../node_modules/tailwind-merge/dist/bundle-mjs.js";
|
|
3
|
-
|
|
3
|
+
// src/export/utils/cn.ts
|
|
4
4
|
function n(...n) {
|
|
5
5
|
return t(e(n));
|
|
6
6
|
}
|
|
7
|
-
//#endregion
|
|
8
7
|
export { n as cn };
|
|
9
8
|
|
|
10
9
|
//# sourceMappingURL=cn.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cn.js","names":[],"sources":["../../../src/export/utils/cn.ts"],"sourcesContent":["import { type ClassValue, clsx } from \"clsx\";\nimport { twMerge } from \"tailwind-merge\";\n\n/**\n * Utility function to merge Tailwind CSS classes\n * Combines clsx for conditional classes and tailwind-merge for deduplication\n */\nexport function cn(...inputs: ClassValue[]) {\n return twMerge(clsx(inputs));\n}\n"],"mappings":";;;AAOA,
|
|
1
|
+
{"version":3,"file":"cn.js","names":["cn","inputs","twMerge","clsx"],"sources":["../../../src/export/utils/cn.ts"],"sourcesContent":["import { type ClassValue, clsx } from \"clsx\";\nimport { twMerge } from \"tailwind-merge\";\n\n/**\n * Utility function to merge Tailwind CSS classes\n * Combines clsx for conditional classes and tailwind-merge for deduplication\n */\nexport function cn(...inputs: ClassValue[]) {\n return twMerge(clsx(inputs));\n}\n"],"mappings":";;;AAOA,SAAgBA,EAAG,GAAGC,GAAsB;CAC1C,OAAOC,EAAQC,EAAKF,CAAM,CAAC;AAC7B"}
|
|
@@ -49,4 +49,3 @@ export declare function exportEntityProduct(entityType: string): string | null;
|
|
|
49
49
|
* types, and every entity type inside the workspaces hub, are never foreign.
|
|
50
50
|
*/
|
|
51
51
|
export declare function isForeignProductEntity(entityType: string, hostProductSlug: string | undefined): boolean;
|
|
52
|
-
//# sourceMappingURL=disabledModules.d.ts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/export/utils/disabledModules.ts
|
|
2
2
|
var e = [
|
|
3
3
|
"bigconsole",
|
|
4
4
|
"botmanor",
|
|
@@ -14,7 +14,7 @@ var e = [
|
|
|
14
14
|
"assethandler",
|
|
15
15
|
"housingvista",
|
|
16
16
|
"planmagnet"
|
|
17
|
-
], t = /* @__PURE__ */ "adaptercloud.artistrybase.assethandler.atheletebridge.bigconsole.botmanor.botlit.brainyrich.buildmyiq.collabkin.comradecircle.coolandlovely.cosmicintersection.crewfoundry.ecoimpacthub.eventfullymanaged.fluidgrids.ggnomad.govcitizenhub.headshotmarketing.healthybowl.hookmovies.housingvista.intelwatchtower.kadaikodi.labsofscience.manufacturedops.movethewheels.mybodyshield.planmagnet.proserviceworld.semanticfed.subscriberbot.technospam.theculturepost.theglobalfuel.timecampus.vibecontrols".split("."), n = new Set(["", "workspaces"]), r = { botlit: "botmanor" };
|
|
17
|
+
], t = /* @__PURE__ */ "adaptercloud.artistrybase.assethandler.atheletebridge.bigconsole.botmanor.botlit.brainyrich.buildmyiq.collabkin.comradecircle.coolandlovely.cosmicintersection.crewfoundry.ecoimpacthub.eventfullymanaged.fluidgrids.ggnomad.govcitizenhub.headshotmarketing.healthybowl.hookmovies.housingvista.intelwatchtower.kadaikodi.labsofscience.manufacturedops.movethewheels.mybodyshield.planmagnet.proserviceworld.semanticfed.subscriberbot.technospam.theculturepost.theglobalfuel.timecampus.vibecontrols".split("."), n = /* @__PURE__ */ new Set(["", "workspaces"]), r = { botlit: "botmanor" };
|
|
18
18
|
function i(e) {
|
|
19
19
|
let t = e.toLowerCase();
|
|
20
20
|
return r[t] ?? t;
|
|
@@ -35,7 +35,6 @@ function c(e, t) {
|
|
|
35
35
|
let a = s(e);
|
|
36
36
|
return a !== null && a !== r;
|
|
37
37
|
}
|
|
38
|
-
|
|
39
|
-
export { o as isExportEntityDisabled, c as isForeignProductEntity };
|
|
38
|
+
export { e as DISABLED_EXPORT_MODULE_PREFIXES, t as PRODUCT_ENTITY_PREFIXES, s as exportEntityProduct, o as isExportEntityDisabled, c as isForeignProductEntity };
|
|
40
39
|
|
|
41
40
|
//# sourceMappingURL=disabledModules.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"disabledModules.js","names":[],"sources":["../../../src/export/utils/disabledModules.ts"],"sourcesContent":["/**\n * Export entity availability.\n *\n * Two rules decide whether an entity type can be picked in the export wizard:\n *\n * 1. **Host product scoping.** Inside a product's own app shell (VibeControls,\n * FluidGrids, …) only that product's entity types and the shared workspace\n * entity types (files, folders, activity logs, billing, …) are offered;\n * other products' entity types are not listed at all. The workspaces app\n * (`workspaces`, also the fe-libs default when no shell identifies itself)\n * is the cross-product hub and is not scoped.\n *\n * 2. **Products whose export is not available yet.** Entity types belonging to\n * a product in {@link DISABLED_EXPORT_MODULE_PREFIXES} are still shown but\n * rendered **disabled** (greyed out, non-selectable) rather than hidden — so\n * users can see the capability exists without selecting it.\n *\n * Matching is by entity-type module prefix (entity types are seeded as\n * `<module>_<thing>`, e.g. `bigconsole_dashboards`).\n *\n * Reversible: remove a prefix from the disabled list to re-enable that\n * product's export entities.\n *\n * NOTE: the disabled list is a denylist, so a *new* product seeded on the\n * backend is enabled by default until its prefix is added here. That's\n * deliberate — workspaces-core modules (the allowed set) change far more often\n * than products are added, and an allowlist would silently hide new core entity\n * types. Adding a new product's export entities should include adding its\n * prefix to {@link PRODUCT_ENTITY_PREFIXES} (and here, until it exports).\n */\nexport const DISABLED_EXPORT_MODULE_PREFIXES = [\n \"bigconsole\",\n \"botmanor\",\n // Pre-rename BotManor entity types (the product was BotLit until 2026-10).\n \"botlit\",\n \"healthybowl\",\n \"crewfoundry\",\n \"movethewheels\",\n \"eventfullymanaged\",\n \"ggnomad\",\n \"headshotmarketing\",\n \"kadaikodi\",\n \"timecampus\",\n \"assethandler\",\n \"housingvista\",\n \"planmagnet\",\n] as const;\n\n/**\n * Entity-type prefixes that belong to a product (rather than to the shared\n * workspace platform). Used for host product scoping.\n */\nexport const PRODUCT_ENTITY_PREFIXES = [\n \"adaptercloud\",\n \"artistrybase\",\n \"assethandler\",\n \"atheletebridge\",\n \"bigconsole\",\n \"botmanor\",\n \"botlit\",\n \"brainyrich\",\n \"buildmyiq\",\n \"collabkin\",\n \"comradecircle\",\n \"coolandlovely\",\n \"cosmicintersection\",\n \"crewfoundry\",\n \"ecoimpacthub\",\n \"eventfullymanaged\",\n \"fluidgrids\",\n \"ggnomad\",\n \"govcitizenhub\",\n \"headshotmarketing\",\n \"healthybowl\",\n \"hookmovies\",\n \"housingvista\",\n \"intelwatchtower\",\n \"kadaikodi\",\n \"labsofscience\",\n \"manufacturedops\",\n \"movethewheels\",\n \"mybodyshield\",\n \"planmagnet\",\n \"proserviceworld\",\n \"semanticfed\",\n \"subscriberbot\",\n \"technospam\",\n \"theculturepost\",\n \"theglobalfuel\",\n \"timecampus\",\n \"vibecontrols\",\n] as const;\n\n/** Product slugs whose shell is the cross-product hub (never scoped). */\nconst UNSCOPED_HOST_PRODUCTS = new Set([\"\", \"workspaces\"]);\n\n/** Legacy product slugs and the product they belong to now. */\nconst PRODUCT_SLUG_ALIASES: Readonly<Record<string, string>> = {\n botlit: \"botmanor\",\n};\n\nfunction canonicalProduct(slug: string): string {\n const lower = slug.toLowerCase();\n return PRODUCT_SLUG_ALIASES[lower] ?? lower;\n}\n\nfunction hasModulePrefix(entityType: string, prefix: string): boolean {\n return entityType === prefix || entityType.startsWith(`${prefix}_`);\n}\n\n/**\n * True if the entity type belongs to a product whose export is disabled for now.\n */\nexport function isExportEntityDisabled(entityType: string): boolean {\n return DISABLED_EXPORT_MODULE_PREFIXES.some((prefix) =>\n hasModulePrefix(entityType, prefix),\n );\n}\n\n/**\n * The (canonical) product an entity type belongs to, or null for a shared\n * workspace-platform entity type.\n */\nexport function exportEntityProduct(entityType: string): string | null {\n const prefix = PRODUCT_ENTITY_PREFIXES.find((p) =>\n hasModulePrefix(entityType, p),\n );\n return prefix ? canonicalProduct(prefix) : null;\n}\n\n/**\n * True if the entity type belongs to another product than the host shell's,\n * so it should not be offered in this shell at all. Shared workspace entity\n * types, and every entity type inside the workspaces hub, are never foreign.\n */\nexport function isForeignProductEntity(\n entityType: string,\n hostProductSlug: string | undefined,\n): boolean {\n const host = canonicalProduct(hostProductSlug ?? \"\");\n if (UNSCOPED_HOST_PRODUCTS.has(host)) return false;\n const product = exportEntityProduct(entityType);\n return product !== null && product !== host;\n}\n"],"mappings":";AA8BA,
|
|
1
|
+
{"version":3,"file":"disabledModules.js","names":["DISABLED_EXPORT_MODULE_PREFIXES","PRODUCT_ENTITY_PREFIXES","UNSCOPED_HOST_PRODUCTS","PRODUCT_SLUG_ALIASES","canonicalProduct","lower","slug","hasModulePrefix","entityType","prefix","isExportEntityDisabled","exportEntityProduct","p","isForeignProductEntity","host","hostProductSlug","product"],"sources":["../../../src/export/utils/disabledModules.ts"],"sourcesContent":["/**\n * Export entity availability.\n *\n * Two rules decide whether an entity type can be picked in the export wizard:\n *\n * 1. **Host product scoping.** Inside a product's own app shell (VibeControls,\n * FluidGrids, …) only that product's entity types and the shared workspace\n * entity types (files, folders, activity logs, billing, …) are offered;\n * other products' entity types are not listed at all. The workspaces app\n * (`workspaces`, also the fe-libs default when no shell identifies itself)\n * is the cross-product hub and is not scoped.\n *\n * 2. **Products whose export is not available yet.** Entity types belonging to\n * a product in {@link DISABLED_EXPORT_MODULE_PREFIXES} are still shown but\n * rendered **disabled** (greyed out, non-selectable) rather than hidden — so\n * users can see the capability exists without selecting it.\n *\n * Matching is by entity-type module prefix (entity types are seeded as\n * `<module>_<thing>`, e.g. `bigconsole_dashboards`).\n *\n * Reversible: remove a prefix from the disabled list to re-enable that\n * product's export entities.\n *\n * NOTE: the disabled list is a denylist, so a *new* product seeded on the\n * backend is enabled by default until its prefix is added here. That's\n * deliberate — workspaces-core modules (the allowed set) change far more often\n * than products are added, and an allowlist would silently hide new core entity\n * types. Adding a new product's export entities should include adding its\n * prefix to {@link PRODUCT_ENTITY_PREFIXES} (and here, until it exports).\n */\nexport const DISABLED_EXPORT_MODULE_PREFIXES = [\n \"bigconsole\",\n \"botmanor\",\n // Pre-rename BotManor entity types (the product was BotLit until 2026-10).\n \"botlit\",\n \"healthybowl\",\n \"crewfoundry\",\n \"movethewheels\",\n \"eventfullymanaged\",\n \"ggnomad\",\n \"headshotmarketing\",\n \"kadaikodi\",\n \"timecampus\",\n \"assethandler\",\n \"housingvista\",\n \"planmagnet\",\n] as const;\n\n/**\n * Entity-type prefixes that belong to a product (rather than to the shared\n * workspace platform). Used for host product scoping.\n */\nexport const PRODUCT_ENTITY_PREFIXES = [\n \"adaptercloud\",\n \"artistrybase\",\n \"assethandler\",\n \"atheletebridge\",\n \"bigconsole\",\n \"botmanor\",\n \"botlit\",\n \"brainyrich\",\n \"buildmyiq\",\n \"collabkin\",\n \"comradecircle\",\n \"coolandlovely\",\n \"cosmicintersection\",\n \"crewfoundry\",\n \"ecoimpacthub\",\n \"eventfullymanaged\",\n \"fluidgrids\",\n \"ggnomad\",\n \"govcitizenhub\",\n \"headshotmarketing\",\n \"healthybowl\",\n \"hookmovies\",\n \"housingvista\",\n \"intelwatchtower\",\n \"kadaikodi\",\n \"labsofscience\",\n \"manufacturedops\",\n \"movethewheels\",\n \"mybodyshield\",\n \"planmagnet\",\n \"proserviceworld\",\n \"semanticfed\",\n \"subscriberbot\",\n \"technospam\",\n \"theculturepost\",\n \"theglobalfuel\",\n \"timecampus\",\n \"vibecontrols\",\n] as const;\n\n/** Product slugs whose shell is the cross-product hub (never scoped). */\nconst UNSCOPED_HOST_PRODUCTS = new Set([\"\", \"workspaces\"]);\n\n/** Legacy product slugs and the product they belong to now. */\nconst PRODUCT_SLUG_ALIASES: Readonly<Record<string, string>> = {\n botlit: \"botmanor\",\n};\n\nfunction canonicalProduct(slug: string): string {\n const lower = slug.toLowerCase();\n return PRODUCT_SLUG_ALIASES[lower] ?? lower;\n}\n\nfunction hasModulePrefix(entityType: string, prefix: string): boolean {\n return entityType === prefix || entityType.startsWith(`${prefix}_`);\n}\n\n/**\n * True if the entity type belongs to a product whose export is disabled for now.\n */\nexport function isExportEntityDisabled(entityType: string): boolean {\n return DISABLED_EXPORT_MODULE_PREFIXES.some((prefix) =>\n hasModulePrefix(entityType, prefix),\n );\n}\n\n/**\n * The (canonical) product an entity type belongs to, or null for a shared\n * workspace-platform entity type.\n */\nexport function exportEntityProduct(entityType: string): string | null {\n const prefix = PRODUCT_ENTITY_PREFIXES.find((p) =>\n hasModulePrefix(entityType, p),\n );\n return prefix ? canonicalProduct(prefix) : null;\n}\n\n/**\n * True if the entity type belongs to another product than the host shell's,\n * so it should not be offered in this shell at all. Shared workspace entity\n * types, and every entity type inside the workspaces hub, are never foreign.\n */\nexport function isForeignProductEntity(\n entityType: string,\n hostProductSlug: string | undefined,\n): boolean {\n const host = canonicalProduct(hostProductSlug ?? \"\");\n if (UNSCOPED_HOST_PRODUCTS.has(host)) return false;\n const product = exportEntityProduct(entityType);\n return product !== null && product !== host;\n}\n"],"mappings":";AA8BA,IAAaA,IAAkC;CAC7C;CACA;CAEA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;AACF,GAMaC,IAA0B,ogBAuCvC,GAGMC,oBAAyB,IAAI,IAAI,CAAC,IAAI,YAAY,CAAC,GAGnDC,IAAyD,EAC7D,QAAQ,WACV;AAEA,SAASC,EAAiB,GAAsB;CAC9C,IAAMC,IAAQC,EAAK,YAAY;CAC/B,OAAOH,EAAqBE,MAAUA;AACxC;AAEA,SAASE,EAAgB,GAAoB,GAAyB;CACpE,OAAOC,MAAeC,KAAUD,EAAW,WAAW,GAAGC,EAAO,EAAE;AACpE;AAKA,SAAgBC,EAAuB,GAA6B;CAClE,OAAOV,EAAgC,MAAM,MAC3CO,EAAgBC,GAAYC,CAAM,CACpC;AACF;AAMA,SAAgBE,EAAoB,GAAmC;CACrE,IAAMF,IAASR,EAAwB,MAAM,MAC3CM,EAAgBC,GAAYI,CAAC,CAC/B;CACA,OAAOH,IAASL,EAAiBK,CAAM,IAAI;AAC7C;AAOA,SAAgBI,EACd,GACA,GACS;CACT,IAAMC,IAAOV,EAAiBW,KAAmB,EAAE;CACnD,IAAIb,EAAuB,IAAIY,CAAI,GAAG,OAAO;CAC7C,IAAME,IAAUL,EAAoBH,CAAU;CAC9C,OAAOQ,MAAY,QAAQA,MAAYF;AACzC"}
|
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
import { ExportRootProps } from '../types';
|
|
2
|
-
|
|
3
2
|
export type ExportEventName = "export.job.created" | "export.job.cancelled" | "export.job.deleted" | "export.job.retried" | "export.template.created" | "export.template.updated" | "export.template.deleted" | "export.api.failed";
|
|
4
3
|
type ExportEventPayload = Record<string, unknown>;
|
|
5
4
|
export declare function emitExportEvent(context: Pick<ExportRootProps, "eventBus" | "workspaceId">, name: ExportEventName, payload?: ExportEventPayload): void;
|
|
6
5
|
export {};
|
|
7
|
-
//# sourceMappingURL=events.d.ts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/export/utils/events.ts
|
|
2
2
|
function e(e, t, n = {}) {
|
|
3
3
|
let r = {
|
|
4
4
|
workspaceId: e.workspaceId,
|
|
@@ -10,7 +10,6 @@ function e(e, t, n = {}) {
|
|
|
10
10
|
payload: r
|
|
11
11
|
} }));
|
|
12
12
|
}
|
|
13
|
-
//#endregion
|
|
14
13
|
export { e as emitExportEvent };
|
|
15
14
|
|
|
16
15
|
//# sourceMappingURL=events.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"events.js","names":[],"sources":["../../../src/export/utils/events.ts"],"sourcesContent":["import type { ExportRootProps } from \"../types\";\n\nexport type ExportEventName =\n | \"export.job.created\"\n | \"export.job.cancelled\"\n | \"export.job.deleted\"\n | \"export.job.retried\"\n | \"export.template.created\"\n | \"export.template.updated\"\n | \"export.template.deleted\"\n | \"export.api.failed\";\n\ntype ExportEventPayload = Record<string, unknown>;\n\nexport function emitExportEvent(\n context: Pick<ExportRootProps, \"eventBus\" | \"workspaceId\">,\n name: ExportEventName,\n payload: ExportEventPayload = {},\n): void {\n const eventPayload = {\n workspaceId: context.workspaceId,\n ...payload,\n };\n\n context.eventBus?.emit?.(name, eventPayload);\n\n if (typeof window !== \"undefined\") {\n window.dispatchEvent(\n new CustomEvent(\"burdenoff:mfe-event\", {\n detail: {\n name,\n source: { mfe: \"microfe-export\" },\n payload: eventPayload,\n },\n }),\n );\n }\n}\n"],"mappings":";AAcA,
|
|
1
|
+
{"version":3,"file":"events.js","names":["emitExportEvent","eventPayload","context","payload","name"],"sources":["../../../src/export/utils/events.ts"],"sourcesContent":["import type { ExportRootProps } from \"../types\";\n\nexport type ExportEventName =\n | \"export.job.created\"\n | \"export.job.cancelled\"\n | \"export.job.deleted\"\n | \"export.job.retried\"\n | \"export.template.created\"\n | \"export.template.updated\"\n | \"export.template.deleted\"\n | \"export.api.failed\";\n\ntype ExportEventPayload = Record<string, unknown>;\n\nexport function emitExportEvent(\n context: Pick<ExportRootProps, \"eventBus\" | \"workspaceId\">,\n name: ExportEventName,\n payload: ExportEventPayload = {},\n): void {\n const eventPayload = {\n workspaceId: context.workspaceId,\n ...payload,\n };\n\n context.eventBus?.emit?.(name, eventPayload);\n\n if (typeof window !== \"undefined\") {\n window.dispatchEvent(\n new CustomEvent(\"burdenoff:mfe-event\", {\n detail: {\n name,\n source: { mfe: \"microfe-export\" },\n payload: eventPayload,\n },\n }),\n );\n }\n}\n"],"mappings":";AAcA,SAAgBA,EACd,GACA,GACA,IAA8B,CAAC,GACzB;CACN,IAAMC,IAAe;EACnB,aAAaC,EAAQ;EACrB,GAAGC;CACL;CAIA,AAFAD,EAAQ,UAAU,OAAOE,GAAMH,CAAY,GAEvC,OAAO,SAAW,OACpB,OAAO,cACL,IAAI,YAAY,uBAAuB,EACrC,QAAQ;EACN;EACA,QAAQ,EAAE,KAAK,iBAAiB;EAChC,SAASA;CACX,EACF,CAAC,CACH;AAEJ"}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { ExportJob } from '../types';
|
|
2
|
-
|
|
3
2
|
export declare function exportGatewayHeaders(input: {
|
|
4
3
|
authToken?: string;
|
|
5
4
|
workspaceToken?: string;
|
|
@@ -12,4 +11,3 @@ export declare function exportGatewayEndpoints(apiGatewayUrl: string | undefined
|
|
|
12
11
|
};
|
|
13
12
|
/** The complete export CTA must never download only the first chunk. */
|
|
14
13
|
export declare function exportArchiveDownload(job: ExportJob | null | undefined, now?: number): string | undefined;
|
|
15
|
-
//# sourceMappingURL=exportAuthority.d.ts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/export/utils/exportAuthority.ts
|
|
2
2
|
function e(e) {
|
|
3
3
|
let t = {};
|
|
4
4
|
return e.authToken && (t.Authorization = `Bearer ${e.authToken}`), e.workspaceToken && (t["X-Workspace-Authorization"] = `Bearer ${e.workspaceToken}`), e.workspaceId && (t["x-workspace-id"] = e.workspaceId), e.organizationId && (t["x-org-id"] = e.organizationId), t;
|
|
@@ -22,7 +22,6 @@ function n(e, t = Date.now()) {
|
|
|
22
22
|
return;
|
|
23
23
|
}
|
|
24
24
|
}
|
|
25
|
-
//#endregion
|
|
26
25
|
export { n as exportArchiveDownload, t as exportGatewayEndpoints, e as exportGatewayHeaders };
|
|
27
26
|
|
|
28
27
|
//# sourceMappingURL=exportAuthority.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"exportAuthority.js","names":[],"sources":["../../../src/export/utils/exportAuthority.ts"],"sourcesContent":["import type { ExportJob } from \"../types\";\n\nexport function exportGatewayHeaders(input: {\n authToken?: string;\n workspaceToken?: string;\n workspaceId?: string;\n organizationId?: string;\n}): Record<string, string> {\n const headers: Record<string, string> = {};\n if (input.authToken) headers.Authorization = `Bearer ${input.authToken}`;\n if (input.workspaceToken)\n headers[\"X-Workspace-Authorization\"] = `Bearer ${input.workspaceToken}`;\n if (input.workspaceId) headers[\"x-workspace-id\"] = input.workspaceId;\n if (input.organizationId) headers[\"x-org-id\"] = input.organizationId;\n return headers;\n}\n\nexport function exportGatewayEndpoints(\n apiGatewayUrl: string | undefined,\n pageOrigin: string,\n): { http: string; websocket: string } {\n const base = apiGatewayUrl?.replace(/\\/$/, \"\");\n const endpoint = base\n ? base.endsWith(\"/workspaces/graphql\")\n ? base\n : `${base}/workspaces/graphql`\n : \"/workspaces/graphql\";\n const http = new URL(endpoint, pageOrigin);\n if (http.protocol !== \"http:\" && http.protocol !== \"https:\")\n throw new Error(\"Invalid export gateway protocol\");\n const websocket = new URL(http);\n websocket.protocol = http.protocol === \"https:\" ? \"wss:\" : \"ws:\";\n return { http: http.toString(), websocket: websocket.toString() };\n}\n\n/** The complete export CTA must never download only the first chunk. */\nexport function exportArchiveDownload(\n job: ExportJob | null | undefined,\n now = Date.now(),\n): string | undefined {\n if (\n job?.status !== \"COMPLETED\" ||\n job.archiveFormat !== \"ZIP\" ||\n !job.archiveFileId ||\n !job.downloadUrl ||\n !job.downloadExpiresAt\n )\n return;\n const expiry = Date.parse(job.downloadExpiresAt);\n if (!Number.isFinite(expiry) || expiry <= now) return;\n try {\n const url = new URL(job.downloadUrl);\n if (\n url.protocol !== \"https:\" &&\n !(\n url.protocol === \"http:\" &&\n [\"localhost\", \"127.0.0.1\"].includes(url.hostname)\n )\n )\n return;\n return job.downloadUrl;\n } catch {\n return;\n }\n}\n"],"mappings":";AAEA,
|
|
1
|
+
{"version":3,"file":"exportAuthority.js","names":["exportGatewayHeaders","headers","input","exportGatewayEndpoints","base","apiGatewayUrl","endpoint","http","pageOrigin","websocket","exportArchiveDownload","job","expiry","now","url"],"sources":["../../../src/export/utils/exportAuthority.ts"],"sourcesContent":["import type { ExportJob } from \"../types\";\n\nexport function exportGatewayHeaders(input: {\n authToken?: string;\n workspaceToken?: string;\n workspaceId?: string;\n organizationId?: string;\n}): Record<string, string> {\n const headers: Record<string, string> = {};\n if (input.authToken) headers.Authorization = `Bearer ${input.authToken}`;\n if (input.workspaceToken)\n headers[\"X-Workspace-Authorization\"] = `Bearer ${input.workspaceToken}`;\n if (input.workspaceId) headers[\"x-workspace-id\"] = input.workspaceId;\n if (input.organizationId) headers[\"x-org-id\"] = input.organizationId;\n return headers;\n}\n\nexport function exportGatewayEndpoints(\n apiGatewayUrl: string | undefined,\n pageOrigin: string,\n): { http: string; websocket: string } {\n const base = apiGatewayUrl?.replace(/\\/$/, \"\");\n const endpoint = base\n ? base.endsWith(\"/workspaces/graphql\")\n ? base\n : `${base}/workspaces/graphql`\n : \"/workspaces/graphql\";\n const http = new URL(endpoint, pageOrigin);\n if (http.protocol !== \"http:\" && http.protocol !== \"https:\")\n throw new Error(\"Invalid export gateway protocol\");\n const websocket = new URL(http);\n websocket.protocol = http.protocol === \"https:\" ? \"wss:\" : \"ws:\";\n return { http: http.toString(), websocket: websocket.toString() };\n}\n\n/** The complete export CTA must never download only the first chunk. */\nexport function exportArchiveDownload(\n job: ExportJob | null | undefined,\n now = Date.now(),\n): string | undefined {\n if (\n job?.status !== \"COMPLETED\" ||\n job.archiveFormat !== \"ZIP\" ||\n !job.archiveFileId ||\n !job.downloadUrl ||\n !job.downloadExpiresAt\n )\n return;\n const expiry = Date.parse(job.downloadExpiresAt);\n if (!Number.isFinite(expiry) || expiry <= now) return;\n try {\n const url = new URL(job.downloadUrl);\n if (\n url.protocol !== \"https:\" &&\n !(\n url.protocol === \"http:\" &&\n [\"localhost\", \"127.0.0.1\"].includes(url.hostname)\n )\n )\n return;\n return job.downloadUrl;\n } catch {\n return;\n }\n}\n"],"mappings":";AAEA,SAAgBA,EAAqB,GAKV;CACzB,IAAMC,IAAkC,CAAC;CAMzC,OALIC,EAAM,cAAW,EAAQ,gBAAgB,UAAUA,EAAM,cACzDA,EAAM,mBACR,EAAQ,+BAA+B,UAAUA,EAAM,mBACrDA,EAAM,gBAAa,EAAQ,oBAAoBA,EAAM,cACrDA,EAAM,mBAAgB,EAAQ,cAAcA,EAAM,iBAC/CD;AACT;AAEA,SAAgBE,EACd,GACA,GACqC;CACrC,IAAMC,IAAOC,GAAe,QAAQ,OAAO,EAAE,GACvCC,IAAWF,IACbA,EAAK,SAAS,qBAAqB,IACjCA,IACA,GAAGA,EAAK,uBACV,uBACEG,IAAO,IAAI,IAAID,GAAUE,CAAU;CACzC,IAAID,EAAK,aAAa,WAAWA,EAAK,aAAa,UACjD,MAAU,MAAM,iCAAiC;CACnD,IAAME,IAAY,IAAI,IAAIF,CAAI;CAE9B,OADA,EAAU,WAAWA,EAAK,aAAa,WAAW,SAAS,OACpD;EAAE,MAAMA,EAAK,SAAS;EAAG,WAAWE,EAAU,SAAS;CAAE;AAClE;AAGA,SAAgBC,EACd,GACA,IAAM,KAAK,IAAI,GACK;CACpB,IACEC,GAAK,WAAW,eAChBA,EAAI,kBAAkB,SACtB,CAACA,EAAI,iBACL,CAACA,EAAI,eACL,CAACA,EAAI,mBAEL;CACF,IAAMC,IAAS,KAAK,MAAMD,EAAI,iBAAiB;CAC/C,IAAI,GAAC,OAAO,SAASC,CAAM,KAAKA,KAAUC,IAC1C,IAAI;EACF,IAAMC,IAAM,IAAI,IAAIH,EAAI,WAAW;EASnC,OAPEG,EAAI,aAAa,YACjB,EACEA,EAAI,aAAa,WACjB,CAAC,aAAa,WAAW,CAAC,CAAC,SAASA,EAAI,QAAQ,KAGlD,SACKH,EAAI;CACb,QAAQ;EACN;CACF;AACF"}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { I18nContextValue } from '@burdenoff/fe-libs/shared/providers/shell/I18nProvider';
|
|
2
|
-
|
|
3
2
|
export type TranslationParams = Record<string, string | number>;
|
|
4
3
|
/**
|
|
5
4
|
* Interpolate `{{key}}` placeholders in a fallback string.
|
|
@@ -19,4 +18,3 @@ export declare function interpolateFallback(fallback: string, params?: Translati
|
|
|
19
18
|
* already has access to `t`).
|
|
20
19
|
*/
|
|
21
20
|
export declare function tWithFallback(t: I18nContextValue["t"], key: string, fallback: string, params?: TranslationParams): string;
|
|
22
|
-
//# sourceMappingURL=i18n.d.ts.map
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
|
|
1
|
+
// src/export/utils/i18n.ts
|
|
2
2
|
function e(e, t) {
|
|
3
3
|
return t ? Object.entries(t).reduce((e, [t, n]) => e.replace(RegExp(`\\{\\{${t}\\}\\}`, "g"), String(n)), e) : e;
|
|
4
4
|
}
|
|
5
|
-
//#endregion
|
|
6
5
|
export { e as interpolateFallback };
|
|
7
6
|
|
|
8
7
|
//# sourceMappingURL=i18n.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"i18n.js","names":[],"sources":["../../../src/export/utils/i18n.ts"],"sourcesContent":["import type { I18nContextValue } from \"@burdenoff/fe-libs/shared/providers/shell/I18nProvider\";\n\nexport type TranslationParams = Record<string, string | number>;\n\n/**\n * Interpolate `{{key}}` placeholders in a fallback string.\n *\n * Matches the VibeControls `useTr` interpolation convention so call sites\n * across the platform stay consistent.\n */\nexport function interpolateFallback(\n fallback: string,\n params?: TranslationParams,\n): string {\n if (!params) {\n return fallback;\n }\n\n return Object.entries(params).reduce(\n (str, [key, value]) =>\n str.replace(new RegExp(`\\\\{\\\\{${key}\\\\}\\\\}`, \"g\"), String(value)),\n fallback,\n );\n}\n\n/**\n * Translate a key using the provided `t` function, falling back to the\n * caller's English string when the key is missing.\n *\n * Supports optional interpolation with `{{key}}` placeholders.\n *\n * Prefer the `useTr()` hook in components; this helper is useful when a\n * translation is needed outside a hook context (e.g. inside a callback that\n * already has access to `t`).\n */\nexport function tWithFallback(\n t: I18nContextValue[\"t\"],\n key: string,\n fallback: string,\n params?: TranslationParams,\n): string {\n const translated = t(key);\n const raw = translated === key ? fallback : translated;\n return interpolateFallback(raw, params);\n}\n"],"mappings":";AAUA,
|
|
1
|
+
{"version":3,"file":"i18n.js","names":["interpolateFallback","params","key","value","str","fallback"],"sources":["../../../src/export/utils/i18n.ts"],"sourcesContent":["import type { I18nContextValue } from \"@burdenoff/fe-libs/shared/providers/shell/I18nProvider\";\n\nexport type TranslationParams = Record<string, string | number>;\n\n/**\n * Interpolate `{{key}}` placeholders in a fallback string.\n *\n * Matches the VibeControls `useTr` interpolation convention so call sites\n * across the platform stay consistent.\n */\nexport function interpolateFallback(\n fallback: string,\n params?: TranslationParams,\n): string {\n if (!params) {\n return fallback;\n }\n\n return Object.entries(params).reduce(\n (str, [key, value]) =>\n str.replace(new RegExp(`\\\\{\\\\{${key}\\\\}\\\\}`, \"g\"), String(value)),\n fallback,\n );\n}\n\n/**\n * Translate a key using the provided `t` function, falling back to the\n * caller's English string when the key is missing.\n *\n * Supports optional interpolation with `{{key}}` placeholders.\n *\n * Prefer the `useTr()` hook in components; this helper is useful when a\n * translation is needed outside a hook context (e.g. inside a callback that\n * already has access to `t`).\n */\nexport function tWithFallback(\n t: I18nContextValue[\"t\"],\n key: string,\n fallback: string,\n params?: TranslationParams,\n): string {\n const translated = t(key);\n const raw = translated === key ? fallback : translated;\n return interpolateFallback(raw, params);\n}\n"],"mappings":";AAUA,SAAgBA,EACd,GACA,GACQ;CAKR,OAJKC,IAIE,OAAO,QAAQA,CAAM,CAAC,CAAC,QAC3B,GAAK,CAACC,GAAKC,OACVC,EAAI,QAAY,OAAO,SAASF,EAAI,SAAS,GAAG,GAAG,OAAOC,CAAK,CAAC,GAClEE,CACF,IAPSA;AAQX"}
|
|
@@ -1,24 +1,5 @@
|
|
|
1
1
|
export type Maybe<T> = T | null;
|
|
2
2
|
export type InputMaybe<T> = Maybe<T>;
|
|
3
|
-
export type Exact<T extends {
|
|
4
|
-
[key: string]: unknown;
|
|
5
|
-
}> = {
|
|
6
|
-
[K in keyof T]: T[K];
|
|
7
|
-
};
|
|
8
|
-
export type MakeOptional<T, K extends keyof T> = Omit<T, K> & {
|
|
9
|
-
[SubKey in K]?: Maybe<T[SubKey]>;
|
|
10
|
-
};
|
|
11
|
-
export type MakeMaybe<T, K extends keyof T> = Omit<T, K> & {
|
|
12
|
-
[SubKey in K]: Maybe<T[SubKey]>;
|
|
13
|
-
};
|
|
14
|
-
export type MakeEmpty<T extends {
|
|
15
|
-
[key: string]: unknown;
|
|
16
|
-
}, K extends keyof T> = {
|
|
17
|
-
[_ in K]?: never;
|
|
18
|
-
};
|
|
19
|
-
export type Incremental<T> = T | {
|
|
20
|
-
[P in keyof T]?: P extends ' $fragmentName' | '__typename' ? T[P] : never;
|
|
21
|
-
};
|
|
22
3
|
/** All built-in and custom scalars, mapped to their actual values */
|
|
23
4
|
export type Scalars = {
|
|
24
5
|
ID: {
|
|
@@ -68,8 +49,8 @@ export type Scalars = {
|
|
|
68
49
|
output: File;
|
|
69
50
|
};
|
|
70
51
|
_SubscriptionsPlaceholder: {
|
|
71
|
-
input:
|
|
72
|
-
output:
|
|
52
|
+
input: unknown;
|
|
53
|
+
output: unknown;
|
|
73
54
|
};
|
|
74
55
|
};
|
|
75
56
|
/** API Key for programmatic access */
|
|
@@ -23524,4 +23505,3 @@ export type UserRegisterInput = {
|
|
|
23524
23505
|
phoneNumber?: InputMaybe<Scalars['String']['input']>;
|
|
23525
23506
|
username: Scalars['String']['input'];
|
|
23526
23507
|
};
|
|
23527
|
-
//# sourceMappingURL=global-types.d.ts.map
|