@pickaxeproject/react 6.19.0 → 6.20.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/Pickaxe/Addons/Auth/Provider.js +1 -1
- package/dist/cjs/components/Pickaxe/Provider.js +1 -1
- package/dist/cjs/src/components/Pickaxe/Addons/Auth/Provider.d.ts +2 -1
- package/dist/cjs/src/components/Pickaxe/Provider.d.ts +2 -1
- package/dist/esm/components/Pickaxe/Addons/Auth/Provider.js +1 -1
- package/dist/esm/components/Pickaxe/Provider.js +1 -1
- package/dist/esm/src/components/Pickaxe/Addons/Auth/Provider.d.ts +2 -1
- package/dist/esm/src/components/Pickaxe/Provider.d.ts +2 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),t=require("react");const s=t.createContext({});exports.AuthContext=s,exports.default=({children:i})=>{const[
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),t=require("react");const s=t.createContext({});exports.AuthContext=s,exports.default=({children:i,initialToken:n})=>{const[r,u]=t.useState(""),[a,o]=t.useState(null!=n?n:null),[l,d]=t.useState(null),[c,g]=t.useState(!1),[S,I]=t.useState(!1),[p,h]=t.useState(!1),[x,m]=t.useState(!1),[v,A]=t.useState(!1),[b,f]=t.useState(!1);return t.useEffect((()=>{void 0!==n&&o(n)}),[n]),e.jsx(s.Provider,Object.assign({value:{emailInput:r,redirectUrl:l,token:a,isLoggedIn:!!a,isLoggedOut:!a,isLoggingIn:c,isSending:p,isResendDisabled:x,isSent:v,isPricingAuth:S,isAuthBootstrapComplete:b,setIsPricingAuth:I,setRedirectUrl:d,setEmailInput:u,setToken:o,setIsLoggingIn:g,setIsSending:h,setIsResendDisabled:m,setIsSent:A,setIsAuthBootstrapComplete:f}},{children:i}))};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../../_virtual/_tslib.js"),t=require("react/jsx-runtime"),i=require("react"),o=require("./Addons/Artifact/Provider.js"),s=require("./DimensionProvider.js"),a=require("./ResponseProvider.js"),n=require("./Addons/Document/Provider.js"),r=require("./Addons/Auth/Provider.js");function l(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach((function(i){if("default"!==i){var o=Object.getOwnPropertyDescriptor(e,i);Object.defineProperty(t,i,o.get?o:{enumerable:!0,get:function(){return e[i]}})}})),t.default=e,Object.freeze(t)}const d=i.createContext({});exports.PickaxeContext=d,exports.PickaxeProvider=({children:c,origin:u,sender:p,senderType:f,deploymentId:g,portalId:h,deploymentType:m,deploymentDimensions:y,deploymentMisc:b,styles:v,colors:w,limits:S={},misc:k={isWhiteLabel:!0,isProfileImage:!0,isChatImage:!0,isTitle:!0,isDescription:!0,isHistory:!0},translations:P,artifact:C={popupType:"auto"},responsiveBy:x="viewport",locale:I="en",opacity:F=1,forceMobile:q=!1,disableHtml:j=!1,disableJs:A=!1,disableCss:T=!1,loadFont:O=!0,isRtl:U=!1,isEmbed:D=!1,mcpEnabled:E=!1,isDropShadow:R=!1,allowGuestUsage:M=!0,persistActiveConversation:L=!1,preventInitialSessionId:G=!1,onUpgrade:H,onGenerateComplete:W,onSessionIdChange:_})=>{const[B,V]=i.useState(""),[N,X]=i.useState(""),[Y,z]=i.useState(""),[J,K]=i.useState(""),[Q,Z]=i.useState(p),[$,ee]=i.useState(null),[te,ie]=i.useState(f),[oe,se]=i.useState("loading"),[ae,ne]=i.useState([]),[re,le]=i.useState(null),[de,ce]=i.useState(null),[ue,pe]=i.useState(null),[fe,ge]=i.useState(null),[he,me]=i.useState(!1),[ye,be]=i.useState(!0),[ve,we]=i.useState(!0),[Se,ke]=i.useState(!1);return i.useEffect((()=>{me(!1)}),[null==v?void 0:v.font]),i.useEffect((()=>{e.__awaiter(void 0,void 0,void 0,(function*(){if("undefined"!=typeof window&&O&&!he&&(null==v?void 0:v.font)&&"Real Head Pro"!==v.font)try{(yield Promise.resolve().then((function(){return l(require("webfontloader"))}))).default.load({google:{families:[v.font]},active:()=>{me(!0)},inactive:()=>{console.error("[pxe] failed to load font {styles.font}"),me(!0)}})}catch(e){console.error("[pxe] failed to load font:",e),me(!0)}}))}),[O,he,null==v?void 0:v.font]),i.useEffect((()=>{Z(p)}),[p]),t.jsx(d.Provider,Object.assign({value:Object.assign(Object.assign({origin:u,contextId:B,pickaxeId:N,sessionId:Y,lastSessionId:J,sender:Q,senderType:te,portalId:h,deploymentId:g,deploymentType:m,validationStatus:oe,validationUpgradeGroups:ae,validationUpgradeUrl:re,deploymentDimensions:y,deploymentMisc:b,accessGroup:$,pickaxe:fe,styles:Object.assign({theme:"light",font:"Real Head Pro",fontSize:"md",formFieldStyle:"box",btnStyle:"filled",outlineThickness:1,cornerRadius:4},v),colors:Object.assign({primary:"#F6F8FA",text:"#000000",secondary:"#FFFFFF",secondaryText:"#000000",accent:"#228DD7",accentText:"#FFFFFF",error:"#EF4444"},w),misc:k,translations:Object.assign({"new-chat":"New chat","see-history":"See history","see-input":"See input","hide-input":"Hide input",processing:"Processing...",uploading:"Uploading...",loading:"Loading...","powered-by-pickaxe":"Powered by Pickaxe","form-doc-placeholder":"Paste a website/video link or drag a file",website:"Website",copy:"Copy","file-limit-reached":"You have reached the file limit.",save:"Save","save-as":"Save as","please-enter-email-to-continue":"Please enter your email to continue:","enter-email-to-continue":"Enter here your email to continue",submit:"Submit",sending:"Sending...","check-your-inbox":"Check your inbox","we-sent-your-an-activation-link":"We sent you an activation link. Please be sure to check your spam folder too.",resend:"Resend",resending:"Resending...","enter-verification-code":"Or enter the 6-digit code from the email","verification-code-session-missing":"Your login request could not be found. Please resend the email.","verification-code-invalid":"Invalid verification code.",verifying:"Verifying...",verify:"Verify","chat-history":"Chat History","exit-chat-history":"Exit Chat History","no-history":"No history yet.","mcp-use-with-ai-app":"Use with an AI app","mcp-use-agent-in-ai-app":"Use this agent in your AI app","mcp-connect-description":"Connect through MCP. Requests will be sent as your signed-in Studio user.","mcp-ai-app":"AI app","mcp-copy-configuration":"Copy MCP configuration","mcp-private-configuration-note":"Keep this configuration private. It contains your Studio session token and stops working when that session expires.","log-out":"Log Out","clear-form":"Clear form","form.clear-form":"Clear form",expand:"Expand","expand-artifact":"Expand artifact",collapse:"Collapse","collapse-artifact":"Collapse artifact",close:"Close","close-artifact":"Close artifact",download:"Download","copy-artifact-content":"Copy artifact content","download-artifact-content":"Download artifact content","delete-confirm":"Are you sure you want to delete this conversation?",other:"Other","select-options":"Select option(s)","select-an-option":"Select an option","type-your-answer":"Type your answer...",cancel:"Cancel","rename-chat":"Rename chat","delete-chat":"Delete chat","conversation-name":"Conversation name","not-available":"n/a","open-chat":"Open Chat",copied:"Copied!","copy-assistant-message":"Copy assistant message","failed-delete-conversation":"Failed to delete conversation.","failed-update-name":"Failed to update name.","failed-rename-chat":"Failed to rename chat.","failed-delete-chat":"Failed to delete chat.","drop-files-to-upload":"Drop files to upload","add-anything-to-the-conversation":"Add anything to the conversation","something-went-wrong-please-try-again":"Something went wrong. Please try again, or","contact-us":"contact us","for-help":"for help.",back:"Back","upgrade-required":"Upgrade Required","please-upgrade-to-continue-using-this-tool":"Please upgrade to continue using this tool.","access-locked":"Access Locked","this-tool-is-locked-contact-owner":"This tool is locked to use. Contact owner for more information.","access-denied":"Access Denied","login-is-required":"Login is required.","no-access-request-access":"It looks like you don't have access to these resources. Please request access to continue.","request-access":"Request Access",or:"or","sign-in-with-different-account":"Sign in with a different account","access-requested-successfully":"Successfully requested access!","open-tool":"Open Tool","fab-icon":"FAB Icon","iframe-artifact-fallback":"Iframe is not supported, please view this artifact in a browser that supports it.","html-preview":"HTML preview","image-link-is-broken":"[Image link is broken]","download-video":"Download Video","available-plans":"Available Plans",buy:"Buy",credits:"Credits",uses:"Uses",credits_upper:"CREDITS",uses_upper:"USES",free:"Free","pricing.free":"Free",unlimited:"Unlimited","pricing.unlimited":"Unlimited","authentication-required":"Authentication Required","smithery-auth-description-prefix":"The tool you are trying to use requires authentication with",dismiss:"Dismiss",connect:"Connect",connecting:"Connecting...","auth-failed":"Auth failed","failed-to-finalize-authentication":"Failed to finalize authentication.","must-be-logged-in-to-connect-smithery":"You must be logged in to connect Smithery MCPs.","feedback-dislike-input-placeholder":"Write here...","feedback-submit":"Submit","feedback-thanks":"Thanks for the feedback!","feedback-like-title":"What went right?","feedback-dislike-title":"What went wrong?","feedback-dislike-message":"Help us improve our answers","what-do-you-want-to-talk-about":"What do you want to talk about?","failed-to-start-generation":"Failed to start generation","response-too-long":"One or more of your responses is too long!","required-fields-missing":"You must fill out all required fields.","something-went-wrong":"Something went wrong.","something-went-wrong-try-again":"Something went wrong, please try again.","high-traffic-try-again-later":"Oops! We're experiencing high traffic at the moment. Please try again later.","queue-message":"Queue message","stop-response":"Stop response",steer:"Steer","steer-with":"Steer with",steering:"Steering...",starting:"Starting...","remove-queued-message":"Remove queued message","edit-message":"Edit message","more-options":"More options","failed-to-interrupt-current-response":"Failed to interrupt the current response.","current-response-still-stopping":"The current response is still stopping. Please send your message again in a moment.","queued-message-waiting":"A queued message is waiting for the previous response to finish.",listening:"Listening...",remaining:"remaining",upgrade:"Upgrade","pricing.upgrade":"Upgrade","email-address-cannot-be-empty":"Email address cannot be empty.","please-enter-valid-email-address":"Please enter a valid email address.","failed-to-send-sign-in-link":"Failed to send sign-in link.",tool:"Tool","document-processing-failed":"Document processing failed","invalid-upload-file-types":"You can only upload PDF, TXT, DOCX, CSV, XLSX, JSON, PPTX, MD, HTML, XML, PNG, JPEG, WEBP, or GIF files. Please try again.","invalid-website-or-youtube-link":"Please paste a valid website URL or Youtube video link to add to the knowledge base.","website-processing-failed":"Website processing failed, please try again.","invalid-website-url":"Please paste a valid website URL","document-upload-required":"Please paste a valid website/video link or drag a file to add to the knowledge base.",thinking:"Thinking...",thought:"Thought","thought-for":"Thought for",seconds:"seconds","untitled-artifact":"Untitled Artifact",created:"Created",updated:"Updated",rewrote:"Rewrote",artifact:"Artifact","iframe-not-supported-use-different-browser":"Iframe not supported, use a different browser."},P),artifact:C,responsiveBy:x,locale:I,opacity:F,forceMobile:q,loadFont:O,disableHtml:j,disableJs:A,disableCss:T,isFontLoaded:he,isNewChat:ye,isShowIceBreaker:ve,isShowFeedbackMessage:Se,isRtl:U,isEmbed:D,mcpEnabled:E,isDropShadow:R,allowGuestUsage:M,persistActiveConversation:L,clientSecret:ue,stripeAccountId:de,preventInitialSessionId:G,setClientSecret:pe,setStripeAccountId:ce,setContextId:V,setValidationStatus:se,setValidationUpgradeGroups:ne,setValidationUpgradeUrl:le,setPickaxeId:X,setSessionId:e=>{z((t=>{const i="function"==typeof e?e(t):e;return null==_||_(i),i}))},setLastSessionId:K,setSender:Z,setSenderType:ie,setAccessGroup:ee,setPickaxe:ge,setIsFontLoaded:me,setIsNewChat:be,setIsShowIceBreaker:we,setIsShowFeedbackMessage:ke},H&&{onUpgrade:H}),W&&{onGenerateComplete:W})},{children:t.jsx(r.default,{children:t.jsx(s.default,{children:t.jsx(a.default,Object.assign({limits:S},{children:t.jsx(n.default,{children:t.jsx(o.ArtifactProvider,Object.assign({},C,{children:c}))})}))})})}))};
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../../_virtual/_tslib.js"),t=require("react/jsx-runtime"),i=require("react"),o=require("./Addons/Artifact/Provider.js"),s=require("./DimensionProvider.js"),a=require("./ResponseProvider.js"),n=require("./Addons/Document/Provider.js"),r=require("./Addons/Auth/Provider.js");function l(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach((function(i){if("default"!==i){var o=Object.getOwnPropertyDescriptor(e,i);Object.defineProperty(t,i,o.get?o:{enumerable:!0,get:function(){return e[i]}})}})),t.default=e,Object.freeze(t)}const d=i.createContext({});exports.PickaxeContext=d,exports.PickaxeProvider=({children:c,origin:u,sender:p,senderType:f,deploymentId:g,portalId:h,deploymentType:m,deploymentDimensions:y,deploymentMisc:b,styles:v,colors:w,limits:S={},misc:k={isWhiteLabel:!0,isProfileImage:!0,isChatImage:!0,isTitle:!0,isDescription:!0,isHistory:!0},translations:P,artifact:C={popupType:"auto"},responsiveBy:x="viewport",locale:I="en",opacity:F=1,forceMobile:q=!1,disableHtml:j=!1,disableJs:T=!1,disableCss:A=!1,loadFont:O=!0,isRtl:U=!1,isEmbed:D=!1,mcpEnabled:E=!1,studioSessionToken:R,isDropShadow:M=!1,allowGuestUsage:L=!0,persistActiveConversation:G=!1,preventInitialSessionId:H=!1,onUpgrade:W,onGenerateComplete:_,onSessionIdChange:B})=>{const[V,N]=i.useState(""),[X,Y]=i.useState(""),[z,J]=i.useState(""),[K,Q]=i.useState(""),[Z,$]=i.useState(p),[ee,te]=i.useState(null),[ie,oe]=i.useState(f),[se,ae]=i.useState("loading"),[ne,re]=i.useState([]),[le,de]=i.useState(null),[ce,ue]=i.useState(null),[pe,fe]=i.useState(null),[ge,he]=i.useState(null),[me,ye]=i.useState(!1),[be,ve]=i.useState(!0),[we,Se]=i.useState(!0),[ke,Pe]=i.useState(!1);return i.useEffect((()=>{ye(!1)}),[null==v?void 0:v.font]),i.useEffect((()=>{e.__awaiter(void 0,void 0,void 0,(function*(){if("undefined"!=typeof window&&O&&!me&&(null==v?void 0:v.font)&&"Real Head Pro"!==v.font)try{(yield Promise.resolve().then((function(){return l(require("webfontloader"))}))).default.load({google:{families:[v.font]},active:()=>{ye(!0)},inactive:()=>{console.error("[pxe] failed to load font {styles.font}"),ye(!0)}})}catch(e){console.error("[pxe] failed to load font:",e),ye(!0)}}))}),[O,me,null==v?void 0:v.font]),i.useEffect((()=>{$(p)}),[p]),t.jsx(d.Provider,Object.assign({value:Object.assign(Object.assign({origin:u,contextId:V,pickaxeId:X,sessionId:z,lastSessionId:K,sender:Z,senderType:ie,portalId:h,deploymentId:g,deploymentType:m,validationStatus:se,validationUpgradeGroups:ne,validationUpgradeUrl:le,deploymentDimensions:y,deploymentMisc:b,accessGroup:ee,pickaxe:ge,styles:Object.assign({theme:"light",font:"Real Head Pro",fontSize:"md",formFieldStyle:"box",btnStyle:"filled",outlineThickness:1,cornerRadius:4},v),colors:Object.assign({primary:"#F6F8FA",text:"#000000",secondary:"#FFFFFF",secondaryText:"#000000",accent:"#228DD7",accentText:"#FFFFFF",error:"#EF4444"},w),misc:k,translations:Object.assign({"new-chat":"New chat","see-history":"See history","see-input":"See input","hide-input":"Hide input",processing:"Processing...",uploading:"Uploading...",loading:"Loading...","powered-by-pickaxe":"Powered by Pickaxe","form-doc-placeholder":"Paste a website/video link or drag a file",website:"Website",copy:"Copy","file-limit-reached":"You have reached the file limit.",save:"Save","save-as":"Save as","please-enter-email-to-continue":"Please enter your email to continue:","enter-email-to-continue":"Enter here your email to continue",submit:"Submit",sending:"Sending...","check-your-inbox":"Check your inbox","we-sent-your-an-activation-link":"We sent you an activation link. Please be sure to check your spam folder too.",resend:"Resend",resending:"Resending...","enter-verification-code":"Or enter the 6-digit code from the email","verification-code-session-missing":"Your login request could not be found. Please resend the email.","verification-code-invalid":"Invalid verification code.",verifying:"Verifying...",verify:"Verify","chat-history":"Chat History","exit-chat-history":"Exit Chat History","no-history":"No history yet.","mcp-use-with-ai-app":"Use with an AI app","mcp-use-agent-in-ai-app":"Use this agent in your AI app","mcp-connect-description":"Connect through MCP. Requests will be sent as your signed-in Studio user.","mcp-ai-app":"AI app","mcp-copy-configuration":"Copy MCP configuration","mcp-private-configuration-note":"Keep this configuration private. It contains your Studio session token and stops working when that session expires.","log-out":"Log Out","clear-form":"Clear form","form.clear-form":"Clear form",expand:"Expand","expand-artifact":"Expand artifact",collapse:"Collapse","collapse-artifact":"Collapse artifact",close:"Close","close-artifact":"Close artifact",download:"Download","copy-artifact-content":"Copy artifact content","download-artifact-content":"Download artifact content","delete-confirm":"Are you sure you want to delete this conversation?",other:"Other","select-options":"Select option(s)","select-an-option":"Select an option","type-your-answer":"Type your answer...",cancel:"Cancel","rename-chat":"Rename chat","delete-chat":"Delete chat","conversation-name":"Conversation name","not-available":"n/a","open-chat":"Open Chat",copied:"Copied!","copy-assistant-message":"Copy assistant message","failed-delete-conversation":"Failed to delete conversation.","failed-update-name":"Failed to update name.","failed-rename-chat":"Failed to rename chat.","failed-delete-chat":"Failed to delete chat.","drop-files-to-upload":"Drop files to upload","add-anything-to-the-conversation":"Add anything to the conversation","something-went-wrong-please-try-again":"Something went wrong. Please try again, or","contact-us":"contact us","for-help":"for help.",back:"Back","upgrade-required":"Upgrade Required","please-upgrade-to-continue-using-this-tool":"Please upgrade to continue using this tool.","access-locked":"Access Locked","this-tool-is-locked-contact-owner":"This tool is locked to use. Contact owner for more information.","access-denied":"Access Denied","login-is-required":"Login is required.","no-access-request-access":"It looks like you don't have access to these resources. Please request access to continue.","request-access":"Request Access",or:"or","sign-in-with-different-account":"Sign in with a different account","access-requested-successfully":"Successfully requested access!","open-tool":"Open Tool","fab-icon":"FAB Icon","iframe-artifact-fallback":"Iframe is not supported, please view this artifact in a browser that supports it.","html-preview":"HTML preview","image-link-is-broken":"[Image link is broken]","download-video":"Download Video","available-plans":"Available Plans",buy:"Buy",credits:"Credits",uses:"Uses",credits_upper:"CREDITS",uses_upper:"USES",free:"Free","pricing.free":"Free",unlimited:"Unlimited","pricing.unlimited":"Unlimited","authentication-required":"Authentication Required","smithery-auth-description-prefix":"The tool you are trying to use requires authentication with",dismiss:"Dismiss",connect:"Connect",connecting:"Connecting...","auth-failed":"Auth failed","failed-to-finalize-authentication":"Failed to finalize authentication.","must-be-logged-in-to-connect-smithery":"You must be logged in to connect Smithery MCPs.","feedback-dislike-input-placeholder":"Write here...","feedback-submit":"Submit","feedback-thanks":"Thanks for the feedback!","feedback-like-title":"What went right?","feedback-dislike-title":"What went wrong?","feedback-dislike-message":"Help us improve our answers","what-do-you-want-to-talk-about":"What do you want to talk about?","failed-to-start-generation":"Failed to start generation","response-too-long":"One or more of your responses is too long!","required-fields-missing":"You must fill out all required fields.","something-went-wrong":"Something went wrong.","something-went-wrong-try-again":"Something went wrong, please try again.","high-traffic-try-again-later":"Oops! We're experiencing high traffic at the moment. Please try again later.","queue-message":"Queue message","stop-response":"Stop response",steer:"Steer","steer-with":"Steer with",steering:"Steering...",starting:"Starting...","remove-queued-message":"Remove queued message","edit-message":"Edit message","more-options":"More options","failed-to-interrupt-current-response":"Failed to interrupt the current response.","current-response-still-stopping":"The current response is still stopping. Please send your message again in a moment.","queued-message-waiting":"A queued message is waiting for the previous response to finish.",listening:"Listening...",remaining:"remaining",upgrade:"Upgrade","pricing.upgrade":"Upgrade","email-address-cannot-be-empty":"Email address cannot be empty.","please-enter-valid-email-address":"Please enter a valid email address.","failed-to-send-sign-in-link":"Failed to send sign-in link.",tool:"Tool","document-processing-failed":"Document processing failed","invalid-upload-file-types":"You can only upload PDF, TXT, DOCX, CSV, XLSX, JSON, PPTX, MD, HTML, XML, PNG, JPEG, WEBP, or GIF files. Please try again.","invalid-website-or-youtube-link":"Please paste a valid website URL or Youtube video link to add to the knowledge base.","website-processing-failed":"Website processing failed, please try again.","invalid-website-url":"Please paste a valid website URL","document-upload-required":"Please paste a valid website/video link or drag a file to add to the knowledge base.",thinking:"Thinking...",thought:"Thought","thought-for":"Thought for",seconds:"seconds","untitled-artifact":"Untitled Artifact",created:"Created",updated:"Updated",rewrote:"Rewrote",artifact:"Artifact","iframe-not-supported-use-different-browser":"Iframe not supported, use a different browser."},P),artifact:C,responsiveBy:x,locale:I,opacity:F,forceMobile:q,loadFont:O,disableHtml:j,disableJs:T,disableCss:A,isFontLoaded:me,isNewChat:be,isShowIceBreaker:we,isShowFeedbackMessage:ke,isRtl:U,isEmbed:D,mcpEnabled:E,isDropShadow:M,allowGuestUsage:L,persistActiveConversation:G,clientSecret:pe,stripeAccountId:ce,preventInitialSessionId:H,setClientSecret:fe,setStripeAccountId:ue,setContextId:N,setValidationStatus:ae,setValidationUpgradeGroups:re,setValidationUpgradeUrl:de,setPickaxeId:Y,setSessionId:e=>{J((t=>{const i="function"==typeof e?e(t):e;return null==B||B(i),i}))},setLastSessionId:Q,setSender:$,setSenderType:oe,setAccessGroup:te,setPickaxe:he,setIsFontLoaded:ye,setIsNewChat:ve,setIsShowIceBreaker:Se,setIsShowFeedbackMessage:Pe},W&&{onUpgrade:W}),_&&{onGenerateComplete:_})},{children:t.jsx(r.default,Object.assign({initialToken:R},{children:t.jsx(s.default,{children:t.jsx(a.default,Object.assign({limits:S},{children:t.jsx(n.default,{children:t.jsx(o.ArtifactProvider,Object.assign({},C,{children:c}))})}))})}))}))};
|
|
@@ -24,7 +24,8 @@ type AuthContextType = {
|
|
|
24
24
|
};
|
|
25
25
|
export interface IAuthProviderProps {
|
|
26
26
|
children: ReactNode;
|
|
27
|
+
initialToken?: string | null;
|
|
27
28
|
}
|
|
28
29
|
export declare const AuthContext: import("react").Context<AuthContextType>;
|
|
29
|
-
declare const AuthProvider: ({ children }: IAuthProviderProps) => import("react/jsx-runtime").JSX.Element;
|
|
30
|
+
declare const AuthProvider: ({ children, initialToken }: IAuthProviderProps) => import("react/jsx-runtime").JSX.Element;
|
|
30
31
|
export default AuthProvider;
|
|
@@ -162,6 +162,7 @@ export interface IPickaxeProviderProps {
|
|
|
162
162
|
isRtl?: boolean;
|
|
163
163
|
isEmbed?: boolean;
|
|
164
164
|
mcpEnabled?: boolean;
|
|
165
|
+
studioSessionToken?: string | null;
|
|
165
166
|
isDropShadow?: boolean;
|
|
166
167
|
allowGuestUsage?: boolean;
|
|
167
168
|
persistActiveConversation?: boolean;
|
|
@@ -171,5 +172,5 @@ export interface IPickaxeProviderProps {
|
|
|
171
172
|
onSessionIdChange?: (sessionId: string) => void;
|
|
172
173
|
}
|
|
173
174
|
export declare const PickaxeContext: import("react").Context<PickaxeContextType>;
|
|
174
|
-
export declare const PickaxeProvider: ({ children, origin, sender: _sender, senderType: _senderType, deploymentId, portalId, deploymentType, deploymentDimensions, deploymentMisc, styles, colors, limits, misc, translations, artifact, responsiveBy, locale, opacity, forceMobile, disableHtml, disableJs, disableCss, loadFont, isRtl, isEmbed, mcpEnabled, isDropShadow, allowGuestUsage, persistActiveConversation, preventInitialSessionId, onUpgrade, onGenerateComplete, onSessionIdChange, }: IPickaxeProviderProps) => import("react/jsx-runtime").JSX.Element;
|
|
175
|
+
export declare const PickaxeProvider: ({ children, origin, sender: _sender, senderType: _senderType, deploymentId, portalId, deploymentType, deploymentDimensions, deploymentMisc, styles, colors, limits, misc, translations, artifact, responsiveBy, locale, opacity, forceMobile, disableHtml, disableJs, disableCss, loadFont, isRtl, isEmbed, mcpEnabled, studioSessionToken, isDropShadow, allowGuestUsage, persistActiveConversation, preventInitialSessionId, onUpgrade, onGenerateComplete, onSessionIdChange, }: IPickaxeProviderProps) => import("react/jsx-runtime").JSX.Element;
|
|
175
176
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as e}from"react/jsx-runtime";import{useState as t,createContext as
|
|
1
|
+
import{jsx as e}from"react/jsx-runtime";import{useState as t,useEffect as s,createContext as i}from"react";const n=i({}),r=({children:i,initialToken:r})=>{const[o,l]=t(""),[d,g]=t(null!=r?r:null),[u,a]=t(null),[c,I]=t(!1),[m,p]=t(!1),[h,A]=t(!1),[L,S]=t(!1),[b,f]=t(!1),[k,v]=t(!1);return s((()=>{void 0!==r&&g(r)}),[r]),e(n.Provider,Object.assign({value:{emailInput:o,redirectUrl:u,token:d,isLoggedIn:!!d,isLoggedOut:!d,isLoggingIn:c,isSending:h,isResendDisabled:L,isSent:b,isPricingAuth:m,isAuthBootstrapComplete:k,setIsPricingAuth:p,setRedirectUrl:a,setEmailInput:l,setToken:g,setIsLoggingIn:I,setIsSending:A,setIsResendDisabled:S,setIsSent:f,setIsAuthBootstrapComplete:v}},{children:i}))};export{n as AuthContext,r as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{__awaiter as e}from"../../_virtual/_tslib.js";import{jsx as t}from"react/jsx-runtime";import{createContext as i,useState as o,useEffect as n}from"react";import{ArtifactProvider as s}from"./Addons/Artifact/Provider.js";import a from"./DimensionProvider.js";import r from"./ResponseProvider.js";import l from"./Addons/Document/Provider.js";import d from"./Addons/Auth/Provider.js";const c=i({}),p=({children:i,origin:p,sender:u,senderType:g,deploymentId:m,portalId:f,deploymentType:h,deploymentDimensions:y,deploymentMisc:w,styles:b,colors:v,limits:k={},misc:S={isWhiteLabel:!0,isProfileImage:!0,isChatImage:!0,isTitle:!0,isDescription:!0,isHistory:!0},translations:C,artifact:I={popupType:"auto"},responsiveBy:P="viewport",locale:F="en",opacity:x=1,forceMobile:A=!1,disableHtml:T=!1,disableJs:U=!1,disableCss:q=!1,loadFont:D=!0,isRtl:R=!1,isEmbed:O=!1,mcpEnabled:j=!1,isDropShadow:E=!1,allowGuestUsage:L=!0,persistActiveConversation:M=!1,preventInitialSessionId:G=!1,onUpgrade:H,onGenerateComplete:W,onSessionIdChange:B})=>{const[V,N]=o(""),[X,Y]=o(""),[J,_]=o(""),[z,K]=o(""),[Q,Z]=o(u),[$,ee]=o(null),[te,ie]=o(g),[oe,ne]=o("loading"),[se,ae]=o([]),[re,le]=o(null),[de,ce]=o(null),[pe,ue]=o(null),[ge,me]=o(null),[fe,he]=o(!1),[ye,we]=o(!0),[be,ve]=o(!0),[ke,Se]=o(!1);return n((()=>{he(!1)}),[null==b?void 0:b.font]),n((()=>{e(void 0,void 0,void 0,(function*(){if("undefined"!=typeof window&&D&&!fe&&(null==b?void 0:b.font)&&"Real Head Pro"!==b.font)try{(yield import("webfontloader")).default.load({google:{families:[b.font]},active:()=>{he(!0)},inactive:()=>{console.error("[pxe] failed to load font {styles.font}"),he(!0)}})}catch(e){console.error("[pxe] failed to load font:",e),he(!0)}}))}),[D,fe,null==b?void 0:b.font]),n((()=>{Z(u)}),[u]),t(c.Provider,Object.assign({value:Object.assign(Object.assign({origin:p,contextId:V,pickaxeId:X,sessionId:J,lastSessionId:z,sender:Q,senderType:te,portalId:f,deploymentId:m,deploymentType:h,validationStatus:oe,validationUpgradeGroups:se,validationUpgradeUrl:re,deploymentDimensions:y,deploymentMisc:w,accessGroup:$,pickaxe:ge,styles:Object.assign({theme:"light",font:"Real Head Pro",fontSize:"md",formFieldStyle:"box",btnStyle:"filled",outlineThickness:1,cornerRadius:4},b),colors:Object.assign({primary:"#F6F8FA",text:"#000000",secondary:"#FFFFFF",secondaryText:"#000000",accent:"#228DD7",accentText:"#FFFFFF",error:"#EF4444"},v),misc:S,translations:Object.assign({"new-chat":"New chat","see-history":"See history","see-input":"See input","hide-input":"Hide input",processing:"Processing...",uploading:"Uploading...",loading:"Loading...","powered-by-pickaxe":"Powered by Pickaxe","form-doc-placeholder":"Paste a website/video link or drag a file",website:"Website",copy:"Copy","file-limit-reached":"You have reached the file limit.",save:"Save","save-as":"Save as","please-enter-email-to-continue":"Please enter your email to continue:","enter-email-to-continue":"Enter here your email to continue",submit:"Submit",sending:"Sending...","check-your-inbox":"Check your inbox","we-sent-your-an-activation-link":"We sent you an activation link. Please be sure to check your spam folder too.",resend:"Resend",resending:"Resending...","enter-verification-code":"Or enter the 6-digit code from the email","verification-code-session-missing":"Your login request could not be found. Please resend the email.","verification-code-invalid":"Invalid verification code.",verifying:"Verifying...",verify:"Verify","chat-history":"Chat History","exit-chat-history":"Exit Chat History","no-history":"No history yet.","mcp-use-with-ai-app":"Use with an AI app","mcp-use-agent-in-ai-app":"Use this agent in your AI app","mcp-connect-description":"Connect through MCP. Requests will be sent as your signed-in Studio user.","mcp-ai-app":"AI app","mcp-copy-configuration":"Copy MCP configuration","mcp-private-configuration-note":"Keep this configuration private. It contains your Studio session token and stops working when that session expires.","log-out":"Log Out","clear-form":"Clear form","form.clear-form":"Clear form",expand:"Expand","expand-artifact":"Expand artifact",collapse:"Collapse","collapse-artifact":"Collapse artifact",close:"Close","close-artifact":"Close artifact",download:"Download","copy-artifact-content":"Copy artifact content","download-artifact-content":"Download artifact content","delete-confirm":"Are you sure you want to delete this conversation?",other:"Other","select-options":"Select option(s)","select-an-option":"Select an option","type-your-answer":"Type your answer...",cancel:"Cancel","rename-chat":"Rename chat","delete-chat":"Delete chat","conversation-name":"Conversation name","not-available":"n/a","open-chat":"Open Chat",copied:"Copied!","copy-assistant-message":"Copy assistant message","failed-delete-conversation":"Failed to delete conversation.","failed-update-name":"Failed to update name.","failed-rename-chat":"Failed to rename chat.","failed-delete-chat":"Failed to delete chat.","drop-files-to-upload":"Drop files to upload","add-anything-to-the-conversation":"Add anything to the conversation","something-went-wrong-please-try-again":"Something went wrong. Please try again, or","contact-us":"contact us","for-help":"for help.",back:"Back","upgrade-required":"Upgrade Required","please-upgrade-to-continue-using-this-tool":"Please upgrade to continue using this tool.","access-locked":"Access Locked","this-tool-is-locked-contact-owner":"This tool is locked to use. Contact owner for more information.","access-denied":"Access Denied","login-is-required":"Login is required.","no-access-request-access":"It looks like you don't have access to these resources. Please request access to continue.","request-access":"Request Access",or:"or","sign-in-with-different-account":"Sign in with a different account","access-requested-successfully":"Successfully requested access!","open-tool":"Open Tool","fab-icon":"FAB Icon","iframe-artifact-fallback":"Iframe is not supported, please view this artifact in a browser that supports it.","html-preview":"HTML preview","image-link-is-broken":"[Image link is broken]","download-video":"Download Video","available-plans":"Available Plans",buy:"Buy",credits:"Credits",uses:"Uses",credits_upper:"CREDITS",uses_upper:"USES",free:"Free","pricing.free":"Free",unlimited:"Unlimited","pricing.unlimited":"Unlimited","authentication-required":"Authentication Required","smithery-auth-description-prefix":"The tool you are trying to use requires authentication with",dismiss:"Dismiss",connect:"Connect",connecting:"Connecting...","auth-failed":"Auth failed","failed-to-finalize-authentication":"Failed to finalize authentication.","must-be-logged-in-to-connect-smithery":"You must be logged in to connect Smithery MCPs.","feedback-dislike-input-placeholder":"Write here...","feedback-submit":"Submit","feedback-thanks":"Thanks for the feedback!","feedback-like-title":"What went right?","feedback-dislike-title":"What went wrong?","feedback-dislike-message":"Help us improve our answers","what-do-you-want-to-talk-about":"What do you want to talk about?","failed-to-start-generation":"Failed to start generation","response-too-long":"One or more of your responses is too long!","required-fields-missing":"You must fill out all required fields.","something-went-wrong":"Something went wrong.","something-went-wrong-try-again":"Something went wrong, please try again.","high-traffic-try-again-later":"Oops! We're experiencing high traffic at the moment. Please try again later.","queue-message":"Queue message","stop-response":"Stop response",steer:"Steer","steer-with":"Steer with",steering:"Steering...",starting:"Starting...","remove-queued-message":"Remove queued message","edit-message":"Edit message","more-options":"More options","failed-to-interrupt-current-response":"Failed to interrupt the current response.","current-response-still-stopping":"The current response is still stopping. Please send your message again in a moment.","queued-message-waiting":"A queued message is waiting for the previous response to finish.",listening:"Listening...",remaining:"remaining",upgrade:"Upgrade","pricing.upgrade":"Upgrade","email-address-cannot-be-empty":"Email address cannot be empty.","please-enter-valid-email-address":"Please enter a valid email address.","failed-to-send-sign-in-link":"Failed to send sign-in link.",tool:"Tool","document-processing-failed":"Document processing failed","invalid-upload-file-types":"You can only upload PDF, TXT, DOCX, CSV, XLSX, JSON, PPTX, MD, HTML, XML, PNG, JPEG, WEBP, or GIF files. Please try again.","invalid-website-or-youtube-link":"Please paste a valid website URL or Youtube video link to add to the knowledge base.","website-processing-failed":"Website processing failed, please try again.","invalid-website-url":"Please paste a valid website URL","document-upload-required":"Please paste a valid website/video link or drag a file to add to the knowledge base.",thinking:"Thinking...",thought:"Thought","thought-for":"Thought for",seconds:"seconds","untitled-artifact":"Untitled Artifact",created:"Created",updated:"Updated",rewrote:"Rewrote",artifact:"Artifact","iframe-not-supported-use-different-browser":"Iframe not supported, use a different browser."},C),artifact:I,responsiveBy:P,locale:F,opacity:x,forceMobile:A,loadFont:D,disableHtml:T,disableJs:U,disableCss:q,isFontLoaded:fe,isNewChat:ye,isShowIceBreaker:be,isShowFeedbackMessage:ke,isRtl:R,isEmbed:O,mcpEnabled:j,isDropShadow:E,allowGuestUsage:L,persistActiveConversation:M,clientSecret:pe,stripeAccountId:de,preventInitialSessionId:G,setClientSecret:ue,setStripeAccountId:ce,setContextId:N,setValidationStatus:ne,setValidationUpgradeGroups:ae,setValidationUpgradeUrl:le,setPickaxeId:Y,setSessionId:e=>{_((t=>{const i="function"==typeof e?e(t):e;return null==B||B(i),i}))},setLastSessionId:K,setSender:Z,setSenderType:ie,setAccessGroup:ee,setPickaxe:me,setIsFontLoaded:he,setIsNewChat:we,setIsShowIceBreaker:ve,setIsShowFeedbackMessage:Se},H&&{onUpgrade:H}),W&&{onGenerateComplete:W})},{children:t(d,{children:t(a,{children:t(r,Object.assign({limits:k},{children:t(l,{children:t(s,Object.assign({},I,{children:i}))})}))})})}))};export{c as PickaxeContext,p as PickaxeProvider};
|
|
1
|
+
import{__awaiter as e}from"../../_virtual/_tslib.js";import{jsx as t}from"react/jsx-runtime";import{createContext as i,useState as o,useEffect as n}from"react";import{ArtifactProvider as s}from"./Addons/Artifact/Provider.js";import a from"./DimensionProvider.js";import r from"./ResponseProvider.js";import l from"./Addons/Document/Provider.js";import d from"./Addons/Auth/Provider.js";const c=i({}),p=({children:i,origin:p,sender:u,senderType:g,deploymentId:m,portalId:f,deploymentType:h,deploymentDimensions:y,deploymentMisc:w,styles:b,colors:v,limits:k={},misc:S={isWhiteLabel:!0,isProfileImage:!0,isChatImage:!0,isTitle:!0,isDescription:!0,isHistory:!0},translations:C,artifact:I={popupType:"auto"},responsiveBy:P="viewport",locale:F="en",opacity:T=1,forceMobile:x=!1,disableHtml:A=!1,disableJs:U=!1,disableCss:q=!1,loadFont:D=!0,isRtl:O=!1,isEmbed:R=!1,mcpEnabled:j=!1,studioSessionToken:E,isDropShadow:L=!1,allowGuestUsage:M=!0,persistActiveConversation:G=!1,preventInitialSessionId:H=!1,onUpgrade:W,onGenerateComplete:B,onSessionIdChange:V})=>{const[N,X]=o(""),[Y,J]=o(""),[_,z]=o(""),[K,Q]=o(""),[Z,$]=o(u),[ee,te]=o(null),[ie,oe]=o(g),[ne,se]=o("loading"),[ae,re]=o([]),[le,de]=o(null),[ce,pe]=o(null),[ue,ge]=o(null),[me,fe]=o(null),[he,ye]=o(!1),[we,be]=o(!0),[ve,ke]=o(!0),[Se,Ce]=o(!1);return n((()=>{ye(!1)}),[null==b?void 0:b.font]),n((()=>{e(void 0,void 0,void 0,(function*(){if("undefined"!=typeof window&&D&&!he&&(null==b?void 0:b.font)&&"Real Head Pro"!==b.font)try{(yield import("webfontloader")).default.load({google:{families:[b.font]},active:()=>{ye(!0)},inactive:()=>{console.error("[pxe] failed to load font {styles.font}"),ye(!0)}})}catch(e){console.error("[pxe] failed to load font:",e),ye(!0)}}))}),[D,he,null==b?void 0:b.font]),n((()=>{$(u)}),[u]),t(c.Provider,Object.assign({value:Object.assign(Object.assign({origin:p,contextId:N,pickaxeId:Y,sessionId:_,lastSessionId:K,sender:Z,senderType:ie,portalId:f,deploymentId:m,deploymentType:h,validationStatus:ne,validationUpgradeGroups:ae,validationUpgradeUrl:le,deploymentDimensions:y,deploymentMisc:w,accessGroup:ee,pickaxe:me,styles:Object.assign({theme:"light",font:"Real Head Pro",fontSize:"md",formFieldStyle:"box",btnStyle:"filled",outlineThickness:1,cornerRadius:4},b),colors:Object.assign({primary:"#F6F8FA",text:"#000000",secondary:"#FFFFFF",secondaryText:"#000000",accent:"#228DD7",accentText:"#FFFFFF",error:"#EF4444"},v),misc:S,translations:Object.assign({"new-chat":"New chat","see-history":"See history","see-input":"See input","hide-input":"Hide input",processing:"Processing...",uploading:"Uploading...",loading:"Loading...","powered-by-pickaxe":"Powered by Pickaxe","form-doc-placeholder":"Paste a website/video link or drag a file",website:"Website",copy:"Copy","file-limit-reached":"You have reached the file limit.",save:"Save","save-as":"Save as","please-enter-email-to-continue":"Please enter your email to continue:","enter-email-to-continue":"Enter here your email to continue",submit:"Submit",sending:"Sending...","check-your-inbox":"Check your inbox","we-sent-your-an-activation-link":"We sent you an activation link. Please be sure to check your spam folder too.",resend:"Resend",resending:"Resending...","enter-verification-code":"Or enter the 6-digit code from the email","verification-code-session-missing":"Your login request could not be found. Please resend the email.","verification-code-invalid":"Invalid verification code.",verifying:"Verifying...",verify:"Verify","chat-history":"Chat History","exit-chat-history":"Exit Chat History","no-history":"No history yet.","mcp-use-with-ai-app":"Use with an AI app","mcp-use-agent-in-ai-app":"Use this agent in your AI app","mcp-connect-description":"Connect through MCP. Requests will be sent as your signed-in Studio user.","mcp-ai-app":"AI app","mcp-copy-configuration":"Copy MCP configuration","mcp-private-configuration-note":"Keep this configuration private. It contains your Studio session token and stops working when that session expires.","log-out":"Log Out","clear-form":"Clear form","form.clear-form":"Clear form",expand:"Expand","expand-artifact":"Expand artifact",collapse:"Collapse","collapse-artifact":"Collapse artifact",close:"Close","close-artifact":"Close artifact",download:"Download","copy-artifact-content":"Copy artifact content","download-artifact-content":"Download artifact content","delete-confirm":"Are you sure you want to delete this conversation?",other:"Other","select-options":"Select option(s)","select-an-option":"Select an option","type-your-answer":"Type your answer...",cancel:"Cancel","rename-chat":"Rename chat","delete-chat":"Delete chat","conversation-name":"Conversation name","not-available":"n/a","open-chat":"Open Chat",copied:"Copied!","copy-assistant-message":"Copy assistant message","failed-delete-conversation":"Failed to delete conversation.","failed-update-name":"Failed to update name.","failed-rename-chat":"Failed to rename chat.","failed-delete-chat":"Failed to delete chat.","drop-files-to-upload":"Drop files to upload","add-anything-to-the-conversation":"Add anything to the conversation","something-went-wrong-please-try-again":"Something went wrong. Please try again, or","contact-us":"contact us","for-help":"for help.",back:"Back","upgrade-required":"Upgrade Required","please-upgrade-to-continue-using-this-tool":"Please upgrade to continue using this tool.","access-locked":"Access Locked","this-tool-is-locked-contact-owner":"This tool is locked to use. Contact owner for more information.","access-denied":"Access Denied","login-is-required":"Login is required.","no-access-request-access":"It looks like you don't have access to these resources. Please request access to continue.","request-access":"Request Access",or:"or","sign-in-with-different-account":"Sign in with a different account","access-requested-successfully":"Successfully requested access!","open-tool":"Open Tool","fab-icon":"FAB Icon","iframe-artifact-fallback":"Iframe is not supported, please view this artifact in a browser that supports it.","html-preview":"HTML preview","image-link-is-broken":"[Image link is broken]","download-video":"Download Video","available-plans":"Available Plans",buy:"Buy",credits:"Credits",uses:"Uses",credits_upper:"CREDITS",uses_upper:"USES",free:"Free","pricing.free":"Free",unlimited:"Unlimited","pricing.unlimited":"Unlimited","authentication-required":"Authentication Required","smithery-auth-description-prefix":"The tool you are trying to use requires authentication with",dismiss:"Dismiss",connect:"Connect",connecting:"Connecting...","auth-failed":"Auth failed","failed-to-finalize-authentication":"Failed to finalize authentication.","must-be-logged-in-to-connect-smithery":"You must be logged in to connect Smithery MCPs.","feedback-dislike-input-placeholder":"Write here...","feedback-submit":"Submit","feedback-thanks":"Thanks for the feedback!","feedback-like-title":"What went right?","feedback-dislike-title":"What went wrong?","feedback-dislike-message":"Help us improve our answers","what-do-you-want-to-talk-about":"What do you want to talk about?","failed-to-start-generation":"Failed to start generation","response-too-long":"One or more of your responses is too long!","required-fields-missing":"You must fill out all required fields.","something-went-wrong":"Something went wrong.","something-went-wrong-try-again":"Something went wrong, please try again.","high-traffic-try-again-later":"Oops! We're experiencing high traffic at the moment. Please try again later.","queue-message":"Queue message","stop-response":"Stop response",steer:"Steer","steer-with":"Steer with",steering:"Steering...",starting:"Starting...","remove-queued-message":"Remove queued message","edit-message":"Edit message","more-options":"More options","failed-to-interrupt-current-response":"Failed to interrupt the current response.","current-response-still-stopping":"The current response is still stopping. Please send your message again in a moment.","queued-message-waiting":"A queued message is waiting for the previous response to finish.",listening:"Listening...",remaining:"remaining",upgrade:"Upgrade","pricing.upgrade":"Upgrade","email-address-cannot-be-empty":"Email address cannot be empty.","please-enter-valid-email-address":"Please enter a valid email address.","failed-to-send-sign-in-link":"Failed to send sign-in link.",tool:"Tool","document-processing-failed":"Document processing failed","invalid-upload-file-types":"You can only upload PDF, TXT, DOCX, CSV, XLSX, JSON, PPTX, MD, HTML, XML, PNG, JPEG, WEBP, or GIF files. Please try again.","invalid-website-or-youtube-link":"Please paste a valid website URL or Youtube video link to add to the knowledge base.","website-processing-failed":"Website processing failed, please try again.","invalid-website-url":"Please paste a valid website URL","document-upload-required":"Please paste a valid website/video link or drag a file to add to the knowledge base.",thinking:"Thinking...",thought:"Thought","thought-for":"Thought for",seconds:"seconds","untitled-artifact":"Untitled Artifact",created:"Created",updated:"Updated",rewrote:"Rewrote",artifact:"Artifact","iframe-not-supported-use-different-browser":"Iframe not supported, use a different browser."},C),artifact:I,responsiveBy:P,locale:F,opacity:T,forceMobile:x,loadFont:D,disableHtml:A,disableJs:U,disableCss:q,isFontLoaded:he,isNewChat:we,isShowIceBreaker:ve,isShowFeedbackMessage:Se,isRtl:O,isEmbed:R,mcpEnabled:j,isDropShadow:L,allowGuestUsage:M,persistActiveConversation:G,clientSecret:ue,stripeAccountId:ce,preventInitialSessionId:H,setClientSecret:ge,setStripeAccountId:pe,setContextId:X,setValidationStatus:se,setValidationUpgradeGroups:re,setValidationUpgradeUrl:de,setPickaxeId:J,setSessionId:e=>{z((t=>{const i="function"==typeof e?e(t):e;return null==V||V(i),i}))},setLastSessionId:Q,setSender:$,setSenderType:oe,setAccessGroup:te,setPickaxe:fe,setIsFontLoaded:ye,setIsNewChat:be,setIsShowIceBreaker:ke,setIsShowFeedbackMessage:Ce},W&&{onUpgrade:W}),B&&{onGenerateComplete:B})},{children:t(d,Object.assign({initialToken:E},{children:t(a,{children:t(r,Object.assign({limits:k},{children:t(l,{children:t(s,Object.assign({},I,{children:i}))})}))})}))}))};export{c as PickaxeContext,p as PickaxeProvider};
|
|
@@ -24,7 +24,8 @@ type AuthContextType = {
|
|
|
24
24
|
};
|
|
25
25
|
export interface IAuthProviderProps {
|
|
26
26
|
children: ReactNode;
|
|
27
|
+
initialToken?: string | null;
|
|
27
28
|
}
|
|
28
29
|
export declare const AuthContext: import("react").Context<AuthContextType>;
|
|
29
|
-
declare const AuthProvider: ({ children }: IAuthProviderProps) => import("react/jsx-runtime").JSX.Element;
|
|
30
|
+
declare const AuthProvider: ({ children, initialToken }: IAuthProviderProps) => import("react/jsx-runtime").JSX.Element;
|
|
30
31
|
export default AuthProvider;
|
|
@@ -162,6 +162,7 @@ export interface IPickaxeProviderProps {
|
|
|
162
162
|
isRtl?: boolean;
|
|
163
163
|
isEmbed?: boolean;
|
|
164
164
|
mcpEnabled?: boolean;
|
|
165
|
+
studioSessionToken?: string | null;
|
|
165
166
|
isDropShadow?: boolean;
|
|
166
167
|
allowGuestUsage?: boolean;
|
|
167
168
|
persistActiveConversation?: boolean;
|
|
@@ -171,5 +172,5 @@ export interface IPickaxeProviderProps {
|
|
|
171
172
|
onSessionIdChange?: (sessionId: string) => void;
|
|
172
173
|
}
|
|
173
174
|
export declare const PickaxeContext: import("react").Context<PickaxeContextType>;
|
|
174
|
-
export declare const PickaxeProvider: ({ children, origin, sender: _sender, senderType: _senderType, deploymentId, portalId, deploymentType, deploymentDimensions, deploymentMisc, styles, colors, limits, misc, translations, artifact, responsiveBy, locale, opacity, forceMobile, disableHtml, disableJs, disableCss, loadFont, isRtl, isEmbed, mcpEnabled, isDropShadow, allowGuestUsage, persistActiveConversation, preventInitialSessionId, onUpgrade, onGenerateComplete, onSessionIdChange, }: IPickaxeProviderProps) => import("react/jsx-runtime").JSX.Element;
|
|
175
|
+
export declare const PickaxeProvider: ({ children, origin, sender: _sender, senderType: _senderType, deploymentId, portalId, deploymentType, deploymentDimensions, deploymentMisc, styles, colors, limits, misc, translations, artifact, responsiveBy, locale, opacity, forceMobile, disableHtml, disableJs, disableCss, loadFont, isRtl, isEmbed, mcpEnabled, studioSessionToken, isDropShadow, allowGuestUsage, persistActiveConversation, preventInitialSessionId, onUpgrade, onGenerateComplete, onSessionIdChange, }: IPickaxeProviderProps) => import("react/jsx-runtime").JSX.Element;
|
|
175
176
|
export {};
|