@arbidocs/react 0.5.151 → 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.
Files changed (78) hide show
  1. package/dist/artifacts/index.cjs +46 -46
  2. package/dist/calls/livekit/index.cjs +51 -51
  3. package/dist/{chunk-VXFTVWEI.cjs → chunk-4VHECR5O.cjs} +44 -44
  4. package/dist/{chunk-VXFTVWEI.cjs.map → chunk-4VHECR5O.cjs.map} +1 -1
  5. package/dist/{chunk-P2DPOZBS.cjs → chunk-5ZNO77YB.cjs} +11 -2
  6. package/dist/chunk-5ZNO77YB.cjs.map +1 -0
  7. package/dist/{chunk-MK5L56Z3.cjs → chunk-BUMLF3MS.cjs} +60 -60
  8. package/dist/{chunk-MK5L56Z3.cjs.map → chunk-BUMLF3MS.cjs.map} +1 -1
  9. package/dist/{chunk-6RRKO4ZK.cjs → chunk-DBWW6DXJ.cjs} +5 -5
  10. package/dist/{chunk-6RRKO4ZK.cjs.map → chunk-DBWW6DXJ.cjs.map} +1 -1
  11. package/dist/{chunk-KULS4YWP.cjs → chunk-DQODLWFX.cjs} +3 -3
  12. package/dist/{chunk-KULS4YWP.cjs.map → chunk-DQODLWFX.cjs.map} +1 -1
  13. package/dist/{chunk-GFX7LQGR.cjs → chunk-HISGJISX.cjs} +67 -67
  14. package/dist/{chunk-GFX7LQGR.cjs.map → chunk-HISGJISX.cjs.map} +1 -1
  15. package/dist/{chunk-BI7HFGXF.cjs → chunk-NJWQPNGD.cjs} +14 -14
  16. package/dist/{chunk-BI7HFGXF.cjs.map → chunk-NJWQPNGD.cjs.map} +1 -1
  17. package/dist/{chunk-SKJWJ3OY.cjs → chunk-WWGUGZZN.cjs} +39 -39
  18. package/dist/{chunk-SKJWJ3OY.cjs.map → chunk-WWGUGZZN.cjs.map} +1 -1
  19. package/dist/{chunk-B6T54X65.cjs → chunk-XQLJSNAL.cjs} +5 -5
  20. package/dist/chunk-XQLJSNAL.cjs.map +1 -0
  21. package/dist/datasets/aggregate-source.js +133 -0
  22. package/dist/datasets/aggregate-source.js.map +7 -0
  23. package/dist/datasets/aggregate.js +72 -22
  24. package/dist/datasets/aggregate.js.map +2 -2
  25. package/dist/datasets/index.js +27 -1
  26. package/dist/datasets/index.js.map +2 -2
  27. package/dist/datasets/rows-source.js.map +2 -2
  28. package/dist/datasets/sources/activity.js +44 -9
  29. package/dist/datasets/sources/activity.js.map +2 -2
  30. package/dist/datasets/sources/conversations.js +38 -8
  31. package/dist/datasets/sources/conversations.js.map +2 -2
  32. package/dist/datasets/sources/database.js +17 -9
  33. package/dist/datasets/sources/database.js.map +2 -2
  34. package/dist/datasets/sources/documents.js +45 -7
  35. package/dist/datasets/sources/documents.js.map +2 -2
  36. package/dist/datasets/sources/facts.js +32 -6
  37. package/dist/datasets/sources/facts.js.map +3 -3
  38. package/dist/datasets/sources/projects.js +1 -1
  39. package/dist/datasets/sources/projects.js.map +2 -2
  40. package/dist/datasets/sources/tags.js +38 -6
  41. package/dist/datasets/sources/tags.js.map +3 -3
  42. package/dist/datasets/sources/usage.js +29 -31
  43. package/dist/datasets/sources/usage.js.map +2 -2
  44. package/dist/datasets/sources/workflows.js +56 -22
  45. package/dist/datasets/sources/workflows.js.map +2 -2
  46. package/dist/datasets/sources/workspaces.js +1 -1
  47. package/dist/datasets/sources/workspaces.js.map +2 -2
  48. package/dist/datasets/types.js.map +1 -1
  49. package/dist/datasets/workspace-aggregate.js +64 -0
  50. package/dist/datasets/workspace-aggregate.js.map +7 -0
  51. package/dist/document-tools/core.cjs +102 -102
  52. package/dist/document-tools/core.d.ts +2 -2
  53. package/dist/document-tools/index.cjs +104 -104
  54. package/dist/document-tools/index.d.ts +2 -2
  55. package/dist/{file-shares.d-CamKxNLC.d.ts → file-shares.d-CyTnJ2Re.d.ts} +11 -0
  56. package/dist/index.cjs +2956 -2489
  57. package/dist/index.cjs.map +1 -1
  58. package/dist/{index.d-DbcrFwS6.d.ts → index.d-Dy_Pz6Vl.d.ts} +4 -0
  59. package/dist/index.d.ts +145 -7
  60. package/dist/index.js +11 -2
  61. package/dist/index.js.map +2 -2
  62. package/dist/projects.js +9 -0
  63. package/dist/projects.js.map +2 -2
  64. package/dist/query-keys.js +9 -0
  65. package/dist/query-keys.js.map +2 -2
  66. package/dist/shell/index.cjs +40 -40
  67. package/dist/storage.js +24 -1
  68. package/dist/storage.js.map +2 -2
  69. package/dist/table-views.js +19 -1
  70. package/dist/table-views.js.map +2 -2
  71. package/dist/ui/card.js +2 -2
  72. package/dist/ui/card.js.map +2 -2
  73. package/dist/ui/index.cjs +181 -181
  74. package/dist/ui/index.d.ts +1 -1
  75. package/dist/viewers/index.cjs +9 -9
  76. package/package.json +3 -3
  77. package/dist/chunk-B6T54X65.cjs.map +0 -1
  78. package/dist/chunk-P2DPOZBS.cjs.map +0 -1
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../src/datasets/types.ts"],
4
- "sourcesContent": ["/**\n * Datasets: the one shape every chart and dashboard reads, whatever the data comes from.\n *\n * Three layers, each knowing only the one below it:\n * 1. A `DataSource` adapter (AI usage, documents, threads, projects, a database, later an external\n * feed) exposes its data as a normalized `Dataset`: typed fields and plain rows. Filtering,\n * grouping and aggregation happen here (`aggregateDataset`, or on the server where the backend\n * can, as a database does), never in a chart.\n * 2. A `ChartSpec` (inside a `PanelSpec`, inside a `DashboardSpec`) says what to show in terms of\n * field ids only: the chart type, x / series / y fields, the aggregate, sort and limit. It is\n * plain JSON, saved in dashboards and studio pages.\n * 3. A renderer (`@arbidocs/blocks/dashboards`) maps a spec plus the aggregated dataset onto the\n * drawing component. No renderer type appears here, so the renderer stays swappable.\n */\n\n/** A field's value type. Dates are ISO strings (`2026-06-12` or a full timestamp). */\nexport type DatasetFieldType = 'string' | 'number' | 'date' | 'boolean'\n\n/** One column of a dataset. */\nexport interface DatasetField {\n /** Stable id: what specs and rows use. */\n id: string\n /** What people read (a column name, \"Status\"). */\n label: string\n type: DatasetFieldType\n /**\n * The unit of a number field, which picks its formatting: `gbp` (\u00A3), `bytes`, `tokens`, or any\n * suffix (`\"MB\"`, `\"%\"`).\n */\n unit?: string\n /** The values a string field takes, when known (a select column's options), for a filter picker. */\n options?: readonly string[]\n /** A string field whose cell holds several values (tags, linked rows): a row counts in each. */\n multiple?: boolean\n}\n\n/** A cell: a scalar, `null` when empty, or a list for a `multiple` field. */\nexport type DatasetValue = string | number | boolean | null | readonly string[]\n\n/** One row, keyed by field id. */\nexport type DatasetRow = Readonly<Record<string, DatasetValue | undefined>>\n\n/** A normalized dataset: typed fields and the rows. */\nexport interface Dataset {\n fields: readonly DatasetField[]\n rows: readonly DatasetRow[]\n /** Rows matched before grouping (after filters). */\n totalRows?: number\n /** More groups existed than the query's `limit`. */\n truncated?: boolean\n}\n\n/** How a date field is grouped. Keys: `2026-06-12`, `2026-W24`, `2026-06`, `2026-Q2`, `2026`. */\nexport type TimeBucket = 'day' | 'week' | 'month' | 'quarter' | 'year'\n\nexport type AggregateOp = 'count' | 'sum' | 'avg' | 'min' | 'max'\n\nexport type FilterOp =\n 'eq' | 'neq' | 'contains' | 'gt' | 'gte' | 'lt' | 'lte' | 'empty' | 'not_empty'\n\n/** Keep rows whose `field` satisfies `op value` (compared in the field's type). */\nexport interface DatasetFilter {\n field: string\n op: FilterOp\n value?: string | number | boolean | null\n}\n\n/** How the groups are ordered: by label (dates: chronological), or by value. */\nexport type DatasetSort = 'label' | 'value-desc' | 'value-asc'\n\n/** How records are ordered: by a field (empty cells last). */\nexport interface DatasetOrder {\n field: string\n /** Default `asc`. */\n direction?: 'asc' | 'desc'\n}\n\n/**\n * What to read of a source. Grouped (the default): the (filtered) rows grouped and each group\n * measured, a dataset in long form with the fields {@link AGGREGATE_FIELDS}, one row per group (and\n * series). With `records`: the matching rows themselves, ordered by `orderBy` and cut at `limit`.\n */\nexport interface DatasetQuery {\n /** List the matching records instead of grouping them (`groupBy`, `splitBy`, `measure` unused). */\n records?: boolean\n /** The order of the records. */\n orderBy?: DatasetOrder\n filters?: readonly DatasetFilter[]\n /** The field whose values (or date buckets) are the groups. Absent: one group, \"All\". */\n groupBy?: string\n /** The bucket of a date `groupBy` / `splitBy`. Default `month`. */\n bucket?: TimeBucket\n /** A second field: one series per value (a stacked or multi-line chart). */\n splitBy?: string\n /** Default: count rows. `count` with a `field` counts the rows where it is not empty. */\n measure?: { op: AggregateOp; field?: string }\n /** Default: dates chronological, others by value, largest first. */\n sort?: DatasetSort\n /** Most groups kept (by value), or records listed. Default 50 groups; every record. */\n limit?: number\n}\n\n/** The field ids of an aggregated dataset. */\nexport const AGGREGATE_FIELDS = {\n /** The group's label (\"Open\", \"2026-06\"). */\n group: 'group',\n /** The group's key as grouped (a date bucket, an id), for ordering and links. */\n key: 'key',\n /** The series' label (only with `splitBy`). */\n series: 'series',\n /** The measured value; `null` when the group has no value to measure. */\n value: 'value',\n} as const\n\n/** A dataset (or a source's fields) as a hook reads it. */\nexport interface DatasetState {\n dataset: Dataset | undefined\n isLoading: boolean\n error: unknown\n}\n\nexport interface DataSourceFieldsState {\n fields: readonly DatasetField[]\n isLoading: boolean\n error: unknown\n}\n\n/** A source's parameters as saved in a panel (a database id, a period). */\nexport type DataSourceParams = Readonly<\n Record<string, string | number | boolean | null | undefined>\n>\n\n/** A choice for a parameter (an option of a select). */\nexport interface DataSourceOption {\n value: string\n label: string\n /** Other parameters set with this choice (a database's workspace, so a panel reads it anywhere). */\n params?: DataSourceParams\n}\n\n/** A parameter the panel editor asks for, before the source's fields are known. */\nexport interface DataSourceParam {\n id: string\n label: string\n /** Absent: the parameter may be left empty. */\n required?: boolean\n /** Shown when nothing is chosen (\"All columns\"). */\n placeholder?: string\n /** The choices, read live (databases of the open workspace; a database's saved views). */\n useOptions: (params: DataSourceParams) => {\n options: readonly DataSourceOption[]\n isLoading: boolean\n }\n}\n\n/**\n * A data source adapter: where a dataset comes from.\n *\n * `useFields` and `useDataset` are hooks. A caller renders them from a component keyed by the\n * source id, so switching source mounts afresh (the hooks differ between sources).\n *\n * Extension point: an external source (an HTTP/JSON API, a CSV feed, a warehouse) is one more\n * adapter. It reads its rows however it likes (its own `useQuery`) and returns them as a `Dataset`;\n * `defineRowsSource` aggregates them for it. A host lists it in `<ArbiHost config={{ dashboards:\n * { sources } }}>` and every editor, panel and studio block offers it. Fetching third-party URLs\n * from the browser is the host's decision (CORS, credentials, what a shared dashboard may reach),\n * so none is built in; data to chart today is imported into a database (CSV / spreadsheet import).\n */\nexport interface DataSource {\n id: string\n label: string\n description?: string\n /** `workspace`: it reads the open workspace's data (documents, threads\u2026), so it shows nothing until\n * one is open; a function decides from the panel's parameters (a database panel that does not name\n * its workspace). Absent: it is the person's own or names what it reads (AI usage). */\n scope?: 'workspace' | ((params: DataSourceParams) => 'workspace' | undefined)\n params?: readonly DataSourceParam[]\n /** The fields a panel can use, given the parameters. */\n useFields: (params: DataSourceParams) => DataSourceFieldsState\n /**\n * The dataset: grouped and measured (long form with {@link AGGREGATE_FIELDS}), or the records\n * (`query.records`), filtered either way.\n */\n useDataset: (\n params: DataSourceParams,\n query: DatasetQuery,\n options?: { enabled?: boolean }\n ) => DatasetState\n}\n\n// \u2500\u2500 Specs: what a panel shows (plain JSON) \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\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\n\n/** How a panel draws its data. `metric` is one number; `table` a table of rows or groups. */\nexport type ChartType = 'metric' | 'bar' | 'line' | 'area' | 'pie' | 'donut' | 'table'\n\n/** What to show, in terms of the dataset's field ids. Serialisable. */\nexport interface ChartSpec {\n type: ChartType\n /** The category or date field along the x axis (pie slices; table groups). */\n x?: string\n /** The bucket of a date `x`. Default `month`. */\n bucket?: TimeBucket\n /** A field whose values become the series (stacked bars or areas, several lines). */\n series?: string\n /** The number field the aggregate reads (absent: rows are counted). */\n y?: string\n /** Default `count`. */\n aggregate?: AggregateOp\n sort?: DatasetSort\n limit?: number\n /** Stack the series (bar, area). */\n stacked?: boolean\n filters?: readonly DatasetFilter[]\n /** A table of records (no aggregate): the fields shown, in order. Absent: every field. */\n columns?: readonly string[]\n /** A table of records: their order. */\n orderBy?: DatasetOrder\n}\n\n/** The source a panel reads, by registry id, with its parameters. */\nexport interface DataSourceRef {\n id: string\n params?: DataSourceParams\n}\n\n/** One panel of a dashboard. */\nexport interface PanelSpec {\n id: string\n title: string\n description?: string\n source: DataSourceRef\n chart: ChartSpec\n /** Columns of the 12-column grid it spans on a wide screen (it is full width on a phone). */\n width?: number\n}\n\n/** A dashboard: a titled grid of panels. Plain JSON (`version` for later migrations). */\nexport interface DashboardSpec {\n version: 1\n title: string\n description?: string\n panels: readonly PanelSpec[]\n}\n"],
4
+ "sourcesContent": ["/**\n * Datasets: the one shape every chart and dashboard reads, whatever the data comes from.\n *\n * Three layers, each knowing only the one below it:\n * 1. A `DataSource` adapter (AI usage, documents, threads, projects, a database, later an external\n * feed) exposes its data as a normalized `Dataset`: typed fields and plain rows. Filtering,\n * grouping and aggregation happen here (`aggregateDataset`, or on the server where the backend\n * can, as a database does), never in a chart.\n * 2. A `ChartSpec` (inside a `PanelSpec`, inside a `DashboardSpec`) says what to show in terms of\n * field ids only: the chart type, x / series / y fields, the aggregate, sort and limit. It is\n * plain JSON, saved in dashboards and studio pages.\n * 3. A renderer (`@arbidocs/blocks/dashboards`) maps a spec plus the aggregated dataset onto the\n * drawing component. No renderer type appears here, so the renderer stays swappable.\n */\n\n/** A field's value type. Dates are ISO strings (`2026-06-12` or a full timestamp). */\nexport type DatasetFieldType = 'string' | 'number' | 'date' | 'boolean'\n\n/** One column of a dataset. */\nexport interface DatasetField {\n /** Stable id: what specs and rows use. */\n id: string\n /** What people read (a column name, \"Status\"). */\n label: string\n type: DatasetFieldType\n /**\n * The unit of a number field, which picks its formatting: `gbp` (\u00A3), `bytes`, `tokens`, or any\n * suffix (`\"MB\"`, `\"%\"`).\n */\n unit?: string\n /** The values a string field takes, when known (a select column's options), for a filter picker. */\n options?: readonly string[]\n /** A string field whose cell holds several values (tags, linked rows): a row counts in each. */\n multiple?: boolean\n}\n\n/** A cell: a scalar, `null` when empty, or a list for a `multiple` field. */\nexport type DatasetValue = string | number | boolean | null | readonly string[]\n\n/** One row, keyed by field id. */\nexport type DatasetRow = Readonly<Record<string, DatasetValue | undefined>>\n\n/** A normalized dataset: typed fields and the rows. */\nexport interface Dataset {\n fields: readonly DatasetField[]\n rows: readonly DatasetRow[]\n /** Rows matched before grouping (after filters). */\n totalRows?: number\n /** More groups existed than the query's `limit`. */\n truncated?: boolean\n}\n\n/** How a date field is grouped. Keys: `2026-06-12`, `2026-W24`, `2026-06`, `2026-Q2`, `2026`. */\nexport type TimeBucket = 'day' | 'week' | 'month' | 'quarter' | 'year'\n\nexport type AggregateOp = 'count' | 'sum' | 'avg' | 'min' | 'max'\n\nexport type FilterOp =\n 'eq' | 'neq' | 'contains' | 'gt' | 'gte' | 'lt' | 'lte' | 'empty' | 'not_empty'\n\n/** Keep rows whose `field` satisfies `op value` (compared in the field's type). */\nexport interface DatasetFilter {\n field: string\n op: FilterOp\n value?: string | number | boolean | null\n}\n\n/** How the groups are ordered: by label (dates: chronological), or by value. */\nexport type DatasetSort = 'label' | 'value-desc' | 'value-asc'\n\n/** How records are ordered: by a field (empty cells last). */\nexport interface DatasetOrder {\n field: string\n /** Default `asc`. */\n direction?: 'asc' | 'desc'\n}\n\n/**\n * What to read of a source. Grouped (the default): the (filtered) rows grouped and each group\n * measured, a dataset in long form with the fields {@link AGGREGATE_FIELDS}, one row per group (and\n * series). With `records`: the matching rows themselves, ordered by `orderBy` and cut at `limit`.\n */\nexport interface DatasetQuery {\n /** List the matching records instead of grouping them (`groupBy`, `splitBy`, `measure` unused). */\n records?: boolean\n /** The order of the records. */\n orderBy?: DatasetOrder\n filters?: readonly DatasetFilter[]\n /** The field whose values (or date buckets) are the groups. Absent: one group, \"All\". */\n groupBy?: string\n /** The bucket of a date `groupBy` / `splitBy`. Default `month`. */\n bucket?: TimeBucket\n /** A second field: one series per value (a stacked or multi-line chart). */\n splitBy?: string\n /** Default: count rows. `count` with a `field` counts the rows where it is not empty. */\n measure?: { op: AggregateOp; field?: string }\n /** Default: dates chronological, others by value, largest first. */\n sort?: DatasetSort\n /** Most groups kept (by value), or records listed. Default 50 groups; every record. */\n limit?: number\n}\n\n/** The field ids of an aggregated dataset. */\nexport const AGGREGATE_FIELDS = {\n /** The group's label (\"Open\", \"2026-06\"). */\n group: 'group',\n /** The group's key as grouped (a date bucket, an id), for ordering and links. */\n key: 'key',\n /** The series' label (only with `splitBy`). */\n series: 'series',\n /** The measured value; `null` when the group has no value to measure. */\n value: 'value',\n} as const\n\n/** A dataset (or a source's fields) as a hook reads it. */\nexport interface DatasetState {\n dataset: Dataset | undefined\n /**\n * No dataset yet, and one is coming: a read in flight or still waiting to start (the workspace\n * opening, a saved view being read first). A panel says \"Loading\u2026\" then, never \"nothing to show\".\n */\n isLoading: boolean\n error: unknown\n}\n\nexport interface DataSourceFieldsState {\n fields: readonly DatasetField[]\n isLoading: boolean\n error: unknown\n}\n\n/** A source's parameters as saved in a panel (a database id, a period). */\nexport type DataSourceParams = Readonly<\n Record<string, string | number | boolean | null | undefined>\n>\n\n/** A choice for a parameter (an option of a select). */\nexport interface DataSourceOption {\n value: string\n label: string\n /** Other parameters set with this choice (a database's workspace, so a panel reads it anywhere). */\n params?: DataSourceParams\n}\n\n/** A parameter the panel editor asks for, before the source's fields are known. */\nexport interface DataSourceParam {\n id: string\n label: string\n /** Absent: the parameter may be left empty. */\n required?: boolean\n /** Shown when nothing is chosen (\"All columns\"). */\n placeholder?: string\n /** The choices, read live (databases of the open workspace; a database's saved views). */\n useOptions: (params: DataSourceParams) => {\n options: readonly DataSourceOption[]\n isLoading: boolean\n }\n}\n\n/**\n * A data source adapter: where a dataset comes from.\n *\n * `useFields` and `useDataset` are hooks. A caller renders them from a component keyed by the\n * source id, so switching source mounts afresh (the hooks differ between sources).\n *\n * Extension point: an external source (an HTTP/JSON API, a CSV feed, a warehouse) is one more\n * adapter. It reads its rows however it likes (its own `useQuery`) and returns them as a `Dataset`;\n * `defineRowsSource` aggregates them for it. A host lists it in `<ArbiHost config={{ dashboards:\n * { sources } }}>` and every editor, panel and studio block offers it. Fetching third-party URLs\n * from the browser is the host's decision (CORS, credentials, what a shared dashboard may reach),\n * so none is built in; data to chart today is imported into a database (CSV / spreadsheet import).\n */\nexport interface DataSource {\n id: string\n label: string\n description?: string\n /** `workspace`: it reads the open workspace's data (documents, threads\u2026), so it shows nothing until\n * one is open; a function decides from the panel's parameters (a database panel that does not name\n * its workspace). Absent: it is the person's own or names what it reads (AI usage). */\n scope?: 'workspace' | ((params: DataSourceParams) => 'workspace' | undefined)\n params?: readonly DataSourceParam[]\n /** The fields a panel can use, given the parameters. */\n useFields: (params: DataSourceParams) => DataSourceFieldsState\n /**\n * The dataset: grouped and measured (long form with {@link AGGREGATE_FIELDS}), or the records\n * (`query.records`), filtered either way.\n */\n useDataset: (\n params: DataSourceParams,\n query: DatasetQuery,\n options?: { enabled?: boolean }\n ) => DatasetState\n}\n\n// \u2500\u2500 Specs: what a panel shows (plain JSON) \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\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\n\n/** How a panel draws its data. `metric` is one number; `table` a table of rows or groups. */\nexport type ChartType = 'metric' | 'bar' | 'line' | 'area' | 'pie' | 'donut' | 'table'\n\n/** What to show, in terms of the dataset's field ids. Serialisable. */\nexport interface ChartSpec {\n type: ChartType\n /** The category or date field along the x axis (pie slices; table groups). */\n x?: string\n /** The bucket of a date `x`. Default `month`. */\n bucket?: TimeBucket\n /** A field whose values become the series (stacked bars or areas, several lines). */\n series?: string\n /** The number field the aggregate reads (absent: rows are counted). */\n y?: string\n /** Default `count`. */\n aggregate?: AggregateOp\n sort?: DatasetSort\n limit?: number\n /** Stack the series (bar, area). */\n stacked?: boolean\n filters?: readonly DatasetFilter[]\n /** A table of records (no aggregate): the fields shown, in order. Absent: every field. */\n columns?: readonly string[]\n /** A table of records: their order. */\n orderBy?: DatasetOrder\n}\n\n/** The source a panel reads, by registry id, with its parameters. */\nexport interface DataSourceRef {\n id: string\n params?: DataSourceParams\n}\n\n/** One panel of a dashboard. */\nexport interface PanelSpec {\n id: string\n title: string\n description?: string\n source: DataSourceRef\n chart: ChartSpec\n /** Columns of the 12-column grid it spans on a wide screen (it is full width on a phone). */\n width?: number\n}\n\n/** A dashboard: a titled grid of panels. Plain JSON (`version` for later migrations). */\nexport interface DashboardSpec {\n version: 1\n title: string\n description?: string\n panels: readonly PanelSpec[]\n}\n"],
5
5
  "mappings": "AAuGO,MAAM,mBAAmB;AAAA;AAAA,EAE9B,OAAO;AAAA;AAAA,EAEP,KAAK;AAAA;AAAA,EAEL,QAAQ;AAAA;AAAA,EAER,OAAO;AACT;",
