@contentful/experience-design-system-cli 2.26.7-dev-build-cdb420a.0 → 2.26.7-dev-build-245a014.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/package.json
CHANGED
|
@@ -37,7 +37,6 @@ type FieldEditorProps = {
|
|
|
37
37
|
kind: 'prop' | 'slot';
|
|
38
38
|
name: string;
|
|
39
39
|
};
|
|
40
|
-
showHiddenProps?: boolean;
|
|
41
40
|
};
|
|
42
41
|
export declare function simulateGraphWithCandidate(projectSlotGraph: ComponentSlotInfo[], selfName: string, currentSlots: {
|
|
43
42
|
name: string;
|
|
@@ -56,5 +55,5 @@ export declare function computeAllowedComponentReplacementCandidates(projectSlot
|
|
|
56
55
|
name: string;
|
|
57
56
|
allowedComponents: string[];
|
|
58
57
|
}[], targetSlotName: string, replaceIndex: number): string[];
|
|
59
|
-
export declare function FieldEditor({ value, width, height, active, onChange, onSave, onDiscard, onExit, metadata, onTogglePropRationale, propRationaleKey, onToggleComponentRationale, componentRationaleKey, onToggleSourceExternal, onTextEntryActiveChange, projectSlotGraph, currentComponentName, onDirtyChange, discardTrigger, initialFocusTarget,
|
|
58
|
+
export declare function FieldEditor({ value, width, height, active, onChange, onSave, onDiscard, onExit, metadata, onTogglePropRationale, propRationaleKey, onToggleComponentRationale, componentRationaleKey, onToggleSourceExternal, onTextEntryActiveChange, projectSlotGraph, currentComponentName, onDirtyChange, discardTrigger, initialFocusTarget, }: FieldEditorProps): React.ReactElement;
|
|
60
59
|
export {};
|
package/dist/src/index.js
CHANGED
|
@@ -8554,63 +8554,6 @@ function applyDbMigrations(db) {
|
|
|
8554
8554
|
if (!rawPropColNames.has("source_end_line")) {
|
|
8555
8555
|
db.exec("ALTER TABLE raw_props ADD COLUMN source_end_line INTEGER");
|
|
8556
8556
|
}
|
|
8557
|
-
const rawPropsDdl = db.prepare(`SELECT sql FROM sqlite_master WHERE type = 'table' AND name = 'raw_props'`).get();
|
|
8558
|
-
if (rawPropsDdl && !rawPropsDdl.sql.includes(`'unattached'`)) {
|
|
8559
|
-
db.exec("PRAGMA foreign_keys = OFF");
|
|
8560
|
-
try {
|
|
8561
|
-
db.exec("BEGIN");
|
|
8562
|
-
try {
|
|
8563
|
-
db.exec(`
|
|
8564
|
-
CREATE TABLE raw_props__new (
|
|
8565
|
-
session_id TEXT NOT NULL,
|
|
8566
|
-
component_id TEXT NOT NULL,
|
|
8567
|
-
name TEXT NOT NULL,
|
|
8568
|
-
type TEXT NOT NULL,
|
|
8569
|
-
required INTEGER NOT NULL CHECK (required IN (0, 1)),
|
|
8570
|
-
category TEXT CHECK (category IN ('content', 'design', 'state')),
|
|
8571
|
-
default_value TEXT,
|
|
8572
|
-
description TEXT,
|
|
8573
|
-
token_reference TEXT,
|
|
8574
|
-
position INTEGER NOT NULL,
|
|
8575
|
-
cdf_type TEXT,
|
|
8576
|
-
cdf_category TEXT CHECK (cdf_category IN ('content', 'design', 'state', 'unattached')),
|
|
8577
|
-
cdf_token_kind TEXT,
|
|
8578
|
-
rationale TEXT,
|
|
8579
|
-
source_start_line INTEGER,
|
|
8580
|
-
source_end_line INTEGER,
|
|
8581
|
-
PRIMARY KEY (session_id, component_id, name),
|
|
8582
|
-
FOREIGN KEY (session_id, component_id) REFERENCES raw_components(session_id, component_id) ON DELETE CASCADE
|
|
8583
|
-
);
|
|
8584
|
-
|
|
8585
|
-
INSERT INTO raw_props__new
|
|
8586
|
-
(session_id, component_id, name, type, required, category, default_value,
|
|
8587
|
-
description, token_reference, position, cdf_type, cdf_category, cdf_token_kind,
|
|
8588
|
-
rationale, source_start_line, source_end_line)
|
|
8589
|
-
SELECT
|
|
8590
|
-
session_id, component_id, name, type, required, category, default_value,
|
|
8591
|
-
description, token_reference, position, cdf_type, cdf_category, cdf_token_kind,
|
|
8592
|
-
rationale, source_start_line, source_end_line
|
|
8593
|
-
FROM raw_props;
|
|
8594
|
-
|
|
8595
|
-
DROP TABLE raw_props;
|
|
8596
|
-
ALTER TABLE raw_props__new RENAME TO raw_props;
|
|
8597
|
-
CREATE INDEX IF NOT EXISTS idx_raw_props_session ON raw_props(session_id, component_id);
|
|
8598
|
-
|
|
8599
|
-
UPDATE raw_props
|
|
8600
|
-
SET cdf_category = 'unattached',
|
|
8601
|
-
cdf_type = CASE WHEN type = 'boolean' THEN 'boolean' ELSE 'string' END,
|
|
8602
|
-
required = 0
|
|
8603
|
-
WHERE cdf_type = 'excluded';
|
|
8604
|
-
`);
|
|
8605
|
-
db.exec("COMMIT");
|
|
8606
|
-
} catch (e) {
|
|
8607
|
-
db.exec("ROLLBACK");
|
|
8608
|
-
throw e;
|
|
8609
|
-
}
|
|
8610
|
-
} finally {
|
|
8611
|
-
db.exec("PRAGMA foreign_keys = ON");
|
|
8612
|
-
}
|
|
8613
|
-
}
|
|
8614
8557
|
if (!rawCompColNames.has("reject_reason")) {
|
|
8615
8558
|
db.exec("ALTER TABLE raw_components ADD COLUMN reject_reason TEXT");
|
|
8616
8559
|
}
|
|
@@ -8796,12 +8739,7 @@ function applyToolCalls(db, sessionId2, componentId, componentName, calls, incom
|
|
|
8796
8739
|
WHERE session_id = ? AND component_id = ? AND name = ?`
|
|
8797
8740
|
);
|
|
8798
8741
|
const clearProp = db.prepare(
|
|
8799
|
-
`UPDATE raw_props
|
|
8800
|
-
SET cdf_type = CASE WHEN type = 'boolean' THEN 'boolean' ELSE 'string' END,
|
|
8801
|
-
cdf_category = 'unattached',
|
|
8802
|
-
cdf_token_kind = NULL,
|
|
8803
|
-
required = 0,
|
|
8804
|
-
rationale = ?
|
|
8742
|
+
`UPDATE raw_props SET cdf_type = 'excluded', cdf_category = NULL, cdf_token_kind = NULL, rationale = ?
|
|
8805
8743
|
WHERE session_id = ? AND component_id = ? AND name = ?`
|
|
8806
8744
|
);
|
|
8807
8745
|
const deleteAllowedValues = db.prepare(
|
|
@@ -9400,7 +9338,7 @@ function loadCDFComponents(db, sessionId2) {
|
|
|
9400
9338
|
`SELECT component_id, name, required, default_value, description,
|
|
9401
9339
|
cdf_type, cdf_category, cdf_token_kind, position
|
|
9402
9340
|
FROM raw_props
|
|
9403
|
-
WHERE session_id = ? AND cdf_type IS NOT NULL
|
|
9341
|
+
WHERE session_id = ? AND cdf_type IS NOT NULL AND cdf_type != 'excluded'
|
|
9404
9342
|
ORDER BY component_id, position`
|
|
9405
9343
|
).all(sessionId2);
|
|
9406
9344
|
const allowedValues = db.prepare(
|
|
@@ -21370,27 +21308,6 @@ var init_merge_ai_decisions = __esm({
|
|
|
21370
21308
|
}
|
|
21371
21309
|
});
|
|
21372
21310
|
|
|
21373
|
-
// packages/experience-design-system-cli/src/import/tui/steps/review-json-panel.ts
|
|
21374
|
-
function getReviewJsonPanelValue(selected, showHiddenProps) {
|
|
21375
|
-
if (!selected) return "";
|
|
21376
|
-
const entry = showHiddenProps ? selected.entry : {
|
|
21377
|
-
...selected.entry,
|
|
21378
|
-
$properties: Object.fromEntries(
|
|
21379
|
-
Object.entries(selected.entry.$properties ?? {}).filter(
|
|
21380
|
-
([, definition]) => !HIDDEN_PROP_CATEGORIES.has(definition.$category)
|
|
21381
|
-
)
|
|
21382
|
-
)
|
|
21383
|
-
};
|
|
21384
|
-
return JSON.stringify({ [selected.key]: entry }, null, 2);
|
|
21385
|
-
}
|
|
21386
|
-
var HIDDEN_PROP_CATEGORIES;
|
|
21387
|
-
var init_review_json_panel = __esm({
|
|
21388
|
-
"packages/experience-design-system-cli/src/import/tui/steps/review-json-panel.ts"() {
|
|
21389
|
-
"use strict";
|
|
21390
|
-
HIDDEN_PROP_CATEGORIES = /* @__PURE__ */ new Set(["state", "unattached"]);
|
|
21391
|
-
}
|
|
21392
|
-
});
|
|
21393
|
-
|
|
21394
21311
|
// packages/experience-design-system-cli/src/analyze/cycle-view.ts
|
|
21395
21312
|
function computeCycleView(components) {
|
|
21396
21313
|
const filtered = components.filter((c2) => c2.status !== "rejected");
|
|
@@ -21997,8 +21914,7 @@ function FieldEditor({
|
|
|
21997
21914
|
currentComponentName,
|
|
21998
21915
|
onDirtyChange,
|
|
21999
21916
|
discardTrigger,
|
|
22000
|
-
initialFocusTarget
|
|
22001
|
-
showHiddenProps = true
|
|
21917
|
+
initialFocusTarget
|
|
22002
21918
|
}) {
|
|
22003
21919
|
const { state: initialState, error: parseError } = parseToState(value);
|
|
22004
21920
|
const [editorState, setEditorState] = useState23(initialState);
|
|
@@ -22079,34 +21995,12 @@ function FieldEditor({
|
|
|
22079
21995
|
const [showHelp, setShowHelp] = useState23(false);
|
|
22080
21996
|
const props = editorState.props;
|
|
22081
21997
|
const slots = editorState.slots;
|
|
22082
|
-
const visiblePropIndexes = React23.useMemo(
|
|
22083
|
-
() => props.flatMap(
|
|
22084
|
-
(prop, index) => showHiddenProps || prop.category !== "state" && prop.category !== "unattached" ? [index] : []
|
|
22085
|
-
),
|
|
22086
|
-
[props, showHiddenProps]
|
|
22087
|
-
);
|
|
22088
|
-
const visiblePropPosition = visiblePropIndexes.indexOf(propIdx);
|
|
22089
21998
|
const textEntryActive = focusLevel === "field" && activeField === "description" || focusLevel === "field" && activeField === "default" && (editorState.props[propIdx]?.type === "string" || editorState.props[propIdx]?.type === "token") || editingValue != null;
|
|
22090
21999
|
React23.useEffect(() => {
|
|
22091
22000
|
onTextEntryActiveChange?.(textEntryActive);
|
|
22092
22001
|
}, [textEntryActive, onTextEntryActiveChange]);
|
|
22093
22002
|
const currentProp = props[propIdx] ?? null;
|
|
22094
22003
|
const currentSlot = slots[slotIdx] ?? null;
|
|
22095
|
-
React23.useEffect(() => {
|
|
22096
|
-
if (showHiddenProps || inSlots || inComponentDesc || visiblePropPosition >= 0) return;
|
|
22097
|
-
if (visiblePropIndexes.length > 0) {
|
|
22098
|
-
setPropIdx(visiblePropIndexes[0]);
|
|
22099
|
-
return;
|
|
22100
|
-
}
|
|
22101
|
-
if (slots.length > 0) {
|
|
22102
|
-
setInSlots(true);
|
|
22103
|
-
setSlotIdx(0);
|
|
22104
|
-
setFocusLevel("slot");
|
|
22105
|
-
return;
|
|
22106
|
-
}
|
|
22107
|
-
setInComponentDesc(true);
|
|
22108
|
-
setFocusLevel("componentDescription");
|
|
22109
|
-
}, [inComponentDesc, inSlots, showHiddenProps, slots.length, visiblePropIndexes, visiblePropPosition]);
|
|
22110
22004
|
const commit = (next) => {
|
|
22111
22005
|
setEditorState(next);
|
|
22112
22006
|
onChange(serializeState(next, value));
|
|
@@ -22308,8 +22202,8 @@ function FieldEditor({
|
|
|
22308
22202
|
}
|
|
22309
22203
|
if (focusLevel === "prop") {
|
|
22310
22204
|
if (key.upArrow || input === "k") {
|
|
22311
|
-
if (
|
|
22312
|
-
setPropIdx(
|
|
22205
|
+
if (propIdx > 0) {
|
|
22206
|
+
setPropIdx(propIdx - 1);
|
|
22313
22207
|
} else {
|
|
22314
22208
|
setFocusLevel("componentDescription");
|
|
22315
22209
|
setInSlots(false);
|
|
@@ -22318,8 +22212,8 @@ function FieldEditor({
|
|
|
22318
22212
|
return;
|
|
22319
22213
|
}
|
|
22320
22214
|
if (key.downArrow || input === "j") {
|
|
22321
|
-
if (
|
|
22322
|
-
setPropIdx(
|
|
22215
|
+
if (propIdx < props.length - 1) {
|
|
22216
|
+
setPropIdx(propIdx + 1);
|
|
22323
22217
|
} else if (slots.length > 0) {
|
|
22324
22218
|
setInSlots(true);
|
|
22325
22219
|
setSlotIdx(0);
|
|
@@ -22340,9 +22234,9 @@ function FieldEditor({
|
|
|
22340
22234
|
return;
|
|
22341
22235
|
}
|
|
22342
22236
|
if (key.downArrow || input === "j") {
|
|
22343
|
-
if (
|
|
22237
|
+
if (props.length > 0) {
|
|
22344
22238
|
setFocusLevel("prop");
|
|
22345
|
-
setPropIdx(
|
|
22239
|
+
setPropIdx(0);
|
|
22346
22240
|
setInSlots(false);
|
|
22347
22241
|
setInComponentDesc(false);
|
|
22348
22242
|
} else if (slots.length > 0) {
|
|
@@ -22365,9 +22259,9 @@ function FieldEditor({
|
|
|
22365
22259
|
if (key.upArrow || input === "k") {
|
|
22366
22260
|
if (slotIdx > 0) {
|
|
22367
22261
|
setSlotIdx(slotIdx - 1);
|
|
22368
|
-
} else if (
|
|
22262
|
+
} else if (props.length > 0) {
|
|
22369
22263
|
setInSlots(false);
|
|
22370
|
-
setPropIdx(
|
|
22264
|
+
setPropIdx(props.length - 1);
|
|
22371
22265
|
setFocusLevel("prop");
|
|
22372
22266
|
}
|
|
22373
22267
|
return;
|
|
@@ -22712,9 +22606,9 @@ function FieldEditor({
|
|
|
22712
22606
|
})();
|
|
22713
22607
|
const rows = [];
|
|
22714
22608
|
rows.push({ kind: "component-description" });
|
|
22715
|
-
if (
|
|
22716
|
-
rows.push({ kind: "header", label: `\u2500\u2500 PROPERTIES (${
|
|
22717
|
-
|
|
22609
|
+
if (props.length > 0) {
|
|
22610
|
+
rows.push({ kind: "header", label: `\u2500\u2500 PROPERTIES (${props.length}) `, section: "properties" });
|
|
22611
|
+
props.forEach((_, i) => rows.push({ kind: "prop", idx: i }));
|
|
22718
22612
|
}
|
|
22719
22613
|
if (slots.length > 0) {
|
|
22720
22614
|
rows.push({ kind: "header", label: `\u2500\u2500 SLOTS (${slots.length}) `, section: "slots" });
|
|
@@ -23706,7 +23600,6 @@ function GenerateReviewStep({
|
|
|
23706
23600
|
const [showFinalize, setShowFinalize] = useState26(false);
|
|
23707
23601
|
const [showQuit, setShowQuit] = useState26(false);
|
|
23708
23602
|
const [showJson, setShowJson] = useState26(false);
|
|
23709
|
-
const [showHiddenProps, setShowHiddenProps] = useState26(false);
|
|
23710
23603
|
const [draftValue, setDraftValue] = useState26("");
|
|
23711
23604
|
const [saveError, setSaveError] = useState26(null);
|
|
23712
23605
|
const [finalizeError, setFinalizeError] = useState26(initialFinalizeError);
|
|
@@ -24656,7 +24549,7 @@ function GenerateReviewStep({
|
|
|
24656
24549
|
}
|
|
24657
24550
|
if (!sidebarFocused && showJson) {
|
|
24658
24551
|
const current = components[selectedIdx];
|
|
24659
|
-
const currentJson =
|
|
24552
|
+
const currentJson = current ? JSON.stringify({ [current.key]: current.entry }, null, 2) : "";
|
|
24660
24553
|
const totalLines = currentJson.split("\n").length;
|
|
24661
24554
|
const maxOffset = Math.max(0, totalLines - PANEL_HEIGHT);
|
|
24662
24555
|
if (input === "g" && !key.ctrl) {
|
|
@@ -24793,12 +24686,6 @@ function GenerateReviewStep({
|
|
|
24793
24686
|
pendingGRef.current = false;
|
|
24794
24687
|
return;
|
|
24795
24688
|
}
|
|
24796
|
-
if (input === "H") {
|
|
24797
|
-
setShowHiddenProps((prev) => !prev);
|
|
24798
|
-
setJsonScrollOffset(0);
|
|
24799
|
-
pendingGRef.current = false;
|
|
24800
|
-
return;
|
|
24801
|
-
}
|
|
24802
24689
|
if (key.return) {
|
|
24803
24690
|
const current = components[selectedIdx];
|
|
24804
24691
|
if (!current) return;
|
|
@@ -24899,7 +24786,6 @@ function GenerateReviewStep({
|
|
|
24899
24786
|
}
|
|
24900
24787
|
const selected = components[selectedIdx] ?? null;
|
|
24901
24788
|
const selectedJson = selected ? JSON.stringify({ [selected.key]: selected.entry }, null, 2) : "";
|
|
24902
|
-
const visibleJsonPanelValue = getReviewJsonPanelValue(selected, showHiddenProps);
|
|
24903
24789
|
const isEmpty2 = (c2) => Object.keys(c2.entry.$properties).length === 0 && Object.keys(c2.entry.$slots ?? {}).length === 0;
|
|
24904
24790
|
const emptyCount = components.filter(isEmpty2).length;
|
|
24905
24791
|
const cycleParticipantSet = cycleView.structural;
|
|
@@ -25221,7 +25107,7 @@ function GenerateReviewStep({
|
|
|
25221
25107
|
JsonPanel,
|
|
25222
25108
|
{
|
|
25223
25109
|
label: "GENERATED DEFINITION (read-only)",
|
|
25224
|
-
value:
|
|
25110
|
+
value: selectedJson,
|
|
25225
25111
|
scrollOffset: jsonScrollOffset,
|
|
25226
25112
|
width: panelWidth,
|
|
25227
25113
|
height: PANEL_HEIGHT,
|
|
@@ -25231,7 +25117,6 @@ function GenerateReviewStep({
|
|
|
25231
25117
|
FieldEditor,
|
|
25232
25118
|
{
|
|
25233
25119
|
value: draftValue || selectedJson,
|
|
25234
|
-
showHiddenProps,
|
|
25235
25120
|
width: panelWidth,
|
|
25236
25121
|
height: PANEL_HEIGHT,
|
|
25237
25122
|
active: !sidebarFocused,
|
|
@@ -25315,7 +25200,6 @@ function GenerateReviewStep({
|
|
|
25315
25200
|
legendEntry("[P]", "component rationale", panelOpen === "component-rationale"),
|
|
25316
25201
|
legendEntry("[s]", "source", panelOpen === "source"),
|
|
25317
25202
|
legendEntry("[J]", showJson ? "hide JSON" : "show JSON", showJson),
|
|
25318
|
-
legendEntry("[H]", showHiddenProps ? "hide state/unattached" : "show state/unattached", showHiddenProps),
|
|
25319
25203
|
breakingChanges.length > 0 && legendEntry("[b]", "see breaking changes", breakingPanel.isOpen),
|
|
25320
25204
|
removedComponents.length > 0 && legendEntry("[d]", removedBannerCollapsed ? "show removed" : "hide removed", !removedBannerCollapsed),
|
|
25321
25205
|
legendEntry("[/]", "search", searchOpen || searchQuery.length > 0),
|
|
@@ -25346,7 +25230,6 @@ var init_GenerateReviewStep = __esm({
|
|
|
25346
25230
|
"packages/experience-design-system-cli/src/import/tui/steps/GenerateReviewStep.tsx"() {
|
|
25347
25231
|
"use strict";
|
|
25348
25232
|
init_theme();
|
|
25349
|
-
init_review_json_panel();
|
|
25350
25233
|
init_GroupedSidebar();
|
|
25351
25234
|
init_composite_closure();
|
|
25352
25235
|
init_slot_graph();
|
|
@@ -25497,7 +25380,6 @@ function AtomicGenerateReviewStep({
|
|
|
25497
25380
|
const [showFinalize, setShowFinalize] = useState27(false);
|
|
25498
25381
|
const [showQuit, setShowQuit] = useState27(false);
|
|
25499
25382
|
const [showJson, setShowJson] = useState27(false);
|
|
25500
|
-
const [showHiddenProps, setShowHiddenProps] = useState27(false);
|
|
25501
25383
|
const [draftValue, setDraftValue] = useState27("");
|
|
25502
25384
|
const [saveError, setSaveError] = useState27(null);
|
|
25503
25385
|
const [finalizeError, setFinalizeError] = useState27(initialFinalizeError);
|
|
@@ -25861,7 +25743,7 @@ function AtomicGenerateReviewStep({
|
|
|
25861
25743
|
}
|
|
25862
25744
|
if (!sidebarFocused && showJson) {
|
|
25863
25745
|
const current = components[selectedIdx];
|
|
25864
|
-
const currentJson =
|
|
25746
|
+
const currentJson = current ? JSON.stringify({ [current.key]: current.entry }, null, 2) : "";
|
|
25865
25747
|
const totalLines = currentJson.split("\n").length;
|
|
25866
25748
|
const maxOffset = Math.max(0, totalLines - PANEL_HEIGHT2);
|
|
25867
25749
|
if (input === "g" && !key.ctrl) {
|
|
@@ -25917,12 +25799,6 @@ function AtomicGenerateReviewStep({
|
|
|
25917
25799
|
pendingGRef.current = false;
|
|
25918
25800
|
return;
|
|
25919
25801
|
}
|
|
25920
|
-
if (input === "H") {
|
|
25921
|
-
setShowHiddenProps((prev) => !prev);
|
|
25922
|
-
setJsonScrollOffset(0);
|
|
25923
|
-
pendingGRef.current = false;
|
|
25924
|
-
return;
|
|
25925
|
-
}
|
|
25926
25802
|
if (key.upArrow || input === "k") {
|
|
25927
25803
|
setSelectedIdx((prev) => {
|
|
25928
25804
|
const newIdx = Math.max(0, prev - 1);
|
|
@@ -25955,7 +25831,6 @@ function AtomicGenerateReviewStep({
|
|
|
25955
25831
|
}
|
|
25956
25832
|
const selected = components[selectedIdx] ?? null;
|
|
25957
25833
|
const selectedJson = selected ? JSON.stringify({ [selected.key]: selected.entry }, null, 2) : "";
|
|
25958
|
-
const visibleJsonPanelValue = getReviewJsonPanelValue(selected, showHiddenProps);
|
|
25959
25834
|
const isEmpty2 = (c2) => Object.keys(c2.entry.$properties).length === 0;
|
|
25960
25835
|
const emptyCount = components.filter(isEmpty2).length;
|
|
25961
25836
|
const sidebarItems = components.map((c2) => ({
|
|
@@ -26131,7 +26006,7 @@ function AtomicGenerateReviewStep({
|
|
|
26131
26006
|
JsonPanel,
|
|
26132
26007
|
{
|
|
26133
26008
|
label: "GENERATED DEFINITION (read-only)",
|
|
26134
|
-
value:
|
|
26009
|
+
value: selectedJson,
|
|
26135
26010
|
scrollOffset: jsonScrollOffset,
|
|
26136
26011
|
width: panelWidth,
|
|
26137
26012
|
height: PANEL_HEIGHT2,
|
|
@@ -26141,7 +26016,6 @@ function AtomicGenerateReviewStep({
|
|
|
26141
26016
|
FieldEditor,
|
|
26142
26017
|
{
|
|
26143
26018
|
value: draftValue || selectedJson,
|
|
26144
|
-
showHiddenProps,
|
|
26145
26019
|
width: panelWidth,
|
|
26146
26020
|
height: PANEL_HEIGHT2,
|
|
26147
26021
|
active: !sidebarFocused,
|
|
@@ -26172,7 +26046,7 @@ function AtomicGenerateReviewStep({
|
|
|
26172
26046
|
),
|
|
26173
26047
|
saveError && /* @__PURE__ */ jsx48(Text47, { color: PALETTE.error, children: "\u2717 " + saveError }),
|
|
26174
26048
|
/* @__PURE__ */ jsxs47(Text47, { dimColor: true, children: [
|
|
26175
|
-
sidebarFocused ? " [a] accept [r] reject [A] accept all [i] prop rationale [I] component rationale [s] source [J] " + (showJson ? "hide JSON" : "show JSON") + " [
|
|
26049
|
+
sidebarFocused ? " [a] accept [r] reject [A] accept all [i] prop rationale [I] component rationale [s] source [J] " + (showJson ? "hide JSON" : "show JSON") + " [^z] undo [^y] redo [^r] reload [F] finalize [e/Tab] focus panel" + (livePreview && removedComponents.length > 0 ? " [d] removed list" : "") + " [q] quit" : showJson ? " [j/k] scroll [Ctrl+u/d] half-page [gg/G] top/bottom [Tab] focus list" : " [Tab] focus list (edit fields)",
|
|
26176
26050
|
livePreviewHook.status === "running" && /* @__PURE__ */ jsx48(Text47, { children: ` ${livePreviewSpinner} live preview` }),
|
|
26177
26051
|
livePreviewHook.disabled && /* @__PURE__ */ jsx48(Text47, { children: " \xB7 live preview disabled" })
|
|
26178
26052
|
] })
|
|
@@ -26219,7 +26093,6 @@ var init_AtomicGenerateReviewStep = __esm({
|
|
|
26219
26093
|
init_useFinalizePreview();
|
|
26220
26094
|
init_scroll_offset();
|
|
26221
26095
|
init_theme();
|
|
26222
|
-
init_review_json_panel();
|
|
26223
26096
|
VISIBLE_COUNT3 = 20;
|
|
26224
26097
|
PANEL_HEIGHT2 = 22;
|
|
26225
26098
|
}
|
|
@@ -31474,7 +31347,7 @@ async function runGenerateSkill(skill, opts, verbose = false) {
|
|
|
31474
31347
|
const allOk = failed.length === 0;
|
|
31475
31348
|
const cachedNote = cachedResults.length > 0 ? c.dim(` (${cachedResults.length} cached)`) : "";
|
|
31476
31349
|
process.stderr.write(
|
|
31477
|
-
(allOk ? c.green("\u2713") : c.yellow("\u26A0")) + ` ${generated.length + cachedResults.length}/${componentResults.length} components` + cachedNote + c.dim(` ${totalClassified} classified, ${totalExcluded}
|
|
31350
|
+
(allOk ? c.green("\u2713") : c.yellow("\u26A0")) + ` ${generated.length + cachedResults.length}/${componentResults.length} components` + cachedNote + c.dim(` ${totalClassified} classified, ${totalExcluded} excluded`) + "\n"
|
|
31478
31351
|
);
|
|
31479
31352
|
process.stdout.write(`renamed-slots: ${totalRenamedSlots}
|
|
31480
31353
|
`);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@contentful/experience-design-system-cli",
|
|
3
|
-
"version": "2.26.7-dev-build-
|
|
3
|
+
"version": "2.26.7-dev-build-245a014.0",
|
|
4
4
|
"description": "Contentful Experiences design system import CLI",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
"svelte": "^5.56.4",
|
|
40
40
|
"ts-morph": "^27.0.2",
|
|
41
41
|
"typescript": "^5.9.3",
|
|
42
|
-
"@contentful/experience-design-system-types": "2.26.7-dev-build-
|
|
42
|
+
"@contentful/experience-design-system-types": "2.26.7-dev-build-245a014.0"
|
|
43
43
|
},
|
|
44
44
|
"devDependencies": {
|
|
45
45
|
"@tsconfig/node24": "^24.0.4",
|
|
@@ -51,9 +51,9 @@
|
|
|
51
51
|
"ink-testing-library": "^4.0.0",
|
|
52
52
|
"typescript-eslint": "^8.67.0",
|
|
53
53
|
"vitest": "^4.0.16",
|
|
54
|
-
"@contentful/experience-design-system-
|
|
55
|
-
"@contentful/experience-design-system-
|
|
56
|
-
"@contentful/experience-design-system-
|
|
54
|
+
"@contentful/experience-design-system-client": "2.26.7-dev-build-245a014.0",
|
|
55
|
+
"@contentful/experience-design-system-extraction": "2.26.7-dev-build-245a014.0",
|
|
56
|
+
"@contentful/experience-design-system-generation": "2.26.7-dev-build-245a014.0"
|
|
57
57
|
},
|
|
58
58
|
"repository": {
|
|
59
59
|
"type": "git",
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import type { CDFComponentEntry } from '@contentful/experience-design-system-types';
|
|
2
|
-
type ReviewJsonComponent = {
|
|
3
|
-
key: string;
|
|
4
|
-
entry: CDFComponentEntry;
|
|
5
|
-
};
|
|
6
|
-
export declare function getReviewJsonPanelValue(selected: ReviewJsonComponent | null, showHiddenProps: boolean): string;
|
|
7
|
-
export {};
|