@homebound/beam 4.1.0 → 4.2.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.cjs +6 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +6 -3
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -8710,7 +8710,7 @@ function dragHandleColumn(columnDef) {
|
|
|
8710
8710
|
content: row.draggable ? /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("div", { draggable: row.draggable, onDragStart: (evt) => {
|
|
8711
8711
|
ref.current && evt.dataTransfer.setDragImage(ref.current, 0, 0);
|
|
8712
8712
|
return onDragStart?.(row, evt);
|
|
8713
|
-
}, onDragEnd: (evt) => onDragEnd?.(row, evt), onDrop: (evt) => onDrop?.(row, evt), onDragEnter: (evt) => onDragEnter?.(row, evt), onDragOver: (evt) => onDragOver?.(row, evt), className: "mta mba mra mla cursorPointer", children: /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(Icon, { icon: "drag" }) }) : void 0
|
|
8713
|
+
}, onDragEnd: (evt) => onDragEnd?.(row, evt), onDrop: (evt) => onDrop?.(row, evt), onDragEnter: (evt) => onDragEnter?.(row, evt), onDragOver: (evt) => onDragOver?.(row, evt), className: "mta mba mra mla cursorPointer", children: /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(Icon, { icon: "drag", inc: 2.25 }) }) : void 0
|
|
8714
8714
|
};
|
|
8715
8715
|
};
|
|
8716
8716
|
});
|
|
@@ -10861,11 +10861,14 @@ function useAiProposal(value, proposedValue, format = String) {
|
|
|
10861
10861
|
const onUserBlur = (0, import_react35.useCallback)(() => setIsReviewed((wasReviewed) => wasReviewed || hasTyped), [hasTyped]);
|
|
10862
10862
|
const hasProposal = proposedValue !== void 0;
|
|
10863
10863
|
const isAiMode = hasProposal && !hasTyped;
|
|
10864
|
+
const proposedText = hasProposal ? format(proposedValue) : void 0;
|
|
10865
|
+
const originalText = originalValue.current !== void 0 ? format(originalValue.current) : void 0;
|
|
10866
|
+
const isUnchanged = originalText === proposedText;
|
|
10864
10867
|
return {
|
|
10865
10868
|
effectiveValue: isAiMode ? proposedValue : value,
|
|
10866
10869
|
proposalProps: {
|
|
10867
|
-
proposedValue: isAiMode ?
|
|
10868
|
-
originalValue: hasProposal && !isReviewed &&
|
|
10870
|
+
proposedValue: isAiMode ? proposedText : void 0,
|
|
10871
|
+
originalValue: hasProposal && !isReviewed && !isUnchanged ? originalText : void 0,
|
|
10869
10872
|
onUserEdit,
|
|
10870
10873
|
onUserBlur
|
|
10871
10874
|
}
|