6
6
  "names": []
7
7
  }
@@ -0,0 +1,64 @@
1
+ import { useQuery } from "@tanstack/react-query";
2
+ import { arbiQueryKeys } from "../query-keys.js";
3
+ import { useArbi } from "../useArbi.js";
4
+ const AGGREGATE_BATCH_WINDOW_MS = 10;
5
+ const AGGREGATE_BATCH_SIZE = 20;
6
+ const FRESH_MS = 15e3;
7
+ const REFRESH_MS = 3e4;
8
+ const batches = /* @__PURE__ */ new WeakMap();
9
+ function send(arbi, workspaceId, waiting) {
10
+ for (let i = 0; i < waiting.length; i += AGGREGATE_BATCH_SIZE) {
11
+ const chunk = waiting.slice(i, i + AGGREGATE_BATCH_SIZE);
12
+ arbi.workspaces.aggregate(
13
+ workspaceId,
14
+ chunk.map((w) => w.query)
15
+ ).then(
16
+ (results) => {
17
+ chunk.forEach((w, j) => {
18
+ const result = results[j];
19
+ if (result) w.resolve(result);
20
+ else w.reject(new Error("The server answered fewer queries than were asked"));
21
+ });
22
+ },
23
+ (error) => chunk.forEach((w) => w.reject(error))
24
+ );
25
+ }
26
+ }
27
+ function loadWorkspaceAggregate(arbi, workspaceId, query) {
28
+ return new Promise((resolve, reject) => {
29
+ let byWorkspace = batches.get(arbi);
30
+ if (!byWorkspace) {
31
+ byWorkspace = /* @__PURE__ */ new Map();
32
+ batches.set(arbi, byWorkspace);
33
+ }
34
+ const pending = byWorkspace.get(workspaceId);
35
+ if (pending) {
36
+ pending.push({ query, resolve, reject });
37
+ return;
38
+ }
39
+ const waiting = [{ query, resolve, reject }];
40
+ byWorkspace.set(workspaceId, waiting);
41
+ setTimeout(() => {
42
+ byWorkspace.delete(workspaceId);
43
+ send(arbi, workspaceId, waiting);
44
+ }, AGGREGATE_BATCH_WINDOW_MS);
45
+ });
46
+ }
47
+ function useWorkspaceAggregate(workspaceId, query, options) {
48
+ const arbi = useArbi();
49
+ return useQuery({
50
+ queryKey: arbiQueryKeys.workspaceAggregate(workspaceId ?? "", query ?? {}),
51
+ queryFn: () => workspaceId && query ? loadWorkspaceAggregate(arbi, workspaceId, query) : Promise.reject(new Error("Nothing to count")),
52
+ enabled: (options?.enabled ?? true) && !!workspaceId && !!query && arbi.hasWorkspace,
53
+ staleTime: FRESH_MS,
54
+ refetchInterval: REFRESH_MS,
55
+ retry: false
56
+ });
57
+ }
58
+ export {
59
+ AGGREGATE_BATCH_SIZE,
60
+ AGGREGATE_BATCH_WINDOW_MS,
61
+ loadWorkspaceAggregate,
62
+ useWorkspaceAggregate
63
+ };
64
+ //# sourceMappingURL=workspace-aggregate.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../src/datasets/workspace-aggregate.ts"],
4
+ "sourcesContent": ["/**\n * A workspace's items counted on the server (`POST /v1/workspace/{id}/aggregate`): the cells a\n * chart of documents, threads, tags, facts, workflows or recent activity draws, without reading\n * the lists. Every panel of a page asks its own query; the queries asked within a few milliseconds\n * of each other (a page's panels mounting together, their refreshes) go in one request.\n */\nimport { useQuery } from '@tanstack/react-query'\nimport type { Arbi, WorkspaceAggregateQuery, WorkspaceAggregateResult } from '@arbidocs/sdk/browser'\nimport { arbiQueryKeys } from '../query-keys'\nimport { useArbi } from '../useArbi'\n\nexport type { WorkspaceAggregateQuery, WorkspaceAggregateResult }\n\n/** How long a query waits for others to go with it. */\nexport const AGGREGATE_BATCH_WINDOW_MS = 10\n\n/** The most queries one request carries (the server's limit). */\nexport const AGGREGATE_BATCH_SIZE = 20\n\n/** How long a count is fresh, and how often a shown one is read again (the lists were live). */\nconst FRESH_MS = 15_000\nconst REFRESH_MS = 30_000\n\ninterface Waiting {\n query: WorkspaceAggregateQuery\n resolve: (result: WorkspaceAggregateResult) => void\n reject: (error: unknown) => void\n}\n\nconst batches = new WeakMap<Arbi, Map<string, Waiting[]>>()\n\nfunction send(arbi: Arbi, workspaceId: string, waiting: Waiting[]): void {\n for (let i = 0; i < waiting.length; i += AGGREGATE_BATCH_SIZE) {\n const chunk = waiting.slice(i, i + AGGREGATE_BATCH_SIZE)\n arbi.workspaces\n .aggregate(\n workspaceId,\n chunk.map((w) => w.query)\n )\n .then(\n (results) => {\n chunk.forEach((w, j) => {\n const result = results[j]\n if (result) w.resolve(result)\n else w.reject(new Error('The server answered fewer queries than were asked'))\n })\n },\n (error: unknown) => chunk.forEach((w) => w.reject(error))\n )\n }\n}\n\n/** Count `query` in `workspaceId`, in one request with the other queries asked meanwhile. */\nexport function loadWorkspaceAggregate(\n arbi: Arbi,\n workspaceId: string,\n query: WorkspaceAggregateQuery\n): Promise<WorkspaceAggregateResult> {\n return new Promise((resolve, reject) => {\n let byWorkspace = batches.get(arbi)\n if (!byWorkspace) {\n byWorkspace = new Map()\n batches.set(arbi, byWorkspace)\n }\n const pending = byWorkspace.get(workspaceId)\n if (pending) {\n pending.push({ query, resolve, reject })\n return\n }\n const waiting: Waiting[] = [{ query, resolve, reject }]\n byWorkspace.set(workspaceId, waiting)\n setTimeout(() => {\n byWorkspace.delete(workspaceId)\n send(arbi, workspaceId, waiting)\n }, AGGREGATE_BATCH_WINDOW_MS)\n })\n}\n\n/**\n * A workspace's items counted on the server (`null` query: nothing asked yet). Read with the\n * other panels' queries in one request; fresh for 15 s and read again every 30 s while shown.\n */\nexport function useWorkspaceAggregate(\n workspaceId: string | undefined,\n query: WorkspaceAggregateQuery | null,\n options?: { enabled?: boolean }\n) {\n const arbi = useArbi()\n return useQuery({\n queryKey: arbiQueryKeys.workspaceAggregate(workspaceId ?? '', query ?? {}),\n queryFn: () =>\n workspaceId && query\n ? loadWorkspaceAggregate(arbi, workspaceId, query)\n : Promise.reject(new Error('Nothing to count')),\n enabled: (options?.enabled ?? true) && !!workspaceId && !!query && arbi.hasWorkspace,\n staleTime: FRESH_MS,\n refetchInterval: REFRESH_MS,\n retry: false,\n })\n}\n"],
5
+ "mappings": "AAMA,SAAS,gBAAgB;AAEzB,SAAS,qBAAqB;AAC9B,SAAS,eAAe;AAKjB,MAAM,4BAA4B;AAGlC,MAAM,uBAAuB;AAGpC,MAAM,WAAW;AACjB,MAAM,aAAa;AAQnB,MAAM,UAAU,oBAAI,QAAsC;AAE1D,SAAS,KAAK,MAAY,aAAqB,SAA0B;AACvE,WAAS,IAAI,GAAG,IAAI,QAAQ,QAAQ,KAAK,sBAAsB;AAC7D,UAAM,QAAQ,QAAQ,MAAM,GAAG,IAAI,oBAAoB;AACvD,SAAK,WACF;AAAA,MACC;AAAA,MACA,MAAM,IAAI,CAAC,MAAM,EAAE,KAAK;AAAA,IAC1B,EACC;AAAA,MACC,CAAC,YAAY;AACX,cAAM,QAAQ,CAAC,GAAG,MAAM;AACtB,gBAAM,SAAS,QAAQ,CAAC;AACxB,cAAI,OAAQ,GAAE,QAAQ,MAAM;AAAA,cACvB,GAAE,OAAO,IAAI,MAAM,mDAAmD,CAAC;AAAA,QAC9E,CAAC;AAAA,MACH;AAAA,MACA,CAAC,UAAmB,MAAM,QAAQ,CAAC,MAAM,EAAE,OAAO,KAAK,CAAC;AAAA,IAC1D;AAAA,EACJ;AACF;AAGO,SAAS,uBACd,MACA,aACA,OACmC;AACnC,SAAO,IAAI,QAAQ,CAAC,SAAS,WAAW;AACtC,QAAI,cAAc,QAAQ,IAAI,IAAI;AAClC,QAAI,CAAC,aAAa;AAChB,oBAAc,oBAAI,IAAI;AACtB,cAAQ,IAAI,MAAM,WAAW;AAAA,IAC/B;AACA,UAAM,UAAU,YAAY,IAAI,WAAW;AAC3C,QAAI,SAAS;AACX,cAAQ,KAAK,EAAE,OAAO,SAAS,OAAO,CAAC;AACvC;AAAA,IACF;AACA,UAAM,UAAqB,CAAC,EAAE,OAAO,SAAS,OAAO,CAAC;AACtD,gBAAY,IAAI,aAAa,OAAO;AACpC,eAAW,MAAM;AACf,kBAAY,OAAO,WAAW;AAC9B,WAAK,MAAM,aAAa,OAAO;AAAA,IACjC,GAAG,yBAAyB;AAAA,EAC9B,CAAC;AACH;AAMO,SAAS,sBACd,aACA,OACA,SACA;AACA,QAAM,OAAO,QAAQ;AACrB,SAAO,SAAS;AAAA,IACd,UAAU,cAAc,mBAAmB,eAAe,IAAI,SAAS,CAAC,CAAC;AAAA,IACzE,SAAS,MACP,eAAe,QACX,uBAAuB,MAAM,aAAa,KAAK,IAC/C,QAAQ,OAAO,IAAI,MAAM,kBAAkB,CAAC;AAAA,IAClD,UAAU,SAAS,WAAW,SAAS,CAAC,CAAC,eAAe,CAAC,CAAC,SAAS,KAAK;AAAA,IACxE,WAAW;AAAA,IACX,iBAAiB;AAAA,IACjB,OAAO;AAAA,EACT,CAAC;AACH;",
6
+ "names": []
7
+ }
@@ -1,406 +1,406 @@
1
1
  'use strict';
