@arbidocs/react 0.5.152 → 0.5.153
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/artifacts/index.cjs +46 -46
- package/dist/calls/livekit/index.cjs +51 -51
- package/dist/{chunk-VXFTVWEI.cjs → chunk-4VHECR5O.cjs} +44 -44
- package/dist/{chunk-VXFTVWEI.cjs.map → chunk-4VHECR5O.cjs.map} +1 -1
- package/dist/{chunk-P2DPOZBS.cjs → chunk-5ZNO77YB.cjs} +11 -2
- package/dist/chunk-5ZNO77YB.cjs.map +1 -0
- package/dist/{chunk-MK5L56Z3.cjs → chunk-BUMLF3MS.cjs} +60 -60
- package/dist/{chunk-MK5L56Z3.cjs.map → chunk-BUMLF3MS.cjs.map} +1 -1
- package/dist/{chunk-6RRKO4ZK.cjs → chunk-DBWW6DXJ.cjs} +5 -5
- package/dist/{chunk-6RRKO4ZK.cjs.map → chunk-DBWW6DXJ.cjs.map} +1 -1
- package/dist/{chunk-KULS4YWP.cjs → chunk-DQODLWFX.cjs} +3 -3
- package/dist/{chunk-KULS4YWP.cjs.map → chunk-DQODLWFX.cjs.map} +1 -1
- package/dist/{chunk-GFX7LQGR.cjs → chunk-HISGJISX.cjs} +67 -67
- package/dist/{chunk-GFX7LQGR.cjs.map → chunk-HISGJISX.cjs.map} +1 -1
- package/dist/{chunk-BI7HFGXF.cjs → chunk-NJWQPNGD.cjs} +14 -14
- package/dist/{chunk-BI7HFGXF.cjs.map → chunk-NJWQPNGD.cjs.map} +1 -1
- package/dist/{chunk-SKJWJ3OY.cjs → chunk-WWGUGZZN.cjs} +39 -39
- package/dist/{chunk-SKJWJ3OY.cjs.map → chunk-WWGUGZZN.cjs.map} +1 -1
- package/dist/{chunk-WJIRX5MS.cjs → chunk-XQLJSNAL.cjs} +3 -3
- package/dist/{chunk-WJIRX5MS.cjs.map → chunk-XQLJSNAL.cjs.map} +1 -1
- package/dist/datasets/aggregate-source.js +133 -0
- package/dist/datasets/aggregate-source.js.map +7 -0
- package/dist/datasets/aggregate.js +72 -22
- package/dist/datasets/aggregate.js.map +2 -2
- package/dist/datasets/index.js +27 -1
- package/dist/datasets/index.js.map +2 -2
- package/dist/datasets/sources/activity.js +44 -9
- package/dist/datasets/sources/activity.js.map +2 -2
- package/dist/datasets/sources/conversations.js +37 -7
- package/dist/datasets/sources/conversations.js.map +2 -2
- package/dist/datasets/sources/documents.js +44 -6
- package/dist/datasets/sources/documents.js.map +2 -2
- package/dist/datasets/sources/facts.js +31 -5
- package/dist/datasets/sources/facts.js.map +3 -3
- package/dist/datasets/sources/tags.js +37 -5
- package/dist/datasets/sources/tags.js.map +3 -3
- package/dist/datasets/sources/usage.js +29 -32
- package/dist/datasets/sources/usage.js.map +2 -2
- package/dist/datasets/sources/workflows.js +56 -22
- package/dist/datasets/sources/workflows.js.map +2 -2
- package/dist/datasets/workspace-aggregate.js +64 -0
- package/dist/datasets/workspace-aggregate.js.map +7 -0
- package/dist/document-tools/core.cjs +102 -102
- package/dist/document-tools/core.d.ts +2 -2
- package/dist/document-tools/index.cjs +104 -104
- package/dist/document-tools/index.d.ts +2 -2
- package/dist/{file-shares.d-CamKxNLC.d.ts → file-shares.d-CyTnJ2Re.d.ts} +11 -0
- package/dist/index.cjs +2935 -2476
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +138 -5
- package/dist/index.js +11 -2
- package/dist/index.js.map +2 -2
- package/dist/projects.js +9 -0
- package/dist/projects.js.map +2 -2
- package/dist/query-keys.js +9 -0
- package/dist/query-keys.js.map +2 -2
- package/dist/shell/index.cjs +40 -40
- package/dist/storage.js +24 -1
- package/dist/storage.js.map +2 -2
- package/dist/table-views.js +19 -1
- package/dist/table-views.js.map +2 -2
- package/dist/ui/index.cjs +181 -181
- package/dist/viewers/index.cjs +9 -9
- package/package.json +3 -3
- package/dist/chunk-P2DPOZBS.cjs.map +0 -1
package/dist/table-views.js.map
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../src/table-views.ts"],
|
|
4
|
-
"sourcesContent": ["/**\n * Saved table views (`/v1/views`): a database grid's or the document table's saved ways of\n * looking at it \u2014 columns and layout, filters, sort. A view is private to its creator until\n * shared with the workspace, for good (sharing is one way); only a workspace owner deletes a\n * shared view. Grids write them (blocks' `useTableViews`); charts over a database read a view's columns\n * and filters.\n *\n * Views used to live in the user settings (`tableviews`). The first read of a workspace's views\n * moves that workspace's settings views to the API as private views and takes them out of the\n * settings (`migrateLegacyTableViews`), once per session.\n */\nimport { useEffect, useMemo, useState } from 'react'\nimport { useMutation, useQuery, useQueryClient } from '@tanstack/react-query'\nimport {\n ArbiApiError,\n DOCUMENTS_VIEW_TARGET,\n filterText,\n type TableViewFilter,\n type TableViewRecord,\n type TableViewSpec,\n} from '@arbidocs/sdk/browser'\nimport type { components } from '@arbidocs/client'\nimport { useArbi } from './useArbi'\nimport { arbiQueryKeys } from './query-keys'\nimport { useUserSettings } from './account/settings'\n\nexport { DOCUMENTS_VIEW_TARGET, filterText }\nexport type { TableViewFilter, TableViewRecord, TableViewSpec }\n\n/** A view as the user settings kept it (before views moved to the API). */\nexport type LegacyTableView = components['schemas']['TableView']\n\n/** The table a view belongs to: a database id, or `null` for the documents table. */\nexport type TableViewTable = string | null\n\n/** The API's target of a table: its database id, or `documents`. */\nexport const tableViewTarget = (table: TableViewTable): string => table ?? DOCUMENTS_VIEW_TARGET\n\n/** The open workspace's id, or '' with none open. */\nfunction openWorkspaceId(arbi: ReturnType<typeof useArbi>): string {\n return arbi.hasWorkspace ? arbi.getWorkspaceId() : ''\n}\n\n/**\n * The views of one table the caller can see (their own, and the workspace's shared ones), oldest\n * first. Moves the open workspace's settings views to the API first (once).\n */\nexport function useTableViewsQuery(table: TableViewTable, options?: { enabled?: boolean }) {\n const arbi = useArbi()\n const workspaceId = openWorkspaceId(arbi)\n const migrated = useMigrateLegacyTableViews()\n const target = tableViewTarget(table)\n return useQuery({\n queryKey: arbiQueryKeys.tableViews(workspaceId, target),\n queryFn: () => arbi.views.list(target),\n enabled: (options?.enabled ?? true) && !!workspaceId && migrated,\n staleTime: 1000 * 30,\n })\n}\n\n/**\n * Every view of the open workspace the caller can see, of every table (a page's table block picks\n * one). Keyed under the workspace's views, so every view write refreshes it.\n */\nexport function useWorkspaceTableViews(options?: { enabled?: boolean }) {\n const arbi = useArbi()\n const workspaceId = openWorkspaceId(arbi)\n const migrated = useMigrateLegacyTableViews()\n return useQuery({\n queryKey: arbiQueryKeys.tableViews(workspaceId),\n queryFn: () => arbi.views.list(),\n enabled: (options?.enabled ?? true) && !!workspaceId && migrated,\n staleTime: 1000 * 30,\n })\n}\n\n/** One view, by id (a page's table block). An error when the caller cannot see it (404). */\nexport function useTableView(viewId: string | null) {\n const arbi = useArbi()\n const workspaceId = openWorkspaceId(arbi)\n return useQuery({\n queryKey: arbiQueryKeys.tableViews(workspaceId, viewId ?? ''),\n queryFn: () => arbi.views.get(viewId as string),\n enabled: !!workspaceId && !!viewId,\n staleTime: 1000 * 30,\n retry: false,\n })\n}\n\nfunction useInvalidateViews() {\n const queryClient = useQueryClient()\n return () => queryClient.invalidateQueries({ queryKey: arbiQueryKeys.tableViews() })\n}\n\nexport interface CreateTableViewVars {\n table: TableViewTable\n spec: TableViewSpec\n shared?: boolean\n}\n\n/** Save a view of a table: private unless `shared`. */\nexport function useCreateTableView() {\n const arbi = useArbi()\n const invalidate = useInvalidateViews()\n return useMutation({\n mutationFn: ({ table, spec, shared }: CreateTableViewVars) =>\n arbi.views.create(tableViewTarget(table), spec, { shared }),\n onSuccess: () => invalidate(),\n })\n}\n\n/** Replace a view's spec (its creator, or a workspace owner for a shared view). */\nexport function useUpdateTableView() {\n const arbi = useArbi()\n const invalidate = useInvalidateViews()\n return useMutation({\n mutationFn: ({ viewId, spec }: { viewId: string; spec: TableViewSpec }) =>\n arbi.views.update(viewId, spec),\n onSuccess: () => invalidate(),\n })\n}\n\n/** Share a view with the workspace. One way: it is never made private again. */\nexport function useShareTableView() {\n const arbi = useArbi()\n const invalidate = useInvalidateViews()\n return useMutation({\n mutationFn: (viewId: string) => arbi.views.share(viewId),\n onSuccess: () => invalidate(),\n })\n}\n\nexport function useDeleteTableView() {\n const arbi = useArbi()\n const invalidate = useInvalidateViews()\n return useMutation({\n mutationFn: (viewId: string) => arbi.views.remove(viewId),\n onSuccess: () => invalidate(),\n })\n}\n\n// \u2500\u2500 the settings views' one move to the API \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\n\n/** A settings view as the API's spec. */\nexport function legacySpec(view: LegacyTableView): TableViewSpec {\n return {\n name: view.name,\n columns: view.columns,\n column_widths: view.column_widths ?? null,\n tile_size: view.tile_size ?? null,\n row_height: view.row_height ?? null,\n descending: false,\n }\n}\n\nexport interface LegacyViewsWriter {\n list: (target?: string) => Promise<TableViewRecord[]>\n create: (target: string, spec: TableViewSpec) => Promise<TableViewRecord>\n /** Write the settings' remaining views. */\n keep: (views: LegacyTableView[]) => Promise<unknown>\n}\n\n/**\n * Move `workspaceId`'s settings views to the API as private views (a name the table already has\n * among the caller's own views is not added twice), then keep in the settings only the views of\n * other workspaces and those that failed to move (tried again next time). A view of a database\n * that no longer exists (404) is dropped. Returns how many were moved.\n */\nexport async function migrateLegacyTableViews(\n all: readonly LegacyTableView[],\n workspaceId: string,\n writer: LegacyViewsWriter\n): Promise<number> {\n const here = all.filter((v) => v.workspace === workspaceId)\n if (!here.length) return 0\n const existing = await writer.list()\n const taken = new Set(\n existing.filter((v) => v.mine).map((v) => `${v.target}\\u0000${v.spec.name}`)\n )\n const failed: LegacyTableView[] = []\n let moved = 0\n for (const view of here) {\n const target = tableViewTarget(view.table ?? null)\n const key = `${target}\\u0000${view.name}`\n if (taken.has(key)) continue\n try {\n await writer.create(target, legacySpec(view))\n taken.add(key)\n moved += 1\n } catch (err) {\n if (!(err instanceof ArbiApiError && err.status === 404)) failed.push(view)\n }\n }\n await writer.keep([...all.filter((v) => v.workspace !== workspaceId), ...failed])\n return moved\n}\n\n/** Workspaces whose settings views this session has moved (or is moving). */\nconst moving = new Map<string, Promise<unknown>>()\n\n/**\n * Move the open workspace's settings views to the API, once per session. True once there is\n * nothing (left) to move, so reads of the views wait for it and never miss a moved view.\n */\nexport function useMigrateLegacyTableViews(): boolean {\n const arbi = useArbi()\n const queryClient = useQueryClient()\n const workspaceId = openWorkspaceId(arbi)\n const settings = useUserSettings({ enabled: !!workspaceId })\n const legacy = useMemo(() => settings.data?.tableviews ?? [], [settings.data?.tableviews])\n const pending = !!workspaceId && legacy.some((v) => v.workspace === workspaceId)\n const [failed, setFailed] = useState<string | null>(null)\n useEffect(() => {\n if (!pending || moving.has(workspaceId)) return\n const run = migrateLegacyTableViews(legacy, workspaceId, {\n list: () => arbi.views.list(),\n create: (target, spec) => arbi.views.create(target, spec),\n keep: async (tableviews) => {\n await arbi.settings.update({ tableviews })\n queryClient.setQueryData(arbiQueryKeys.userSettings(), (old: object | undefined) =>\n old ? { ...old, tableviews } : old\n )\n },\n })\n .then(() => queryClient.invalidateQueries({ queryKey: arbiQueryKeys.tableViews() }))\n .catch(() => {\n // Read the API's views anyway; the settings ones are tried again next session.\n setFailed(workspaceId)\n })\n moving.set(workspaceId, run)\n }, [pending, workspaceId, legacy, arbi, queryClient])\n return !!workspaceId && settings.isFetched && (!pending || failed === workspaceId)\n}\n\n/** Forget which workspaces were migrated (tests). */\nexport function resetLegacyTableViewMigration() {\n moving.clear()\n}\n"],
|
|
5
|
-
"mappings": "AAWA,SAAS,WAAW,SAAS,gBAAgB;AAC7C,SAAS,aAAa,UAAU,sBAAsB;AACtD;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,
|
|
4
|
+
"sourcesContent": ["/**\n * Saved table views (`/v1/views`): a database grid's or the document table's saved ways of\n * looking at it \u2014 columns and layout, filters, sort. A view is private to its creator until\n * shared with the workspace, for good (sharing is one way); only a workspace owner deletes a\n * shared view. Grids write them (blocks' `useTableViews`); charts over a database read a view's columns\n * and filters.\n *\n * Views used to live in the user settings (`tableviews`). The first read of a workspace's views\n * moves that workspace's settings views to the API as private views and takes them out of the\n * settings (`migrateLegacyTableViews`), once per session.\n */\nimport { useEffect, useMemo, useState } from 'react'\nimport { useMutation, useQuery, useQueryClient } from '@tanstack/react-query'\nimport {\n ArbiApiError,\n DOCUMENTS_VIEW_TARGET,\n filterText,\n type TableViewFilter,\n type TableViewRecord,\n type TableViewRows,\n type TableViewSpec,\n} from '@arbidocs/sdk/browser'\nimport type { components } from '@arbidocs/client'\nimport { useArbi } from './useArbi'\nimport { arbiQueryKeys } from './query-keys'\nimport { useUserSettings } from './account/settings'\n\nexport { DOCUMENTS_VIEW_TARGET, filterText }\nexport type { TableViewFilter, TableViewRecord, TableViewRows, TableViewSpec }\n\n/** A view as the user settings kept it (before views moved to the API). */\nexport type LegacyTableView = components['schemas']['TableView']\n\n/** The table a view belongs to: a database id, or `null` for the documents table. */\nexport type TableViewTable = string | null\n\n/** The API's target of a table: its database id, or `documents`. */\nexport const tableViewTarget = (table: TableViewTable): string => table ?? DOCUMENTS_VIEW_TARGET\n\n/** The open workspace's id, or '' with none open. */\nfunction openWorkspaceId(arbi: ReturnType<typeof useArbi>): string {\n return arbi.hasWorkspace ? arbi.getWorkspaceId() : ''\n}\n\n/**\n * The views of one table the caller can see (their own, and the workspace's shared ones), oldest\n * first. Moves the open workspace's settings views to the API first (once).\n */\nexport function useTableViewsQuery(table: TableViewTable, options?: { enabled?: boolean }) {\n const arbi = useArbi()\n const workspaceId = openWorkspaceId(arbi)\n const migrated = useMigrateLegacyTableViews()\n const target = tableViewTarget(table)\n return useQuery({\n queryKey: arbiQueryKeys.tableViews(workspaceId, target),\n queryFn: () => arbi.views.list(target),\n enabled: (options?.enabled ?? true) && !!workspaceId && migrated,\n staleTime: 1000 * 30,\n })\n}\n\n/**\n * Every view of the open workspace the caller can see, of every table (a page's table block picks\n * one). Keyed under the workspace's views, so every view write refreshes it.\n */\nexport function useWorkspaceTableViews(options?: { enabled?: boolean }) {\n const arbi = useArbi()\n const workspaceId = openWorkspaceId(arbi)\n const migrated = useMigrateLegacyTableViews()\n return useQuery({\n queryKey: arbiQueryKeys.tableViews(workspaceId),\n queryFn: () => arbi.views.list(),\n enabled: (options?.enabled ?? true) && !!workspaceId && migrated,\n staleTime: 1000 * 30,\n })\n}\n\n/** One view, by id (a page's table block). An error when the caller cannot see it (404). */\nexport function useTableView(viewId: string | null) {\n const arbi = useArbi()\n const workspaceId = openWorkspaceId(arbi)\n return useQuery({\n queryKey: arbiQueryKeys.tableViews(workspaceId, viewId ?? ''),\n queryFn: () => arbi.views.get(viewId as string),\n enabled: !!workspaceId && !!viewId,\n staleTime: 1000 * 30,\n retry: false,\n })\n}\n\n/** How many rows a page's table block reads of its view. */\nexport const TABLE_VIEW_ROWS_PAGE = 100\n\n/**\n * A view with its database, its columns and its first rows (its filters and sort applied on the\n * server), in one read: a page's table block. An error when the caller cannot see the view or its\n * database (404); a view of the document table has no database. Row and view writes refresh it.\n */\nexport function useTableViewRows(viewId: string | null) {\n const arbi = useArbi()\n const workspaceId = openWorkspaceId(arbi)\n return useQuery({\n queryKey: arbiQueryKeys.tableViewRows(workspaceId, viewId ?? ''),\n queryFn: () => arbi.views.rows(viewId as string, { limit: TABLE_VIEW_ROWS_PAGE }),\n enabled: !!workspaceId && !!viewId,\n staleTime: 1000 * 15,\n retry: false,\n })\n}\n\nfunction useInvalidateViews() {\n const queryClient = useQueryClient()\n return () =>\n Promise.all([\n queryClient.invalidateQueries({ queryKey: arbiQueryKeys.tableViews() }),\n // A view's rows read applies the view: a changed view reads its rows anew.\n queryClient.invalidateQueries({ queryKey: arbiQueryKeys.databaseRows() }),\n ])\n}\n\nexport interface CreateTableViewVars {\n table: TableViewTable\n spec: TableViewSpec\n shared?: boolean\n}\n\n/** Save a view of a table: private unless `shared`. */\nexport function useCreateTableView() {\n const arbi = useArbi()\n const invalidate = useInvalidateViews()\n return useMutation({\n mutationFn: ({ table, spec, shared }: CreateTableViewVars) =>\n arbi.views.create(tableViewTarget(table), spec, { shared }),\n onSuccess: () => invalidate(),\n })\n}\n\n/** Replace a view's spec (its creator, or a workspace owner for a shared view). */\nexport function useUpdateTableView() {\n const arbi = useArbi()\n const invalidate = useInvalidateViews()\n return useMutation({\n mutationFn: ({ viewId, spec }: { viewId: string; spec: TableViewSpec }) =>\n arbi.views.update(viewId, spec),\n onSuccess: () => invalidate(),\n })\n}\n\n/** Share a view with the workspace. One way: it is never made private again. */\nexport function useShareTableView() {\n const arbi = useArbi()\n const invalidate = useInvalidateViews()\n return useMutation({\n mutationFn: (viewId: string) => arbi.views.share(viewId),\n onSuccess: () => invalidate(),\n })\n}\n\nexport function useDeleteTableView() {\n const arbi = useArbi()\n const invalidate = useInvalidateViews()\n return useMutation({\n mutationFn: (viewId: string) => arbi.views.remove(viewId),\n onSuccess: () => invalidate(),\n })\n}\n\n// \u2500\u2500 the settings views' one move to the API \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\n\n/** A settings view as the API's spec. */\nexport function legacySpec(view: LegacyTableView): TableViewSpec {\n return {\n name: view.name,\n columns: view.columns,\n column_widths: view.column_widths ?? null,\n tile_size: view.tile_size ?? null,\n row_height: view.row_height ?? null,\n descending: false,\n }\n}\n\nexport interface LegacyViewsWriter {\n list: (target?: string) => Promise<TableViewRecord[]>\n create: (target: string, spec: TableViewSpec) => Promise<TableViewRecord>\n /** Write the settings' remaining views. */\n keep: (views: LegacyTableView[]) => Promise<unknown>\n}\n\n/**\n * Move `workspaceId`'s settings views to the API as private views (a name the table already has\n * among the caller's own views is not added twice), then keep in the settings only the views of\n * other workspaces and those that failed to move (tried again next time). A view of a database\n * that no longer exists (404) is dropped. Returns how many were moved.\n */\nexport async function migrateLegacyTableViews(\n all: readonly LegacyTableView[],\n workspaceId: string,\n writer: LegacyViewsWriter\n): Promise<number> {\n const here = all.filter((v) => v.workspace === workspaceId)\n if (!here.length) return 0\n const existing = await writer.list()\n const taken = new Set(\n existing.filter((v) => v.mine).map((v) => `${v.target}\\u0000${v.spec.name}`)\n )\n const failed: LegacyTableView[] = []\n let moved = 0\n for (const view of here) {\n const target = tableViewTarget(view.table ?? null)\n const key = `${target}\\u0000${view.name}`\n if (taken.has(key)) continue\n try {\n await writer.create(target, legacySpec(view))\n taken.add(key)\n moved += 1\n } catch (err) {\n if (!(err instanceof ArbiApiError && err.status === 404)) failed.push(view)\n }\n }\n await writer.keep([...all.filter((v) => v.workspace !== workspaceId), ...failed])\n return moved\n}\n\n/** Workspaces whose settings views this session has moved (or is moving). */\nconst moving = new Map<string, Promise<unknown>>()\n\n/**\n * Move the open workspace's settings views to the API, once per session. True once there is\n * nothing (left) to move, so reads of the views wait for it and never miss a moved view.\n */\nexport function useMigrateLegacyTableViews(): boolean {\n const arbi = useArbi()\n const queryClient = useQueryClient()\n const workspaceId = openWorkspaceId(arbi)\n const settings = useUserSettings({ enabled: !!workspaceId })\n const legacy = useMemo(() => settings.data?.tableviews ?? [], [settings.data?.tableviews])\n const pending = !!workspaceId && legacy.some((v) => v.workspace === workspaceId)\n const [failed, setFailed] = useState<string | null>(null)\n useEffect(() => {\n if (!pending || moving.has(workspaceId)) return\n const run = migrateLegacyTableViews(legacy, workspaceId, {\n list: () => arbi.views.list(),\n create: (target, spec) => arbi.views.create(target, spec),\n keep: async (tableviews) => {\n await arbi.settings.update({ tableviews })\n queryClient.setQueryData(arbiQueryKeys.userSettings(), (old: object | undefined) =>\n old ? { ...old, tableviews } : old\n )\n },\n })\n .then(() => queryClient.invalidateQueries({ queryKey: arbiQueryKeys.tableViews() }))\n .catch(() => {\n // Read the API's views anyway; the settings ones are tried again next session.\n setFailed(workspaceId)\n })\n moving.set(workspaceId, run)\n }, [pending, workspaceId, legacy, arbi, queryClient])\n return !!workspaceId && settings.isFetched && (!pending || failed === workspaceId)\n}\n\n/** Forget which workspaces were migrated (tests). */\nexport function resetLegacyTableViewMigration() {\n moving.clear()\n}\n"],
|
|
5
|
+
"mappings": "AAWA,SAAS,WAAW,SAAS,gBAAgB;AAC7C,SAAS,aAAa,UAAU,sBAAsB;AACtD;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,OAKK;AAEP,SAAS,eAAe;AACxB,SAAS,qBAAqB;AAC9B,SAAS,uBAAuB;AAYzB,MAAM,kBAAkB,CAAC,UAAkC,SAAS;AAG3E,SAAS,gBAAgB,MAA0C;AACjE,SAAO,KAAK,eAAe,KAAK,eAAe,IAAI;AACrD;AAMO,SAAS,mBAAmB,OAAuB,SAAiC;AACzF,QAAM,OAAO,QAAQ;AACrB,QAAM,cAAc,gBAAgB,IAAI;AACxC,QAAM,WAAW,2BAA2B;AAC5C,QAAM,SAAS,gBAAgB,KAAK;AACpC,SAAO,SAAS;AAAA,IACd,UAAU,cAAc,WAAW,aAAa,MAAM;AAAA,IACtD,SAAS,MAAM,KAAK,MAAM,KAAK,MAAM;AAAA,IACrC,UAAU,SAAS,WAAW,SAAS,CAAC,CAAC,eAAe;AAAA,IACxD,WAAW,MAAO;AAAA,EACpB,CAAC;AACH;AAMO,SAAS,uBAAuB,SAAiC;AACtE,QAAM,OAAO,QAAQ;AACrB,QAAM,cAAc,gBAAgB,IAAI;AACxC,QAAM,WAAW,2BAA2B;AAC5C,SAAO,SAAS;AAAA,IACd,UAAU,cAAc,WAAW,WAAW;AAAA,IAC9C,SAAS,MAAM,KAAK,MAAM,KAAK;AAAA,IAC/B,UAAU,SAAS,WAAW,SAAS,CAAC,CAAC,eAAe;AAAA,IACxD,WAAW,MAAO;AAAA,EACpB,CAAC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