acai-ui-library 0.1.21 → 0.1.23

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.
Files changed (85) hide show
  1. package/dist/components/ai-chatbot-logo-glyph.cjs +31 -0
  2. package/dist/components/ai-chatbot-logo-glyph.cjs.map +1 -0
  3. package/dist/components/ai-chatbot-logo-glyph.d.cts +3 -0
  4. package/dist/components/ai-chatbot-logo-glyph.d.ts +3 -0
  5. package/dist/components/ai-chatbot-logo-glyph.js +6 -0
  6. package/dist/components/ai-chatbot-logo-glyph.js.map +1 -0
  7. package/dist/components/ai-chatbot-logo.cjs +136 -0
  8. package/dist/components/ai-chatbot-logo.cjs.map +1 -0
  9. package/dist/components/ai-chatbot-logo.d.cts +13 -0
  10. package/dist/components/ai-chatbot-logo.d.ts +13 -0
  11. package/dist/components/ai-chatbot-logo.js +102 -0
  12. package/dist/components/ai-chatbot-logo.js.map +1 -0
  13. package/dist/components/app-launcher.cjs +224 -0
  14. package/dist/components/app-launcher.cjs.map +1 -0
  15. package/dist/components/app-launcher.d.cts +24 -0
  16. package/dist/components/app-launcher.d.ts +24 -0
  17. package/dist/components/app-launcher.js +190 -0
  18. package/dist/components/app-launcher.js.map +1 -0
  19. package/dist/components/calendar.cjs +13 -5
  20. package/dist/components/calendar.cjs.map +1 -1
  21. package/dist/components/calendar.js +15 -7
  22. package/dist/components/calendar.js.map +1 -1
  23. package/dist/components/date-picker.cjs +17 -7
  24. package/dist/components/date-picker.cjs.map +1 -1
  25. package/dist/components/date-picker.js +23 -13
  26. package/dist/components/date-picker.js.map +1 -1
  27. package/dist/components/date-time-picker.cjs +13 -5
  28. package/dist/components/date-time-picker.cjs.map +1 -1
  29. package/dist/components/date-time-picker.js +28 -20
  30. package/dist/components/date-time-picker.js.map +1 -1
  31. package/dist/components/help-widget/app-id-typecheck.cjs +34 -0
  32. package/dist/components/help-widget/app-id-typecheck.cjs.map +1 -0
  33. package/dist/components/help-widget/app-id-typecheck.d.cts +17 -0
  34. package/dist/components/help-widget/app-id-typecheck.d.ts +17 -0
  35. package/dist/components/help-widget/app-id-typecheck.js +8 -0
  36. package/dist/components/help-widget/app-id-typecheck.js.map +1 -0
  37. package/dist/components/help-widget/consent-dialog.cjs +276 -0
  38. package/dist/components/help-widget/consent-dialog.cjs.map +1 -0
  39. package/dist/components/help-widget/consent-dialog.d.cts +17 -0
  40. package/dist/components/help-widget/consent-dialog.d.ts +17 -0
  41. package/dist/components/help-widget/consent-dialog.js +239 -0
  42. package/dist/components/help-widget/consent-dialog.js.map +1 -0
  43. package/dist/components/help-widget/help-session-banner.cjs +85 -0
  44. package/dist/components/help-widget/help-session-banner.cjs.map +1 -0
  45. package/dist/components/help-widget/help-session-banner.d.cts +17 -0
  46. package/dist/components/help-widget/help-session-banner.d.ts +17 -0
  47. package/dist/components/help-widget/help-session-banner.js +50 -0
  48. package/dist/components/help-widget/help-session-banner.js.map +1 -0
  49. package/dist/components/help-widget/help-widget.cjs +503 -0
  50. package/dist/components/help-widget/help-widget.cjs.map +1 -0
  51. package/dist/components/help-widget/help-widget.d.cts +32 -0
  52. package/dist/components/help-widget/help-widget.d.ts +32 -0
  53. package/dist/components/help-widget/help-widget.js +468 -0
  54. package/dist/components/help-widget/help-widget.js.map +1 -0
  55. package/dist/components/help-widget/highlight-overlay.cjs +84 -0
  56. package/dist/components/help-widget/highlight-overlay.cjs.map +1 -0
  57. package/dist/components/help-widget/highlight-overlay.d.cts +24 -0
  58. package/dist/components/help-widget/highlight-overlay.d.ts +24 -0
  59. package/dist/components/help-widget/highlight-overlay.js +49 -0
  60. package/dist/components/help-widget/highlight-overlay.js.map +1 -0
  61. package/dist/components/help-widget/use-help-session.cjs +85 -0
  62. package/dist/components/help-widget/use-help-session.cjs.map +1 -0
  63. package/dist/components/help-widget/use-help-session.d.cts +46 -0
  64. package/dist/components/help-widget/use-help-session.d.ts +46 -0
  65. package/dist/components/help-widget/use-help-session.js +50 -0
  66. package/dist/components/help-widget/use-help-session.js.map +1 -0
  67. package/dist/index.cjs +665 -82
  68. package/dist/index.cjs.map +1 -1
  69. package/dist/index.d.cts +9 -0
  70. package/dist/index.d.ts +9 -0
  71. package/dist/index.js +699 -126
  72. package/dist/index.js.map +1 -1
  73. package/dist/lib/app-ids.cjs +58 -0
  74. package/dist/lib/app-ids.cjs.map +1 -0
  75. package/dist/lib/app-ids.d.cts +12 -0
  76. package/dist/lib/app-ids.d.ts +12 -0
  77. package/dist/lib/app-ids.js +32 -0
  78. package/dist/lib/app-ids.js.map +1 -0
  79. package/dist/lib/mask-snapshot.cjs +66 -0
  80. package/dist/lib/mask-snapshot.cjs.map +1 -0
  81. package/dist/lib/mask-snapshot.d.cts +16 -0
  82. package/dist/lib/mask-snapshot.d.ts +16 -0
  83. package/dist/lib/mask-snapshot.js +41 -0
  84. package/dist/lib/mask-snapshot.js.map +1 -0
  85. package/package.json +2 -1
