@nocode-factory/sanity-kit 2.2.2 → 2.3.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.
- package/dist/index.d.ts +21 -2
- package/dist/index.js +206 -93
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/index.ts +12 -0
- package/src/tools/navbar/PreviewLauncher.tsx +129 -0
- package/src/version.ts +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { SanityClient, Schema, Tool } from "sanity";
|
|
1
|
+
import { SanityClient, Schema, Tool, ToolMenuProps } from "sanity";
|
|
2
2
|
import { ReactNode } from "react";
|
|
3
3
|
import { PreviewHeaderProps } from "sanity/presentation";
|
|
4
4
|
/**
|
|
@@ -1068,6 +1068,25 @@ export declare function ncfPreviewComponents(): {
|
|
|
1068
1068
|
component: typeof NcfPreviewHeader;
|
|
1069
1069
|
};
|
|
1070
1070
|
};
|
|
1071
|
+
/**
|
|
1072
|
+
* Lanceur d'aperçu, posé dans la barre du haut à droite des outils.
|
|
1073
|
+
*
|
|
1074
|
+
* Deux questions, une seule poignée : **quelle version du site**, et **quel
|
|
1075
|
+
* état du contenu**. On choisit, on ouvre.
|
|
1076
|
+
*
|
|
1077
|
+
* Volontairement sans mémoire, contrairement au sélecteur de l'onglet Pages :
|
|
1078
|
+
* ici on lance une consultation, on ne règle pas un mode de travail. Un
|
|
1079
|
+
* bouton de barre qui retiendrait un état finirait par mentir sur ce qu'on
|
|
1080
|
+
* regarde ailleurs.
|
|
1081
|
+
*/
|
|
1082
|
+
export declare function NcfPreviewLauncher(props: ToolMenuProps): import("react").JSX.Element;
|
|
1083
|
+
/**
|
|
1084
|
+
* Le lanceur, muni de la configuration du kit.
|
|
1085
|
+
*
|
|
1086
|
+
* Le menu des outils est rendu hors de l'arbre des outils : il n'hérite donc
|
|
1087
|
+
* d'aucun de leurs contextes, et doit porter le sien.
|
|
1088
|
+
*/
|
|
1089
|
+
export declare function createPreviewLauncher(config: ResolvedKitConfig, issues: ConfigIssue[]): (props: ToolMenuProps) => import("react").JSX.Element;
|
|
1071
1090
|
/**
|
|
1072
1091
|
* Délivre un lien de préversion à partager.
|
|
1073
1092
|
*
|
|
@@ -1203,7 +1222,7 @@ export declare function ActorName(props: {
|
|
|
1203
1222
|
* Version du kit, rapportée au service pour savoir quels projets tournent sur
|
|
1204
1223
|
* quelle version. Tenue à jour avec `package.json`.
|
|
1205
1224
|
*/
|
|
1206
|
-
export declare const KIT_VERSION = "2.
|
|
1225
|
+
export declare const KIT_VERSION = "2.3.0";
|
|
1207
1226
|
/**
|
|
1208
1227
|
* Données de la page proposées comme colonnes.
|
|
1209
1228
|
*
|
package/dist/index.js
CHANGED
|
@@ -6,6 +6,8 @@ import { Badge, Box, Button, Card, Container, Flex, Grid, Select, Spinner, Stack
|
|
|
6
6
|
import { createContext, memo, useCallback, useContext, useEffect, useMemo, useRef, useState } from "react";
|
|
7
7
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
8
8
|
import { IntentLink, useRouter } from "sanity/router";
|
|
9
|
+
import { EyeOpenIcon } from "@sanity/icons/EyeOpen";
|
|
10
|
+
import { LaunchIcon } from "@sanity/icons/Launch";
|
|
9
11
|
import { CheckmarkIcon } from "@sanity/icons/Checkmark";
|
|
10
12
|
import { CloseIcon } from "@sanity/icons/Close";
|
|
11
13
|
import { EarthGlobeIcon } from "@sanity/icons/EarthGlobe";
|
|
@@ -23,7 +25,6 @@ import { SyncIcon } from "@sanity/icons/Sync";
|
|
|
23
25
|
import { ControlsIcon } from "@sanity/icons/Controls";
|
|
24
26
|
import { Background, Controls, Handle, MarkerType, MiniMap, NodeResizer, Position, ReactFlow, ReactFlowProvider, useEdgesState, useNodesState, useReactFlow, useViewport } from "@xyflow/react";
|
|
25
27
|
import "@xyflow/react/dist/style.css";
|
|
26
|
-
import { LaunchIcon } from "@sanity/icons/Launch";
|
|
27
28
|
import { TrashIcon } from "@sanity/icons/Trash";
|
|
28
29
|
import { RefreshIcon } from "@sanity/icons/Refresh";
|
|
29
30
|
import { RestoreIcon } from "@sanity/icons/Restore";
|
|
@@ -1271,7 +1272,7 @@ function explainGrantError(error) {
|
|
|
1271
1272
|
* Version du kit, rapportée au service pour savoir quels projets tournent sur
|
|
1272
1273
|
* quelle version. Tenue à jour avec `package.json`.
|
|
1273
1274
|
*/
|
|
1274
|
-
const KIT_VERSION = "2.
|
|
1275
|
+
const KIT_VERSION = "2.3.0";
|
|
1275
1276
|
/**
|
|
1276
1277
|
* Signale ce Studio au service du kit, une fois par montage.
|
|
1277
1278
|
*
|
|
@@ -1395,6 +1396,206 @@ function createToolComponent(args) {
|
|
|
1395
1396
|
};
|
|
1396
1397
|
}
|
|
1397
1398
|
/**
|
|
1399
|
+
* Petit panneau ancré à son déclencheur.
|
|
1400
|
+
*
|
|
1401
|
+
* Positionné en `fixed` et non en `absolute` : le tableau défile
|
|
1402
|
+
* horizontalement, et un panneau posé dans ce conteneur serait rogné.
|
|
1403
|
+
*/
|
|
1404
|
+
function InlinePopover(props) {
|
|
1405
|
+
let { trigger, children, width = 200, onOpenChange } = props, [open, setOpen] = useState(!1), [at, setAt] = useState(null), anchor = useRef(null), panel = useRef(null), toggle = () => {
|
|
1406
|
+
let rect = anchor.current?.getBoundingClientRect();
|
|
1407
|
+
if (rect) {
|
|
1408
|
+
let below = window.innerHeight - rect.bottom;
|
|
1409
|
+
setAt({
|
|
1410
|
+
top: below > 240 ? rect.bottom + 4 : Math.max(8, rect.top - 244),
|
|
1411
|
+
left: Math.min(rect.left, window.innerWidth - width - 12)
|
|
1412
|
+
});
|
|
1413
|
+
}
|
|
1414
|
+
setOpen((value) => (onOpenChange?.(!value), !value));
|
|
1415
|
+
}, close = () => {
|
|
1416
|
+
setOpen(!1), onOpenChange?.(!1);
|
|
1417
|
+
};
|
|
1418
|
+
return useEffect(() => {
|
|
1419
|
+
if (!open) return;
|
|
1420
|
+
let onDown = (event) => {
|
|
1421
|
+
let target = event.target;
|
|
1422
|
+
panel.current?.contains(target) || anchor.current?.contains(target) || close();
|
|
1423
|
+
}, onKey = (event) => {
|
|
1424
|
+
event.key === "Escape" && close();
|
|
1425
|
+
};
|
|
1426
|
+
return document.addEventListener("mousedown", onDown), document.addEventListener("keydown", onKey), () => {
|
|
1427
|
+
document.removeEventListener("mousedown", onDown), document.removeEventListener("keydown", onKey);
|
|
1428
|
+
};
|
|
1429
|
+
}, [open]), /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsx("span", {
|
|
1430
|
+
ref: anchor,
|
|
1431
|
+
style: {
|
|
1432
|
+
display: "block",
|
|
1433
|
+
minWidth: 0
|
|
1434
|
+
},
|
|
1435
|
+
children: trigger({
|
|
1436
|
+
open,
|
|
1437
|
+
toggle
|
|
1438
|
+
})
|
|
1439
|
+
}), open && at && /* @__PURE__ */ jsx("div", {
|
|
1440
|
+
ref: panel,
|
|
1441
|
+
style: {
|
|
1442
|
+
position: "fixed",
|
|
1443
|
+
top: at.top,
|
|
1444
|
+
left: at.left,
|
|
1445
|
+
width,
|
|
1446
|
+
zIndex: 1e3
|
|
1447
|
+
},
|
|
1448
|
+
children: /* @__PURE__ */ jsx(Card, {
|
|
1449
|
+
radius: 3,
|
|
1450
|
+
shadow: 3,
|
|
1451
|
+
padding: 1,
|
|
1452
|
+
style: {
|
|
1453
|
+
maxHeight: 240,
|
|
1454
|
+
overflowY: "auto"
|
|
1455
|
+
},
|
|
1456
|
+
children: children({ close })
|
|
1457
|
+
})
|
|
1458
|
+
})] });
|
|
1459
|
+
}
|
|
1460
|
+
/**
|
|
1461
|
+
* Jetons partagés par les vues du kit.
|
|
1462
|
+
*
|
|
1463
|
+
* Mode Operate : la couleur sert l'état et la sélection, jamais la décoration.
|
|
1464
|
+
* Les fonds teintés restent sous le seuil où le texte du Studio perd son
|
|
1465
|
+
* contraste, dans les deux thèmes.
|
|
1466
|
+
*/
|
|
1467
|
+
/** Teinte de fond d'une ligne ou d'une carte porteuse d'un critère. */
|
|
1468
|
+
const TABULAR = { fontVariantNumeric: "tabular-nums" }, MONO = {
|
|
1469
|
+
fontFamily: "ui-monospace, SFMono-Regular, Menlo, Consolas, monospace",
|
|
1470
|
+
fontVariantNumeric: "tabular-nums",
|
|
1471
|
+
letterSpacing: "-0.01em"
|
|
1472
|
+
}, CELL = { minWidth: 0 }, BORDER = "var(--card-border-color, rgba(127,127,127,0.22))", OPTION_COLORS = [
|
|
1473
|
+
"#f5a623",
|
|
1474
|
+
"#43d675",
|
|
1475
|
+
"#2276fc",
|
|
1476
|
+
"#f03e3e",
|
|
1477
|
+
"#a855f7",
|
|
1478
|
+
"#8a8a8a"
|
|
1479
|
+
], DIFF = {
|
|
1480
|
+
removedLine: "color-mix(in srgb, #f03e3e 9%, transparent)",
|
|
1481
|
+
addedLine: "color-mix(in srgb, #2f9e44 11%, transparent)",
|
|
1482
|
+
removedWord: "color-mix(in srgb, #f03e3e 26%, transparent)",
|
|
1483
|
+
addedWord: "color-mix(in srgb, #2f9e44 30%, transparent)",
|
|
1484
|
+
removedMark: "#e03131",
|
|
1485
|
+
addedMark: "#2f9e44"
|
|
1486
|
+
};
|
|
1487
|
+
/**
|
|
1488
|
+
* Lanceur d'aperçu, posé dans la barre du haut à droite des outils.
|
|
1489
|
+
*
|
|
1490
|
+
* Deux questions, une seule poignée : **quelle version du site**, et **quel
|
|
1491
|
+
* état du contenu**. On choisit, on ouvre.
|
|
1492
|
+
*
|
|
1493
|
+
* Volontairement sans mémoire, contrairement au sélecteur de l'onglet Pages :
|
|
1494
|
+
* ici on lance une consultation, on ne règle pas un mode de travail. Un
|
|
1495
|
+
* bouton de barre qui retiendrait un état finirait par mentir sur ce qu'on
|
|
1496
|
+
* regarde ailleurs.
|
|
1497
|
+
*/
|
|
1498
|
+
function NcfPreviewLauncher(props) {
|
|
1499
|
+
let config = useKitConfig(), router = useRouter(), environments = config.environments;
|
|
1500
|
+
if (environments.length === 0) return props.renderDefault(props);
|
|
1501
|
+
let open = (environment, perspective) => {
|
|
1502
|
+
let path = presentationPath(environment.url, {
|
|
1503
|
+
environment,
|
|
1504
|
+
perspective
|
|
1505
|
+
});
|
|
1506
|
+
path && router.navigateUrl({ path });
|
|
1507
|
+
}, inline = props.context === "topbar";
|
|
1508
|
+
return /* @__PURE__ */ jsxs(Flex, {
|
|
1509
|
+
align: inline ? "center" : "stretch",
|
|
1510
|
+
direction: inline ? "row" : "column",
|
|
1511
|
+
gap: inline ? 2 : 1,
|
|
1512
|
+
children: [props.renderDefault(props), /* @__PURE__ */ jsx(InlinePopover, {
|
|
1513
|
+
width: 248,
|
|
1514
|
+
trigger: ({ toggle }) => /* @__PURE__ */ jsx(Button, {
|
|
1515
|
+
mode: "bleed",
|
|
1516
|
+
fontSize: 1,
|
|
1517
|
+
padding: inline ? 2 : 3,
|
|
1518
|
+
icon: EyeOpenIcon,
|
|
1519
|
+
text: "Prévisualiser",
|
|
1520
|
+
title: "Ouvrir le site dans l'aperçu",
|
|
1521
|
+
justify: inline ? void 0 : "flex-start",
|
|
1522
|
+
onClick: toggle
|
|
1523
|
+
}),
|
|
1524
|
+
children: ({ close }) => /* @__PURE__ */ jsx(Stack, {
|
|
1525
|
+
gap: 1,
|
|
1526
|
+
children: environments.map((environment, index) => /* @__PURE__ */ jsxs(Box, {
|
|
1527
|
+
paddingTop: index === 0 ? 1 : 3,
|
|
1528
|
+
style: index === 0 ? void 0 : {
|
|
1529
|
+
borderTop: `1px solid ${BORDER}`,
|
|
1530
|
+
marginTop: 4
|
|
1531
|
+
},
|
|
1532
|
+
children: [/* @__PURE__ */ jsx(Box, {
|
|
1533
|
+
paddingX: 2,
|
|
1534
|
+
paddingBottom: 1,
|
|
1535
|
+
children: /* @__PURE__ */ jsx(Text, {
|
|
1536
|
+
size: 0,
|
|
1537
|
+
weight: "semibold",
|
|
1538
|
+
muted: !0,
|
|
1539
|
+
textOverflow: "ellipsis",
|
|
1540
|
+
children: environment.label
|
|
1541
|
+
})
|
|
1542
|
+
}), PERSPECTIVES.map((option) => /* @__PURE__ */ jsxs(Flex, {
|
|
1543
|
+
align: "center",
|
|
1544
|
+
gap: 2,
|
|
1545
|
+
padding: 2,
|
|
1546
|
+
onClick: () => {
|
|
1547
|
+
open(environment, option.id), close();
|
|
1548
|
+
},
|
|
1549
|
+
style: {
|
|
1550
|
+
cursor: "pointer",
|
|
1551
|
+
borderRadius: 3
|
|
1552
|
+
},
|
|
1553
|
+
onMouseEnter: (event) => {
|
|
1554
|
+
event.currentTarget.style.background = "var(--card-muted-bg-color, rgba(127,127,127,0.12))";
|
|
1555
|
+
},
|
|
1556
|
+
onMouseLeave: (event) => {
|
|
1557
|
+
event.currentTarget.style.background = "transparent";
|
|
1558
|
+
},
|
|
1559
|
+
children: [/* @__PURE__ */ jsxs(Stack, {
|
|
1560
|
+
gap: 1,
|
|
1561
|
+
flex: 1,
|
|
1562
|
+
style: { minWidth: 0 },
|
|
1563
|
+
children: [/* @__PURE__ */ jsx(Text, {
|
|
1564
|
+
size: 1,
|
|
1565
|
+
children: option.label
|
|
1566
|
+
}), /* @__PURE__ */ jsx(Text, {
|
|
1567
|
+
size: 0,
|
|
1568
|
+
muted: !0,
|
|
1569
|
+
textOverflow: "ellipsis",
|
|
1570
|
+
children: option.hint
|
|
1571
|
+
})]
|
|
1572
|
+
}), /* @__PURE__ */ jsx(LaunchIcon, { style: {
|
|
1573
|
+
fontSize: 14,
|
|
1574
|
+
opacity: .5,
|
|
1575
|
+
flex: "none"
|
|
1576
|
+
} })]
|
|
1577
|
+
}, option.id))]
|
|
1578
|
+
}, environment.id))
|
|
1579
|
+
})
|
|
1580
|
+
})]
|
|
1581
|
+
});
|
|
1582
|
+
}
|
|
1583
|
+
/**
|
|
1584
|
+
* Le lanceur, muni de la configuration du kit.
|
|
1585
|
+
*
|
|
1586
|
+
* Le menu des outils est rendu hors de l'arbre des outils : il n'hérite donc
|
|
1587
|
+
* d'aucun de leurs contextes, et doit porter le sien.
|
|
1588
|
+
*/
|
|
1589
|
+
function createPreviewLauncher(config, issues) {
|
|
1590
|
+
return function NcfToolMenu(props) {
|
|
1591
|
+
return /* @__PURE__ */ jsx(KitProvider, {
|
|
1592
|
+
config,
|
|
1593
|
+
issues,
|
|
1594
|
+
children: /* @__PURE__ */ jsx(NcfPreviewLauncher, { ...props })
|
|
1595
|
+
});
|
|
1596
|
+
};
|
|
1597
|
+
}
|
|
1598
|
+
/**
|
|
1398
1599
|
* Colonnes de gestion interne effectives.
|
|
1399
1600
|
*
|
|
1400
1601
|
* Tant que personne n'y a touché, la configuration fournit le jeu de départ.
|
|
@@ -1783,68 +1984,6 @@ function indexationColumn(noindexFields) {
|
|
|
1783
1984
|
invert: !0
|
|
1784
1985
|
}];
|
|
1785
1986
|
}
|
|
1786
|
-
/**
|
|
1787
|
-
* Petit panneau ancré à son déclencheur.
|
|
1788
|
-
*
|
|
1789
|
-
* Positionné en `fixed` et non en `absolute` : le tableau défile
|
|
1790
|
-
* horizontalement, et un panneau posé dans ce conteneur serait rogné.
|
|
1791
|
-
*/
|
|
1792
|
-
function InlinePopover(props) {
|
|
1793
|
-
let { trigger, children, width = 200, onOpenChange } = props, [open, setOpen] = useState(!1), [at, setAt] = useState(null), anchor = useRef(null), panel = useRef(null), toggle = () => {
|
|
1794
|
-
let rect = anchor.current?.getBoundingClientRect();
|
|
1795
|
-
if (rect) {
|
|
1796
|
-
let below = window.innerHeight - rect.bottom;
|
|
1797
|
-
setAt({
|
|
1798
|
-
top: below > 240 ? rect.bottom + 4 : Math.max(8, rect.top - 244),
|
|
1799
|
-
left: Math.min(rect.left, window.innerWidth - width - 12)
|
|
1800
|
-
});
|
|
1801
|
-
}
|
|
1802
|
-
setOpen((value) => (onOpenChange?.(!value), !value));
|
|
1803
|
-
}, close = () => {
|
|
1804
|
-
setOpen(!1), onOpenChange?.(!1);
|
|
1805
|
-
};
|
|
1806
|
-
return useEffect(() => {
|
|
1807
|
-
if (!open) return;
|
|
1808
|
-
let onDown = (event) => {
|
|
1809
|
-
let target = event.target;
|
|
1810
|
-
panel.current?.contains(target) || anchor.current?.contains(target) || close();
|
|
1811
|
-
}, onKey = (event) => {
|
|
1812
|
-
event.key === "Escape" && close();
|
|
1813
|
-
};
|
|
1814
|
-
return document.addEventListener("mousedown", onDown), document.addEventListener("keydown", onKey), () => {
|
|
1815
|
-
document.removeEventListener("mousedown", onDown), document.removeEventListener("keydown", onKey);
|
|
1816
|
-
};
|
|
1817
|
-
}, [open]), /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsx("span", {
|
|
1818
|
-
ref: anchor,
|
|
1819
|
-
style: {
|
|
1820
|
-
display: "block",
|
|
1821
|
-
minWidth: 0
|
|
1822
|
-
},
|
|
1823
|
-
children: trigger({
|
|
1824
|
-
open,
|
|
1825
|
-
toggle
|
|
1826
|
-
})
|
|
1827
|
-
}), open && at && /* @__PURE__ */ jsx("div", {
|
|
1828
|
-
ref: panel,
|
|
1829
|
-
style: {
|
|
1830
|
-
position: "fixed",
|
|
1831
|
-
top: at.top,
|
|
1832
|
-
left: at.left,
|
|
1833
|
-
width,
|
|
1834
|
-
zIndex: 1e3
|
|
1835
|
-
},
|
|
1836
|
-
children: /* @__PURE__ */ jsx(Card, {
|
|
1837
|
-
radius: 3,
|
|
1838
|
-
shadow: 3,
|
|
1839
|
-
padding: 1,
|
|
1840
|
-
style: {
|
|
1841
|
-
maxHeight: 240,
|
|
1842
|
-
overflowY: "auto"
|
|
1843
|
-
},
|
|
1844
|
-
children: children({ close })
|
|
1845
|
-
})
|
|
1846
|
-
})] });
|
|
1847
|
-
}
|
|
1848
1987
|
const TABS = [
|
|
1849
1988
|
{
|
|
1850
1989
|
value: "list",
|
|
@@ -1901,33 +2040,6 @@ function FieldLabel(props) {
|
|
|
1901
2040
|
});
|
|
1902
2041
|
}
|
|
1903
2042
|
/**
|
|
1904
|
-
* Jetons partagés par les vues du kit.
|
|
1905
|
-
*
|
|
1906
|
-
* Mode Operate : la couleur sert l'état et la sélection, jamais la décoration.
|
|
1907
|
-
* Les fonds teintés restent sous le seuil où le texte du Studio perd son
|
|
1908
|
-
* contraste, dans les deux thèmes.
|
|
1909
|
-
*/
|
|
1910
|
-
/** Teinte de fond d'une ligne ou d'une carte porteuse d'un critère. */
|
|
1911
|
-
const TABULAR = { fontVariantNumeric: "tabular-nums" }, MONO = {
|
|
1912
|
-
fontFamily: "ui-monospace, SFMono-Regular, Menlo, Consolas, monospace",
|
|
1913
|
-
fontVariantNumeric: "tabular-nums",
|
|
1914
|
-
letterSpacing: "-0.01em"
|
|
1915
|
-
}, CELL = { minWidth: 0 }, BORDER = "var(--card-border-color, rgba(127,127,127,0.22))", OPTION_COLORS = [
|
|
1916
|
-
"#f5a623",
|
|
1917
|
-
"#43d675",
|
|
1918
|
-
"#2276fc",
|
|
1919
|
-
"#f03e3e",
|
|
1920
|
-
"#a855f7",
|
|
1921
|
-
"#8a8a8a"
|
|
1922
|
-
], DIFF = {
|
|
1923
|
-
removedLine: "color-mix(in srgb, #f03e3e 9%, transparent)",
|
|
1924
|
-
addedLine: "color-mix(in srgb, #2f9e44 11%, transparent)",
|
|
1925
|
-
removedWord: "color-mix(in srgb, #f03e3e 26%, transparent)",
|
|
1926
|
-
addedWord: "color-mix(in srgb, #2f9e44 30%, transparent)",
|
|
1927
|
-
removedMark: "#e03131",
|
|
1928
|
-
addedMark: "#2f9e44"
|
|
1929
|
-
};
|
|
1930
|
-
/**
|
|
1931
2043
|
* Ce que l'aperçu doit montrer : quelle version du site, et quel état du
|
|
1932
2044
|
* contenu.
|
|
1933
2045
|
*
|
|
@@ -6876,9 +6988,10 @@ const NCF_PAGES_TOOL = "ncf-pages", NCF_COMPONENTS_TOOL = "ncf-components", NCF_
|
|
|
6876
6988
|
types: kitSchemaTypes,
|
|
6877
6989
|
templates: (prev) => prev.filter((template) => !isKitType(template.schemaType))
|
|
6878
6990
|
},
|
|
6879
|
-
document: { newDocumentOptions: (prev) => prev.filter((option) => option.templateId !== BOARD_LAYOUT_TYPE) }
|
|
6991
|
+
document: { newDocumentOptions: (prev) => prev.filter((option) => option.templateId !== BOARD_LAYOUT_TYPE) },
|
|
6992
|
+
studio: { components: { toolMenu: createPreviewLauncher(config, issues) } }
|
|
6880
6993
|
};
|
|
6881
6994
|
});
|
|
6882
|
-
export { ANNOTATION_TYPE, ActorName, BOARD_LAYOUT_ID, BOARD_LAYOUT_TYPE, BRAIN_NODE_SIZE, BoardLayoutProvider, COLUMN_TYPE, CONTENT_SCAN_LIMIT, CONTENT_SCAN_LIMIT as OCCURRENCE_SCAN_LIMIT, CUSTOM_ENVIRONMENT_ID, DATA_PREFIX, DEFAULT_BOARD_TAGS, DEFAULT_COMPONENT_PREVIEW, DEFAULT_I18N, DEFAULT_INTERNAL_FIELDS, DEFAULT_MORE_TOOLS, DEFAULT_PAGE_BUILDER_FIELD, DEFAULT_SLUG_FIELD, DEFAULT_TITLE_FIELD, KIT_API_VERSION, KIT_VERSION, NCF_COMPONENTS_TOOL, NCF_HIDDEN_TYPES, NCF_HISTORY_TOOL, NCF_MORE_TOOL, NCF_PAGES_TOOL, NCF_TOOL_NAMES, NODE_FIELD_TYPE, NODE_HEIGHT, NODE_WIDTH, NcfPreviewHeader, PERSPECTIVES, PROJECTION, SECTION_NODE_TYPE, STATUS_COLORS, STATUS_LABELS, SharePreview, UNSET_LABEL, addColumn, addColumnOption, announce, applySavedPositions, baseId, blockName, blockTypesFromSchema, buildContentsQuery, buildLinkGraph, buildPageRows, buildPagesQuery, collectLinks, collectOccurrences, colorForRow, colorFromString, columnId, customEnvironment, defaultNodeSize, depth, deriveDocumentColumns, diffDocuments, diffWords, editIntentPath, explainGrantError, fallbackLayout, fetchDetail, fetchTimeline, fillTemplate, filterRows, flatten, formatDocumentValue, groupPageRows, groupValue, hasBlockingIssue, humanizeBlockName, isDraftId, isKitType, isSafeColumnKey, isSafeFieldPath, isTextChange, isVersionId, issuesForTool, keyForPath, kitSchemaTypes, layoutGraph, layoutSectionsMap, localesInRows, mergeVersions, missingPageTypes, moveColumn, ncfAllowedOrigins, ncfKit, ncfPreviewComponents, normalizeInternalPath, normalizePath, occurrencesForTypes, pageThumbnailUrl, pageTypeFor, pageTypesFromSiteRoutes, pageTypesWithoutBuilder, parentPath, presentationPath, pruneSavedPositions, releaseId, removeColumn, renameColumn, requestPreviewGrant, resolveColorBy, resolveConfig, segments, slugKey, sortRows, summarize, toKebabCase, toPath, toUrl, topLevelBlockCount, uniqueColumnId, upsertLayout, urlOn, useAnnotations, useBoardLayout, useDocumentColumns, useHistory, useInternalColumns, useKitClient, useKitConfig, useKitContext, useOccurrences, usePageContents, usePages, usePreviewTarget, useRegistration, validateConfig, withAlpha, withMoreTool };
|
|
6995
|
+
export { ANNOTATION_TYPE, ActorName, BOARD_LAYOUT_ID, BOARD_LAYOUT_TYPE, BRAIN_NODE_SIZE, BoardLayoutProvider, COLUMN_TYPE, CONTENT_SCAN_LIMIT, CONTENT_SCAN_LIMIT as OCCURRENCE_SCAN_LIMIT, CUSTOM_ENVIRONMENT_ID, DATA_PREFIX, DEFAULT_BOARD_TAGS, DEFAULT_COMPONENT_PREVIEW, DEFAULT_I18N, DEFAULT_INTERNAL_FIELDS, DEFAULT_MORE_TOOLS, DEFAULT_PAGE_BUILDER_FIELD, DEFAULT_SLUG_FIELD, DEFAULT_TITLE_FIELD, KIT_API_VERSION, KIT_VERSION, NCF_COMPONENTS_TOOL, NCF_HIDDEN_TYPES, NCF_HISTORY_TOOL, NCF_MORE_TOOL, NCF_PAGES_TOOL, NCF_TOOL_NAMES, NODE_FIELD_TYPE, NODE_HEIGHT, NODE_WIDTH, NcfPreviewHeader, NcfPreviewLauncher, PERSPECTIVES, PROJECTION, SECTION_NODE_TYPE, STATUS_COLORS, STATUS_LABELS, SharePreview, UNSET_LABEL, addColumn, addColumnOption, announce, applySavedPositions, baseId, blockName, blockTypesFromSchema, buildContentsQuery, buildLinkGraph, buildPageRows, buildPagesQuery, collectLinks, collectOccurrences, colorForRow, colorFromString, columnId, createPreviewLauncher, customEnvironment, defaultNodeSize, depth, deriveDocumentColumns, diffDocuments, diffWords, editIntentPath, explainGrantError, fallbackLayout, fetchDetail, fetchTimeline, fillTemplate, filterRows, flatten, formatDocumentValue, groupPageRows, groupValue, hasBlockingIssue, humanizeBlockName, isDraftId, isKitType, isSafeColumnKey, isSafeFieldPath, isTextChange, isVersionId, issuesForTool, keyForPath, kitSchemaTypes, layoutGraph, layoutSectionsMap, localesInRows, mergeVersions, missingPageTypes, moveColumn, ncfAllowedOrigins, ncfKit, ncfPreviewComponents, normalizeInternalPath, normalizePath, occurrencesForTypes, pageThumbnailUrl, pageTypeFor, pageTypesFromSiteRoutes, pageTypesWithoutBuilder, parentPath, presentationPath, pruneSavedPositions, releaseId, removeColumn, renameColumn, requestPreviewGrant, resolveColorBy, resolveConfig, segments, slugKey, sortRows, summarize, toKebabCase, toPath, toUrl, topLevelBlockCount, uniqueColumnId, upsertLayout, urlOn, useAnnotations, useBoardLayout, useDocumentColumns, useHistory, useInternalColumns, useKitClient, useKitConfig, useKitContext, useOccurrences, usePageContents, usePages, usePreviewTarget, useRegistration, validateConfig, withAlpha, withMoreTool };
|
|
6883
6996
|
|
|
6884
6997
|
//# sourceMappingURL=index.js.map
|