@optiaxiom/proteus 0.2.3 → 0.2.5

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.
@@ -75,7 +75,7 @@ Boolean requesting whether a visible border and background is provided by the ho
75
75
  - omitted: host decides border\`)}),cT=l.object({method:l.literal("ui/request-display-mode"),params:l.object({mode:so.describe("The display mode being requested.")})}),O_=l.object({mode:so.describe("The display mode that was actually set. May differ from requested if not supported.")}).passthrough(),D_=l.union([l.literal("model"),l.literal("app")]).describe("Tool visibility scope - who can access the tool."),uT=l.object({resourceUri:l.string().optional(),visibility:l.array(D_).optional().describe(\`Who can access this tool. Default: ["model", "app"]
76
76
  - "model": Tool visible to and callable by the agent
77
77
  - "app": Tool callable by the app from this server only\`)}),lT=l.object({mimeTypes:l.array(l.string()).optional().describe('Array of supported MIME types for UI resources.\\nMust include \`"text/html;profile=mcp-app"\` for MCP Apps support.')}),dT=l.object({method:l.literal("ui/download-file"),params:l.object({contents:l.array(l.union([Rl,Al])).describe("Resource contents to download \\u2014 embedded (inline data) or linked (host fetches). Uses standard MCP resource types.")})}),pT=l.object({method:l.literal("ui/message"),params:l.object({role:l.literal("user").describe('Message role, currently only "user" is supported.'),content:l.array(\$r).describe("Message content blocks (text, image, etc.).")})}),mT=l.object({method:l.literal("ui/notifications/sandbox-resource-ready"),params:l.object({html:l.string().describe("HTML content to load into the inner iframe."),sandbox:l.string().optional().describe("Optional override for the inner iframe's sandbox attribute."),csp:Wl.optional().describe("CSP configuration from resource metadata."),permissions:Kl.optional().describe("Sandbox permissions from resource metadata.")})}),N_=l.object({method:l.literal("ui/notifications/tool-result"),params:kr.describe("Standard MCP tool execution result.")}),bf=l.object({toolInfo:l.object({id:_r.optional().describe("JSON-RPC id of the tools/call request."),tool:ks.describe("Tool definition including name, inputSchema, etc.")}).optional().describe("Metadata of the tool call that instantiated this App."),theme:y_.optional().describe("Current color theme preference."),styles:T_.optional().describe("Style configuration for theming the app."),displayMode:so.optional().describe("How the UI is currently displayed."),availableDisplayModes:l.array(so).optional().describe("Display modes the host supports."),containerDimensions:l.union([l.object({height:l.number().describe("Fixed container height in pixels.")}),l.object({maxHeight:l.union([l.number(),l.undefined()]).optional().describe("Maximum container height in pixels.")})]).and(l.union([l.object({width:l.number().describe("Fixed container width in pixels.")}),l.object({maxWidth:l.union([l.number(),l.undefined()]).optional().describe("Maximum container width in pixels.")})])).optional().describe(\`Container dimensions. Represents the dimensions of the iframe or other
78
- container holding the app. Specify either width or maxWidth, and either height or maxHeight.\`),locale:l.string().optional().describe("User's language and region preference in BCP 47 format."),timeZone:l.string().optional().describe("User's timezone in IANA format."),userAgent:l.string().optional().describe("Host application identifier."),platform:l.union([l.literal("web"),l.literal("desktop"),l.literal("mobile")]).optional().describe("Platform type for responsive design decisions."),deviceCapabilities:l.object({touch:l.boolean().optional().describe("Whether the device supports touch input."),hover:l.boolean().optional().describe("Whether the device supports hover interactions.")}).optional().describe("Device input capabilities."),safeAreaInsets:l.object({top:l.number().describe("Top safe area inset in pixels."),right:l.number().describe("Right safe area inset in pixels."),bottom:l.number().describe("Bottom safe area inset in pixels."),left:l.number().describe("Left safe area inset in pixels.")}).optional().describe("Mobile safe area boundaries in pixels.")}).passthrough(),U_=l.object({method:l.literal("ui/notifications/host-context-changed"),params:bf.describe("Partial context update containing only changed fields.")}),fT=l.object({method:l.literal("ui/update-model-context"),params:l.object({content:l.array(\$r).optional().describe("Context content blocks (text, image, etc.)."),structuredContent:l.record(l.string(),l.unknown().describe("Structured content for machine-readable context data.")).optional().describe("Structured content for machine-readable context data.")})}),gT=l.object({method:l.literal("ui/initialize"),params:l.object({appInfo:qn.describe("App identification (name and version)."),appCapabilities:Z_.describe("Features and capabilities this app provides."),protocolVersion:l.string().describe("Protocol version this app supports.")})}),E_=l.object({protocolVersion:l.string().describe('Negotiated protocol version string (e.g., "2025-11-21").'),hostInfo:qn.describe("Host application identification and version."),hostCapabilities:j_.describe("Features and capabilities provided by the host."),hostContext:bf.describe("Rich context about the host environment.")}).passthrough();var Ps=class extends Bl{constructor(n,i={},t={autoResize:!0}){super(t);X(this,"_appInfo");X(this,"_capabilities");X(this,"options");X(this,"_hostCapabilities");X(this,"_hostInfo");X(this,"_hostContext");X(this,"eventSchemas",{toolinput:z_,toolinputpartial:S_,toolresult:N_,toolcancelled:w_,hostcontextchanged:U_});X(this,"_onteardown");X(this,"_oncalltool");X(this,"_onlisttools");X(this,"sendOpenLink",this.openLink);this._appInfo=n,this._capabilities=i,this.options=t,this.setRequestHandler(xr,o=>(console.log("Received ping:",o.params),{})),this.setEventHandler("hostcontextchanged",void 0)}onEventDispatch(n,i){n==="hostcontextchanged"&&(this._hostContext={...this._hostContext,...i})}getHostCapabilities(){return this._hostCapabilities}getHostVersion(){return this._hostInfo}getHostContext(){return this._hostContext}get ontoolinput(){return this.getEventHandler("toolinput")}set ontoolinput(n){this.setEventHandler("toolinput",n)}get ontoolinputpartial(){return this.getEventHandler("toolinputpartial")}set ontoolinputpartial(n){this.setEventHandler("toolinputpartial",n)}get ontoolresult(){return this.getEventHandler("toolresult")}set ontoolresult(n){this.setEventHandler("toolresult",n)}get ontoolcancelled(){return this.getEventHandler("toolcancelled")}set ontoolcancelled(n){this.setEventHandler("toolcancelled",n)}get onhostcontextchanged(){return this.getEventHandler("hostcontextchanged")}set onhostcontextchanged(n){this.setEventHandler("hostcontextchanged",n)}get onteardown(){return this._onteardown}set onteardown(n){this.warnIfRequestHandlerReplaced("onteardown",this._onteardown,n),this._onteardown=n,this.replaceRequestHandler(P_,(i,t)=>{if(!this._onteardown)throw Error("No onteardown handler set");return this._onteardown(i.params,t)})}get oncalltool(){return this._oncalltool}set oncalltool(n){this.warnIfRequestHandlerReplaced("oncalltool",this._oncalltool,n),this._oncalltool=n,this.replaceRequestHandler(Ml,(i,t)=>{if(!this._oncalltool)throw Error("No oncalltool handler set");return this._oncalltool(i.params,t)})}get onlisttools(){return this._onlisttools}set onlisttools(n){this.warnIfRequestHandlerReplaced("onlisttools",this._onlisttools,n),this._onlisttools=n,this.replaceRequestHandler(Cl,(i,t)=>{if(!this._onlisttools)throw Error("No onlisttools handler set");return this._onlisttools(i.params,t)})}assertCapabilityForMethod(n){}assertRequestHandlerCapability(n){switch(n){case"tools/call":case"tools/list":if(!this._capabilities.tools)throw Error(\`Client does not support tool capability (required for \${n})\`);return;case"ping":case"ui/resource-teardown":return;default:throw Error(\`No handler for method \${n} registered\`)}}assertNotificationCapability(n){}assertTaskCapability(n){throw Error("Tasks are not supported in MCP Apps")}assertTaskHandlerCapability(n){throw Error("Task handlers are not supported in MCP Apps")}async callServerTool(n,i){if(typeof n=="string")throw Error(\`callServerTool() expects an object as its first argument, but received a string ("\${n}"). Did you mean: callServerTool({ name: "\${n}", arguments: { ... } })?\`);return await this.request({method:"tools/call",params:n},kr,i)}async readServerResource(n,i){return await this.request({method:"resources/read",params:n},Dl,i)}async listServerResources(n,i){return await this.request({method:"resources/list",params:n},Zl,i)}sendMessage(n,i){return this.request({method:"ui/message",params:n},k_,i)}sendLog(n){return this.notification({method:"notifications/message",params:n})}updateModelContext(n,i){return this.request({method:"ui/update-model-context",params:n},ms,i)}openLink(n,i){return this.request({method:"ui/open-link",params:n},b_,i)}downloadFile(n,i){return this.request({method:"ui/download-file",params:n},\$_,i)}requestTeardown(n={}){return this.notification({method:"ui/notifications/request-teardown",params:n})}requestDisplayMode(n,i){return this.request({method:"ui/request-display-mode",params:n},O_,i)}sendSizeChanged(n){return this.notification({method:"ui/notifications/size-changed",params:n})}setupSizeChangedNotifications(){let n=!1,i=0,t=0,o=()=>{n||(n=!0,requestAnimationFrame(()=>{n=!1;let s=document.documentElement,u=s.style.height;s.style.height="max-content";let c=Math.ceil(s.getBoundingClientRect().height);s.style.height=u;let d=Math.ceil(window.innerWidth);(d!==i||c!==t)&&(i=d,t=c,this.sendSizeChanged({width:d,height:c}))}))};o();let a=new ResizeObserver(o);return a.observe(document.documentElement),a.observe(document.body),()=>a.disconnect()}async connect(n=new ao(window.parent,window.parent),i){if(this.transport)throw Error("App is already connected. Call close() before connecting again.");await super.connect(n);try{let t=await this.request({method:"ui/initialize",params:{appCapabilities:this._capabilities,appInfo:this._appInfo,protocolVersion:h_}},E_,i);if(t===void 0)throw Error(\`Server sent invalid initialize result: \${t}\`);this._hostCapabilities=t.hostCapabilities,this._hostInfo=t.hostInfo,this._hostContext=t.hostContext,await this.notification({method:"ui/notifications/initialized"}),this.options?.autoResize&&this.setupSizeChangedNotifications()}catch(t){throw this.close(),t}}};var Lt=new Ps({name:"Opal Widget",version:"1.0.0"},{}),Gl={},Xl=null,xt={};function Ql(){window.dispatchEvent(new CustomEvent("openai:set_globals",{detail:{globals:{displayMode:xt.displayMode,locale:xt.locale,maxHeight:xt.containerDimensions?.maxHeight,toolInput:Gl,toolOutput:Xl}}}))}Lt.ontoolinput=e=>{Gl=e.arguments??{},Ql()};Lt.ontoolresult=e=>{Xl=e.content,Ql()};Lt.onhostcontextchanged=e=>{xt={...xt,...e},Ql()};window.openai={get displayMode(){return xt.displayMode},get locale(){return xt.locale},get maxHeight(){return xt.containerDimensions?.maxHeight},get toolInput(){return Gl},get toolOutput(){return Xl},callTool:(e,r)=>Lt.callServerTool({arguments:r,name:e}),openExternal:e=>Lt.openLink({url:e.href}),sendFollowUpMessage:e=>Lt.sendMessage({content:[{text:e.prompt,type:"text"}],role:"user"})};var R_=new ao(window.parent,window.parent);Lt.connect(R_);})();
78
+ container holding the app. Specify either width or maxWidth, and either height or maxHeight.\`),locale:l.string().optional().describe("User's language and region preference in BCP 47 format."),timeZone:l.string().optional().describe("User's timezone in IANA format."),userAgent:l.string().optional().describe("Host application identifier."),platform:l.union([l.literal("web"),l.literal("desktop"),l.literal("mobile")]).optional().describe("Platform type for responsive design decisions."),deviceCapabilities:l.object({touch:l.boolean().optional().describe("Whether the device supports touch input."),hover:l.boolean().optional().describe("Whether the device supports hover interactions.")}).optional().describe("Device input capabilities."),safeAreaInsets:l.object({top:l.number().describe("Top safe area inset in pixels."),right:l.number().describe("Right safe area inset in pixels."),bottom:l.number().describe("Bottom safe area inset in pixels."),left:l.number().describe("Left safe area inset in pixels.")}).optional().describe("Mobile safe area boundaries in pixels.")}).passthrough(),U_=l.object({method:l.literal("ui/notifications/host-context-changed"),params:bf.describe("Partial context update containing only changed fields.")}),fT=l.object({method:l.literal("ui/update-model-context"),params:l.object({content:l.array(\$r).optional().describe("Context content blocks (text, image, etc.)."),structuredContent:l.record(l.string(),l.unknown().describe("Structured content for machine-readable context data.")).optional().describe("Structured content for machine-readable context data.")})}),gT=l.object({method:l.literal("ui/initialize"),params:l.object({appInfo:qn.describe("App identification (name and version)."),appCapabilities:Z_.describe("Features and capabilities this app provides."),protocolVersion:l.string().describe("Protocol version this app supports.")})}),E_=l.object({protocolVersion:l.string().describe('Negotiated protocol version string (e.g., "2025-11-21").'),hostInfo:qn.describe("Host application identification and version."),hostCapabilities:j_.describe("Features and capabilities provided by the host."),hostContext:bf.describe("Rich context about the host environment.")}).passthrough();var Ps=class extends Bl{constructor(n,i={},t={autoResize:!0}){super(t);X(this,"_appInfo");X(this,"_capabilities");X(this,"options");X(this,"_hostCapabilities");X(this,"_hostInfo");X(this,"_hostContext");X(this,"eventSchemas",{toolinput:z_,toolinputpartial:S_,toolresult:N_,toolcancelled:w_,hostcontextchanged:U_});X(this,"_onteardown");X(this,"_oncalltool");X(this,"_onlisttools");X(this,"sendOpenLink",this.openLink);this._appInfo=n,this._capabilities=i,this.options=t,this.setRequestHandler(xr,o=>(console.log("Received ping:",o.params),{})),this.setEventHandler("hostcontextchanged",void 0)}onEventDispatch(n,i){n==="hostcontextchanged"&&(this._hostContext={...this._hostContext,...i})}getHostCapabilities(){return this._hostCapabilities}getHostVersion(){return this._hostInfo}getHostContext(){return this._hostContext}get ontoolinput(){return this.getEventHandler("toolinput")}set ontoolinput(n){this.setEventHandler("toolinput",n)}get ontoolinputpartial(){return this.getEventHandler("toolinputpartial")}set ontoolinputpartial(n){this.setEventHandler("toolinputpartial",n)}get ontoolresult(){return this.getEventHandler("toolresult")}set ontoolresult(n){this.setEventHandler("toolresult",n)}get ontoolcancelled(){return this.getEventHandler("toolcancelled")}set ontoolcancelled(n){this.setEventHandler("toolcancelled",n)}get onhostcontextchanged(){return this.getEventHandler("hostcontextchanged")}set onhostcontextchanged(n){this.setEventHandler("hostcontextchanged",n)}get onteardown(){return this._onteardown}set onteardown(n){this.warnIfRequestHandlerReplaced("onteardown",this._onteardown,n),this._onteardown=n,this.replaceRequestHandler(P_,(i,t)=>{if(!this._onteardown)throw Error("No onteardown handler set");return this._onteardown(i.params,t)})}get oncalltool(){return this._oncalltool}set oncalltool(n){this.warnIfRequestHandlerReplaced("oncalltool",this._oncalltool,n),this._oncalltool=n,this.replaceRequestHandler(Ml,(i,t)=>{if(!this._oncalltool)throw Error("No oncalltool handler set");return this._oncalltool(i.params,t)})}get onlisttools(){return this._onlisttools}set onlisttools(n){this.warnIfRequestHandlerReplaced("onlisttools",this._onlisttools,n),this._onlisttools=n,this.replaceRequestHandler(Cl,(i,t)=>{if(!this._onlisttools)throw Error("No onlisttools handler set");return this._onlisttools(i.params,t)})}assertCapabilityForMethod(n){}assertRequestHandlerCapability(n){switch(n){case"tools/call":case"tools/list":if(!this._capabilities.tools)throw Error(\`Client does not support tool capability (required for \${n})\`);return;case"ping":case"ui/resource-teardown":return;default:throw Error(\`No handler for method \${n} registered\`)}}assertNotificationCapability(n){}assertTaskCapability(n){throw Error("Tasks are not supported in MCP Apps")}assertTaskHandlerCapability(n){throw Error("Task handlers are not supported in MCP Apps")}async callServerTool(n,i){if(typeof n=="string")throw Error(\`callServerTool() expects an object as its first argument, but received a string ("\${n}"). Did you mean: callServerTool({ name: "\${n}", arguments: { ... } })?\`);return await this.request({method:"tools/call",params:n},kr,i)}async readServerResource(n,i){return await this.request({method:"resources/read",params:n},Dl,i)}async listServerResources(n,i){return await this.request({method:"resources/list",params:n},Zl,i)}sendMessage(n,i){return this.request({method:"ui/message",params:n},k_,i)}sendLog(n){return this.notification({method:"notifications/message",params:n})}updateModelContext(n,i){return this.request({method:"ui/update-model-context",params:n},ms,i)}openLink(n,i){return this.request({method:"ui/open-link",params:n},b_,i)}downloadFile(n,i){return this.request({method:"ui/download-file",params:n},\$_,i)}requestTeardown(n={}){return this.notification({method:"ui/notifications/request-teardown",params:n})}requestDisplayMode(n,i){return this.request({method:"ui/request-display-mode",params:n},O_,i)}sendSizeChanged(n){return this.notification({method:"ui/notifications/size-changed",params:n})}setupSizeChangedNotifications(){let n=!1,i=0,t=0,o=()=>{n||(n=!0,requestAnimationFrame(()=>{n=!1;let s=document.documentElement,u=s.style.height;s.style.height="max-content";let c=Math.ceil(s.getBoundingClientRect().height);s.style.height=u;let d=Math.ceil(window.innerWidth);(d!==i||c!==t)&&(i=d,t=c,this.sendSizeChanged({width:d,height:c}))}))};o();let a=new ResizeObserver(o);return a.observe(document.documentElement),a.observe(document.body),()=>a.disconnect()}async connect(n=new ao(window.parent,window.parent),i){if(this.transport)throw Error("App is already connected. Call close() before connecting again.");await super.connect(n);try{let t=await this.request({method:"ui/initialize",params:{appCapabilities:this._capabilities,appInfo:this._appInfo,protocolVersion:h_}},E_,i);if(t===void 0)throw Error(\`Server sent invalid initialize result: \${t}\`);this._hostCapabilities=t.hostCapabilities,this._hostInfo=t.hostInfo,this._hostContext=t.hostContext,await this.notification({method:"ui/notifications/initialized"}),this.options?.autoResize&&this.setupSizeChangedNotifications()}catch(t){throw this.close(),t}}};var Lt=new Ps({name:"Opal Widget",version:"1.0.0"},{}),Gl={},Xl=null,xt={};function Ql(){window.dispatchEvent(new CustomEvent("openai:set_globals",{detail:{globals:{displayMode:xt.displayMode,locale:xt.locale,maxHeight:xt.containerDimensions?.maxHeight,toolInput:Gl,toolOutput:Xl}}}))}Lt.ontoolinput=e=>{Gl=e.arguments??{},Ql()};Lt.ontoolresult=e=>{Xl=e.content,Ql()};Lt.onhostcontextchanged=e=>{xt={...xt,...e},Ql()};window.openai={get displayMode(){return xt.displayMode},get locale(){return xt.locale},get maxHeight(){return xt.containerDimensions?.maxHeight},get toolInput(){return Gl},get toolOutput(){return Xl},callTool:async(e,r)=>({result:await Lt.callServerTool({arguments:r,name:e})}),openExternal:e=>Lt.openLink({url:e.href}),sendFollowUpMessage:e=>Lt.sendMessage({content:[{text:e.prompt,type:"text"}],role:"user"})};var R_=new ao(window.parent,window.parent);Lt.connect(R_);})();
79
79
  </script>`;