2
2
 
3
- var chunkSKJWJ3OY_cjs = require('../chunk-SKJWJ3OY.cjs');
4
- var chunkBI7HFGXF_cjs = require('../chunk-BI7HFGXF.cjs');
3
+ var chunkWWGUGZZN_cjs = require('../chunk-WWGUGZZN.cjs');
4
+ var chunkNJWQPNGD_cjs = require('../chunk-NJWQPNGD.cjs');
5
5
  require('../chunk-SUZORMAB.cjs');
6
6
  require('../chunk-2IJP73ZG.cjs');
7
- var chunkP2DPOZBS_cjs = require('../chunk-P2DPOZBS.cjs');
8
- require('../chunk-KULS4YWP.cjs');
9
- require('../chunk-VOFNX4P6.cjs');
10
7
  require('../chunk-WYZJLZ67.cjs');
8
+ var chunk5ZNO77YB_cjs = require('../chunk-5ZNO77YB.cjs');
11
9
  require('../chunk-HJDR5HEO.cjs');
10
+ require('../chunk-DQODLWFX.cjs');
12
11
  require('../chunk-5NOZDH3F.cjs');
13
12
  require('../chunk-S6A6FSG7.cjs');
13
+ require('../chunk-VOFNX4P6.cjs');
14
14
 
