@pickaxeproject/react 3.8.1 → 3.9.0

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 (105) hide show
  1. package/dist/cjs/components/Core/Menu/Button.js +1 -1
  2. package/dist/cjs/components/EmbedPreview/FAB.js +1 -1
  3. package/dist/cjs/components/EmbedPreview/Inline.js +1 -1
  4. package/dist/cjs/components/EmbedPreview/Popup.js +1 -1
  5. package/dist/cjs/components/Pickaxe/Addons/Artifact/Renderer/SaveMenu.js +1 -1
  6. package/dist/cjs/components/Pickaxe/Addons/Artifact/Renderer/ViewOptions.js +1 -1
  7. package/dist/cjs/components/Pickaxe/Addons/Artifact/Renderer/index.js +1 -1
  8. package/dist/cjs/components/Pickaxe/Addons/Artifact/index.js +1 -1
  9. package/dist/cjs/components/Pickaxe/Addons/Auth/index.js +1 -1
  10. package/dist/cjs/components/Pickaxe/Addons/Document/List.js +1 -1
  11. package/dist/cjs/components/Pickaxe/Addons/IceBreaker/Breaker.js +1 -1
  12. package/dist/cjs/components/Pickaxe/Chat/History/Document.js +1 -1
  13. package/dist/cjs/components/Pickaxe/Chat/History/Message.js +1 -1
  14. package/dist/cjs/components/Pickaxe/Chat/History/index.js +1 -1
  15. package/dist/cjs/components/Pickaxe/Chat/Input.js +1 -1
  16. package/dist/cjs/components/Pickaxe/Form/History/Container.js +1 -1
  17. package/dist/cjs/components/Pickaxe/Form/History/Item.js +1 -1
  18. package/dist/cjs/components/Pickaxe/Form/NewChat.js +1 -1
  19. package/dist/cjs/components/Pickaxe/Form/Questions/Checkbox.js +1 -1
  20. package/dist/cjs/components/Pickaxe/Form/Questions/Document.js +1 -1
  21. package/dist/cjs/components/Pickaxe/Form/Questions/Input.js +1 -1
  22. package/dist/cjs/components/Pickaxe/Form/Questions/Option.js +1 -1
  23. package/dist/cjs/components/Pickaxe/Form/Questions/Submit.js +1 -1
  24. package/dist/cjs/components/Pickaxe/Form/index.js +1 -1
  25. package/dist/cjs/components/Pickaxe/Provider.js +1 -1
  26. package/dist/cjs/components/Pickaxe/common/PickaxeBranding.js +1 -1
  27. package/dist/cjs/components/Pickaxe/common/PickaxeCompactHead.js +1 -0
  28. package/dist/cjs/components/Pickaxe/common/PickaxeCopyButton.js +1 -1
  29. package/dist/cjs/components/Pickaxe/common/PickaxeInfoModal.js +1 -1
  30. package/dist/cjs/components/Pickaxe/common/PickaxeInput.js +1 -1
  31. package/dist/cjs/components/Pickaxe/common/PickaxeMarkdown/Components/Artifact/index.js +1 -1
  32. package/dist/cjs/components/Pickaxe/common/PickaxeSimpleButton.js +1 -1
  33. package/dist/cjs/components/Pickaxe/index.js +1 -1
  34. package/dist/cjs/node_modules/.pnpm/cose-base@1.0.3/node_modules/cose-base/cose-base.js +1 -1
  35. package/dist/cjs/node_modules/.pnpm/cose-base@2.2.0/node_modules/cose-base/cose-base.js +1 -1
  36. package/dist/cjs/node_modules/.pnpm/layout-base@1.0.2/node_modules/layout-base/layout-base.js +1 -1
  37. package/dist/cjs/node_modules/.pnpm/layout-base@2.0.1/node_modules/layout-base/layout-base.js +1 -1
  38. package/dist/cjs/src/components/EmbedPreview/Popup.d.ts +1 -1
  39. package/dist/cjs/src/components/Pickaxe/Form/NewChat.d.ts +2 -1
  40. package/dist/cjs/src/components/Pickaxe/Provider.d.ts +0 -2
  41. package/dist/cjs/src/components/Pickaxe/common/PickaxeBranding.d.ts +2 -2
  42. package/dist/cjs/src/components/Pickaxe/common/PickaxeCompactHead.d.ts +7 -0
  43. package/dist/cjs/src/components/Pickaxe/common/PickaxeSimpleButton.d.ts +2 -8
  44. package/dist/cjs/src/hooks/pickaxe/usePickaxeContext.d.ts +0 -2
  45. package/dist/cjs/src/types/pickaxe.d.ts +1 -1
  46. package/dist/esm/components/Core/Menu/Button.js +1 -1
  47. package/dist/esm/components/EmbedPreview/FAB.js +1 -1
  48. package/dist/esm/components/EmbedPreview/Inline.js +1 -1
  49. package/dist/esm/components/EmbedPreview/Popup.js +1 -1
  50. package/dist/esm/components/Pickaxe/Addons/Artifact/Renderer/SaveMenu.js +1 -1
  51. package/dist/esm/components/Pickaxe/Addons/Artifact/Renderer/ViewOptions.js +1 -1
  52. package/dist/esm/components/Pickaxe/Addons/Artifact/Renderer/index.js +1 -1
  53. package/dist/esm/components/Pickaxe/Addons/Artifact/index.js +1 -1
  54. package/dist/esm/components/Pickaxe/Addons/Auth/index.js +1 -1
  55. package/dist/esm/components/Pickaxe/Addons/Document/List.js +1 -1
  56. package/dist/esm/components/Pickaxe/Addons/IceBreaker/Breaker.js +1 -1
  57. package/dist/esm/components/Pickaxe/Chat/History/Document.js +1 -1
  58. package/dist/esm/components/Pickaxe/Chat/History/Message.js +1 -1
  59. package/dist/esm/components/Pickaxe/Chat/History/index.js +1 -1
  60. package/dist/esm/components/Pickaxe/Chat/Input.js +1 -1
  61. package/dist/esm/components/Pickaxe/Form/History/Container.js +1 -1
  62. package/dist/esm/components/Pickaxe/Form/History/Item.js +1 -1
  63. package/dist/esm/components/Pickaxe/Form/NewChat.js +1 -1
  64. package/dist/esm/components/Pickaxe/Form/Questions/Checkbox.js +1 -1
  65. package/dist/esm/components/Pickaxe/Form/Questions/Document.js +1 -1
  66. package/dist/esm/components/Pickaxe/Form/Questions/Input.js +1 -1
  67. package/dist/esm/components/Pickaxe/Form/Questions/Option.js +1 -1
  68. package/dist/esm/components/Pickaxe/Form/Questions/Submit.js +1 -1
  69. package/dist/esm/components/Pickaxe/Form/index.js +1 -1
  70. package/dist/esm/components/Pickaxe/Provider.js +1 -1
  71. package/dist/esm/components/Pickaxe/common/PickaxeBranding.js +1 -1
  72. package/dist/esm/components/Pickaxe/common/PickaxeCompactHead.js +1 -0
  73. package/dist/esm/components/Pickaxe/common/PickaxeCopyButton.js +1 -1
  74. package/dist/esm/components/Pickaxe/common/PickaxeInfoModal.js +1 -1
  75. package/dist/esm/components/Pickaxe/common/PickaxeInput.js +1 -1
  76. package/dist/esm/components/Pickaxe/common/PickaxeMarkdown/Components/Artifact/index.js +1 -1
  77. package/dist/esm/components/Pickaxe/common/PickaxeSimpleButton.js +1 -1
  78. package/dist/esm/components/Pickaxe/index.js +1 -1
  79. package/dist/esm/node_modules/.pnpm/cose-base@1.0.3/node_modules/cose-base/cose-base.js +1 -1
  80. package/dist/esm/node_modules/.pnpm/cose-base@2.2.0/node_modules/cose-base/cose-base.js +1 -1
  81. package/dist/esm/node_modules/.pnpm/layout-base@1.0.2/node_modules/layout-base/layout-base.js +1 -1
  82. package/dist/esm/node_modules/.pnpm/layout-base@2.0.1/node_modules/layout-base/layout-base.js +1 -1
  83. package/dist/esm/src/components/EmbedPreview/Popup.d.ts +1 -1
  84. package/dist/esm/src/components/Pickaxe/Form/NewChat.d.ts +2 -1
  85. package/dist/esm/src/components/Pickaxe/Provider.d.ts +0 -2
  86. package/dist/esm/src/components/Pickaxe/common/PickaxeBranding.d.ts +2 -2
  87. package/dist/esm/src/components/Pickaxe/common/PickaxeCompactHead.d.ts +7 -0
  88. package/dist/esm/src/components/Pickaxe/common/PickaxeSimpleButton.d.ts +2 -8
  89. package/dist/esm/src/hooks/pickaxe/usePickaxeContext.d.ts +0 -2
  90. package/dist/esm/src/types/pickaxe.d.ts +1 -1
  91. package/package.json +2 -3
  92. package/dist/cjs/components/Icons/message-clock.svg.js +0 -1
  93. package/dist/cjs/components/Pickaxe/common/PickaxeEmbedHead.js +0 -1
  94. package/dist/cjs/components/Pickaxe/common/PickaxeHistoryButton.js +0 -1
  95. package/dist/cjs/hooks/core/usePressed.js +0 -1
  96. package/dist/cjs/src/components/Pickaxe/common/PickaxeEmbedHead.d.ts +0 -9
  97. package/dist/cjs/src/components/Pickaxe/common/PickaxeHistoryButton.d.ts +0 -6
  98. package/dist/cjs/src/hooks/core/usePressed.d.ts +0 -5
  99. package/dist/esm/components/Icons/message-clock.svg.js +0 -1
  100. package/dist/esm/components/Pickaxe/common/PickaxeEmbedHead.js +0 -1
  101. package/dist/esm/components/Pickaxe/common/PickaxeHistoryButton.js +0 -1
  102. package/dist/esm/hooks/core/usePressed.js +0 -1
  103. package/dist/esm/src/components/Pickaxe/common/PickaxeEmbedHead.d.ts +0 -9
  104. package/dist/esm/src/components/Pickaxe/common/PickaxeHistoryButton.d.ts +0 -6
  105. package/dist/esm/src/hooks/core/usePressed.d.ts +0 -5
