@orangelogic/design-system 3.33.0 → 3.34.0

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.
@@ -34,7 +34,7 @@ import { default as De } from "./format-number.js";
34
34
  import { default as we } from "./format-time.js";
35
35
  import { default as he } from "./grid.js";
36
36
  import { default as Pe } from "./grid-item.js";
37
- import { C as Me } from "../chunks/header.BHwN2xMS.js";
37
+ import { C as Me } from "../chunks/header.aJgy-4Iw.js";
38
38
  import { C as Fe } from "../chunks/hub-connection.BtevPWYb.js";
39
39
  import { f } from "../chunks/icon.BLXWp6CU.js";
40
40
  import { C as Oe } from "../chunks/icon.BLXWp6CU.js";
@@ -1,7 +1,7 @@
1
1
  import "./copy-button.js";
2
2
  import "../chunks/lib-cortex-element.CVMmyPMC.js";
3
3
  import "../chunks/component.styles.CAS3c9pM.js";
4
- import { C as g } from "../chunks/header.BHwN2xMS.js";
4
+ import { C as g } from "../chunks/header.aJgy-4Iw.js";
5
5
  import "../chunks/content-builder.CBBdfVOl.js";
6
6
  import "../chunks/custom-element.L4WJXn1j.js";
7
7
  import "../chunks/debounce.DaHuiSGU.js";
@@ -33,7 +33,7 @@ import { default as na } from "./format-number.js";
33
33
  import { default as fa } from "./format-time.js";
34
34
  import { default as da } from "./grid.js";
35
35
  import { default as ca } from "./grid-item.js";
36
- import { C as Ta } from "../chunks/header.BHwN2xMS.js";
36
+ import { C as Ta } from "../chunks/header.aJgy-4Iw.js";
37
37
  import { C as Sa } from "../chunks/hub-connection.BtevPWYb.js";
38
38
  import { C as Da } from "../chunks/icon.BLXWp6CU.js";
39
39
  import { C as ya } from "../chunks/icon-button.BXs29IQE.js";
@@ -86,7 +86,7 @@ import { default as mt } from "./visually-hidden.js";
86
86
  import { fontAwesomeIconNames as pt, getAnimationNames as ft, getEasingNames as Ct } from "./atoms.js";
87
87
  import { c as ut } from "../chunks/component.styles.CAS3c9pM.js";
88
88
  import { g as gt, a as Tt, s as At } from "../chunks/animation-registry.HmpwNuGH.js";
89
- import { u as It, v as Dt, V as bt, w as yt, o as Ft, n as Pt, m as Et, Y as ht, Z as Rt, _ as Lt, a0 as Ot, $ as vt, a1 as Bt, a2 as Vt, a3 as Mt, a4 as _t, a5 as Gt, k as kt, W as wt, x as Nt, X as Ht, y as Ut, z as zt, A as Xt, j as Wt, a6 as Kt, B as jt, D as qt, E as Yt, G as Jt, a7 as Qt, h as Zt, H as $t, J as ao, f as eo, S as to, T as oo, a8 as ro, e as so, K as xo, L as io, M as lo, N as mo, P as no, a9 as po, aa as fo, Q as Co, R as uo, ab as co, ac as go, b as To, U as Ao, ad as So, ae as Io } from "../chunks/types.DO6EsHel.js";
89
+ import { u as It, v as Dt, V as bt, w as yt, o as Ft, n as Pt, m as Et, Y as ht, Z as Rt, _ as Lt, a0 as Ot, $ as vt, a1 as Bt, a2 as Vt, a3 as Mt, a4 as _t, a5 as Gt, k as kt, W as wt, x as Nt, X as Ht, y as Ut, z as zt, A as Xt, j as Wt, a6 as Kt, B as jt, D as qt, E as Yt, G as Jt, a7 as Qt, h as Zt, H as $t, J as ao, f as eo, S as to, T as oo, a8 as ro, e as so, K as xo, L as io, M as lo, N as mo, P as no, a9 as po, aa as fo, Q as Co, R as uo, ab as co, ac as go, b as To, U as Ao, ad as So, ae as Io } from "../chunks/types.DdHhFvsA.js";
90
90
  import { default as bo } from "./bicolor-picker.js";
