agentic-ui-libs 1.2.0-beta.8 → 1.2.0-beta.9
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.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"VariableMenu.d.ts","sourceRoot":"","sources":["../../../../src/features/md-editor/components/VariableMenu.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA4D,MAAM,OAAO,CAAC;AACjF,OAAO,KAAK,EAAE,QAAQ,EAAgB,MAAM,UAAU,CAAC;AAavD,UAAU,iBAAiB;IACzB,QAAQ,EAAE;QAAE,GAAG,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAE,CAAC;IACxC,KAAK,EAAE,MAAM,CAAC;IACd,aAAa,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACvC,QAAQ,EAAE,CAAC,QAAQ,EAAE,QAAQ,KAAK,IAAI,CAAC;IACvC,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,YAAY,CAAC,EAAE,QAAQ,EAAE,CAAC;IAC1B,eAAe,CAAC,EAAE,QAAQ,EAAE,CAAC;IAC7B,eAAe,CAAC,EAAE,QAAQ,EAAE,CAAC;IAC7B,gBAAgB,CAAC,EAAE,QAAQ,EAAE,CAAC;IAC9B,8EAA8E;IAC9E,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,mEAAmE;IACnE,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB;AAgBD,eAAO,MAAM,YAAY,EAAE,KAAK,CAAC,EAAE,CAAC,iBAAiB,
|
|
1
|
+
{"version":3,"file":"VariableMenu.d.ts","sourceRoot":"","sources":["../../../../src/features/md-editor/components/VariableMenu.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA4D,MAAM,OAAO,CAAC;AACjF,OAAO,KAAK,EAAE,QAAQ,EAAgB,MAAM,UAAU,CAAC;AAavD,UAAU,iBAAiB;IACzB,QAAQ,EAAE;QAAE,GAAG,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAE,CAAC;IACxC,KAAK,EAAE,MAAM,CAAC;IACd,aAAa,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACvC,QAAQ,EAAE,CAAC,QAAQ,EAAE,QAAQ,KAAK,IAAI,CAAC;IACvC,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,YAAY,CAAC,EAAE,QAAQ,EAAE,CAAC;IAC1B,eAAe,CAAC,EAAE,QAAQ,EAAE,CAAC;IAC7B,eAAe,CAAC,EAAE,QAAQ,EAAE,CAAC;IAC7B,gBAAgB,CAAC,EAAE,QAAQ,EAAE,CAAC;IAC9B,8EAA8E;IAC9E,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,mEAAmE;IACnE,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB;AAgBD,eAAO,MAAM,YAAY,EAAE,KAAK,CAAC,EAAE,CAAC,iBAAiB,CA2ZpD,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -143207,13 +143207,21 @@ const VariableMenu = ({
|
|
|
143207
143207
|
}
|
|
143208
143208
|
}, [editorControlled]);
|
|
143209
143209
|
useEffect(() => {
|
|
143210
|
+
const isEventInsideMenu = (event) => {
|
|
143211
|
+
if (!menuRef.current) return false;
|
|
143212
|
+
const path = typeof event.composedPath === "function" ? event.composedPath() : [];
|
|
143213
|
+
if (path.length > 0) {
|
|
143214
|
+
return path.includes(menuRef.current);
|
|
143215
|
+
}
|
|
143216
|
+
return menuRef.current.contains(event.target);
|
|
143217
|
+
};
|
|
143210
143218
|
const handleClickOutside = (e3) => {
|
|
143211
|
-
if (
|
|
143219
|
+
if (!isEventInsideMenu(e3)) {
|
|
143212
143220
|
onClose();
|
|
143213
143221
|
}
|
|
143214
143222
|
};
|
|
143215
|
-
document.addEventListener("mousedown", handleClickOutside);
|
|
143216
|
-
return () => document.removeEventListener("mousedown", handleClickOutside);
|
|
143223
|
+
document.addEventListener("mousedown", handleClickOutside, true);
|
|
143224
|
+
return () => document.removeEventListener("mousedown", handleClickOutside, true);
|
|
143217
143225
|
}, [onClose]);
|
|
143218
143226
|
useEffect(() => {
|
|
143219
143227
|
const handleKeyDown2 = (e3) => {
|
|
@@ -143300,6 +143308,10 @@ const VariableMenu = ({
|
|
|
143300
143308
|
"button",
|
|
143301
143309
|
{
|
|
143302
143310
|
type: "button",
|
|
143311
|
+
onMouseDown: (e3) => {
|
|
143312
|
+
e3.preventDefault();
|
|
143313
|
+
e3.stopPropagation();
|
|
143314
|
+
},
|
|
143303
143315
|
onClick: handleBack,
|
|
143304
143316
|
className: "flex items-center justify-center w-[24px] h-[24px] p-0 border-0 bg-[#F9FAFB] rounded-[4px] cursor-pointer text-[#667085] hover:bg-[#F2F4F7]",
|
|
143305
143317
|
"aria-label": "Go back",
|
|
@@ -143334,7 +143346,11 @@ const VariableMenu = ({
|
|
|
143334
143346
|
"button",
|
|
143335
143347
|
{
|
|
143336
143348
|
type: "button",
|
|
143337
|
-
|
|
143349
|
+
onMouseDown: (e3) => {
|
|
143350
|
+
e3.preventDefault();
|
|
143351
|
+
e3.stopPropagation();
|
|
143352
|
+
handleItemClick(item);
|
|
143353
|
+
},
|
|
143338
143354
|
className: `flex items-center gap-[8px] w-full px-[12px] py-[8px] border-0 rounded-[4px] text-left cursor-pointer transition-colors duration-100 ${index === selectedIndex ? "bg-[#F9FAFB]" : "bg-transparent hover:bg-[#F9FAFB]"}`,
|
|
143339
143355
|
onMouseEnter: () => setSelectedIndex(index),
|
|
143340
143356
|
"data-test-id": `md-editor-variable-item-${isCategory ? item.id : item.id}`,
|
package/dist/ui-libs.umd.js
CHANGED
|
@@ -143247,13 +143247,21 @@ ${code2}
|
|
|
143247
143247
|
}
|
|
143248
143248
|
}, [editorControlled]);
|
|
143249
143249
|
React.useEffect(() => {
|
|
143250
|
+
const isEventInsideMenu = (event) => {
|
|
143251
|
+
if (!menuRef.current) return false;
|
|
143252
|
+
const path = typeof event.composedPath === "function" ? event.composedPath() : [];
|
|
143253
|
+
if (path.length > 0) {
|
|
143254
|
+
return path.includes(menuRef.current);
|
|
143255
|
+
}
|
|
143256
|
+
return menuRef.current.contains(event.target);
|
|
143257
|
+
};
|
|
143250
143258
|
const handleClickOutside = (e) => {
|
|
143251
|
-
if (
|
|
143259
|
+
if (!isEventInsideMenu(e)) {
|
|
143252
143260
|
onClose();
|
|
143253
143261
|
}
|
|
143254
143262
|
};
|
|
143255
|
-
document.addEventListener("mousedown", handleClickOutside);
|
|
143256
|
-
return () => document.removeEventListener("mousedown", handleClickOutside);
|
|
143263
|
+
document.addEventListener("mousedown", handleClickOutside, true);
|
|
143264
|
+
return () => document.removeEventListener("mousedown", handleClickOutside, true);
|
|
143257
143265
|
}, [onClose]);
|
|
143258
143266
|
React.useEffect(() => {
|
|
143259
143267
|
const handleKeyDown2 = (e) => {
|
|
@@ -143340,6 +143348,10 @@ ${code2}
|
|
|
143340
143348
|
"button",
|
|
143341
143349
|
{
|
|
143342
143350
|
type: "button",
|
|
143351
|
+
onMouseDown: (e) => {
|
|
143352
|
+
e.preventDefault();
|
|
143353
|
+
e.stopPropagation();
|
|
143354
|
+
},
|
|
143343
143355
|
onClick: handleBack,
|
|
143344
143356
|
className: "flex items-center justify-center w-[24px] h-[24px] p-0 border-0 bg-[#F9FAFB] rounded-[4px] cursor-pointer text-[#667085] hover:bg-[#F2F4F7]",
|
|
143345
143357
|
"aria-label": "Go back",
|
|
@@ -143374,7 +143386,11 @@ ${code2}
|
|
|
143374
143386
|
"button",
|
|
143375
143387
|
{
|
|
143376
143388
|
type: "button",
|
|
143377
|
-
|
|
143389
|
+
onMouseDown: (e) => {
|
|
143390
|
+
e.preventDefault();
|
|
143391
|
+
e.stopPropagation();
|
|
143392
|
+
handleItemClick(item);
|
|
143393
|
+
},
|
|
143378
143394
|
className: `flex items-center gap-[8px] w-full px-[12px] py-[8px] border-0 rounded-[4px] text-left cursor-pointer transition-colors duration-100 ${index === selectedIndex ? "bg-[#F9FAFB]" : "bg-transparent hover:bg-[#F9FAFB]"}`,
|
|
143379
143395
|
onMouseEnter: () => setSelectedIndex(index),
|
|
143380
143396
|
"data-test-id": `md-editor-variable-item-${isCategory ? item.id : item.id}`,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "agentic-ui-libs",
|
|
3
|
-
"version": "1.2.0-beta.
|
|
3
|
+
"version": "1.2.0-beta.9",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "A modular, config-driven analytics library for React and Angular applications",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -93,6 +93,7 @@
|
|
|
93
93
|
"@tiptap/suggestion": "^2.4.0",
|
|
94
94
|
"ag-grid-community": "31.3.4",
|
|
95
95
|
"ag-grid-react": "31.3.4",
|
|
96
|
+
"agentic-ui-libs": "^1.2.0-beta.8",
|
|
96
97
|
"class-variance-authority": "^0.7.0",
|
|
97
98
|
"clsx": "^2.0.0",
|
|
98
99
|
"date-fns": "^2.30.0",
|