15
15
 
16
16
 
17
17
  Object.defineProperty(exports, "DEFAULT_FIELD_SIZE", {
18
18
  enumerable: true,
19
- get: function () { return chunkSKJWJ3OY_cjs.DEFAULT_FIELD_SIZE; }
19
+ get: function () { return chunkWWGUGZZN_cjs.DEFAULT_FIELD_SIZE; }
20
20
  });
21
21
  Object.defineProperty(exports, "FIELD_TYPE_LABELS", {
22
22
  enumerable: true,
23
- get: function () { return chunkSKJWJ3OY_cjs.FIELD_TYPE_LABELS; }
23
+ get: function () { return chunkWWGUGZZN_cjs.FIELD_TYPE_LABELS; }
24
24
  });
25
25
  Object.defineProperty(exports, "INFORMAL_SIGNATURE_NOTE", {
26
26
  enumerable: true,
27
- get: function () { return chunkSKJWJ3OY_cjs.INFORMAL_SIGNATURE_NOTE; }
27
+ get: function () { return chunkWWGUGZZN_cjs.INFORMAL_SIGNATURE_NOTE; }
28
28
  });
29
29
  Object.defineProperty(exports, "LEGACY_LAYER_PREFIX", {
30
30
  enumerable: true,
31
- get: function () { return chunkSKJWJ3OY_cjs.LEGACY_LAYER_PREFIX; }
31
+ get: function () { return chunkWWGUGZZN_cjs.LEGACY_LAYER_PREFIX; }
32
32
  });
