@agentiffai/design 1.4.7 → 1.4.8
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/copilotkit/index.cjs +1 -1
- package/dist/copilotkit/index.cjs.map +1 -1
- package/dist/copilotkit/index.js +1 -1
- package/dist/copilotkit/index.js.map +1 -1
- package/dist/icons/index.cjs +204 -0
- package/dist/icons/index.cjs.map +1 -1
- package/dist/icons/index.d.cts +27 -1
- package/dist/icons/index.d.ts +27 -1
- package/dist/icons/index.js +203 -1
- package/dist/icons/index.js.map +1 -1
- package/dist/index.cjs +6 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +6 -1
- package/dist/index.js.map +1 -1
- package/package.json +7 -4
package/dist/index.cjs
CHANGED
|
@@ -10541,6 +10541,7 @@ var PlatformGrid = ({
|
|
|
10541
10541
|
const handlePostClick = (index) => {
|
|
10542
10542
|
onActiveChange?.(index);
|
|
10543
10543
|
};
|
|
10544
|
+
const isInteractiveTarget = (target) => target instanceof HTMLElement && target.closest("input, textarea, button, [contenteditable]") !== null;
|
|
10544
10545
|
return /* @__PURE__ */ jsxRuntime.jsx(Grid, { "data-testid": "platform-grid", children: posts.map((post, index) => {
|
|
10545
10546
|
const isEditing = editingIndex === index;
|
|
10546
10547
|
const isActive = activeIndex === index;
|
|
@@ -10548,10 +10549,14 @@ var PlatformGrid = ({
|
|
|
10548
10549
|
GridCell,
|
|
10549
10550
|
{
|
|
10550
10551
|
$isActive: isActive,
|
|
10551
|
-
onClick: () =>
|
|
10552
|
+
onClick: (e) => {
|
|
10553
|
+
if (isInteractiveTarget(e.target)) return;
|
|
10554
|
+
handlePostClick(index);
|
|
10555
|
+
},
|
|
10552
10556
|
role: "button",
|
|
10553
10557
|
tabIndex: 0,
|
|
10554
10558
|
onKeyDown: (e) => {
|
|
10559
|
+
if (isInteractiveTarget(e.target)) return;
|
|
10555
10560
|
if (e.key === "Enter" || e.key === " ") {
|
|
10556
10561
|
e.preventDefault();
|
|
10557
10562
|
handlePostClick(index);
|