@@ -1,16 +1,10 @@
1
- import type { CSSProperties, ReactNode } from "react";
1
+ import type { ReactNode } from "react";
2
2
  interface PickaxeSimpleButtonProps {
3
3
  color?: string;
4
4
  children: ReactNode;
5
5
  className?: string;
6
- style?: CSSProperties;
7
- reversed?: boolean;
8
6
  isForceColor?: boolean;
9
7
  onClick?: () => void;
10
- onMouseDown?: () => void;
11
- onMouseUp?: () => void;
12
- onMouseEnter?: () => void;
13
- onMouseLeave?: () => void;
14
8
  }
15
- declare const PickaxeSimpleButton: ({ color, children, className, style, reversed, isForceColor, onClick, ...props }: PickaxeSimpleButtonProps) => import("react/jsx-runtime").JSX.Element;
9
+ declare const PickaxeSimpleButton: ({ color, children, className, isForceColor, onClick, }: PickaxeSimpleButtonProps) => import("react/jsx-runtime").JSX.Element;
16
10
  export default PickaxeSimpleButton;
@@ -1,7 +1,6 @@
1
1
  export declare const usePickaxeContext: () => {
2
2
  formId: string;
3
3
  chatId: string;
4
- lastChatId: string;
5
4
  sessionId: string;
6
5
  userId: string;
7
6
  studioUserId: string;
@@ -31,7 +30,6 @@ export declare const usePickaxeContext: () => {
31
30
  isEmailLogin: boolean;
32
31
  setFormId: import("../../types/common").SetState<string>;
33
32
  setChatId: import("../../types/common").SetState<string>;
34
- setLastChatId: import("../../types/common").SetState<string>;
35
33
  setSessionId: import("../../types/common").SetState<string>;
36
34
  setPickaxe: import("../../types/common").SetState<import("../../types/pickaxe").LimitedPickaxe | null>;
37
35
  setIsFontLoaded: import("../../types/common").SetState<boolean>;
@@ -2,7 +2,7 @@ import type { PickaxeQuestion } from "./form";
2
2
  export type PickaxeImageOrText = "text" | "image";
3
3
  export type PickaxePrivacySetting = "public" | "unlisted" | "private" | "deleted";
4
4
  export type PickaxeCloneable = "true" | "false";
5
- export type PickaxeDocumentUploadType = "ownerupload" | "enduserupload" | "enduserupload-user";
5
+ export type PickaxeDocumentUploadType = "ownerupload" | "enduserupload" | "enduserupload-display";
6
6
  export type PickaxeModel = "gpt-3.5-turbo" | "gpt-4-1106-preview" | "mistral-small" | "gpt-5" | "gpt-5-mini" | "gpt-5-nano" | "gpt-4.1" | "gpt-4.1-mini" | "gpt-4.1-nano" | "gpt-4o-mini" | "gpt-4o" | "gpt-4" | "o3-mini" | "o1" | "deepseek-chat" | "mistral-large-latest" | "claude-3-opus-20240229" | "claude-3-5-sonnet-20240620" | "claude-3-7-sonnet-20250219" | "llama-3-uncensored";
7
7
  export type Pickaxe = {
8
8
  _id: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pickaxeproject/react",
3
- "version": "3.8.1",
3
+ "version": "3.9.0",
4
4
  "description": "Client utility library for Pickaxe",
5
5
  "repository": {
6
6
  "type": "git",
@@ -101,7 +101,6 @@
101
101
  "mermaid": "^11.7.0",
102
102
  "postcss": "^8.4.49",
103
103
  "prettier": "^3.5.3",
104
- "prettier-plugin-tailwindcss": "^0.6.14",
105
104
  "prismjs": "^1.29.0",
106
105
  "react": "^18.2.0",
107
106
  "react-dom": "^18.2.0",
@@ -181,7 +180,7 @@
181
180
  "scripts": {
182
181
  "build": "cross-env NODE_ENV=production rollup -c",
183
182
  "lint": "eslint . --ext .ts,.tsx,.js,.jsx",
184
- "lint:format": "prettier --check \"src/**/*.{js,jsx,ts,tsx,json,css,md,svg}\"",
183
+ "lint:format": "prettier --check src/**/*",
185
184
  "lint:staged": "pnpm run lint && pnpm run lint:format",
186
185
  "format": "prettier --write .",
187
186
  "changeset": "changeset",
@@ -1 +0,0 @@
1
- "use strict";function e(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach((function(r){if("default"!==r){var c=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,c.get?c:{enumerable:!0,get:function(){return e[r]}})}})),t.default=e,Object.freeze(t)}Object.defineProperty(exports,"__esModule",{value:!0});var t,r,c,l,n=e(require("react"));function a(){return a=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var c in r)({}).hasOwnProperty.call(r,c)&&(e[c]=r[c])}return e},a.apply(null,arguments)}var o=e=>n.createElement("svg",a({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},e),t||(t=n.createElement("path",{fill:"currentColor",d:"M16.4 4c.88 0 1.6.72 1.6 1.6v5.124l-.16-.004c-.505 0-.99.087-1.44.246V5.6H3.6v10.536l.936-.936h8.988a4.3 4.3 0 0 0 .37 1.6H5.2L2 20l.008-14.4c0-.88.712-1.6 1.592-1.6z"})),r||(r=n.createElement("path",{fill:"currentColor",d:"M14.772 12c-.444.448-.79.992-1.005 1.6H5.2V12zM14.8 11.2H5.2V9.6h9.6zM14.8 8.8H5.2V7.2h9.6zM17.996 11.2a4 4 0 0 0-3.996 4c0 2.208 1.788 4 3.996 4a4 4 0 0 0 4.004-4c0-2.208-1.792-4-4.004-4M18 18.4a3.2 3.2 0 1 1 0-6.4 3.2 3.2 0 1 1 0 6.4m.2-5.2h-.6v2.4l2.1 1.26.3-.492-1.8-1.068z"})),c||(c=n.createElement("path",{stroke:"currentColor",strokeWidth:.1,d:"M16.4 4c.88 0 1.6.72 1.6 1.6v5.124l-.16-.004c-.505 0-.99.087-1.44.246V5.6H3.6v10.536l.936-.936h8.988a4.3 4.3 0 0 0 .37 1.6H5.2L2 20l.008-14.4c0-.88.712-1.6 1.592-1.6z"})),l||(l=n.createElement("path",{stroke:"currentColor",strokeWidth:.1,d:"M14.772 12c-.444.448-.79.992-1.005 1.6H5.2V12zM14.8 11.2H5.2V9.6h9.6zM14.8 8.8H5.2V7.2h9.6zM17.996 11.2a4 4 0 0 0-3.996 4c0 2.208 1.788 4 3.996 4a4 4 0 0 0 4.004-4c0-2.208-1.792-4-4.004-4ZM18 18.4a3.2 3.2 0 1 1 0-6.4 3.2 3.2 0 1 1 0 6.4Zm.2-5.2h-.6v2.4l2.1 1.26.3-.492-1.8-1.068z"})));exports.default=o;
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),i=require("react"),s=require("../../../hooks/pickaxe/usePickaxeContext.js"),t=require("../../../hooks/studio/useStyleFontSize.js"),o=require("./PickaxeIcon.js"),r=require("./PickaxeHistoryButton.js"),l=require("../../../common/cn.js");exports.default=({className:c,iconClassName:n,historyBtnTip:a,onIconClick:u,onHistoryClick:d})=>{const{pickaxe:p,misc:x,colors:m,deploymentType:j}=s.usePickaxeContext(),f=t.useStyleFontSize(),h=i.useMemo((()=>({title:(null==p?void 0:p.formtitle)||"",description:(null==p?void 0:p.formdescription)||""})),[p]);return x.isTitle||x.isDescription||!x.isWhiteLabel?e.jsxs("div",Object.assign({className:l.default("flex min-h-[56px] items-center justify-between gap-4 px-4",c),style:{backgroundColor:m.secondary,color:m.secondaryText}},{children:[e.jsxs("div",Object.assign({className:"flex items-center gap-4"},{children:[x.isProfileImage&&e.jsx(o.default,Object.assign({src:null==p?void 0:p.coverphoto,alt:`${null==p?void 0:p.formtitle}'s Profile Picture`,width:32,height:32,className:l.default("h-[32px] w-[32px] shrink-0 rounded-full",n,!!u&&"cursor-pointer")},u&&{onClick:u})),x.isTitle&&e.jsx("p",Object.assign({className:l.default(f.b1)},{children:h.title}))]})),!!d&&e.jsx("div",Object.assign({className:l.default("popup"===j&&"pr-10")},{children:e.jsx(r.default,{tip:a,onClick:d})}))]})):null};
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../../../_virtual/_tslib.js"),s=require("react/jsx-runtime"),r=require("../../../hooks/core/useHover.js"),t=require("../../../hooks/core/usePressed.js"),i=require("../../../hooks/pickaxe/usePickaxeContext.js"),o=require("framer-motion"),a=require("../../Icons/message-clock.svg.js"),c=require("./PickaxeSimpleButton.js");exports.default=({tip:n,onClick:u})=>{const{colors:l,styles:d}=i.usePickaxeContext(),x=r.useHover(),{isHover:j}=x,m=e.__rest(x,["isHover"]),v=t.usePressed(),{isActive:k}=v,h=e.__rest(v,["isActive"]);return s.jsxs("div",Object.assign({className:"relative"},{children:[s.jsx(c.default,Object.assign({className:"h-8 w-8 shrink-0 items-center justify-center rounded-full duration-300 ease-in-out",color:l.accent,style:{backgroundColor:k?l.accent+"30":j?l.accent+"10":void 0},onClick:u,reversed:!0},m,h,{children:s.jsx(a.default,{className:"h-6 w-6 shrink-0"})})),s.jsx(o.AnimatePresence,{children:j&&!!n&&s.jsx(o.motion.div,Object.assign({className:"absolute right-0 top-10 z-10 w-max rounded text-xs font-semibold",style:{background:l.accent,color:l.accentText,padding:"0.5rem 0.75rem",borderRadius:d.cornerRadius},initial:{opacity:0,y:-10},animate:{opacity:1,y:0},exit:{opacity:0,y:-10},transition:{duration:.2,ease:"easeInOut"}},{children:n}))})]}))};
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react");exports.usePressed=()=>{const[s,r]=e.useState(!1);return{isActive:s,onMouseDown:e.useCallback((()=>r(!0)),[]),onMouseUp:e.useCallback((()=>r(!1)),[])}};
@@ -1,9 +0,0 @@
1
- interface PickaxeEmbedHeadProps {
2
- className?: string;
3
- iconClassName?: string;
4
- historyBtnTip?: string;
5
- onIconClick?: () => void;
6
- onHistoryClick?: () => void;
7
- }
8
- declare const PickaxeEmbedHead: ({ className, iconClassName, historyBtnTip, onIconClick, onHistoryClick, }: PickaxeEmbedHeadProps) => import("react/jsx-runtime").JSX.Element | null;
9
- export default PickaxeEmbedHead;
@@ -1,6 +0,0 @@
1
- interface PickaxeHistoryButtonProps {
2
- tip?: string;
3
- onClick: () => void;
4
- }
5
- declare const PickaxeHistoryButton: ({ tip, onClick }: PickaxeHistoryButtonProps) => import("react/jsx-runtime").JSX.Element;
6
- export default PickaxeHistoryButton;
@@ -1,5 +0,0 @@
1
- export declare const usePressed: () => {
2
- isActive: boolean;
3
- onMouseDown: () => void;
4
- onMouseUp: () => void;
5
- };
@@ -1 +0,0 @@
1
- import*as e from"react";var r,t,a,l;function c(){return c=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var a in t)({}).hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e},c.apply(null,arguments)}var n=n=>e.createElement("svg",c({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},n),r||(r=e.createElement("path",{fill:"currentColor",d:"M16.4 4c.88 0 1.6.72 1.6 1.6v5.124l-.16-.004c-.505 0-.99.087-1.44.246V5.6H3.6v10.536l.936-.936h8.988a4.3 4.3 0 0 0 .37 1.6H5.2L2 20l.008-14.4c0-.88.712-1.6 1.592-1.6z"})),t||(t=e.createElement("path",{fill:"currentColor",d:"M14.772 12c-.444.448-.79.992-1.005 1.6H5.2V12zM14.8 11.2H5.2V9.6h9.6zM14.8 8.8H5.2V7.2h9.6zM17.996 11.2a4 4 0 0 0-3.996 4c0 2.208 1.788 4 3.996 4a4 4 0 0 0 4.004-4c0-2.208-1.792-4-4.004-4M18 18.4a3.2 3.2 0 1 1 0-6.4 3.2 3.2 0 1 1 0 6.4m.2-5.2h-.6v2.4l2.1 1.26.3-.492-1.8-1.068z"})),a||(a=e.createElement("path",{stroke:"currentColor",strokeWidth:.1,d:"M16.4 4c.88 0 1.6.72 1.6 1.6v5.124l-.16-.004c-.505 0-.99.087-1.44.246V5.6H3.6v10.536l.936-.936h8.988a4.3 4.3 0 0 0 .37 1.6H5.2L2 20l.008-14.4c0-.88.712-1.6 1.592-1.6z"})),l||(l=e.createElement("path",{stroke:"currentColor",strokeWidth:.1,d:"M14.772 12c-.444.448-.79.992-1.005 1.6H5.2V12zM14.8 11.2H5.2V9.6h9.6zM14.8 8.8H5.2V7.2h9.6zM17.996 11.2a4 4 0 0 0-3.996 4c0 2.208 1.788 4 3.996 4a4 4 0 0 0 4.004-4c0-2.208-1.792-4-4.004-4ZM18 18.4a3.2 3.2 0 1 1 0-6.4 3.2 3.2 0 1 1 0 6.4Zm.2-5.2h-.6v2.4l2.1 1.26.3-.492-1.8-1.068z"})));export{n as default};
@@ -1 +0,0 @@
1
- import{jsxs as i,jsx as e}from"react/jsx-runtime";import{useMemo as o}from"react";import{usePickaxeContext as s}from"../../../hooks/pickaxe/usePickaxeContext.js";import{useStyleFontSize as t}from"../../../hooks/studio/useStyleFontSize.js";import r from"./PickaxeIcon.js";import c from"./PickaxeHistoryButton.js";import l from"../../../common/cn.js";const n=({className:n,iconClassName:a,historyBtnTip:m,onIconClick:p,onHistoryClick:d})=>{const{pickaxe:u,misc:f,colors:h,deploymentType:x}=s(),k=t(),j=o((()=>({title:(null==u?void 0:u.formtitle)||"",description:(null==u?void 0:u.formdescription)||""})),[u]);return f.isTitle||f.isDescription||!f.isWhiteLabel?i("div",Object.assign({className:l("flex min-h-[56px] items-center justify-between gap-4 px-4",n),style:{backgroundColor:h.secondary,color:h.secondaryText}},{children:[i("div",Object.assign({className:"flex items-center gap-4"},{children:[f.isProfileImage&&e(r,Object.assign({src:null==u?void 0:u.coverphoto,alt:`${null==u?void 0:u.formtitle}'s Profile Picture`,width:32,height:32,className:l("h-[32px] w-[32px] shrink-0 rounded-full",a,!!p&&"cursor-pointer")},p&&{onClick:p})),f.isTitle&&e("p",Object.assign({className:l(k.b1)},{children:j.title}))]})),!!d&&e("div",Object.assign({className:l("popup"===x&&"pr-10")},{children:e(c,{tip:m,onClick:d})}))]})):null};export{n as default};
@@ -1 +0,0 @@
1
- import{__rest as e}from"../../../_virtual/_tslib.js";import{jsxs as o,jsx as s}from"react/jsx-runtime";import{useHover as t}from"../../../hooks/core/useHover.js";import{usePressed as r}from"../../../hooks/core/usePressed.js";import{usePickaxeContext as i}from"../../../hooks/pickaxe/usePickaxeContext.js";import{AnimatePresence as c,motion as a}from"framer-motion";import n from"../../Icons/message-clock.svg.js";import m from"./PickaxeSimpleButton.js";const l=({tip:l,onClick:d})=>{const{colors:u,styles:p}=i(),f=t(),{isHover:k}=f,h=e(f,["isHover"]),v=r(),{isActive:j}=v,x=e(v,["isActive"]);return o("div",Object.assign({className:"relative"},{children:[s(m,Object.assign({className:"h-8 w-8 shrink-0 items-center justify-center rounded-full duration-300 ease-in-out",color:u.accent,style:{backgroundColor:j?u.accent+"30":k?u.accent+"10":void 0},onClick:d,reversed:!0},h,x,{children:s(n,{className:"h-6 w-6 shrink-0"})})),s(c,{children:k&&!!l&&s(a.div,Object.assign({className:"absolute right-0 top-10 z-10 w-max rounded text-xs font-semibold",style:{background:u.accent,color:u.accentText,padding:"0.5rem 0.75rem",borderRadius:p.cornerRadius},initial:{opacity:0,y:-10},animate:{opacity:1,y:0},exit:{opacity:0,y:-10},transition:{duration:.2,ease:"easeInOut"}},{children:l}))})]}))};export{l as default};
@@ -1 +0,0 @@
1
- import{useState as o,useCallback as t}from"react";const e=()=>{const[e,n]=o(!1);return{isActive:e,onMouseDown:t((()=>n(!0)),[]),onMouseUp:t((()=>n(!1)),[])}};export{e as usePressed};
@@ -1,9 +0,0 @@
1
- interface PickaxeEmbedHeadProps {
2
- className?: string;
3
- iconClassName?: string;
4
- historyBtnTip?: string;
5
- onIconClick?: () => void;
6
- onHistoryClick?: () => void;
7
- }
8
- declare const PickaxeEmbedHead: ({ className, iconClassName, historyBtnTip, onIconClick, onHistoryClick, }: PickaxeEmbedHeadProps) => import("react/jsx-runtime").JSX.Element | null;
9
- export default PickaxeEmbedHead;
@@ -1,6 +0,0 @@
1
- interface PickaxeHistoryButtonProps {
2
- tip?: string;
3
- onClick: () => void;
4
- }
5
- declare const PickaxeHistoryButton: ({ tip, onClick }: PickaxeHistoryButtonProps) => import("react/jsx-runtime").JSX.Element;
6
- export default PickaxeHistoryButton;
@@ -1,5 +0,0 @@
1
- export declare const usePressed: () => {
2
- isActive: boolean;
3
- onMouseDown: () => void;
4
- onMouseUp: () => void;
5
- };