@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.
- package/dist/dist-cli-preview/.vite/manifest.json +17 -17
- package/dist/dist-cli-preview/account-screens.js +1 -1
- package/dist/dist-cli-preview/chunks/{MediaScreen-CSQxI3WK.js → MediaScreen-CHAy_s7_.js} +1 -1
- package/dist/dist-cli-preview/chunks/{MemberShareablesScreen-CWwuNWEm.js → MemberShareablesScreen-BCsvCoG2.js} +1 -1
- package/dist/dist-cli-preview/chunks/{PlaylistsScreen-BRMzhjen.js → PlaylistsScreen-BqrI_CbF.js} +1 -1
- package/dist/dist-cli-preview/chunks/{cli-preview-BKu5ria1.js → cli-preview-BGY80_hS.js} +4 -4
- package/dist/dist-cli-preview/chunks/messaging-CkGDp6PW.js +4 -0
- package/dist/dist-cli-preview/chunks/{mount-account-screen-9km6-j1U.js → mount-account-screen-DsZslcTN.js} +2 -2
- package/dist/dist-cli-preview/chunks/{navigate-account-screen-kpMclaZ9.js → navigate-account-screen-9NlvlPDl.js} +1 -1
- package/dist/index.mjs +15 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/dist/dist-cli-preview/chunks/messaging-FUbKKfJC.js +0 -4
|
@@ -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-
|
|
22
|
-
import { a as gr } from "./cli-preview-
|
|
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
|
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
|
|
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";
|