@jumoo/usync-publisher-assets 17.7.0-prerelease.46 → 17.7.0-prerelease.48

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.
@@ -7,6 +7,12 @@ export declare const USYNC_APPROVALS_IN_USE_CONDITION_ALIAS = "usync.publisher.a
7
7
  * only content pushes and pulls are gated (matches PublisherApprovalRules.IsGatedMode).
8
8
  */
9
9
  export declare function isApprovalMode(mode?: PublishMode | null): mode is PublishMode.PUSH | PublishMode.PULL;
10
+ /**
11
+ * settings pushed from the settings tree are push or pull runs too, so the items decide:
12
+ * a run is gated when any of them is content, media or a member, or none has a type
13
+ * (matches PublisherApprovalRules.IsGated).
14
+ */
15
+ export declare function isApprovalRun(mode?: PublishMode | null, entityTypes?: Array<string | null | undefined>): boolean;
10
16
  export declare function approvalStatusColor(status: PublisherApprovalStatus): "default" | "positive" | "warning" | "danger";
11
17
  export declare const ApprovalDateOptions: Intl.DateTimeFormatOptions;
12
18
  /**
@@ -13,6 +13,12 @@ export default class uSyncPublisherChangeDetailsModal extends UmbModalBaseElemen
13
13
  /** the visual preview (uSync's preview elements) is the open tab */
14
14
  showVisual: boolean;
15
15
  private _preview?;
16
+ /**
17
+ * the preview was tried and failed (e.g. a push of content whose document type
18
+ * isn't on the target yet). the visual tab says so, rather than disappearing.
19
+ */
20
+ private _previewFailed;
21
+ private _previewMessage?;
16
22
  /** the names of the two sites, for the visual and compare tabs */
17
23
  private _labels?;
18
24
  /** the entity types there is a 'usync-item-preview' element for */
@@ -26,6 +32,8 @@ export default class uSyncPublisherChangeDetailsModal extends UmbModalBaseElemen
26
32
  _renderChangeView(): import("lit-html").TemplateResult<1>;
27
33
  renderTabs(): import("lit-html").TemplateResult<1>;
28
34
  renderVisual(): import("lit-html").TemplateResult<1>;
35
+ renderVisualUnavailable(): import("lit-html").TemplateResult<1>;
29
36
  renderDetail(): typeof nothing | import("lit-html").TemplateResult<1>;
30
37
  renderCompare(): typeof nothing | import("lit-html").TemplateResult<1>;
38
+ static styles: import("lit").CSSResult;
31
39
  }
@@ -184,6 +184,8 @@ declare const _default: {
184
184
  compareTab: string;
185
185
  detailsTab: string;
186
186
  visualTab: string;
187
+ visualUnavailable: string;
188
+ visualUnavailableDescription: string;
187
189
  previewThisSite: string;
188
190
  previewCurrent: string;
189
191
  previewIncoming: string;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@jumoo/usync-publisher-assets",
3
3
  "license": "Custom",
4
- "version": "17.7.0-prerelease.46",
4
+ "version": "17.7.0-prerelease.48",
5
5
  "type": "module",
6
6
  "description": "uSync.Publisher.Assets",
7
7
  "author": {