33
33
  Object.defineProperty(exports, "MARK_FIELD_TYPES", {
34
34
  enumerable: true,
35
- get: function () { return chunkSKJWJ3OY_cjs.MARK_FIELD_TYPES; }
35
+ get: function () { return chunkWWGUGZZN_cjs.MARK_FIELD_TYPES; }
36
36
  });
37
37
  Object.defineProperty(exports, "MAX_MERGE_ATTEMPTS", {
38
38
  enumerable: true,
39
- get: function () { return chunkSKJWJ3OY_cjs.MAX_MERGE_ATTEMPTS; }
39
+ get: function () { return chunkWWGUGZZN_cjs.MAX_MERGE_ATTEMPTS; }
40
40
  });
41
41
  Object.defineProperty(exports, "MarkupStoreError", {
42
42
  enumerable: true,
43
- get: function () { return chunkSKJWJ3OY_cjs.MarkupStoreError; }
43
+ get: function () { return chunkWWGUGZZN_cjs.MarkupStoreError; }
44
44
  });
45
45
  Object.defineProperty(exports, "SIGNATURE_FIELD_TYPES", {
46
46
  enumerable: true,
47
- get: function () { return chunkSKJWJ3OY_cjs.SIGNATURE_FIELD_TYPES; }
47
+ get: function () { return chunkWWGUGZZN_cjs.SIGNATURE_FIELD_TYPES; }
48
48
  });
49
49
  Object.defineProperty(exports, "SIGNED_UNCHANGED", {
50
50
  enumerable: true,
51
- get: function () { return chunkSKJWJ3OY_cjs.SIGNED_UNCHANGED; }
51
+ get: function () { return chunkWWGUGZZN_cjs.SIGNED_UNCHANGED; }
52
52
  });
53
53
  Object.defineProperty(exports, "SIGNER_PROGRESS_LABELS", {
54
54
  enumerable: true,
55
- get: function () { return chunkSKJWJ3OY_cjs.SIGNER_PROGRESS_LABELS; }
55
+ get: function () { return chunkWWGUGZZN_cjs.SIGNER_PROGRESS_LABELS; }
56
56
  });
57
57
  Object.defineProperty(exports, "SignatureVerificationError", {
58
58
  enumerable: true,
59
- get: function () { return chunkSKJWJ3OY_cjs.SignatureVerificationError; }
59
+ get: function () { return chunkWWGUGZZN_cjs.SignatureVerificationError; }
60
60
  });
61
61
  Object.defineProperty(exports, "VERIFY_PATH", {
62
62
  enumerable: true,
63
- get: function () { return chunkSKJWJ3OY_cjs.VERIFY_PATH; }
63
+ get: function () { return chunkWWGUGZZN_cjs.VERIFY_PATH; }
64
64
  });
65
65
  Object.defineProperty(exports, "addToMarkup", {
66
66
  enumerable: true,
67
- get: function () { return chunkSKJWJ3OY_cjs.addToMarkup; }
67
+ get: function () { return chunkWWGUGZZN_cjs.addToMarkup; }
68
68
  });
