@fluid-app/fluid-cli-theme-dev 0.1.614 → 0.1.616

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.
@@ -18,8 +18,8 @@ import { u as cr, S as sr } from "./sidebar-F9HCEgGk.js";
18
18
  import { S as or } from "./store-api-context-DvEoj9rL.js";
19
19
  import { s as dr, a as mr, b as vr, c as hr } from "./hey-api-client-BX6gR7MZ.js";
20
20
  import { M as yr } from "./use-mobile-BMB157P-.js";
21
- import { i as zv, n as rr } from "./navigate-account-screen-kpMclaZ9.js";
22
- import { a as gr } from "./cli-preview-BKu5ria1.js";
21
+ import { i as zv, n as rr } from "./navigate-account-screen-9NlvlPDl.js";
22
+ import { a as gr } from "./cli-preview-BGY80_hS.js";
23
23
  import { A as Sr } from "./arrow-left-DAYx572e.js";
24
24
  /**
25
25
  * @license lucide-react v0.575.0 - ISC
@@ -1,4 +1,4 @@
1
- import { i as o } from "./cli-preview-BKu5ria1.js";
1
+ import { i as o } from "./cli-preview-BGY80_hS.js";
2
2
  function i(n) {
3
3
  if (!s(n)) return;
4
4
  const e = new URL(`/${n}`, window.location.origin), r = new URL(window.location.href);
package/dist/index.mjs CHANGED
@@ -13503,7 +13503,8 @@ async function publishToStaging(api, themeId, root, onProgress = () => {}) {
13503
13503
  * of its JSON document instead (jsonDigest), which the server computes the
13504
13504
  * same way. Staging-only paths a publish never sends (account pages,
13505
13505
  * numbered duplicates, files attached to a template) are left out, so they
13506
- * do not read as a difference on every comparison.
13506
+ * do not read as a difference on every comparison, and so are binary files a
13507
+ * pull kept remote in `.fluid-assets.json` instead of downloading.
13507
13508
  */
13508
13509
  /**
13509
13510
  * The SHA-256 of a JSON document independent of key order and layout: keys
@@ -13544,7 +13545,8 @@ async function compareWithStaging(api, themeId, root) {
13544
13545
  });
13545
13546
  if (entries.length === 0) throw new Error("No theme files to compare.");
13546
13547
  const compared = await compareBranch(api, themeId, branch.slug, entries);
13547
- const branchOnly = compared.branch_only.filter((path) => unpublishableReason(path) === null);
13548
+ const keptRemote = keptRemoteAssets(root);
13549
+ const branchOnly = compared.branch_only.filter((path) => unpublishableReason(path) === null && !keptRemote.has(path));
13548
13550
  return {
13549
13551
  revision: compared.branch_revision,
13550
13552
  matches: compared.changed.length === 0 && compared.local_only.length === 0 && branchOnly.length === 0,
@@ -13553,6 +13555,17 @@ async function compareWithStaging(api, themeId, root) {
13553
13555
  branchOnly
13554
13556
  };
13555
13557
  }
13558
+ /**
13559
+ * The binary files a pull kept remote. An unreadable manifest lists none,
13560
+ * so the comparison errs towards reporting a difference.
13561
+ */
13562
+ function keptRemoteAssets(root) {
13563
+ try {
13564
+ return new Set(new ThemeAssetManifest(root.root).keys());
13565
+ } catch {
13566
+ return /* @__PURE__ */ new Set();
13567
+ }
13568
+ }
13556
13569
  //#endregion
13557
13570
  //#region src/theme/staging-promote.ts
13558
13571
  const STAGING = "staging";