@arpproject/recrate 0.1.39 → 0.1.41
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.
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export declare const CORE_AI_REVIEW_PROPERTY_ORDER: string[];
|
|
2
|
+
export declare const getDisplayedAiReviewPropertyOrder: ({ renderTabs, tabs, untabbedProperties, }: {
|
|
3
|
+
renderTabs: boolean;
|
|
4
|
+
tabs: any[];
|
|
5
|
+
untabbedProperties: unknown[];
|
|
6
|
+
}) => string[];
|
|
7
|
+
export declare const orderAiApprovalsByDisplayedFields: (approvals: any[], displayedPropertyOrder: string[]) => any[];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/dist/recrate.es.js
CHANGED
|
@@ -73043,7 +73043,7 @@ const CoreEntityFields = ({
|
|
|
73043
73043
|
"div",
|
|
73044
73044
|
{
|
|
73045
73045
|
"data-recrate-property": "@id",
|
|
73046
|
-
className: `flex-grow
|
|
73046
|
+
className: `flex-grow recrate-property recrate-property-name-id ${savedProperty === "@id" ? "bg-green-200 rounded p-1 my-1" : ""} ${selectedAiApprovalProperty === "@id" ? "recrate-ai-review-current" : ""}`,
|
|
73047
73047
|
children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
73048
73048
|
EntityId,
|
|
73049
73049
|
{
|
|
@@ -73061,7 +73061,7 @@ const CoreEntityFields = ({
|
|
|
73061
73061
|
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "flex-grow" }),
|
|
73062
73062
|
/* @__PURE__ */ jsxRuntimeExports.jsx(RequiredPropertiesWarningButton, { onClick: onToggleHighlightRequiredProperties })
|
|
73063
73063
|
] }),
|
|
73064
|
-
shouldRenderCoreField("@type") && /* @__PURE__ */ jsxRuntimeExports.jsx("div", { "data-recrate-property": "@type", className: `my-2 p-2
|
|
73064
|
+
shouldRenderCoreField("@type") && /* @__PURE__ */ jsxRuntimeExports.jsx("div", { "data-recrate-property": "@type", className: `my-2 p-2 recrate-property recrate-property-name-type ${selectedAiApprovalProperty === "@type" ? "recrate-ai-review-current" : ""}`, children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
73065
73065
|
EntityType,
|
|
73066
73066
|
{
|
|
73067
73067
|
entity,
|
|
@@ -73074,7 +73074,7 @@ const CoreEntityFields = ({
|
|
|
73074
73074
|
"div",
|
|
73075
73075
|
{
|
|
73076
73076
|
"data-recrate-property": "name",
|
|
73077
|
-
className: `my-2 p-2
|
|
73077
|
+
className: `my-2 p-2 recrate-property recrate-property-name-name ${savedProperty === "name" ? untabbedNameSavedClassName : ""}`,
|
|
73078
73078
|
children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
73079
73079
|
EntityName,
|
|
73080
73080
|
{
|
|
@@ -73095,7 +73095,7 @@ const CoreEntityFields = ({
|
|
|
73095
73095
|
"div",
|
|
73096
73096
|
{
|
|
73097
73097
|
"data-recrate-property": "@id",
|
|
73098
|
-
className: `p-2
|
|
73098
|
+
className: `p-2 recrate-property recrate-property-name-id ${savedProperty === "@id" ? "bg-green-200 rounded" : ""} ${selectedAiApprovalProperty === "@id" ? "recrate-ai-review-current" : ""}`,
|
|
73099
73099
|
children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
73100
73100
|
EntityId,
|
|
73101
73101
|
{
|
|
@@ -73107,7 +73107,7 @@ const CoreEntityFields = ({
|
|
|
73107
73107
|
)
|
|
73108
73108
|
}
|
|
73109
73109
|
),
|
|
73110
|
-
shouldRenderCoreField("@type") && /* @__PURE__ */ jsxRuntimeExports.jsx("div", { "data-recrate-property": "@type", className: `p-2
|
|
73110
|
+
shouldRenderCoreField("@type") && /* @__PURE__ */ jsxRuntimeExports.jsx("div", { "data-recrate-property": "@type", className: `p-2 recrate-property recrate-property-name-type ${selectedAiApprovalProperty === "@type" ? "recrate-ai-review-current" : ""}`, children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
73111
73111
|
EntityType,
|
|
73112
73112
|
{
|
|
73113
73113
|
entity,
|
|
@@ -73120,7 +73120,7 @@ const CoreEntityFields = ({
|
|
|
73120
73120
|
"div",
|
|
73121
73121
|
{
|
|
73122
73122
|
"data-recrate-property": "name",
|
|
73123
|
-
className: `p-2
|
|
73123
|
+
className: `p-2 recrate-property recrate-property-name-name ${savedProperty === "name" ? "bg-green-200 rounded" : ""}`,
|
|
73124
73124
|
children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
73125
73125
|
EntityName,
|
|
73126
73126
|
{
|
|
@@ -88007,7 +88007,7 @@ const getWrapperClassName = ({
|
|
|
88007
88007
|
spacingClassName,
|
|
88008
88008
|
"hover:bg-sky-100",
|
|
88009
88009
|
saved ? "bg-green-200 hover:bg-green-200" : "",
|
|
88010
|
-
selected ? "
|
|
88010
|
+
selected ? "recrate-ai-review-current" : ""
|
|
88011
88011
|
].filter(Boolean).join(" ");
|
|
88012
88012
|
};
|
|
88013
88013
|
const EntityPropertyField = ({
|
|
@@ -115922,6 +115922,61 @@ const useEntityScrollRestoration = ({
|
|
|
115922
115922
|
};
|
|
115923
115923
|
}, [activeTab, contextEntity == null ? void 0 : contextEntity["@id"], tabsLength, extraPropertiesLength]);
|
|
115924
115924
|
};
|
|
115925
|
+
const CORE_AI_REVIEW_PROPERTY_ORDER = ["@id", "@type", "name"];
|
|
115926
|
+
const getFieldNames = (field) => {
|
|
115927
|
+
if (typeof field === "string") return [field];
|
|
115928
|
+
if (!field || typeof field !== "object") return [];
|
|
115929
|
+
const { name: name2, id: id2 } = field;
|
|
115930
|
+
return [name2, id2].filter((value) => typeof value === "string" && value.length > 0);
|
|
115931
|
+
};
|
|
115932
|
+
const addUniqueProperties = (order, seen, fields) => {
|
|
115933
|
+
fields.flatMap(getFieldNames).forEach((property) => {
|
|
115934
|
+
if (seen.has(property)) return;
|
|
115935
|
+
seen.add(property);
|
|
115936
|
+
order.push(property);
|
|
115937
|
+
});
|
|
115938
|
+
};
|
|
115939
|
+
const getDisplayedAiReviewPropertyOrder = ({
|
|
115940
|
+
renderTabs,
|
|
115941
|
+
tabs,
|
|
115942
|
+
untabbedProperties
|
|
115943
|
+
}) => {
|
|
115944
|
+
const order = [];
|
|
115945
|
+
const seen = /* @__PURE__ */ new Set();
|
|
115946
|
+
if (!renderTabs) {
|
|
115947
|
+
addUniqueProperties(order, seen, CORE_AI_REVIEW_PROPERTY_ORDER);
|
|
115948
|
+
addUniqueProperties(order, seen, untabbedProperties);
|
|
115949
|
+
return order;
|
|
115950
|
+
}
|
|
115951
|
+
let foundAboutTab = false;
|
|
115952
|
+
tabs.forEach((tab) => {
|
|
115953
|
+
if (isAboutTab(tab)) {
|
|
115954
|
+
foundAboutTab = true;
|
|
115955
|
+
addUniqueProperties(order, seen, CORE_AI_REVIEW_PROPERTY_ORDER);
|
|
115956
|
+
}
|
|
115957
|
+
addUniqueProperties(
|
|
115958
|
+
order,
|
|
115959
|
+
seen,
|
|
115960
|
+
Array.isArray(tab == null ? void 0 : tab.inputs) ? tab.inputs : []
|
|
115961
|
+
);
|
|
115962
|
+
});
|
|
115963
|
+
if (!foundAboutTab) {
|
|
115964
|
+
addUniqueProperties(order, seen, CORE_AI_REVIEW_PROPERTY_ORDER);
|
|
115965
|
+
}
|
|
115966
|
+
return order;
|
|
115967
|
+
};
|
|
115968
|
+
const orderAiApprovalsByDisplayedFields = (approvals, displayedPropertyOrder) => {
|
|
115969
|
+
const displayIndexByProperty = new Map(
|
|
115970
|
+
displayedPropertyOrder.map((property, index2) => [property, index2])
|
|
115971
|
+
);
|
|
115972
|
+
return approvals.map((approvalRecord, originalIndex) => ({ approvalRecord, originalIndex })).sort((left, right) => {
|
|
115973
|
+
var _a2, _b;
|
|
115974
|
+
const leftIndex = displayIndexByProperty.get((_a2 = left.approvalRecord) == null ? void 0 : _a2.propertyName) ?? Number.POSITIVE_INFINITY;
|
|
115975
|
+
const rightIndex = displayIndexByProperty.get((_b = right.approvalRecord) == null ? void 0 : _b.propertyName) ?? Number.POSITIVE_INFINITY;
|
|
115976
|
+
if (leftIndex !== rightIndex) return leftIndex - rightIndex;
|
|
115977
|
+
return left.originalIndex - right.originalIndex;
|
|
115978
|
+
}).map(({ approvalRecord }) => approvalRecord);
|
|
115979
|
+
};
|
|
115925
115980
|
var _baseDifference;
|
|
115926
115981
|
var hasRequired_baseDifference;
|
|
115927
115982
|
function require_baseDifference() {
|
|
@@ -116502,6 +116557,12 @@ function applyTabDataIndicators({
|
|
|
116502
116557
|
return tabs;
|
|
116503
116558
|
}
|
|
116504
116559
|
const AI_SCROLL_RESTORE_SUPPRESSION_MS = 2500;
|
|
116560
|
+
const hasProfileLayouts = (layouts) => {
|
|
116561
|
+
if (!layouts) return false;
|
|
116562
|
+
if (Array.isArray(layouts)) return layouts.length > 0;
|
|
116563
|
+
if (typeof layouts === "object") return Object.keys(layouts).length > 0;
|
|
116564
|
+
return false;
|
|
116565
|
+
};
|
|
116505
116566
|
const buildAiApprovalNavigationKey = (entityId, approvalRecord) => {
|
|
116506
116567
|
const propertyName2 = String((approvalRecord == null ? void 0 : approvalRecord.propertyName) ?? "");
|
|
116507
116568
|
const operation = String((approvalRecord == null ? void 0 : approvalRecord.operation) ?? "");
|
|
@@ -116515,7 +116576,7 @@ const buildAiApprovalNavigationKey = (entityId, approvalRecord) => {
|
|
|
116515
116576
|
return `${entityId}:${propertyName2}:${operation}:${timestamp}:${previousValue}`;
|
|
116516
116577
|
};
|
|
116517
116578
|
const RenderEntity = forwardRef((props, ref) => {
|
|
116518
|
-
var _a2, _b, _c, _d, _e2, _f, _g, _h, _i, _j, _k
|
|
116579
|
+
var _a2, _b, _c, _d, _e2, _f, _g, _h, _i, _j, _k;
|
|
116519
116580
|
const {
|
|
116520
116581
|
entity,
|
|
116521
116582
|
onLoadEntity,
|
|
@@ -116656,14 +116717,14 @@ const RenderEntity = forwardRef((props, ref) => {
|
|
|
116656
116717
|
captureViewContext,
|
|
116657
116718
|
debugScroll
|
|
116658
116719
|
});
|
|
116659
|
-
const
|
|
116660
|
-
const pendingAiApprovalProperties = useMemo$1(() =>
|
|
116720
|
+
const pendingAiApprovalRecords = useMemo$1(() => getPendingEntityApprovalRecords(approvalContext == null ? void 0 : approvalContext.roCrateApproval, contextEntity == null ? void 0 : contextEntity["@id"]), [approvalContext == null ? void 0 : approvalContext.roCrateApproval, contextEntity == null ? void 0 : contextEntity["@id"]]);
|
|
116721
|
+
const pendingAiApprovalProperties = useMemo$1(() => pendingAiApprovalRecords.map((approvalRecord) => approvalRecord == null ? void 0 : approvalRecord.propertyName).filter((property) => typeof property === "string" && property.length > 0), [pendingAiApprovalRecords]);
|
|
116661
116722
|
const pendingDeletedEntityReviewProperties = useMemo$1(() => {
|
|
116662
116723
|
const reverseDeletedEntityProperties = getPendingDeletedEntityReversePropertiesForSource(
|
|
116663
116724
|
approvalContext == null ? void 0 : approvalContext.roCrateApproval,
|
|
116664
116725
|
contextEntity == null ? void 0 : contextEntity["@id"]
|
|
116665
116726
|
);
|
|
116666
|
-
const removedReferenceDeletedEntityProperties =
|
|
116727
|
+
const removedReferenceDeletedEntityProperties = pendingAiApprovalRecords.map((approvalRecord) => approvalRecord == null ? void 0 : approvalRecord.propertyName).filter((property) => typeof property === "string" && property.length > 0).filter((property) => getPendingDeletedEntitiesForRemovedReferences(
|
|
116667
116728
|
approvalContext == null ? void 0 : approvalContext.roCrateApproval,
|
|
116668
116729
|
contextEntity == null ? void 0 : contextEntity["@id"],
|
|
116669
116730
|
property,
|
|
@@ -116673,18 +116734,30 @@ const RenderEntity = forwardRef((props, ref) => {
|
|
|
116673
116734
|
...reverseDeletedEntityProperties,
|
|
116674
116735
|
...removedReferenceDeletedEntityProperties
|
|
116675
116736
|
]));
|
|
116676
|
-
}, [approvalContext == null ? void 0 : approvalContext.roCrateApproval, contextEntity,
|
|
116737
|
+
}, [approvalContext == null ? void 0 : approvalContext.roCrateApproval, contextEntity, pendingAiApprovalRecords]);
|
|
116677
116738
|
const approvedAiApprovals = useMemo$1(() => getApprovedEntityApprovalRecords(approvalContext == null ? void 0 : approvalContext.roCrateApproval, contextEntity == null ? void 0 : contextEntity["@id"]), [approvalContext == null ? void 0 : approvalContext.roCrateApproval, contextEntity == null ? void 0 : contextEntity["@id"]]);
|
|
116678
116739
|
const approvedAiApprovalProperties = useMemo$1(() => Array.from(new Set(
|
|
116679
116740
|
approvedAiApprovals.map((approvalRecord) => approvalRecord == null ? void 0 : approvalRecord.propertyName).filter((property) => typeof property === "string" && property.length > 0)
|
|
116680
116741
|
)), [approvedAiApprovals]);
|
|
116681
|
-
const selectedAiApproval = pendingAiApprovals[selectedAiApprovalIndex] ?? pendingAiApprovals[0];
|
|
116682
|
-
const selectedAiApprovalProperty = (selectedAiApproval == null ? void 0 : selectedAiApproval.propertyName) ?? pendingDeletedEntityReviewProperties[0];
|
|
116683
116742
|
const aiReviewPropertyNames = useMemo$1(() => Array.from(/* @__PURE__ */ new Set([
|
|
116684
116743
|
...pendingAiApprovalProperties,
|
|
116685
116744
|
...pendingDeletedEntityReviewProperties
|
|
116686
116745
|
])), [pendingAiApprovalProperties, pendingDeletedEntityReviewProperties]);
|
|
116687
116746
|
const tabsWithAiReviewProperties = useMemo$1(() => addMissingReviewPropertiesToTabs(tabs, aiReviewPropertyNames), [aiReviewPropertyNames, tabs]);
|
|
116747
|
+
const entityPropertyNames = useMemo$1(() => Array.from(/* @__PURE__ */ new Set([
|
|
116748
|
+
...Object.keys(contextEntity ?? {}),
|
|
116749
|
+
...pendingAiApprovalProperties,
|
|
116750
|
+
...pendingDeletedEntityReviewProperties,
|
|
116751
|
+
...approvedAiApprovalProperties
|
|
116752
|
+
])).sort(), [approvedAiApprovalProperties, contextEntity, pendingAiApprovalProperties, pendingDeletedEntityReviewProperties]);
|
|
116753
|
+
const displayedAiReviewPropertyOrder = useMemo$1(() => getDisplayedAiReviewPropertyOrder({
|
|
116754
|
+
renderTabs,
|
|
116755
|
+
tabs: tabsWithAiReviewProperties,
|
|
116756
|
+
untabbedProperties: entityPropertyNames
|
|
116757
|
+
}), [entityPropertyNames, renderTabs, tabsWithAiReviewProperties]);
|
|
116758
|
+
const pendingAiApprovals = useMemo$1(() => orderAiApprovalsByDisplayedFields(pendingAiApprovalRecords, displayedAiReviewPropertyOrder), [displayedAiReviewPropertyOrder, pendingAiApprovalRecords]);
|
|
116759
|
+
const selectedAiApproval = pendingAiApprovals[selectedAiApprovalIndex] ?? pendingAiApprovals[0];
|
|
116760
|
+
const selectedAiApprovalProperty = (selectedAiApproval == null ? void 0 : selectedAiApproval.propertyName) ?? pendingDeletedEntityReviewProperties[0];
|
|
116688
116761
|
const pendingContextApprovalItems = useMemo$1(() => getPendingContextApprovalRecords(approvalContext == null ? void 0 : approvalContext.roCrateApproval), [approvalContext == null ? void 0 : approvalContext.roCrateApproval]);
|
|
116689
116762
|
const currentContextApprovalItem = useMemo$1(() => {
|
|
116690
116763
|
if (contextReviewEntityId) {
|
|
@@ -117182,12 +117255,12 @@ const RenderEntity = forwardRef((props, ref) => {
|
|
|
117182
117255
|
let attempts = 0;
|
|
117183
117256
|
let timerId = 0;
|
|
117184
117257
|
let rafId = 0;
|
|
117185
|
-
const maxAttempts =
|
|
117258
|
+
const maxAttempts = 100;
|
|
117186
117259
|
const attemptScroll = () => {
|
|
117187
117260
|
attempts += 1;
|
|
117188
117261
|
const propertyElement = findPropertyElement(property);
|
|
117189
117262
|
const viewport = activeContentRef.current;
|
|
117190
|
-
if (propertyElement && viewport) {
|
|
117263
|
+
if (propertyElement && viewport && viewport.clientHeight > 0 && viewport.scrollHeight > 0) {
|
|
117191
117264
|
const viewportRect = viewport.getBoundingClientRect();
|
|
117192
117265
|
const propertyRect = propertyElement.getBoundingClientRect();
|
|
117193
117266
|
const targetTop = viewport.scrollTop + propertyRect.top - viewportRect.top - 8;
|
|
@@ -117245,9 +117318,9 @@ const RenderEntity = forwardRef((props, ref) => {
|
|
|
117245
117318
|
navigateToAiApprovalProperty(property);
|
|
117246
117319
|
}, [navigateToAiApprovalProperty, pendingAiApprovals]);
|
|
117247
117320
|
useEffect(() => {
|
|
117248
|
-
var _a3
|
|
117321
|
+
var _a3;
|
|
117249
117322
|
const entityId = contextEntity == null ? void 0 : contextEntity["@id"];
|
|
117250
|
-
const profileHasTabbedLayout =
|
|
117323
|
+
const profileHasTabbedLayout = hasProfileLayouts((_a3 = profileManager == null ? void 0 : profileManager.profile) == null ? void 0 : _a3.layouts);
|
|
117251
117324
|
if (profileHasTabbedLayout && tabs.length === 0) {
|
|
117252
117325
|
return;
|
|
117253
117326
|
}
|
|
@@ -117257,7 +117330,8 @@ const RenderEntity = forwardRef((props, ref) => {
|
|
|
117257
117330
|
lastAutoNavigatedAiApprovalRef.current = null;
|
|
117258
117331
|
return;
|
|
117259
117332
|
}
|
|
117260
|
-
const
|
|
117333
|
+
const displayedOrderKey = displayedAiReviewPropertyOrder.join("\0");
|
|
117334
|
+
const autoNavigationKey = firstPendingApproval ? `${(profileManager == null ? void 0 : profileManager.$key) ?? 0}:${displayedOrderKey}:${buildAiApprovalNavigationKey(entityId, firstPendingApproval)}` : `${(profileManager == null ? void 0 : profileManager.$key) ?? 0}:${displayedOrderKey}:${entityId}:${firstPendingProperty}:deleted-entity-review`;
|
|
117261
117335
|
if (lastAutoNavigatedAiApprovalRef.current === autoNavigationKey) return;
|
|
117262
117336
|
lastAutoNavigatedAiApprovalRef.current = autoNavigationKey;
|
|
117263
117337
|
if (firstPendingApproval) {
|
|
@@ -117271,8 +117345,9 @@ const RenderEntity = forwardRef((props, ref) => {
|
|
|
117271
117345
|
navigateToAiApprovalProperty,
|
|
117272
117346
|
pendingAiApprovals,
|
|
117273
117347
|
pendingDeletedEntityReviewProperties,
|
|
117348
|
+
displayedAiReviewPropertyOrder,
|
|
117274
117349
|
profileManager == null ? void 0 : profileManager.$key,
|
|
117275
|
-
(
|
|
117350
|
+
(_c = profileManager == null ? void 0 : profileManager.profile) == null ? void 0 : _c.layouts,
|
|
117276
117351
|
tabs.length
|
|
117277
117352
|
]);
|
|
117278
117353
|
useEffect(() => {
|
|
@@ -117750,12 +117825,6 @@ const RenderEntity = forwardRef((props, ref) => {
|
|
|
117750
117825
|
};
|
|
117751
117826
|
const shouldRenderCoreField = (property, label) => matchesFieldFilter(property, label) && (!showAiEditedFields || fieldWasAiEdited(property));
|
|
117752
117827
|
const shouldRenderField = (property, label) => matchesFieldFilter(property, label) && (!showAiEditedFields || fieldWasAiEdited(property)) && (fieldHasPendingAiApproval(property) || !hideEmptyFields || hasFieldValue(contextEntity == null ? void 0 : contextEntity[property]));
|
|
117753
|
-
const entityPropertyNames = useMemo$1(() => Array.from(/* @__PURE__ */ new Set([
|
|
117754
|
-
...Object.keys(contextEntity ?? {}),
|
|
117755
|
-
...pendingAiApprovalProperties,
|
|
117756
|
-
...pendingDeletedEntityReviewProperties,
|
|
117757
|
-
...approvedAiApprovalProperties
|
|
117758
|
-
])).sort(), [approvedAiApprovalProperties, contextEntity, pendingAiApprovalProperties, pendingDeletedEntityReviewProperties]);
|
|
117759
117828
|
const editorScrollClassName = `recrate-editor-scroll ${quickSettingsVisible ? "px-3 pb-3 pt-0" : "p-3"}`;
|
|
117760
117829
|
const renderCoreEntityFields = (layout, options) => {
|
|
117761
117830
|
var _a3;
|
|
@@ -117816,13 +117885,13 @@ const RenderEntity = forwardRef((props, ref) => {
|
|
|
117816
117885
|
}
|
|
117817
117886
|
return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "flex flex-row", children: [
|
|
117818
117887
|
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "flex flex-col w-full", children: [
|
|
117819
|
-
((
|
|
117888
|
+
((_d = state.configuration) == null ? void 0 : _d.showControls) && /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
117820
117889
|
EntityEditorToolbar,
|
|
117821
117890
|
{
|
|
117822
117891
|
entity: contextEntity,
|
|
117823
117892
|
quickSettingsVisible,
|
|
117824
117893
|
reverseSidebarVisible,
|
|
117825
|
-
enableReverseLinkBrowser: (
|
|
117894
|
+
enableReverseLinkBrowser: (_e2 = state.configuration) == null ? void 0 : _e2.enableReverseLinkBrowser,
|
|
117826
117895
|
onLoadEntity: handleLoadEntityWithContext,
|
|
117827
117896
|
onBack: () => {
|
|
117828
117897
|
captureCurrentViewContext(activeTab);
|
|
@@ -117848,7 +117917,7 @@ const RenderEntity = forwardRef((props, ref) => {
|
|
|
117848
117917
|
activePropertyLabel: selectedAiApprovalProperty ? getFieldTitle(selectedAiApprovalProperty) : void 0,
|
|
117849
117918
|
remainingEntityCount: pendingOtherAiApprovalEntities.length,
|
|
117850
117919
|
remainingFieldCount: pendingOtherAiApprovalFieldCount,
|
|
117851
|
-
readonly: (
|
|
117920
|
+
readonly: (_f = state.configuration) == null ? void 0 : _f.readonly,
|
|
117852
117921
|
canGoPrevious: selectedAiApprovalIndex > 0,
|
|
117853
117922
|
canGoNext: selectedAiApprovalIndex < pendingAiApprovals.length - 1,
|
|
117854
117923
|
onPrevious: () => navigateToAiApproval(selectedAiApprovalIndex - 1),
|
|
@@ -117862,7 +117931,7 @@ const RenderEntity = forwardRef((props, ref) => {
|
|
|
117862
117931
|
EntityEditorLayout,
|
|
117863
117932
|
{
|
|
117864
117933
|
renderTabs,
|
|
117865
|
-
tabLocation: (
|
|
117934
|
+
tabLocation: (_g = state.configuration) == null ? void 0 : _g.tabLocation,
|
|
117866
117935
|
iconView,
|
|
117867
117936
|
tabPaneWidth,
|
|
117868
117937
|
scrollViewportHeight,
|
|
@@ -117875,7 +117944,7 @@ const RenderEntity = forwardRef((props, ref) => {
|
|
|
117875
117944
|
quickSettingsHeader: renderQuickSettingsHeader(),
|
|
117876
117945
|
untabbedContent: renderUntabbedEntityFields(),
|
|
117877
117946
|
untabbedTopContent: renderUntabbedEntityFields({ untabbedNameSavedClassName: "bg-green-200 rounded p-1 my-1" }),
|
|
117878
|
-
tabbedRequiredWarning: !((
|
|
117947
|
+
tabbedRequiredWarning: !((_h = state.configuration) == null ? void 0 : _h.readonly) && ((_i = tabs.find((t22) => t22.name === activeTab)) == null ? void 0 : _i.missingRequiredData) && /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
117879
117948
|
FloatingRequiredPropertiesWarning,
|
|
117880
117949
|
{
|
|
117881
117950
|
onClick: () => setHighlightRequiredProperties(!highlightRequiredProperties)
|
|
@@ -117883,7 +117952,7 @@ const RenderEntity = forwardRef((props, ref) => {
|
|
|
117883
117952
|
),
|
|
117884
117953
|
tabbedAboutContent: activeTab === "about" && /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: showFieldHelp ? "space-y-3" : "space-y-1", children: [
|
|
117885
117954
|
renderCoreEntityFields("tabbed"),
|
|
117886
|
-
renderEntityPropertyFields(((
|
|
117955
|
+
renderEntityPropertyFields(((_j = tabsWithAiReviewProperties.find((tab) => tab.name === "about")) == null ? void 0 : _j.inputs) ?? [], "tabbed")
|
|
117887
117956
|
] }),
|
|
117888
117957
|
tabbedOtherTabsContent: tabsWithAiReviewProperties.map((tab) => {
|
|
117889
117958
|
if (tab.name === activeTab && tab.name !== "about") {
|
|
@@ -117904,7 +117973,7 @@ const RenderEntity = forwardRef((props, ref) => {
|
|
|
117904
117973
|
onClose: handleCloseContextReviewDialog,
|
|
117905
117974
|
onUpdateContext: handleUpdateContext,
|
|
117906
117975
|
approvalRecord: currentContextApprovalItem == null ? void 0 : currentContextApprovalItem.approvalRecord,
|
|
117907
|
-
readonly: (
|
|
117976
|
+
readonly: (_k = state.configuration) == null ? void 0 : _k.readonly,
|
|
117908
117977
|
onAcceptAiContext: handleAcceptAiContext,
|
|
117909
117978
|
onRejectAiContext: handleRejectAiContext
|
|
117910
117979
|
}
|
|
@@ -126504,7 +126573,7 @@ var EmotionCacheContext = /* @__PURE__ */ React.createContext(
|
|
|
126504
126573
|
}) : null
|
|
126505
126574
|
);
|
|
126506
126575
|
var CacheProvider = EmotionCacheContext.Provider;
|
|
126507
|
-
const version = "0.1.
|
|
126576
|
+
const version = "0.1.41";
|
|
126508
126577
|
const pkg = {
|
|
126509
126578
|
version
|
|
126510
126579
|
};
|