69
69
  Object.defineProperty(exports, "canAnnotate", {
70
70
  enumerable: true,
71
- get: function () { return chunkSKJWJ3OY_cjs.canAnnotate; }
71
+ get: function () { return chunkWWGUGZZN_cjs.canAnnotate; }
72
72
  });
73
73
  Object.defineProperty(exports, "copyOpenThreads", {
74
74
  enumerable: true,
75
- get: function () { return chunkSKJWJ3OY_cjs.copyOpenThreads; }
75
+ get: function () { return chunkWWGUGZZN_cjs.copyOpenThreads; }
76
76
  });
77
77
  Object.defineProperty(exports, "createMarkupStore", {
78
78
  enumerable: true,
79
- get: function () { return chunkSKJWJ3OY_cjs.createMarkupStore; }
79
+ get: function () { return chunkWWGUGZZN_cjs.createMarkupStore; }
80
80
  });
81
81
  Object.defineProperty(exports, "deleteSavedSignature", {
82
82
  enumerable: true,
83
- get: function () { return chunkSKJWJ3OY_cjs.deleteSavedSignature; }
83
+ get: function () { return chunkWWGUGZZN_cjs.deleteSavedSignature; }
84
84
  });
85
85
  Object.defineProperty(exports, "fetchDocumentSignatureRequests", {
86
86
  enumerable: true,
87
- get: function () { return chunkSKJWJ3OY_cjs.fetchDocumentSignatureRequests; }
87
+ get: function () { return chunkWWGUGZZN_cjs.fetchDocumentSignatureRequests; }
88
88
  });
89
89
  Object.defineProperty(exports, "fetchSavedSignature", {
90
90
  enumerable: true,
91
- get: function () { return chunkSKJWJ3OY_cjs.fetchSavedSignature; }
91
+ get: function () { return chunkWWGUGZZN_cjs.fetchSavedSignature; }
92
92
  });
93
93
  Object.defineProperty(exports, "fetchSignatureVerification", {
94
94
  enumerable: true,
95
- get: function () { return chunkSKJWJ3OY_cjs.fetchSignatureVerification; }
95
+ get: function () { return chunkWWGUGZZN_cjs.fetchSignatureVerification; }
96
96
  });
97
97
  Object.defineProperty(exports, "fieldsFromSuggestions", {
98
98
  enumerable: true,
99
- get: function () { return chunkSKJWJ3OY_cjs.fieldsFromSuggestions; }
99
+ get: function () { return chunkWWGUGZZN_cjs.fieldsFromSuggestions; }
100
100
  });
101
101
  Object.defineProperty(exports, "fieldsInSigningOrder", {
102
102
  enumerable: true,
103
- get: function () { return chunkSKJWJ3OY_cjs.fieldsInSigningOrder; }
103
+ get: function () { return chunkWWGUGZZN_cjs.fieldsInSigningOrder; }
104
104
  });
105
105
  Object.defineProperty(exports, "forgetLegacyLayer", {
106
106
  enumerable: true,
107
- get: function () { return chunkSKJWJ3OY_cjs.forgetLegacyLayer; }
107
+ get: function () { return chunkWWGUGZZN_cjs.forgetLegacyLayer; }
108
108
  });
109
109
  Object.defineProperty(exports, "frozenCopyName", {
110
110
  enumerable: true,
111
- get: function () { return chunkSKJWJ3OY_cjs.frozenCopyName; }
111
+ get: function () { return chunkWWGUGZZN_cjs.frozenCopyName; }
112
112
  });
113
113
  Object.defineProperty(exports, "initialsOf", {
114
114
  enumerable: true,
115
- get: function () { return chunkSKJWJ3OY_cjs.initialsOf; }
115
+ get: function () { return chunkWWGUGZZN_cjs.initialsOf; }
116
116
  });
117
117
  Object.defineProperty(exports, "inviteSigners", {
118
118
  enumerable: true,
119
- get: function () { return chunkSKJWJ3OY_cjs.inviteSigners; }
119
+ get: function () { return chunkWWGUGZZN_cjs.inviteSigners; }
120
120
  });
121
121
  Object.defineProperty(exports, "isEmailSigner", {
122
122
  enumerable: true,
123
- get: function () { return chunkSKJWJ3OY_cjs.isEmailSigner; }
123
+ get: function () { return chunkWWGUGZZN_cjs.isEmailSigner; }
124
124
  });
125
125
  Object.defineProperty(exports, "isSignatureReference", {
126
126
  enumerable: true,
127
- get: function () { return chunkSKJWJ3OY_cjs.isSignatureReference; }
127
+ get: function () { return chunkWWGUGZZN_cjs.isSignatureReference; }
128
128
  });
129
129
  Object.defineProperty(exports, "marksByVersion", {
130
130
  enumerable: true,
131
- get: function () { return chunkSKJWJ3OY_cjs.marksByVersion; }
131
+ get: function () { return chunkWWGUGZZN_cjs.marksByVersion; }
132
132
  });
133
133
  Object.defineProperty(exports, "matchSignedCopy", {
134
134
  enumerable: true,
135
- get: function () { return chunkSKJWJ3OY_cjs.matchSignedCopy; }
135
+ get: function () { return chunkWWGUGZZN_cjs.matchSignedCopy; }
136
136
  });
137
137
  Object.defineProperty(exports, "migrateLegacyLayer", {
138
138
  enumerable: true,
139
- get: function () { return chunkSKJWJ3OY_cjs.migrateLegacyLayer; }
139
+ get: function () { return chunkWWGUGZZN_cjs.migrateLegacyLayer; }
140
140
  });
141
141
  Object.defineProperty(exports, "newFieldId", {
142
142
  enumerable: true,
143
- get: function () { return chunkSKJWJ3OY_cjs.newFieldId; }
143
+ get: function () { return chunkWWGUGZZN_cjs.newFieldId; }
144
144
  });
145
145
  Object.defineProperty(exports, "openThreadsOf", {
146
146
  enumerable: true,
147
- get: function () { return chunkSKJWJ3OY_cjs.openThreadsOf; }
147
+ get: function () { return chunkWWGUGZZN_cjs.openThreadsOf; }
148
148
  });
149
149
  Object.defineProperty(exports, "pngBytes", {
150
150
  enumerable: true,
151
- get: function () { return chunkSKJWJ3OY_cjs.pngBytes; }
151
+ get: function () { return chunkWWGUGZZN_cjs.pngBytes; }
152
152
  });
153
153
  Object.defineProperty(exports, "pngSize", {
154
154
  enumerable: true,
155
- get: function () { return chunkSKJWJ3OY_cjs.pngSize; }
155
+ get: function () { return chunkWWGUGZZN_cjs.pngSize; }
156
156
  });
157
157
  Object.defineProperty(exports, "readLegacyLayer", {
158
158
  enumerable: true,
159
- get: function () { return chunkSKJWJ3OY_cjs.readLegacyLayer; }
159
+ get: function () { return chunkWWGUGZZN_cjs.readLegacyLayer; }
160
160
  });
161
161
  Object.defineProperty(exports, "redactionLogName", {
162
162
  enumerable: true,
163
- get: function () { return chunkSKJWJ3OY_cjs.redactionLogName; }
163
+ get: function () { return chunkWWGUGZZN_cjs.redactionLogName; }
164
164
  });
165
165
  Object.defineProperty(exports, "saveSignatureRequest", {
166
166
  enumerable: true,
167
- get: function () { return chunkSKJWJ3OY_cjs.saveSignatureRequest; }
167
+ get: function () { return chunkWWGUGZZN_cjs.saveSignatureRequest; }
168
168
  });
169
169
  Object.defineProperty(exports, "sendBlocker", {
170
170
  enumerable: true,
171
- get: function () { return chunkSKJWJ3OY_cjs.sendBlocker; }
171
+ get: function () { return chunkWWGUGZZN_cjs.sendBlocker; }
172
172
  });
173
173
  Object.defineProperty(exports, "signSignatureRequest", {
174
174
  enumerable: true,
175
- get: function () { return chunkSKJWJ3OY_cjs.signSignatureRequest; }
175
+ get: function () { return chunkWWGUGZZN_cjs.signSignatureRequest; }
176
176
  });
177
177
  Object.defineProperty(exports, "signatureFieldSuggestions", {
178
178
  enumerable: true,
179
- get: function () { return chunkSKJWJ3OY_cjs.signatureFieldSuggestions; }
179
+ get: function () { return chunkWWGUGZZN_cjs.signatureFieldSuggestions; }
180
180
  });
