@pickaxeproject/react 3.7.2 → 3.8.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.
- package/dist/cjs/components/Core/Menu/Button.js +1 -1
- package/dist/cjs/components/EmbedPreview/FAB.js +1 -1
- package/dist/cjs/components/EmbedPreview/Inline.js +1 -1
- package/dist/cjs/components/EmbedPreview/Popup.js +1 -1
- package/dist/cjs/components/Icons/message-clock.svg.js +1 -0
- package/dist/cjs/components/Pickaxe/Addons/Artifact/Renderer/SaveMenu.js +1 -1
- package/dist/cjs/components/Pickaxe/Addons/Artifact/Renderer/ViewOptions.js +1 -1
- package/dist/cjs/components/Pickaxe/Addons/Artifact/Renderer/index.js +1 -1
- package/dist/cjs/components/Pickaxe/Addons/Artifact/index.js +1 -1
- package/dist/cjs/components/Pickaxe/Addons/Auth/index.js +1 -1
- package/dist/cjs/components/Pickaxe/Addons/Document/List.js +1 -1
- package/dist/cjs/components/Pickaxe/Addons/IceBreaker/Breaker.js +1 -1
- package/dist/cjs/components/Pickaxe/Chat/History/Document.js +1 -1
- package/dist/cjs/components/Pickaxe/Chat/History/Message.js +1 -1
- package/dist/cjs/components/Pickaxe/Chat/History/index.js +1 -1
- package/dist/cjs/components/Pickaxe/Chat/Input.js +1 -1
- package/dist/cjs/components/Pickaxe/Form/History/Container.js +1 -1
- package/dist/cjs/components/Pickaxe/Form/History/Item.js +1 -1
- package/dist/cjs/components/Pickaxe/Form/NewChat.js +1 -1
- package/dist/cjs/components/Pickaxe/Form/Questions/Checkbox.js +1 -1
- package/dist/cjs/components/Pickaxe/Form/Questions/Document.js +1 -1
- package/dist/cjs/components/Pickaxe/Form/Questions/Input.js +1 -1
- package/dist/cjs/components/Pickaxe/Form/Questions/Option.js +1 -1
- package/dist/cjs/components/Pickaxe/Form/Questions/Submit.js +1 -1
- package/dist/cjs/components/Pickaxe/Form/index.js +1 -1
- package/dist/cjs/components/Pickaxe/Provider.js +1 -1
- package/dist/cjs/components/Pickaxe/common/PickaxeBranding.js +1 -1
- package/dist/cjs/components/Pickaxe/common/PickaxeCopyButton.js +1 -1
- package/dist/cjs/components/Pickaxe/common/PickaxeEmbedHead.js +1 -0
- package/dist/cjs/components/Pickaxe/common/PickaxeHistoryButton.js +1 -0
- package/dist/cjs/components/Pickaxe/common/PickaxeInfoModal.js +1 -1
- package/dist/cjs/components/Pickaxe/common/PickaxeInput.js +1 -1
- package/dist/cjs/components/Pickaxe/common/PickaxeMarkdown/Components/Artifact/index.js +1 -1
- package/dist/cjs/components/Pickaxe/common/PickaxeSimpleButton.js +1 -1
- package/dist/cjs/components/Pickaxe/index.js +1 -1
- package/dist/cjs/hooks/core/usePressed.js +1 -0
- package/dist/cjs/node_modules/.pnpm/cose-base@1.0.3/node_modules/cose-base/cose-base.js +1 -1
- package/dist/cjs/node_modules/.pnpm/cose-base@2.2.0/node_modules/cose-base/cose-base.js +1 -1
- package/dist/cjs/node_modules/.pnpm/layout-base@1.0.2/node_modules/layout-base/layout-base.js +1 -1
- package/dist/cjs/node_modules/.pnpm/layout-base@2.0.1/node_modules/layout-base/layout-base.js +1 -1
- package/dist/cjs/src/components/EmbedPreview/Popup.d.ts +1 -1
- package/dist/cjs/src/components/Pickaxe/Form/NewChat.d.ts +1 -2
- package/dist/cjs/src/components/Pickaxe/Provider.d.ts +2 -0
- package/dist/cjs/src/components/Pickaxe/common/PickaxeBranding.d.ts +2 -2
- package/dist/cjs/src/components/Pickaxe/common/PickaxeEmbedHead.d.ts +9 -0
- package/dist/cjs/src/components/Pickaxe/common/PickaxeHistoryButton.d.ts +6 -0
- package/dist/cjs/src/components/Pickaxe/common/PickaxeSimpleButton.d.ts +8 -2
- package/dist/cjs/src/hooks/core/usePressed.d.ts +5 -0
- package/dist/cjs/src/hooks/pickaxe/usePickaxeContext.d.ts +2 -0
- package/dist/cjs/src/types/pickaxe.d.ts +1 -1
- package/dist/esm/components/Core/Menu/Button.js +1 -1
- package/dist/esm/components/EmbedPreview/FAB.js +1 -1
- package/dist/esm/components/EmbedPreview/Inline.js +1 -1
- package/dist/esm/components/EmbedPreview/Popup.js +1 -1
- package/dist/esm/components/Icons/message-clock.svg.js +1 -0
- package/dist/esm/components/Pickaxe/Addons/Artifact/Renderer/SaveMenu.js +1 -1
- package/dist/esm/components/Pickaxe/Addons/Artifact/Renderer/ViewOptions.js +1 -1
- package/dist/esm/components/Pickaxe/Addons/Artifact/Renderer/index.js +1 -1
- package/dist/esm/components/Pickaxe/Addons/Artifact/index.js +1 -1
- package/dist/esm/components/Pickaxe/Addons/Auth/index.js +1 -1
- package/dist/esm/components/Pickaxe/Addons/Document/List.js +1 -1
- package/dist/esm/components/Pickaxe/Addons/IceBreaker/Breaker.js +1 -1
- package/dist/esm/components/Pickaxe/Chat/History/Document.js +1 -1
- package/dist/esm/components/Pickaxe/Chat/History/Message.js +1 -1
- package/dist/esm/components/Pickaxe/Chat/History/index.js +1 -1
- package/dist/esm/components/Pickaxe/Chat/Input.js +1 -1
- package/dist/esm/components/Pickaxe/Form/History/Container.js +1 -1
- package/dist/esm/components/Pickaxe/Form/History/Item.js +1 -1
- package/dist/esm/components/Pickaxe/Form/NewChat.js +1 -1
- package/dist/esm/components/Pickaxe/Form/Questions/Checkbox.js +1 -1
- package/dist/esm/components/Pickaxe/Form/Questions/Document.js +1 -1
- package/dist/esm/components/Pickaxe/Form/Questions/Input.js +1 -1
- package/dist/esm/components/Pickaxe/Form/Questions/Option.js +1 -1
- package/dist/esm/components/Pickaxe/Form/Questions/Submit.js +1 -1
- package/dist/esm/components/Pickaxe/Form/index.js +1 -1
- package/dist/esm/components/Pickaxe/Provider.js +1 -1
- package/dist/esm/components/Pickaxe/common/PickaxeBranding.js +1 -1
- package/dist/esm/components/Pickaxe/common/PickaxeCopyButton.js +1 -1
- package/dist/esm/components/Pickaxe/common/PickaxeEmbedHead.js +1 -0
- package/dist/esm/components/Pickaxe/common/PickaxeHistoryButton.js +1 -0
- package/dist/esm/components/Pickaxe/common/PickaxeInfoModal.js +1 -1
- package/dist/esm/components/Pickaxe/common/PickaxeInput.js +1 -1
- package/dist/esm/components/Pickaxe/common/PickaxeMarkdown/Components/Artifact/index.js +1 -1
- package/dist/esm/components/Pickaxe/common/PickaxeSimpleButton.js +1 -1
- package/dist/esm/components/Pickaxe/index.js +1 -1
- package/dist/esm/hooks/core/usePressed.js +1 -0
- package/dist/esm/node_modules/.pnpm/cose-base@1.0.3/node_modules/cose-base/cose-base.js +1 -1
- package/dist/esm/node_modules/.pnpm/cose-base@2.2.0/node_modules/cose-base/cose-base.js +1 -1
- package/dist/esm/node_modules/.pnpm/layout-base@1.0.2/node_modules/layout-base/layout-base.js +1 -1
- package/dist/esm/node_modules/.pnpm/layout-base@2.0.1/node_modules/layout-base/layout-base.js +1 -1
- package/dist/esm/src/components/EmbedPreview/Popup.d.ts +1 -1
- package/dist/esm/src/components/Pickaxe/Form/NewChat.d.ts +1 -2
- package/dist/esm/src/components/Pickaxe/Provider.d.ts +2 -0
- package/dist/esm/src/components/Pickaxe/common/PickaxeBranding.d.ts +2 -2
- package/dist/esm/src/components/Pickaxe/common/PickaxeEmbedHead.d.ts +9 -0
- package/dist/esm/src/components/Pickaxe/common/PickaxeHistoryButton.d.ts +6 -0
- package/dist/esm/src/components/Pickaxe/common/PickaxeSimpleButton.d.ts +8 -2
- package/dist/esm/src/hooks/core/usePressed.d.ts +5 -0
- package/dist/esm/src/hooks/pickaxe/usePickaxeContext.d.ts +2 -0
- package/dist/esm/src/types/pickaxe.d.ts +1 -1
- package/package.json +3 -2
- package/dist/cjs/components/Pickaxe/common/PickaxeCompactHead.js +0 -1
- package/dist/cjs/src/components/Pickaxe/common/PickaxeCompactHead.d.ts +0 -7
- package/dist/esm/components/Pickaxe/common/PickaxeCompactHead.js +0 -1
- package/dist/esm/src/components/Pickaxe/common/PickaxeCompactHead.d.ts +0 -7
|
@@ -1,10 +1,16 @@
|
|
|
1
|
-
import type { ReactNode } from "react";
|
|
1
|
+
import type { CSSProperties, 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;
|
|
6
8
|
isForceColor?: boolean;
|
|
7
9
|
onClick?: () => void;
|
|
10
|
+
onMouseDown?: () => void;
|
|
11
|
+
onMouseUp?: () => void;
|
|
12
|
+
onMouseEnter?: () => void;
|
|
13
|
+
onMouseLeave?: () => void;
|
|
8
14
|
}
|
|
9
|
-
declare const PickaxeSimpleButton: ({ color, children, className, isForceColor, onClick, }: PickaxeSimpleButtonProps) => import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
declare const PickaxeSimpleButton: ({ color, children, className, style, reversed, isForceColor, onClick, ...props }: PickaxeSimpleButtonProps) => import("react/jsx-runtime").JSX.Element;
|
|
10
16
|
export default PickaxeSimpleButton;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
export declare const usePickaxeContext: () => {
|
|
2
2
|
formId: string;
|
|
3
3
|
chatId: string;
|
|
4
|
+
lastChatId: string;
|
|
4
5
|
sessionId: string;
|
|
5
6
|
userId: string;
|
|
6
7
|
studioUserId: string;
|
|
@@ -30,6 +31,7 @@ export declare const usePickaxeContext: () => {
|
|
|
30
31
|
isEmailLogin: boolean;
|
|
31
32
|
setFormId: import("../../types/common").SetState<string>;
|
|
32
33
|
setChatId: import("../../types/common").SetState<string>;
|
|
34
|
+
setLastChatId: import("../../types/common").SetState<string>;
|
|
33
35
|
setSessionId: import("../../types/common").SetState<string>;
|
|
34
36
|
setPickaxe: import("../../types/common").SetState<import("../../types/pickaxe").LimitedPickaxe | null>;
|
|
35
37
|
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-
|
|
5
|
+
export type PickaxeDocumentUploadType = "ownerupload" | "enduserupload" | "enduserupload-user";
|
|
6
6
|
export type PickaxeModel = "gpt-3.5-turbo" | "gpt-4-1106-preview" | "mistral-small" | "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.
|
|
3
|
+
"version": "3.8.0",
|
|
4
4
|
"description": "Client utility library for Pickaxe",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -101,6 +101,7 @@
|
|
|
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",
|
|
104
105
|
"prismjs": "^1.29.0",
|
|
105
106
|
"react": "^18.2.0",
|
|
106
107
|
"react-dom": "^18.2.0",
|
|
@@ -180,7 +181,7 @@
|
|
|
180
181
|
"scripts": {
|
|
181
182
|
"build": "cross-env NODE_ENV=production rollup -c",
|
|
182
183
|
"lint": "eslint . --ext .ts,.tsx,.js,.jsx",
|
|
183
|
-
"lint:format": "prettier --check src
|
|
184
|
+
"lint:format": "prettier --check \"src/**/*.{js,jsx,ts,tsx,json,css,md,svg}\"",
|
|
184
185
|
"lint:staged": "pnpm run lint && pnpm run lint:format",
|
|
185
186
|
"format": "prettier --write .",
|
|
186
187
|
"changeset": "changeset",
|
|
@@ -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"),l=require("./PickaxeIcon.js"),r=require("./PickaxeBranding.js"),a=require("../../../common/cn.js");exports.default=({className:o,iconClassName:c,onIconClick:n})=>{const{pickaxe:u,misc:d,deploymentType:p}=s.usePickaxeContext(),x=t.useStyleFontSize(),m=i.useMemo((()=>({title:(null==u?void 0:u.formtitle)||"",description:(null==u?void 0:u.formdescription)||""})),[u]);return d.isTitle||d.isDescription||!d.isWhiteLabel?e.jsxs("div",Object.assign({className:a.default("flex h-[56px] items-center justify-between gap-4",o)},{children:[e.jsxs("div",Object.assign({className:"flex items-center gap-4"},{children:[d.isProfileImage&&e.jsx(l.default,Object.assign({src:null==u?void 0:u.coverphoto,alt:`${null==u?void 0:u.formtitle}'s Profile Picture`,width:32,height:32,className:a.default("shrink-0 h-[32px] w-[32px] rounded-full",c,!!n&&"cursor-pointer")},n&&{onClick:n})),d.isTitle&&e.jsx("p",Object.assign({className:a.default(x.b1)},{children:m.title}))]})),!d.isWhiteLabel&&e.jsx(r.default,{className:a.default("flex","popup"===p&&"p-0 pr-12"),animateHover:!0})]})):null};
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
interface PickaxeCompactHeadProps {
|
|
2
|
-
className?: string;
|
|
3
|
-
iconClassName?: string;
|
|
4
|
-
onIconClick?: () => void;
|
|
5
|
-
}
|
|
6
|
-
declare const PickaxeCompactHead: ({ className, iconClassName, onIconClick, }: PickaxeCompactHeadProps) => import("react/jsx-runtime").JSX.Element | null;
|
|
7
|
-
export default PickaxeCompactHead;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{jsxs as e,jsx as i}from"react/jsx-runtime";import{useMemo as s}from"react";import{usePickaxeContext as t}from"../../../hooks/pickaxe/usePickaxeContext.js";import{useStyleFontSize as o}from"../../../hooks/studio/useStyleFontSize.js";import r from"./PickaxeIcon.js";import l from"./PickaxeBranding.js";import c from"../../../common/cn.js";const n=({className:n,iconClassName:a,onIconClick:m})=>{const{pickaxe:p,misc:d,deploymentType:f}=t(),u=o(),h=s((()=>({title:(null==p?void 0:p.formtitle)||"",description:(null==p?void 0:p.formdescription)||""})),[p]);return d.isTitle||d.isDescription||!d.isWhiteLabel?e("div",Object.assign({className:c("flex h-[56px] items-center justify-between gap-4",n)},{children:[e("div",Object.assign({className:"flex items-center gap-4"},{children:[d.isProfileImage&&i(r,Object.assign({src:null==p?void 0:p.coverphoto,alt:`${null==p?void 0:p.formtitle}'s Profile Picture`,width:32,height:32,className:c("shrink-0 h-[32px] w-[32px] rounded-full",a,!!m&&"cursor-pointer")},m&&{onClick:m})),d.isTitle&&i("p",Object.assign({className:c(u.b1)},{children:h.title}))]})),!d.isWhiteLabel&&i(l,{className:c("flex","popup"===f&&"p-0 pr-12"),animateHover:!0})]})):null};export{n as default};
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
interface PickaxeCompactHeadProps {
|
|
2
|
-
className?: string;
|
|
3
|
-
iconClassName?: string;
|
|
4
|
-
onIconClick?: () => void;
|
|
5
|
-
}
|
|
6
|
-
declare const PickaxeCompactHead: ({ className, iconClassName, onIconClick, }: PickaxeCompactHeadProps) => import("react/jsx-runtime").JSX.Element | null;
|
|
7
|
-
export default PickaxeCompactHead;
|