91
91
  import { default as Fo } from "./border-input-group.js";
92
92
  import { default as Eo } from "./color-swatch.js";
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@orangelogic/design-system",
3
3
  "type": "module",
4
- "version": "3.33.0",
4
+ "version": "3.34.0",
5
5
  "license": "UNLICENSED",
6
6
  "types": "library/types.d.ts",
7
7
  "scripts": {
@@ -30,7 +30,10 @@ export default class CxContentBuilderViewer extends CortexLightElement {
30
30
  private readonly processedFetchableBlocks;
31
31
  /** Blocks already populated by a previous space-list scan; skipped on re-scans. */
32
32
  private readonly processedSpaceListBlocks;
33
+ /** Blocks already populated by a previous page-list scan; skipped on re-scans. */
34
+ private readonly processedPageListBlocks;
33
35
  private apiGetTeamSpaceSpaceList;
36
+ private apiGetAllPagesAndLinks;
34
37
  constructor();
35
38
  createRenderRoot(): this;
36
39
  connectedCallback(): void;
@@ -60,6 +63,16 @@ export default class CxContentBuilderViewer extends CortexLightElement {
60
63
  private fetchSpaceList;
61
64
  private collectPendingSpaceListBlocks;
62
65
  private applySpaceList;
66
+ private scanAndFetchPageList;
67
+ /**
68
+ * One request per element, shared by every scan — same reasoning as the space list.
69
+ *
70
+ * Neither an empty result nor a failure is retained, so it is retried on the next scan
71
+ * instead of leaving every page card blank for the session.
72
+ */
73
+ private fetchPageList;
74
+ private collectPendingPageListBlocks;
75
+ private applyPageList;
63
76
  }
64
77
  declare global {
65
78
  interface HTMLElementTagNameMap {
@@ -79,6 +79,7 @@ export declare class DownloadManager implements IDownloadManager {
79
79
  private backgroundJobs;
80
80
  private backgroundJobsStartTimeouts;
81
81
  private rocketModeEnabled;
82
+ private databaseDiscarded;
82
83
  constructor(context: DownloadContext, downloadDatabase: DownloadDatabase, downloadTransactionsRepo: IDownloadTransactionsRepository, downloadFilesRepo: IDownloadFilesRepository, downloadChunksRepo: IDownloadChunksRepository, downloadApiClient: IDownloadApiClient, storage: IStorage, eventHub: IEventHub, logger: ILogger, retrier: IRetrier, locker: ILocker);
83
84
  handleCookiesRejected(): void;
84
85
  private setupBackgroundJobs;
@@ -2,6 +2,7 @@ import { GetAllFormatCodesResponse, GetAssetsInFolderRequest, GetAssetsInFolderR
2
2
 
3
3
  export declare const FIELD_DOC_TYPE = "CoreField.DocType";
4
4
  export declare const FIELD_DOC_TITLE = "Document.Title";
5
+ export declare const FIELD_DOC_CAPTION_LONG = "Document.CaptionLong";
5
6
  export declare const FIELD_EXTENSION = "Document.FileExtension";
6
7
  export declare const FIELD_FILE_SIZE = "CoreField.FileSize";
7
8
  export declare const FIELD_IDENTIFIER = "CoreField.Identifier";
@@ -382,6 +382,7 @@ export declare enum DialogType {
382
382
  Gallery = "gallery"
383
383
  }
384
384
  export type Page = {
385
+ description: string;
385
386
  hasChildren: boolean;
386
387
  id: string;
387
388
  title: string;
@@ -389,6 +390,7 @@ export type Page = {
389
390
  url: string | null;
390
391
  };
391
392
  export type Link = {
393
+ description: string;
392
394
  hasChildren: boolean;
393
395
  id: string;
394
396
  title: string;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@orangelogic/design-system",
3
3
  "type": "module",
4
- "version": "3.33.0",
4
+ "version": "3.34.0",
5
5
  "license": "UNLICENSED",
6
6
  "types": "library/types.d.ts",
7
7
  "scripts": {