181
181
  Object.defineProperty(exports, "splitSuggestions", {
182
182
  enumerable: true,
183
- get: function () { return chunkSKJWJ3OY_cjs.splitSuggestions; }
183
+ get: function () { return chunkWWGUGZZN_cjs.splitSuggestions; }
184
184
  });
185
185
  Object.defineProperty(exports, "storeSavedSignature", {
186
186
  enumerable: true,
187
- get: function () { return chunkSKJWJ3OY_cjs.storeSavedSignature; }
187
+ get: function () { return chunkWWGUGZZN_cjs.storeSavedSignature; }
188
188
  });
189
189
  Object.defineProperty(exports, "suggestSignatureFields", {
190
190
  enumerable: true,
191
- get: function () { return chunkSKJWJ3OY_cjs.suggestSignatureFields; }
191
+ get: function () { return chunkWWGUGZZN_cjs.suggestSignatureFields; }
192
192
  });
193
193
  Object.defineProperty(exports, "uploadFrozenCopy", {
194
194
  enumerable: true,
195
- get: function () { return chunkSKJWJ3OY_cjs.uploadFrozenCopy; }
195
+ get: function () { return chunkWWGUGZZN_cjs.uploadFrozenCopy; }
196
196
  });
197
197
  Object.defineProperty(exports, "useDeclineSignatureRequest", {
198
198
  enumerable: true,
199
- get: function () { return chunkSKJWJ3OY_cjs.useDeclineSignatureRequest; }
199
+ get: function () { return chunkWWGUGZZN_cjs.useDeclineSignatureRequest; }
200
200
  });
201
201
  Object.defineProperty(exports, "useDeleteSavedSignature", {
202
202
  enumerable: true,
203
- get: function () { return chunkSKJWJ3OY_cjs.useDeleteSavedSignature; }
203
+ get: function () { return chunkWWGUGZZN_cjs.useDeleteSavedSignature; }
204
204
  });
205
205
  Object.defineProperty(exports, "useDocumentBytes", {
206
206
  enumerable: true,
207
- get: function () { return chunkSKJWJ3OY_cjs.useDocumentBytes; }
207
+ get: function () { return chunkWWGUGZZN_cjs.useDocumentBytes; }
208
208
  });
209
209
  Object.defineProperty(exports, "useDocumentMarkup", {
210
210
  enumerable: true,
211
- get: function () { return chunkSKJWJ3OY_cjs.useDocumentMarkup; }
211
+ get: function () { return chunkWWGUGZZN_cjs.useDocumentMarkup; }
212
212
  });
213
213
  Object.defineProperty(exports, "useDocumentSignatureRequests", {
214
214
  enumerable: true,
215
- get: function () { return chunkSKJWJ3OY_cjs.useDocumentSignatureRequests; }
215
+ get: function () { return chunkWWGUGZZN_cjs.useDocumentSignatureRequests; }
216
216
  });
217
217
  Object.defineProperty(exports, "useInviteSigners", {
218
218
  enumerable: true,
219
- get: function () { return chunkSKJWJ3OY_cjs.useInviteSigners; }
219
+ get: function () { return chunkWWGUGZZN_cjs.useInviteSigners; }
220
220
  });
221
221
  Object.defineProperty(exports, "useIsOnline", {
222
222
  enumerable: true,
223
- get: function () { return chunkSKJWJ3OY_cjs.useIsOnline; }
223
+ get: function () { return chunkWWGUGZZN_cjs.useIsOnline; }
224
224
  });
225
225
  Object.defineProperty(exports, "useSaveSignatureRequest", {
226
226
  enumerable: true,
227
- get: function () { return chunkSKJWJ3OY_cjs.useSaveSignatureRequest; }
227
+ get: function () { return chunkWWGUGZZN_cjs.useSaveSignatureRequest; }
228
228
  });
229
229
  Object.defineProperty(exports, "useSavedSignature", {
230
230
  enumerable: true,
231
- get: function () { return chunkSKJWJ3OY_cjs.useSavedSignature; }
231
+ get: function () { return chunkWWGUGZZN_cjs.useSavedSignature; }
232
232
  });
233
233
  Object.defineProperty(exports, "useSignSignatureRequest", {
234
234
  enumerable: true,
235
- get: function () { return chunkSKJWJ3OY_cjs.useSignSignatureRequest; }
235
+ get: function () { return chunkWWGUGZZN_cjs.useSignSignatureRequest; }
236
236
  });
237
237
  Object.defineProperty(exports, "useSignatureVerification", {
238
238
  enumerable: true,
239
- get: function () { return chunkSKJWJ3OY_cjs.useSignatureVerification; }
239
+ get: function () { return chunkWWGUGZZN_cjs.useSignatureVerification; }
240
240
  });
241
241
  Object.defineProperty(exports, "useSignerCandidates", {
242
242
  enumerable: true,
243
- get: function () { return chunkSKJWJ3OY_cjs.useSignerCandidates; }
243
+ get: function () { return chunkWWGUGZZN_cjs.useSignerCandidates; }
244
244
  });
245
245
  Object.defineProperty(exports, "useStoreSavedSignature", {
246
246
  enumerable: true,
247
- get: function () { return chunkSKJWJ3OY_cjs.useStoreSavedSignature; }
247
+ get: function () { return chunkWWGUGZZN_cjs.useStoreSavedSignature; }
248
248
  });
249
249
  Object.defineProperty(exports, "useVoidSignatureRequest", {
250
250
  enumerable: true,
251
- get: function () { return chunkSKJWJ3OY_cjs.useVoidSignatureRequest; }
251
+ get: function () { return chunkWWGUGZZN_cjs.useVoidSignatureRequest; }
252
252
  });
253
253
  Object.defineProperty(exports, "versionsWithMarkup", {
254
254
  enumerable: true,
255
- get: function () { return chunkSKJWJ3OY_cjs.versionsWithMarkup; }
255
+ get: function () { return chunkWWGUGZZN_cjs.versionsWithMarkup; }
256
256
  });
257
257
  Object.defineProperty(exports, "DocumentFetchError", {
258
258
  enumerable: true,
259
- get: function () { return chunkBI7HFGXF_cjs.DocumentFetchError; }
259
+ get: function () { return chunkNJWQPNGD_cjs.DocumentFetchError; }
260
260
  });
261
261
  Object.defineProperty(exports, "DocumentToolsProvider", {
262
262
  enumerable: true,
263
- get: function () { return chunkBI7HFGXF_cjs.DocumentToolsProvider; }
263
+ get: function () { return chunkNJWQPNGD_cjs.DocumentToolsProvider; }
264
264
  });
265
265
  Object.defineProperty(exports, "MarkupDownloadError", {
266
266
  enumerable: true,
267
- get: function () { return chunkBI7HFGXF_cjs.MarkupDownloadError; }
267
+ get: function () { return chunkNJWQPNGD_cjs.MarkupDownloadError; }
268
268
  });
269
269
  Object.defineProperty(exports, "SIGNED_LOCKED_REASON", {
270
270
  enumerable: true,
271
- get: function () { return chunkBI7HFGXF_cjs.SIGNED_LOCKED_REASON; }
271
+ get: function () { return chunkNJWQPNGD_cjs.SIGNED_LOCKED_REASON; }
272
272
  });
273
273
  Object.defineProperty(exports, "SigningError", {
274
274
  enumerable: true,
275
- get: function () { return chunkBI7HFGXF_cjs.SigningError; }
275
+ get: function () { return chunkNJWQPNGD_cjs.SigningError; }
276
276
  });
277
277
  Object.defineProperty(exports, "certificateLink", {
278
278
  enumerable: true,
279
- get: function () { return chunkBI7HFGXF_cjs.certificateLink; }
279
+ get: function () { return chunkNJWQPNGD_cjs.certificateLink; }
280
280
  });
281
281
  Object.defineProperty(exports, "clientUpload", {
282
282
  enumerable: true,
283
- get: function () { return chunkBI7HFGXF_cjs.clientUpload; }
283
+ get: function () { return chunkNJWQPNGD_cjs.clientUpload; }
284
284
  });
285
285
  Object.defineProperty(exports, "contentDispositionFileName", {
286
286
  enumerable: true,
287
- get: function () { return chunkBI7HFGXF_cjs.contentDispositionFileName; }
287
+ get: function () { return chunkNJWQPNGD_cjs.contentDispositionFileName; }
288
288
  });
289
289
  Object.defineProperty(exports, "createFileShare", {
290
290
  enumerable: true,
291
- get: function () { return chunkBI7HFGXF_cjs.createFileShare; }
291
+ get: function () { return chunkNJWQPNGD_cjs.createFileShare; }
292
292
  });