80
80
 
81
81
  export { OPENAI_SHIM_SCRIPT };
@@ -1,5 +1,5 @@
1
- @layer optiaxiom.txqk6n;
2
- @layer optiaxiom.txqk6n {
1
+ @layer optiaxiom._1l0xsvj;
2
+ @layer optiaxiom._1l0xsvj {
3
3
  .ProteusChart__jmlqij1 {
4
4
  border-radius: 16px;
5
5
  }
@@ -1,5 +1,5 @@
1
- @layer optiaxiom.txqk6n;
2
- @layer optiaxiom.txqk6n {
1
+ @layer optiaxiom._1l0xsvj;
2
+ @layer optiaxiom._1l0xsvj {
3
3
  .ProteusChartTooltipContent__1gsvq810 {
4
4
  min-width: 128px;
5
5
  position: absolute;
@@ -1,5 +1,5 @@
1
- @layer optiaxiom.txqk6n;
2
- @layer optiaxiom.txqk6n {
1
+ @layer optiaxiom._1l0xsvj;
2
+ @layer optiaxiom._1l0xsvj {
3
3
  .ProteusDocumentShell__vpuvfj1 {
4
4
  margin: -4px;
5
5
  }
@@ -1,5 +1,5 @@
1
- @layer optiaxiom.txqk6n;
2
- @layer optiaxiom.txqk6n {
1
+ @layer optiaxiom._1l0xsvj;
2
+ @layer optiaxiom._1l0xsvj {
3
3
  .ProteusImageCarousel__1t6qej70 {
4
4
  outline: none;
5
5
  user-select: none;
@@ -1,5 +1,5 @@
1
- @layer optiaxiom.txqk6n;
2
- @layer optiaxiom.txqk6n {
1
+ @layer optiaxiom._1l0xsvj;
2
+ @layer optiaxiom._1l0xsvj {
3
3
  .ProteusQuestion__8f590p0 {
4
4
  outline: none;
5
5
  }
@@ -79,7 +79,7 @@ function ProteusBridge({ height = 400, resource }) {
79
79
  {
80
80
  ref: setIframe,
81
81
  sandbox: "allow-scripts allow-popups allow-popups-to-escape-sandbox allow-forms",
82
- srcDoc: mimeType === "text/html;profile=openai-app" ? OPENAI_SHIM_SCRIPT + html : html,
82
+ srcDoc: mimeType === "text/html+skybridge" ? OPENAI_SHIM_SCRIPT + html : html,
83
83
  style: { border: "none", height, width: "100%" },
84
84
  title: "Opal Widget"
85
85
  }
@@ -1,4 +1,4 @@
1
- import './../assets/src/proteus-chart/ProteusChart.css.ts.vanilla-BMEbDhgW.css';
1
+ import './../assets/src/proteus-chart/ProteusChart.css.ts.vanilla-DnNIn_rc.css';
2
2
  import { recipe } from '@optiaxiom/react/css-runtime';
3
3
 
4
4
  var chart = recipe({base:[{border:'1',borderColor:'border.tertiary',fontSize:'sm',p:'16'},'ProteusChart__jmlqij1','ProteusChart__jmlqij0']});
@@ -1,4 +1,4 @@
1
- import './../assets/src/proteus-chart/ProteusChartTooltipContent.css.ts.vanilla-DeE905en.css';
1
+ import './../assets/src/proteus-chart/ProteusChartTooltipContent.css.ts.vanilla-DoWJUTMo.css';
2
2
  import { recipe } from '@optiaxiom/react/css-runtime';
3
3
 
4
4
  var tooltip = recipe({base:[{bg:'bg.default',border:'1',borderColor:'border.secondary',display:'grid',fontSize:'sm',gap:'6',pointerEvents:'none',px:'8',py:'10',rounded:'lg',shadow:'lg',transition:'all',z:'popover'},'ProteusChartTooltipContent__1gsvq810']});
@@ -1,4 +1,4 @@
1
- import './../assets/src/proteus-document/ProteusDocumentShell.css.ts.vanilla-JoQXI97u.css';
1
+ import './../assets/src/proteus-document/ProteusDocumentShell.css.ts.vanilla-DcaxxIIv.css';
2
2
  import { recipe } from '@optiaxiom/react/css-runtime';
3
3
 
4
4
  var body = recipe({base:[{flexDirection:'column',gap:'16'},'ProteusDocumentShell__vpuvfj0'],variants:{truncate:{false:{},true:[{maxH:'sm',overflow:'auto',p:'4'},'ProteusDocumentShell__vpuvfj1']}}});
@@ -1,4 +1,4 @@
1
- import './../assets/src/proteus-image-carousel/ProteusImageCarousel.css.ts.vanilla-D8aYxZmX.css';
1
+ import './../assets/src/proteus-image-carousel/ProteusImageCarousel.css.ts.vanilla-DasQYQWd.css';
2
2
  import { recipe } from '@optiaxiom/react/css-runtime';
3
3
 
4
4
  var carousel = recipe({base:[{flexDirection:'column',gap:'12'},'ProteusImageCarousel__1t6qej70']});
@@ -16,7 +16,10 @@ function ProteusImageCarousel({
16
16
  const { onEvent } = useProteusDocumentContext(
17
17
  "@optiaxiom/proteus/ProteusImageCarousel"
18
18
  );
19
- const [emblaMainRef, emblaMainApi] = useEmblaCarousel({ loop: false });
19
+ const [emblaMainRef, emblaMainApi] = useEmblaCarousel({
20
+ loop: false,
21
+ watchDrag: false
22
+ });
20
23
  const [emblaThumbsRef, emblaThumbsApi] = useEmblaCarousel({
21
24
  containScroll: "keepSnaps",
22
25
  dragFree: true
@@ -1,4 +1,4 @@
1
- import './../assets/src/proteus-question/ProteusQuestion.css.ts.vanilla-CyslVupM.css';
1
+ import './../assets/src/proteus-question/ProteusQuestion.css.ts.vanilla-DyMq_aV3.css';
2
2
  import { recipe } from '@optiaxiom/react/css-runtime';
3
3
 
4
4
  var addon = recipe({base:[{display:'grid',fontWeight:'500',placeItems:'center',rounded:'lg',size:'md',transition:'colors'},'ProteusQuestion__8f590p3'],variants:{cursor:{pointer:{cursor:'pointer'}}}});
@@ -4689,25 +4689,32 @@ var definitions = {
4689
4689
  description: "Chart layout direction"
4690
4690
  },
4691
4691
  series: {
4692
- description: "Data series configuration",
4693
- items: {
4694
- additionalProperties: false,
4695
- properties: {
4696
- dataKey: {
4697
- description: "Key in data records for this series",
4698
- type: "string"
4692
+ anyOf: [
4693
+ {
4694
+ description: "Data series configuration",
4695
+ items: {
4696
+ additionalProperties: false,
4697
+ properties: {
4698
+ dataKey: {
4699
+ description: "Key in data records for this series",
4700
+ type: "string"
4701
+ },
4702
+ name: {
4703
+ description: "Display name for legend",
4704
+ type: "string"
4705
+ }
4706
+ },
4707
+ required: [
4708
+ "dataKey"
4709
+ ],
4710
+ type: "object"
4699
4711
  },
4700
- name: {
4701
- description: "Display name for legend",
4702
- type: "string"
4703
- }
4712
+ type: "array"
4704
4713
  },
4705
- required: [
4706
- "dataKey"
4707
- ],
4708
- type: "object"
4709
- },
4710
- type: "array"
4714
+ {
4715
+ $ref: "#/definitions/ProteusExpression"
4716
+ }
4717
+ ]
4711
4718
  },
4712
4719
  type: {
4713
4720
  anyOf: [
@@ -4779,54 +4786,61 @@ var definitions = {
4779
4786
  "const": "DataTable"
4780
4787
  },
4781
4788
  columns: {
4782
- description: "Column definitions",
4783
- items: {
4784
- additionalProperties: false,
4785
- properties: {
4786
- accessorKey: {
4787
- description: "Key in data objects",
4788
- type: "string"
4789
- },
4790
- format: {
4791
- anyOf: [
4792
- {
4793
- description: "Formatter name",
4789
+ anyOf: [
4790
+ {
4791
+ description: "Column definitions",
4792
+ items: {
4793
+ additionalProperties: false,
4794
+ properties: {
4795
+ accessorKey: {
4796
+ description: "Key in data objects",
4794
4797
  type: "string"
4795
4798
  },
4796
- {
4797
- description: "Formatter with options",
4798
- properties: {
4799
- options: {
4800
- type: "object"
4801
- },
4802
- type: {
4799
+ format: {
4800
+ anyOf: [
4801
+ {
4802
+ description: "Formatter name",
4803
4803
  type: "string"
4804
+ },
4805
+ {
4806
+ description: "Formatter with options",
4807
+ properties: {
4808
+ options: {
4809
+ type: "object"
4810
+ },
4811
+ type: {
4812
+ type: "string"
4813
+ }
4814
+ },
4815
+ required: [
4816
+ "type"
4817
+ ],
4818
+ type: "object"
4804
4819
  }
4805
- },
4806
- required: [
4807
- "type"
4808
4820
  ],
4809
- type: "object"
4821
+ description: "Format to apply to cell values (e.g. 'Number', 'DateTime')"
4822
+ },
4823
+ header: {
4824
+ description: "Column header text",
4825
+ type: "string"
4826
+ },
4827
+ size: {
4828
+ description: "Column size",
4829
+ type: "number"
4810
4830
  }
4831
+ },
4832
+ required: [
4833
+ "accessorKey",
4834
+ "header"
4811
4835
  ],
4812
- description: "Format to apply to cell values (e.g. 'Number', 'DateTime')"
4813
- },
4814
- header: {
4815
- description: "Column header text",
4816
- type: "string"
4836
+ type: "object"
4817
4837
  },
4818
- size: {
4819
- description: "Column size",
4820
- type: "number"
4821
- }
4838
+ type: "array"
4822
4839
  },
4823
- required: [
4824
- "accessorKey",
4825
- "header"
4826
- ],
4827
- type: "object"
4828
- },
4829
- type: "array"
4840
+ {
4841
+ $ref: "#/definitions/ProteusExpression"
4842
+ }
4843
+ ]
4830
4844
  },
4831
4845
  data: {
4832
4846
  anyOf: [
@@ -4663,24 +4663,31 @@ var definitions = {
4663
4663
  description: "Chart layout direction"
4664
4664
  },
4665
4665
  series: {
4666
- description: "Data series configuration",
4667
- items: {
4668
- properties: {
4669
- dataKey: {
4670
- description: "Key in data records for this series",
4671
- type: "string"
4666
+ anyOf: [
4667
+ {
4668
+ description: "Data series configuration",
4669
+ items: {
4670
+ properties: {
4671
+ dataKey: {
4672
+ description: "Key in data records for this series",
4673
+ type: "string"
4674
+ },
4675
+ name: {
4676
+ description: "Display name for legend",
4677
+ type: "string"
4678
+ }
4679
+ },
4680
+ required: [
4681
+ "dataKey"
4682
+ ],
4683
+ type: "object"
4672
4684
  },
4673
- name: {
4674
- description: "Display name for legend",
4675
- type: "string"
4676
- }
4685
+ type: "array"
4677
4686
  },
4678
- required: [
4679
- "dataKey"
4680
- ],
4681
- type: "object"
4682
- },
4683
- type: "array"
4687
+ {
4688
+ $ref: "#/definitions/ProteusExpression"
4689
+ }
4690
+ ]
4684
4691
  },
4685
4692
  type: {
4686
4693
  anyOf: [
@@ -4750,53 +4757,60 @@ var definitions = {
4750
4757
  "const": "DataTable"
4751
4758
  },
4752
4759
  columns: {
4753
- description: "Column definitions",
4754
- items: {
4755
- properties: {
4756
- accessorKey: {
4757
- description: "Key in data objects",
4758
- type: "string"
4759
- },
4760
- format: {
4761
- anyOf: [
4762
- {
4763
- description: "Formatter name",
4760
+ anyOf: [
4761
+ {
4762
+ description: "Column definitions",
4763
+ items: {
4764
+ properties: {
4765
+ accessorKey: {
4766
+ description: "Key in data objects",
4764
4767
  type: "string"
4765
4768
  },
4766
- {
4767
- description: "Formatter with options",
4768
- properties: {
4769
- options: {
4770
- type: "object"
4771
- },
4772
- type: {
4769
+ format: {
4770
+ anyOf: [
4771
+ {
4772
+ description: "Formatter name",
4773
4773
  type: "string"
4774
+ },
4775
+ {
4776
+ description: "Formatter with options",
4777
+ properties: {
4778
+ options: {
4779
+ type: "object"
4780
+ },
4781
+ type: {
4782
+ type: "string"
4783
+ }
4784
+ },
4785
+ required: [
4786
+ "type"
4787
+ ],
4788
+ type: "object"
4774
4789
  }
4775
- },
4776
- required: [
4777
- "type"
4778
4790
  ],
4779
- type: "object"
4791
+ description: "Format to apply to cell values (e.g. 'Number', 'DateTime')"
4792
+ },
4793
+ header: {
4794
+ description: "Column header text",
4795
+ type: "string"
4796
+ },
4797
+ size: {
4798
+ description: "Column size",
4799
+ type: "number"
4780
4800
  }
4801
+ },
4802
+ required: [
4803
+ "accessorKey",
4804
+ "header"
4781
4805
  ],
4782
- description: "Format to apply to cell values (e.g. 'Number', 'DateTime')"
4783
- },
4784
- header: {
4785
- description: "Column header text",
4786
- type: "string"
4806
+ type: "object"
4787
4807
  },
4788
- size: {
4789
- description: "Column size",
4790
- type: "number"
4791
- }
4808
+ type: "array"
4792
4809
  },
4793
- required: [
4794
- "accessorKey",
4795
- "header"
4796
- ],
4797
- type: "object"
4798
- },
4799
- type: "array"
4810
+ {
4811
+ $ref: "#/definitions/ProteusExpression"
4812
+ }
4813
+ ]
4800
4814
  },
4801
4815
  data: {
4802
4816
  anyOf: [