@@ -0,0 +1,85 @@
1
+ "use strict";
2
+ var __create = Object.create;
3
+ var __defProp = Object.defineProperty;
4
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
+ var __getOwnPropNames = Object.getOwnPropertyNames;
6
+ var __getProtoOf = Object.getPrototypeOf;
7
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
8
+ var __export = (target, all) => {
9
+ for (var name in all)
10
+ __defProp(target, name, { get: all[name], enumerable: true });
11
+ };
12
+ var __copyProps = (to, from, except, desc) => {
13
+ if (from && typeof from === "object" || typeof from === "function") {
14
+ for (let key of __getOwnPropNames(from))
15
+ if (!__hasOwnProp.call(to, key) && key !== except)
16
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
17
+ }
18
+ return to;
19
+ };
20
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
21
+ // If the importer is in node compatibility mode or this is not an ESM
22
+ // file that has been converted to a CommonJS file using a Babel-
23
+ // compatible transform (i.e. "__esModule" has not been set), then set
24
+ // "default" to the CommonJS "module.exports" for node compatibility.
25
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
26
+ mod
27
+ ));
28
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
+
30
+ // src/components/help-widget/help-session-banner.tsx
31
+ var help_session_banner_exports = {};
32
+ __export(help_session_banner_exports, {
33
+ HelpSessionBanner: () => HelpSessionBanner
34
+ });
35
+ module.exports = __toCommonJS(help_session_banner_exports);
36
+ var React = __toESM(require("react"), 1);
37
+
38
+ // src/lib/utils.ts
39
+ var import_clsx = require("clsx");
40
+ var import_tailwind_merge = require("tailwind-merge");
41
+ function cn(...inputs) {
42
+ return (0, import_tailwind_merge.twMerge)((0, import_clsx.clsx)(inputs));
43
+ }
44
+
45
+ // src/components/help-widget/help-session-banner.tsx
46
+ var import_jsx_runtime = require("react/jsx-runtime");
47
+ var HelpSessionBanner = React.forwardRef(
48
+ ({ onRevoke, className }, ref) => {
49
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [
50
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { "aria-hidden": "true", className: "h-12", "data-help-session-spacer": "" }),
51
+ /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
52
+ "div",
53
+ {
54
+ ref,
55
+ role: "status",
56
+ "data-help-session-banner": "",
57
+ className: cn(
58
+ "fixed inset-x-0 top-0 z-[2147483000]",
59
+ "flex h-12 items-center gap-3 border-b-2 border-border bg-primary px-4 text-sm font-medium text-primary-foreground shadow-md",
60
+ className
61
+ ),
62
+ children: [
63
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { className: "shrink-0 rounded px-2 py-0.5 text-xs font-bold uppercase tracking-wide ring-1 ring-current", children: "Support session" }),
64
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", { className: "min-w-0 flex-1 truncate", children: "AI support is active on this page and may be recorded." }),
65
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
66
+ "button",
67
+ {
68
+ type: "button",
69
+ onClick: onRevoke,
70
+ className: "shrink-0 rounded-md bg-background px-3 py-1 text-sm font-semibold text-foreground hover:bg-background/90 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",
71
+ children: "Stop"
72
+ }
73
+ )
74
+ ]
75
+ }
76
+ )
77
+ ] });
78
+ }
79
+ );
80
+ HelpSessionBanner.displayName = "HelpSessionBanner";
81
+ // Annotate the CommonJS export names for ESM import in node:
82
+ 0 && (module.exports = {
83
+ HelpSessionBanner
84
+ });
85
+ //# sourceMappingURL=help-session-banner.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../src/components/help-widget/help-session-banner.tsx","../../../src/lib/utils.ts"],"sourcesContent":["import * as React from \"react\"\nimport { cn } from \"../../lib/utils\"\n\nexport interface HelpSessionBannerProps {\n /** Ends the session: calls the caller's revoke, then the app unmounts the banner. */\n onRevoke: () => void\n className?: string\n}\n\n/**\n * Persistent banner shown while a support AI session is active (acai-ai-platform#2831).\n *\n * Same fixed, non-dismissible bar shape as ImpersonationBanner (acai-ai-platform#1274) -\n * there is no close control; Stop is the only way out, and it calls onRevoke rather than\n * hiding itself, so the caller is always the one that ends the session.\n */\nconst HelpSessionBanner = React.forwardRef<HTMLDivElement, HelpSessionBannerProps>(\n ({ onRevoke, className }, ref) => {\n return (\n <>\n <div aria-hidden=\"true\" className=\"h-12\" data-help-session-spacer=\"\" />\n <div\n ref={ref}\n role=\"status\"\n data-help-session-banner=\"\"\n className={cn(\n \"fixed inset-x-0 top-0 z-[2147483000]\",\n \"flex h-12 items-center gap-3 border-b-2 border-border bg-primary px-4 text-sm font-medium text-primary-foreground shadow-md\",\n className\n )}\n >\n <span className=\"shrink-0 rounded px-2 py-0.5 text-xs font-bold uppercase tracking-wide ring-1 ring-current\">\n Support session\n </span>\n <p className=\"min-w-0 flex-1 truncate\">AI support is active on this page and may be recorded.</p>\n <button\n type=\"button\"\n onClick={onRevoke}\n className=\"shrink-0 rounded-md bg-background px-3 py-1 text-sm font-semibold text-foreground hover:bg-background/90 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2\"\n >\n Stop\n </button>\n </div>\n </>\n )\n }\n)\nHelpSessionBanner.displayName = \"HelpSessionBanner\"\n\nexport { HelpSessionBanner }\n","import { type ClassValue, clsx } from \"clsx\"\nimport { twMerge } from \"tailwind-merge\"\n\nexport function cn(...inputs: ClassValue[]) {\n return twMerge(clsx(inputs))\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,YAAuB;;;ACAvB,kBAAsC;AACtC,4BAAwB;AAEjB,SAAS,MAAM,QAAsB;AAC1C,aAAO,mCAAQ,kBAAK,MAAM,CAAC;AAC7B;;;ADcM;AAHN,IAAM,oBAA0B;AAAA,EAC9B,CAAC,EAAE,UAAU,UAAU,GAAG,QAAQ;AAChC,WACE,4EACE;AAAA,kDAAC,SAAI,eAAY,QAAO,WAAU,QAAO,4BAAyB,IAAG;AAAA,MACrE;AAAA,QAAC;AAAA;AAAA,UACC;AAAA,UACA,MAAK;AAAA,UACL,4BAAyB;AAAA,UACzB,WAAW;AAAA,YACT;AAAA,YACA;AAAA,YACA;AAAA,UACF;AAAA,UAEA;AAAA,wDAAC,UAAK,WAAU,8FAA6F,6BAE7G;AAAA,YACA,4CAAC,OAAE,WAAU,2BAA0B,oEAAsD;AAAA,YAC7F;AAAA,cAAC;AAAA;AAAA,gBACC,MAAK;AAAA,gBACL,SAAS;AAAA,gBACT,WAAU;AAAA,gBACX;AAAA;AAAA,YAED;AAAA;AAAA;AAAA,MACF;AAAA,OACF;AAAA,EAEJ;AACF;AACA,kBAAkB,cAAc;","names":[]}
@@ -0,0 +1,17 @@
1
+ import * as React from 'react';
2
+
3
+ interface HelpSessionBannerProps {
4
+ /** Ends the session: calls the caller's revoke, then the app unmounts the banner. */
5
+ onRevoke: () => void;
6
+ className?: string;
7
+ }
8
+ /**
9
+ * Persistent banner shown while a support AI session is active (acai-ai-platform#2831).
10
+ *
11
+ * Same fixed, non-dismissible bar shape as ImpersonationBanner (acai-ai-platform#1274) -
12
+ * there is no close control; Stop is the only way out, and it calls onRevoke rather than
13
+ * hiding itself, so the caller is always the one that ends the session.
14
+ */
15
+ declare const HelpSessionBanner: React.ForwardRefExoticComponent<HelpSessionBannerProps & React.RefAttributes<HTMLDivElement>>;
16
+
17
+ export { HelpSessionBanner, type HelpSessionBannerProps };
@@ -0,0 +1,17 @@
1
+ import * as React from 'react';
2
+
3
+ interface HelpSessionBannerProps {
4
+ /** Ends the session: calls the caller's revoke, then the app unmounts the banner. */
5
+ onRevoke: () => void;
6
+ className?: string;
7
+ }
8
+ /**
9
+ * Persistent banner shown while a support AI session is active (acai-ai-platform#2831).
10
+ *
11
+ * Same fixed, non-dismissible bar shape as ImpersonationBanner (acai-ai-platform#1274) -
12
+ * there is no close control; Stop is the only way out, and it calls onRevoke rather than
13
+ * hiding itself, so the caller is always the one that ends the session.
14
+ */
15
+ declare const HelpSessionBanner: React.ForwardRefExoticComponent<HelpSessionBannerProps & React.RefAttributes<HTMLDivElement>>;
16
+
17
+ export { HelpSessionBanner, type HelpSessionBannerProps };
@@ -0,0 +1,50 @@
1
+ // src/components/help-widget/help-session-banner.tsx
2
+ import * as React from "react";
3
+
4
+ // src/lib/utils.ts
5
+ import { clsx } from "clsx";
6
+ import { twMerge } from "tailwind-merge";
7
+ function cn(...inputs) {
8
+ return twMerge(clsx(inputs));
9
+ }
10
+
11
+ // src/components/help-widget/help-session-banner.tsx
12
+ import { Fragment, jsx, jsxs } from "react/jsx-runtime";
13
+ var HelpSessionBanner = React.forwardRef(
14
+ ({ onRevoke, className }, ref) => {
15
+ return /* @__PURE__ */ jsxs(Fragment, { children: [
16
+ /* @__PURE__ */ jsx("div", { "aria-hidden": "true", className: "h-12", "data-help-session-spacer": "" }),
17
+ /* @__PURE__ */ jsxs(
18
+ "div",
19
+ {
20
+ ref,
21
+ role: "status",
22
+ "data-help-session-banner": "",
23
+ className: cn(
24
+ "fixed inset-x-0 top-0 z-[2147483000]",
25
+ "flex h-12 items-center gap-3 border-b-2 border-border bg-primary px-4 text-sm font-medium text-primary-foreground shadow-md",
26
+ className
27
+ ),
28
+ children: [
29
+ /* @__PURE__ */ jsx("span", { className: "shrink-0 rounded px-2 py-0.5 text-xs font-bold uppercase tracking-wide ring-1 ring-current", children: "Support session" }),
30
+ /* @__PURE__ */ jsx("p", { className: "min-w-0 flex-1 truncate", children: "AI support is active on this page and may be recorded." }),
31
+ /* @__PURE__ */ jsx(
32
+ "button",
33
+ {
34
+ type: "button",
35
+ onClick: onRevoke,
36
+ className: "shrink-0 rounded-md bg-background px-3 py-1 text-sm font-semibold text-foreground hover:bg-background/90 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",
37
+ children: "Stop"
38
+ }
39
+ )
40
+ ]
41
+ }
42
+ )
43
+ ] });
44
+ }
45
+ );
46
+ HelpSessionBanner.displayName = "HelpSessionBanner";
47
+ export {
48
+ HelpSessionBanner
49
+ };
50
+ //# sourceMappingURL=help-session-banner.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../src/components/help-widget/help-session-banner.tsx","../../../src/lib/utils.ts"],"sourcesContent":["import * as React from \"react\"\nimport { cn } from \"../../lib/utils\"\n\nexport interface HelpSessionBannerProps {\n /** Ends the session: calls the caller's revoke, then the app unmounts the banner. */\n onRevoke: () => void\n className?: string\n}\n\n/**\n * Persistent banner shown while a support AI session is active (acai-ai-platform#2831).\n *\n * Same fixed, non-dismissible bar shape as ImpersonationBanner (acai-ai-platform#1274) -\n * there is no close control; Stop is the only way out, and it calls onRevoke rather than\n * hiding itself, so the caller is always the one that ends the session.\n */\nconst HelpSessionBanner = React.forwardRef<HTMLDivElement, HelpSessionBannerProps>(\n ({ onRevoke, className }, ref) => {\n return (\n <>\n <div aria-hidden=\"true\" className=\"h-12\" data-help-session-spacer=\"\" />\n <div\n ref={ref}\n role=\"status\"\n data-help-session-banner=\"\"\n className={cn(\n \"fixed inset-x-0 top-0 z-[2147483000]\",\n \"flex h-12 items-center gap-3 border-b-2 border-border bg-primary px-4 text-sm font-medium text-primary-foreground shadow-md\",\n className\n )}\n >\n <span className=\"shrink-0 rounded px-2 py-0.5 text-xs font-bold uppercase tracking-wide ring-1 ring-current\">\n Support session\n </span>\n <p className=\"min-w-0 flex-1 truncate\">AI support is active on this page and may be recorded.</p>\n <button\n type=\"button\"\n onClick={onRevoke}\n className=\"shrink-0 rounded-md bg-background px-3 py-1 text-sm font-semibold text-foreground hover:bg-background/90 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2\"\n >\n Stop\n </button>\n </div>\n </>\n )\n }\n)\nHelpSessionBanner.displayName = \"HelpSessionBanner\"\n\nexport { HelpSessionBanner }\n","import { type ClassValue, clsx } from \"clsx\"\nimport { twMerge } from \"tailwind-merge\"\n\nexport function cn(...inputs: ClassValue[]) {\n return twMerge(clsx(inputs))\n}\n"],"mappings":";AAAA,YAAY,WAAW;;;ACAvB,SAA0B,YAAY;AACtC,SAAS,eAAe;AAEjB,SAAS,MAAM,QAAsB;AAC1C,SAAO,QAAQ,KAAK,MAAM,CAAC;AAC7B;;;ADcM,mBACE,KACA,YAFF;AAHN,IAAM,oBAA0B;AAAA,EAC9B,CAAC,EAAE,UAAU,UAAU,GAAG,QAAQ;AAChC,WACE,iCACE;AAAA,0BAAC,SAAI,eAAY,QAAO,WAAU,QAAO,4BAAyB,IAAG;AAAA,MACrE;AAAA,QAAC;AAAA;AAAA,UACC;AAAA,UACA,MAAK;AAAA,UACL,4BAAyB;AAAA,UACzB,WAAW;AAAA,YACT;AAAA,YACA;AAAA,YACA;AAAA,UACF;AAAA,UAEA;AAAA,gCAAC,UAAK,WAAU,8FAA6F,6BAE7G;AAAA,YACA,oBAAC,OAAE,WAAU,2BAA0B,oEAAsD;AAAA,YAC7F;AAAA,cAAC;AAAA;AAAA,gBACC,MAAK;AAAA,gBACL,SAAS;AAAA,gBACT,WAAU;AAAA,gBACX;AAAA;AAAA,YAED;AAAA;AAAA;AAAA,MACF;AAAA,OACF;AAAA,EAEJ;AACF;AACA,kBAAkB,cAAc;","names":[]}