293
293
  Object.defineProperty(exports, "currentHasMarkup", {
294
294
  enumerable: true,
295
- get: function () { return chunkBI7HFGXF_cjs.currentHasMarkup; }
295
+ get: function () { return chunkNJWQPNGD_cjs.currentHasMarkup; }
296
296
  });
297
297
  Object.defineProperty(exports, "defaultCertificateUrl", {
298
298
  enumerable: true,
299
- get: function () { return chunkBI7HFGXF_cjs.defaultCertificateUrl; }
299
+ get: function () { return chunkNJWQPNGD_cjs.defaultCertificateUrl; }
300
300
  });
301
301
  Object.defineProperty(exports, "downloadBlob", {
302
302
  enumerable: true,
303
- get: function () { return chunkBI7HFGXF_cjs.downloadBlob; }
303
+ get: function () { return chunkNJWQPNGD_cjs.downloadBlob; }
304
304
  });
305
305
  Object.defineProperty(exports, "fetchDocumentFile", {
306
306
  enumerable: true,
307
- get: function () { return chunkBI7HFGXF_cjs.fetchDocumentFile; }
307
+ get: function () { return chunkNJWQPNGD_cjs.fetchDocumentFile; }
308
308
  });
309
309
  Object.defineProperty(exports, "fetchDocumentPdf", {
310
310
  enumerable: true,
311
- get: function () { return chunkBI7HFGXF_cjs.fetchDocumentPdf; }
311
+ get: function () { return chunkNJWQPNGD_cjs.fetchDocumentPdf; }
312
312
  });
313
313
  Object.defineProperty(exports, "fetchDocumentSignatures", {
314
314
  enumerable: true,
315
- get: function () { return chunkBI7HFGXF_cjs.fetchDocumentSignatures; }
315
+ get: function () { return chunkNJWQPNGD_cjs.fetchDocumentSignatures; }
316
316
  });
317
317
  Object.defineProperty(exports, "fetchMarkupPdf", {
318
318
  enumerable: true,
319
- get: function () { return chunkBI7HFGXF_cjs.fetchMarkupPdf; }
319
+ get: function () { return chunkNJWQPNGD_cjs.fetchMarkupPdf; }
320
320
  });
321
321
  Object.defineProperty(exports, "fileShareBytes", {
322
322
  enumerable: true,
323
- get: function () { return chunkBI7HFGXF_cjs.fileShareBytes; }
323
+ get: function () { return chunkNJWQPNGD_cjs.fileShareBytes; }
324
324
  });
325
325
  Object.defineProperty(exports, "fileShareSigningRequest", {
326
326
  enumerable: true,
327
- get: function () { return chunkBI7HFGXF_cjs.fileShareSigningRequest; }
327
+ get: function () { return chunkNJWQPNGD_cjs.fileShareSigningRequest; }
328
328
  });
329
329
  Object.defineProperty(exports, "getFileShare", {
330
330
  enumerable: true,
331
- get: function () { return chunkBI7HFGXF_cjs.getFileShare; }
331
+ get: function () { return chunkNJWQPNGD_cjs.getFileShare; }
332
332
  });
333
333
  Object.defineProperty(exports, "intentText", {
334
334
  enumerable: true,
335
- get: function () { return chunkBI7HFGXF_cjs.intentText; }
335
+ get: function () { return chunkNJWQPNGD_cjs.intentText; }
336
336
  });
337
337
  Object.defineProperty(exports, "isLegibleSignatureBox", {
338
338
  enumerable: true,
339
- get: function () { return chunkBI7HFGXF_cjs.isLegibleSignatureBox; }
339
+ get: function () { return chunkNJWQPNGD_cjs.isLegibleSignatureBox; }
340
340
  });
341
341
  Object.defineProperty(exports, "isSignedVersion", {
342
342
  enumerable: true,
343
- get: function () { return chunkBI7HFGXF_cjs.isSignedVersion; }
343
+ get: function () { return chunkNJWQPNGD_cjs.isSignedVersion; }
344
344
  });
345
345
  Object.defineProperty(exports, "publishFileShare", {
346
346
  enumerable: true,
347
- get: function () { return chunkBI7HFGXF_cjs.publishFileShare; }
347
+ get: function () { return chunkNJWQPNGD_cjs.publishFileShare; }
348
348
  });
349
349
  Object.defineProperty(exports, "sha256Hex", {
350
350
  enumerable: true,
351
- get: function () { return chunkBI7HFGXF_cjs.sha256Hex; }
351
+ get: function () { return chunkNJWQPNGD_cjs.sha256Hex; }
352
352
  });
353
353
  Object.defineProperty(exports, "signDocument", {
354
354
  enumerable: true,
355
- get: function () { return chunkBI7HFGXF_cjs.signDocument; }
355
+ get: function () { return chunkNJWQPNGD_cjs.signDocument; }
356
356
  });
357
357
  Object.defineProperty(exports, "signFileShare", {
358
358
  enumerable: true,
359
- get: function () { return chunkBI7HFGXF_cjs.signFileShare; }
359
+ get: function () { return chunkNJWQPNGD_cjs.signFileShare; }
360
360
  });
361
361
  Object.defineProperty(exports, "toAppearance", {
362
362
  enumerable: true,
363
- get: function () { return chunkBI7HFGXF_cjs.toAppearance; }
363
+ get: function () { return chunkNJWQPNGD_cjs.toAppearance; }
364
364
  });
365
365
  Object.defineProperty(exports, "uploadQueryString", {
366
366
  enumerable: true,
367
- get: function () { return chunkBI7HFGXF_cjs.uploadQueryString; }
367
+ get: function () { return chunkNJWQPNGD_cjs.uploadQueryString; }
368
368
  });
369
369
  Object.defineProperty(exports, "useDocumentSignatures", {
370
370
  enumerable: true,
371
- get: function () { return chunkBI7HFGXF_cjs.useDocumentSignatures; }
371
+ get: function () { return chunkNJWQPNGD_cjs.useDocumentSignatures; }
372
372
  });
373
373
  Object.defineProperty(exports, "useDocumentTools", {
374
374
  enumerable: true,
375
- get: function () { return chunkBI7HFGXF_cjs.useDocumentTools; }
375
+ get: function () { return chunkNJWQPNGD_cjs.useDocumentTools; }
376
376
  });
377
377
  Object.defineProperty(exports, "useFileShare", {
378
378
  enumerable: true,
379
- get: function () { return chunkBI7HFGXF_cjs.useFileShare; }
379
+ get: function () { return chunkNJWQPNGD_cjs.useFileShare; }
380
380
  });
381
381
  Object.defineProperty(exports, "useFileSharePdf", {
382
382
  enumerable: true,
383
- get: function () { return chunkBI7HFGXF_cjs.useFileSharePdf; }
383
+ get: function () { return chunkNJWQPNGD_cjs.useFileSharePdf; }
384
384
  });
385
385
  Object.defineProperty(exports, "useFileShares", {
386
386
  enumerable: true,
387
- get: function () { return chunkBI7HFGXF_cjs.useFileShares; }
387
+ get: function () { return chunkNJWQPNGD_cjs.useFileShares; }
388
388
  });
389
389
  Object.defineProperty(exports, "useOptionalDocumentTools", {
390
390
  enumerable: true,
391
- get: function () { return chunkBI7HFGXF_cjs.useOptionalDocumentTools; }
391
+ get: function () { return chunkNJWQPNGD_cjs.useOptionalDocumentTools; }
392
392
  });
393
393
  Object.defineProperty(exports, "useRefreshFileShares", {
394
394
  enumerable: true,
395
- get: function () { return chunkBI7HFGXF_cjs.useRefreshFileShares; }
395
+ get: function () { return chunkNJWQPNGD_cjs.useRefreshFileShares; }
396
396
  });
397
397
  Object.defineProperty(exports, "useSignDocument", {
398
398
  enumerable: true,
399
- get: function () { return chunkBI7HFGXF_cjs.useSignDocument; }
399
+ get: function () { return chunkNJWQPNGD_cjs.useSignDocument; }
400
400
  });
401
401
  Object.defineProperty(exports, "documentBytesKey", {
402
402
  enumerable: true,
403
- get: function () { return chunkP2DPOZBS_cjs.documentBytesKey; }
403
+ get: function () { return chunk5ZNO77YB_cjs.documentBytesKey; }
404
404
  });
405
405
  //# sourceMappingURL=core.cjs.map
406
406
  //# sourceMappingURL=core.cjs.map