@nocode-factory/sanity-kit 2.62.0-rc.0 → 2.62.0-rc.1
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/index.d.ts +1 -1
- package/dist/index.js +33 -56
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/tools/navbar/KitUpdate.tsx +8 -15
- package/src/version.ts +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1436,7 +1436,7 @@ export declare function ActorName(props: {
|
|
|
1436
1436
|
* quelle version. Recopiée de `package.json` par `npm version` (scripts/sync-version.mjs) ; un test
|
|
1437
1437
|
* le vérifie.
|
|
1438
1438
|
*/
|
|
1439
|
-
export declare const KIT_VERSION = "2.62.0-rc.
|
|
1439
|
+
export declare const KIT_VERSION = "2.62.0-rc.1";
|
|
1440
1440
|
/**
|
|
1441
1441
|
* Données de la page proposées comme colonnes.
|
|
1442
1442
|
*
|
package/dist/index.js
CHANGED
|
@@ -1423,7 +1423,7 @@ function explainGrantError(error) {
|
|
|
1423
1423
|
* quelle version. Recopiée de `package.json` par `npm version` (scripts/sync-version.mjs) ; un test
|
|
1424
1424
|
* le vérifie.
|
|
1425
1425
|
*/
|
|
1426
|
-
const KIT_VERSION = "2.62.0-rc.
|
|
1426
|
+
const KIT_VERSION = "2.62.0-rc.1";
|
|
1427
1427
|
/**
|
|
1428
1428
|
* Signale ce Studio au service du kit, une fois par montage.
|
|
1429
1429
|
*
|
|
@@ -1931,7 +1931,7 @@ function useKitUpdate() {
|
|
|
1931
1931
|
!controller.signal.aborted && body?.version && setLatest(body.version);
|
|
1932
1932
|
}).catch(() => {}), () => controller.abort();
|
|
1933
1933
|
}, []);
|
|
1934
|
-
let available = !!(latest && !isPrerelease(latest) && compareVersions(latest, "2.62.0-rc.
|
|
1934
|
+
let available = !!(latest && !isPrerelease(latest) && compareVersions(latest, "2.62.0-rc.1") > 0);
|
|
1935
1935
|
return {
|
|
1936
1936
|
current: KIT_VERSION,
|
|
1937
1937
|
latest,
|
|
@@ -1941,33 +1941,6 @@ function useKitUpdate() {
|
|
|
1941
1941
|
};
|
|
1942
1942
|
}
|
|
1943
1943
|
/**
|
|
1944
|
-
* Jetons partagés par les vues du kit.
|
|
1945
|
-
*
|
|
1946
|
-
* Mode Operate : la couleur sert l'état et la sélection, jamais la décoration.
|
|
1947
|
-
* Les fonds teintés restent sous le seuil où le texte du Studio perd son
|
|
1948
|
-
* contraste, dans les deux thèmes.
|
|
1949
|
-
*/
|
|
1950
|
-
/** Teinte de fond d'une ligne ou d'une carte porteuse d'un critère. */
|
|
1951
|
-
const TABULAR = { fontVariantNumeric: "tabular-nums" }, MONO = {
|
|
1952
|
-
fontFamily: "ui-monospace, SFMono-Regular, Menlo, Consolas, monospace",
|
|
1953
|
-
fontVariantNumeric: "tabular-nums",
|
|
1954
|
-
letterSpacing: "-0.01em"
|
|
1955
|
-
}, CELL = { minWidth: 0 }, BORDER = "var(--card-border-color, rgba(127,127,127,0.22))", BORDER_SOFT = "var(--card-border-color, rgba(127,127,127,0.12))", OPTION_COLORS = [
|
|
1956
|
-
"#f5a623",
|
|
1957
|
-
"#43d675",
|
|
1958
|
-
"#2276fc",
|
|
1959
|
-
"#f03e3e",
|
|
1960
|
-
"#a855f7",
|
|
1961
|
-
"#8a8a8a"
|
|
1962
|
-
], DIFF = {
|
|
1963
|
-
removedLine: "color-mix(in srgb, #f03e3e 9%, transparent)",
|
|
1964
|
-
addedLine: "color-mix(in srgb, #2f9e44 11%, transparent)",
|
|
1965
|
-
removedWord: "color-mix(in srgb, #f03e3e 26%, transparent)",
|
|
1966
|
-
addedWord: "color-mix(in srgb, #2f9e44 30%, transparent)",
|
|
1967
|
-
removedMark: "#e03131",
|
|
1968
|
-
addedMark: "#2f9e44"
|
|
1969
|
-
};
|
|
1970
|
-
/**
|
|
1971
1944
|
* Signale qu'une version plus récente du kit existe.
|
|
1972
1945
|
*
|
|
1973
1946
|
* **Il ne met pas à jour.** Un Studio tourne dans un navigateur : il ne peut
|
|
@@ -2028,23 +2001,6 @@ function NcfKitUpdate(props) {
|
|
|
2028
2001
|
]
|
|
2029
2002
|
})]
|
|
2030
2003
|
}),
|
|
2031
|
-
/* @__PURE__ */ jsx(Card, {
|
|
2032
|
-
padding: 2,
|
|
2033
|
-
radius: 2,
|
|
2034
|
-
style: { border: `1px solid ${BORDER}` },
|
|
2035
|
-
children: /* @__PURE__ */ jsx(Text, {
|
|
2036
|
-
size: 0,
|
|
2037
|
-
style: {
|
|
2038
|
-
...MONO,
|
|
2039
|
-
whiteSpace: "pre-wrap",
|
|
2040
|
-
wordBreak: "break-word",
|
|
2041
|
-
maxHeight: 160,
|
|
2042
|
-
overflowY: "auto",
|
|
2043
|
-
display: "block"
|
|
2044
|
-
},
|
|
2045
|
-
children: update.prompt
|
|
2046
|
-
})
|
|
2047
|
-
}),
|
|
2048
2004
|
/* @__PURE__ */ jsxs(Flex, {
|
|
2049
2005
|
gap: 2,
|
|
2050
2006
|
wrap: "wrap",
|
|
@@ -2070,16 +2026,10 @@ function NcfKitUpdate(props) {
|
|
|
2070
2026
|
text: "What's new"
|
|
2071
2027
|
})]
|
|
2072
2028
|
}),
|
|
2073
|
-
/* @__PURE__ */ jsx(
|
|
2074
|
-
|
|
2075
|
-
|
|
2076
|
-
|
|
2077
|
-
},
|
|
2078
|
-
children: /* @__PURE__ */ jsx(Text, {
|
|
2079
|
-
size: 0,
|
|
2080
|
-
muted: !0,
|
|
2081
|
-
children: "Paste it into Claude Code, opened on this project: it updates the kit, wires what the project needs and redeploys the Studio. The Studio cannot do it itself: it runs in your browser, not on the machine that builds it."
|
|
2082
|
-
})
|
|
2029
|
+
/* @__PURE__ */ jsx(Text, {
|
|
2030
|
+
size: 0,
|
|
2031
|
+
muted: !0,
|
|
2032
|
+
children: "Copies the full instructions for Claude Code. Paste them into Claude Code, opened on this project: it updates the kit, wires what the project needs and redeploys the Studio."
|
|
2083
2033
|
})
|
|
2084
2034
|
]
|
|
2085
2035
|
})
|
|
@@ -2538,6 +2488,33 @@ function countByFolder(assets, folders) {
|
|
|
2538
2488
|
}
|
|
2539
2489
|
return counts;
|
|
2540
2490
|
}
|
|
2491
|
+
/**
|
|
2492
|
+
* Jetons partagés par les vues du kit.
|
|
2493
|
+
*
|
|
2494
|
+
* Mode Operate : la couleur sert l'état et la sélection, jamais la décoration.
|
|
2495
|
+
* Les fonds teintés restent sous le seuil où le texte du Studio perd son
|
|
2496
|
+
* contraste, dans les deux thèmes.
|
|
2497
|
+
*/
|
|
2498
|
+
/** Teinte de fond d'une ligne ou d'une carte porteuse d'un critère. */
|
|
2499
|
+
const TABULAR = { fontVariantNumeric: "tabular-nums" }, MONO = {
|
|
2500
|
+
fontFamily: "ui-monospace, SFMono-Regular, Menlo, Consolas, monospace",
|
|
2501
|
+
fontVariantNumeric: "tabular-nums",
|
|
2502
|
+
letterSpacing: "-0.01em"
|
|
2503
|
+
}, CELL = { minWidth: 0 }, BORDER = "var(--card-border-color, rgba(127,127,127,0.22))", BORDER_SOFT = "var(--card-border-color, rgba(127,127,127,0.12))", OPTION_COLORS = [
|
|
2504
|
+
"#f5a623",
|
|
2505
|
+
"#43d675",
|
|
2506
|
+
"#2276fc",
|
|
2507
|
+
"#f03e3e",
|
|
2508
|
+
"#a855f7",
|
|
2509
|
+
"#8a8a8a"
|
|
2510
|
+
], DIFF = {
|
|
2511
|
+
removedLine: "color-mix(in srgb, #f03e3e 9%, transparent)",
|
|
2512
|
+
addedLine: "color-mix(in srgb, #2f9e44 11%, transparent)",
|
|
2513
|
+
removedWord: "color-mix(in srgb, #f03e3e 26%, transparent)",
|
|
2514
|
+
addedWord: "color-mix(in srgb, #2f9e44 30%, transparent)",
|
|
2515
|
+
removedMark: "#e03131",
|
|
2516
|
+
addedMark: "#2f9e44"
|
|
2517
|
+
};
|
|
2541
2518
|
function Row$2(props) {
|
|
2542
2519
|
return /* @__PURE__ */ jsxs(Flex, {
|
|
2543
2520
|
align: "center",
|