From a8e094af3c0c493185e0c6a8ba4b03e9a34c0ca5 Mon Sep 17 00:00:00 2001 From: cabreraalex Date: Thu, 16 Nov 2023 16:39:46 +0000 Subject: [PATCH] deploy: 404fe86d1419eb07a5d7eb3181f2b4c9d2176460 --- 404.html | 2 +- about/index.html | 2 +- assets/js/2831b18a.66ee6666.js | 1 + assets/js/2831b18a.f78f2bd1.js | 1 - .../{runtime~main.5f4a121b.js => runtime~main.ebc7f866.js} | 2 +- blog/archive/index.html | 2 +- blog/index.html | 2 +- blog/tags/index.html | 2 +- blog/tags/introduction/index.html | 2 +- blog/welcome-post/index.html | 2 +- docs/intro/index.html | 2 +- docs/python-client/index.html | 2 +- docs/using-zeno/index.html | 2 +- docs/views/existing/index.html | 2 +- docs/views/index.html | 2 +- docs/views/spec/index.html | 2 +- docs/views/spec/other/index.html | 7 +++++-- faq/index.html | 2 +- index.html | 2 +- 19 files changed, 22 insertions(+), 19 deletions(-) create mode 100644 assets/js/2831b18a.66ee6666.js delete mode 100644 assets/js/2831b18a.f78f2bd1.js rename assets/js/{runtime~main.5f4a121b.js => runtime~main.ebc7f866.js} (53%) diff --git a/404.html b/404.html index 64fbf18..c590b46 100644 --- a/404.html +++ b/404.html @@ -13,7 +13,7 @@ - + diff --git a/about/index.html b/about/index.html index eccbacd..fb93193 100644 --- a/about/index.html +++ b/about/index.html @@ -13,7 +13,7 @@ - + diff --git a/assets/js/2831b18a.66ee6666.js b/assets/js/2831b18a.66ee6666.js new file mode 100644 index 0000000..b2f33ae --- /dev/null +++ b/assets/js/2831b18a.66ee6666.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkzeno_docs=self.webpackChunkzeno_docs||[]).push([[640],{9342:(e,t,n)=>{n.r(t),n.d(t,{assets:()=>h,contentTitle:()=>d,default:()=>p,frontMatter:()=>l,metadata:()=>a,toc:()=>o});var i=n(5893),s=n(1151),r=n(9286);const l={},d="View Elements",a={id:"views/spec/other",title:"View Elements",description:"A View Element defines how to interpret and display data in your Zeno Project.",source:"@site/docs/views/spec/other.mdx",sourceDirName:"views/spec",slug:"/views/spec/other",permalink:"/docs/views/spec/other",draft:!1,unlisted:!1,tags:[],version:"current",frontMatter:{},sidebar:"tutorialSidebar",previous:{title:"View Specification",permalink:"/docs/views/spec/"}},h={},o=[{value:"Text",id:"text",level:2},{value:"Properties",id:"properties",level:4},{value:"Image",id:"image",level:2},{value:"Audio",id:"audio",level:2},{value:"Code",id:"code",level:2},{value:"Markdown",id:"markdown",level:2},{value:"3D",id:"3d",level:2},{value:"Message",id:"message",level:2},{value:"Properties",id:"properties-1",level:4},{value:"List",id:"list",level:2},{value:"Properties",id:"properties-2",level:4},{value:"VStack",id:"vstack",level:2},{value:"Properties",id:"properties-3",level:4},{value:"Separated Values",id:"separated-values",level:2},{value:"Properties",id:"properties-4",level:4}];function c(e){const t={a:"a",code:"code",em:"em",h1:"h1",h2:"h2",h4:"h4",p:"p",strong:"strong",table:"table",tbody:"tbody",td:"td",th:"th",thead:"thead",tr:"tr",...(0,s.a)(),...e.components};return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(t.h1,{id:"view-elements",children:"View Elements"}),"\n",(0,i.jsx)(t.p,{children:"A View Element defines how to interpret and display data in your Zeno Project.\nThe following view elements can be used in your Zeno Projects."}),"\n",(0,i.jsx)(t.h2,{id:"text",children:"Text"}),"\n",(0,i.jsxs)(t.p,{children:["A plaintext view to display raw text data. See in ",(0,i.jsx)(t.a,{href:"https://zeno-ml.github.io/zeno-instance-views/?params=eyJzYW1wbGUiOiJ0ZXh0LWNsYXNzaWZpY2F0aW9uIn0=",children:"this example"}),"."]}),"\n",(0,i.jsx)(r.Z,{language:"json",title:"Separated Values",children:'{\n "type": "text",\n "label": string\n}\n'}),"\n",(0,i.jsx)(t.h4,{id:"properties",children:"Properties"}),"\n",(0,i.jsxs)(t.table,{children:[(0,i.jsx)(t.thead,{children:(0,i.jsxs)(t.tr,{children:[(0,i.jsx)(t.th,{children:"Property"}),(0,i.jsx)(t.th,{children:"Type"}),(0,i.jsx)(t.th,{children:"Description"})]})}),(0,i.jsx)(t.tbody,{children:(0,i.jsxs)(t.tr,{children:[(0,i.jsx)(t.td,{children:"label"}),(0,i.jsx)(t.td,{children:"Optional[String]"}),(0,i.jsx)(t.td,{children:"Label to be added in front of the text data."})]})})]}),"\n",(0,i.jsx)(t.h2,{id:"image",children:"Image"}),"\n",(0,i.jsxs)(t.p,{children:["A view to display image data. Expects a URL to fetch the image from as its data input. See in ",(0,i.jsx)(t.a,{href:"https://zeno-ml.github.io/zeno-instance-views/?params=eyJzYW1wbGUiOiJpbWFnZS1jbGFzc2lmaWNhdGlvbiJ9",children:"this example"}),"."]}),"\n",(0,i.jsx)(r.Z,{language:"json",title:"Separated Values",children:'{\n "type": "image",\n "maxWidth": "small" | "medium" | "large" | "full" \n}\n'}),"\n",(0,i.jsx)(t.h2,{id:"audio",children:"Audio"}),"\n",(0,i.jsxs)(t.p,{children:["A view to display audio data. Expects a URL to fetch the audio data from as its input. See in ",(0,i.jsx)(t.a,{href:"https://zeno-ml.github.io/zeno-instance-views/?params=eyJzYW1wbGUiOiJhdWRpby10cmFuc2NyaXB0aW9uIn0=",children:"this example"}),"."]}),"\n",(0,i.jsx)(r.Z,{language:"json",title:"Separated Values",children:'{\n "type": "audio"\n}\n'}),"\n",(0,i.jsx)(t.h2,{id:"code",children:"Code"}),"\n",(0,i.jsxs)(t.p,{children:["A code-display with syntax highlighting. See in ",(0,i.jsx)(t.a,{href:"https://zeno-ml.github.io/zeno-instance-views/?params=eyJzYW1wbGUiOiJjb2RlLWdlbmVyYXRpb24ifQ==",children:"this example"}),"."]}),"\n",(0,i.jsx)(r.Z,{language:"json",title:"Separated Values",children:'{\n "type": "code"\n}\n'}),"\n",(0,i.jsx)(t.h2,{id:"markdown",children:"Markdown"}),"\n",(0,i.jsxs)(t.p,{children:["Markdown visualization for a more flexible text display. See in ",(0,i.jsx)(t.a,{href:"https://zeno-ml.github.io/zeno-instance-views/?params=eyJzYW1wbGUiOiJjaGF0Ym90LW1hcmtkb3duIn0=",children:"this example"}),"."]}),"\n",(0,i.jsx)(r.Z,{language:"json",title:"Separated Values",children:'{\n "type": "markdown"\n}\n'}),"\n",(0,i.jsx)(t.h2,{id:"3d",children:"3D"}),"\n",(0,i.jsxs)(t.p,{children:["3D model rendering. Expects a URL to a ",(0,i.jsx)(t.a,{href:"https://github.com/KhronosGroup/glTF/tree/main/specification/2.0",children:"glTF/GLB"})," model. See in ",(0,i.jsx)(t.a,{href:"https://zeno-ml.github.io/zeno-instance-views/?params=eyJzYW1wbGUiOiIzRC1vYmplY3QtY2xhc3NpZmljYXRpb24ifQ==",children:"this example"}),"."]}),"\n",(0,i.jsx)(r.Z,{language:"json",title:"Separated Values",children:'{\n "type": "3D"\n}\n'}),"\n",(0,i.jsx)(t.h2,{id:"message",children:"Message"}),"\n",(0,i.jsxs)(t.p,{children:["Visualization of data in message bubbles akin to a chat view. See in ",(0,i.jsx)(t.a,{href:"https://zeno-ml.github.io/zeno-instance-views/?params=eyJzYW1wbGUiOiJjaGF0Ym90In0=",children:"this example"}),"."]}),"\n",(0,i.jsx)(r.Z,{language:"json",title:"Separated Values",children:'{\n "type": "message"\n "plain": boolean,\n "content": ViewElement | string,\n "ownMessage": boolean,\n "highlight": boolean\n}\n'}),"\n",(0,i.jsx)(t.h4,{id:"properties-1",children:"Properties"}),"\n",(0,i.jsxs)(t.table,{children:[(0,i.jsx)(t.thead,{children:(0,i.jsxs)(t.tr,{children:[(0,i.jsx)(t.th,{children:"Property"}),(0,i.jsx)(t.th,{children:"Type"}),(0,i.jsx)(t.th,{children:"Description"})]})}),(0,i.jsxs)(t.tbody,{children:[(0,i.jsxs)(t.tr,{children:[(0,i.jsx)(t.td,{children:"content"}),(0,i.jsxs)(t.td,{children:[(0,i.jsx)(t.a,{href:"/docs/views/spec/other",children:"ViewElement"})," | String"]}),(0,i.jsxs)(t.td,{children:["Element to use to render the message content. If ",(0,i.jsx)(t.code,{children:"plain == true"}),", this is interpreted as a String and displayed as plain text instead of a OpenAI-style message object."]})]}),(0,i.jsxs)(t.tr,{children:[(0,i.jsx)(t.td,{children:"plain"}),(0,i.jsx)(t.td,{children:"Optional[boolean]"}),(0,i.jsx)(t.td,{children:"How to render the content."})]}),(0,i.jsxs)(t.tr,{children:[(0,i.jsx)(t.td,{children:"ownMessage"}),(0,i.jsx)(t.td,{children:"Optional[boolean]"}),(0,i.jsxs)(t.td,{children:["Whether this message should be displayed as incoming or outgoing. Can also be specified in the data if ",(0,i.jsx)(t.code,{children:"plain == false"}),". True for outgoing."]})]}),(0,i.jsxs)(t.tr,{children:[(0,i.jsx)(t.td,{children:"highlight"}),(0,i.jsx)(t.td,{children:"Optional[boolean]"}),(0,i.jsx)(t.td,{children:"Whether this message should be highlighted."})]})]})]}),"\n",(0,i.jsx)(t.h2,{id:"list",children:"List"}),"\n",(0,i.jsxs)(t.p,{children:["A list of ViewElements. Can be used to render multiple view elements at once. See in ",(0,i.jsx)(t.a,{href:"https://zeno-ml.github.io/zeno-instance-views/?params=eyJzYW1wbGUiOiJjaGF0Ym90In0=",children:"this example"}),"."]}),"\n",(0,i.jsx)(r.Z,{language:"json",title:"Separated Values",children:'{\n "type": "list"\n "elements": ViewElement,\n "horizontal": boolean,\n "collapsible": "top" | "bottom",\n "border": boolean,\n "pad": boolean\n}\n'}),"\n",(0,i.jsx)(t.h4,{id:"properties-2",children:"Properties"}),"\n",(0,i.jsxs)(t.table,{children:[(0,i.jsx)(t.thead,{children:(0,i.jsxs)(t.tr,{children:[(0,i.jsx)(t.th,{children:"Property"}),(0,i.jsx)(t.th,{children:"Type"}),(0,i.jsx)(t.th,{children:"Description"})]})}),(0,i.jsxs)(t.tbody,{children:[(0,i.jsxs)(t.tr,{children:[(0,i.jsx)(t.td,{children:"elements"}),(0,i.jsx)(t.td,{children:(0,i.jsx)(t.a,{href:"/docs/views/spec/other",children:"ViewElement"})}),(0,i.jsx)(t.td,{children:"Element used to render all the elements of the list."})]}),(0,i.jsxs)(t.tr,{children:[(0,i.jsx)(t.td,{children:"horizontal"}),(0,i.jsx)(t.td,{children:"Optional[boolean]"}),(0,i.jsx)(t.td,{children:"If specified, renders list horizontally."})]}),(0,i.jsxs)(t.tr,{children:[(0,i.jsx)(t.td,{children:"collapsible"}),(0,i.jsx)(t.td,{children:"Optional[String]"}),(0,i.jsxs)(t.td,{children:["If specified, only renders four elements of the list per default but adds a ",(0,i.jsx)(t.em,{children:"show more"})," button to expand. Can specify either ",(0,i.jsx)(t.code,{children:'"top"'})," or ",(0,i.jsx)(t.code,{children:'"bottom"'}),"."]})]}),(0,i.jsxs)(t.tr,{children:[(0,i.jsx)(t.td,{children:"border"}),(0,i.jsx)(t.td,{children:"Optional[boolean]"}),(0,i.jsx)(t.td,{children:"Whether to add a border around each list element."})]}),(0,i.jsxs)(t.tr,{children:[(0,i.jsx)(t.td,{children:"pad"}),(0,i.jsx)(t.td,{children:"Optional[boolean]"}),(0,i.jsx)(t.td,{children:"Whether to add padding to each list element."})]})]})]}),"\n",(0,i.jsx)(t.h2,{id:"vstack",children:"VStack"}),"\n",(0,i.jsxs)(t.p,{children:["A vertical stack of keyed elements. Can be used to combine different element types. See in ",(0,i.jsx)(t.a,{href:"https://zeno-ml.github.io/zeno-instance-views/?params=eyJzYW1wbGUiOiJyYWcifQ==",children:"this example"}),"."]}),"\n",(0,i.jsx)(r.Z,{language:"json",title:"Separated Values",children:'{\n "type": "vstack"\n "keys": Record\n}\n'}),"\n",(0,i.jsx)(t.h4,{id:"properties-3",children:"Properties"}),"\n",(0,i.jsxs)(t.table,{children:[(0,i.jsx)(t.thead,{children:(0,i.jsxs)(t.tr,{children:[(0,i.jsx)(t.th,{children:"Property"}),(0,i.jsx)(t.th,{children:"Type"}),(0,i.jsx)(t.th,{children:"Description"})]})}),(0,i.jsx)(t.tbody,{children:(0,i.jsxs)(t.tr,{children:[(0,i.jsx)(t.td,{children:"keys"}),(0,i.jsxs)(t.td,{children:["Record"]}),(0,i.jsx)(t.td,{children:"List of objects mapping from a String key to a ViewElement used to render the content of the data behind the key."})]})})]}),"\n",(0,i.jsx)(t.h2,{id:"separated-values",children:"Separated Values"}),"\n",(0,i.jsxs)(t.p,{children:["Splitting the data into columns using a specified separator. See in ",(0,i.jsx)(t.a,{href:"https://zeno-ml.github.io/zeno-instance-views/?params=eyJzYW1wbGUiOiJzcGFjZS1zZXBhcmF0ZWQtdmFsdWVzIn0=",children:"this example"}),"."]}),"\n",(0,i.jsx)(r.Z,{language:"json",title:"Separated Values",children:'{\n "type": "separatedValues",\n "separator": string,\n "header": string,\n "highlight": boolean\n}\n'}),"\n",(0,i.jsx)(t.h4,{id:"properties-4",children:"Properties"}),"\n",(0,i.jsxs)(t.table,{children:[(0,i.jsx)(t.thead,{children:(0,i.jsxs)(t.tr,{children:[(0,i.jsx)(t.th,{children:"Property"}),(0,i.jsx)(t.th,{children:"Type"}),(0,i.jsx)(t.th,{children:"Description"})]})}),(0,i.jsxs)(t.tbody,{children:[(0,i.jsxs)(t.tr,{children:[(0,i.jsx)(t.td,{children:"separator"}),(0,i.jsx)(t.td,{children:"String"}),(0,i.jsx)(t.td,{children:"Character or sequence to separate the data with."})]}),(0,i.jsxs)(t.tr,{children:[(0,i.jsx)(t.td,{children:"header"}),(0,i.jsx)(t.td,{children:"Optional[String]"}),(0,i.jsx)(t.td,{children:"The heading of the row of data. Ignored if not specified."})]}),(0,i.jsxs)(t.tr,{children:[(0,i.jsx)(t.td,{children:"highlight"}),(0,i.jsx)(t.td,{children:"Optional[boolean]"}),(0,i.jsxs)(t.td,{children:["Whether or not to highlight the data that is being separated. Can be used to create an alternating pattern of rows in a table. ",(0,i.jsx)(t.strong,{children:"Default: false"})]})]})]})]})]})}function p(e={}){const{wrapper:t}={...(0,s.a)(),...e.components};return t?(0,i.jsx)(t,{...e,children:(0,i.jsx)(c,{...e})}):c(e)}}}]); \ No newline at end of file diff --git a/assets/js/2831b18a.f78f2bd1.js b/assets/js/2831b18a.f78f2bd1.js deleted file mode 100644 index 3144af6..0000000 --- a/assets/js/2831b18a.f78f2bd1.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkzeno_docs=self.webpackChunkzeno_docs||[]).push([[640],{9342:(e,t,n)=>{n.r(t),n.d(t,{assets:()=>h,contentTitle:()=>d,default:()=>p,frontMatter:()=>l,metadata:()=>a,toc:()=>o});var i=n(5893),s=n(1151),r=n(9286);const l={},d="View Elements",a={id:"views/spec/other",title:"View Elements",description:"A View Element defines how to interpret and display data in your Zeno Project.",source:"@site/docs/views/spec/other.mdx",sourceDirName:"views/spec",slug:"/views/spec/other",permalink:"/docs/views/spec/other",draft:!1,unlisted:!1,tags:[],version:"current",frontMatter:{},sidebar:"tutorialSidebar",previous:{title:"View Specification",permalink:"/docs/views/spec/"}},h={},o=[{value:"Text",id:"text",level:2},{value:"Properties",id:"properties",level:4},{value:"Image",id:"image",level:2},{value:"Audio",id:"audio",level:2},{value:"Code",id:"code",level:2},{value:"Markdown",id:"markdown",level:2},{value:"Message",id:"message",level:2},{value:"Properties",id:"properties-1",level:4},{value:"List",id:"list",level:2},{value:"Properties",id:"properties-2",level:4},{value:"VStack",id:"vstack",level:2},{value:"Properties",id:"properties-3",level:4},{value:"Separated Values",id:"separated-values",level:2},{value:"Properties",id:"properties-4",level:4}];function c(e){const t={a:"a",code:"code",em:"em",h1:"h1",h2:"h2",h4:"h4",p:"p",strong:"strong",table:"table",tbody:"tbody",td:"td",th:"th",thead:"thead",tr:"tr",...(0,s.a)(),...e.components};return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(t.h1,{id:"view-elements",children:"View Elements"}),"\n",(0,i.jsx)(t.p,{children:"A View Element defines how to interpret and display data in your Zeno Project.\nThe following view elements can be used in your Zeno Projects."}),"\n",(0,i.jsx)(t.h2,{id:"text",children:"Text"}),"\n",(0,i.jsxs)(t.p,{children:["A plaintext view to display raw text data. See in ",(0,i.jsx)(t.a,{href:"https://zeno-ml.github.io/zeno-instance-views/?params=eyJzYW1wbGUiOiJ0ZXh0LWNsYXNzaWZpY2F0aW9uIn0=",children:"this example"}),"."]}),"\n",(0,i.jsx)(r.Z,{language:"json",title:"Separated Values",children:'{\n "type": "text",\n "label": string\n}\n'}),"\n",(0,i.jsx)(t.h4,{id:"properties",children:"Properties"}),"\n",(0,i.jsxs)(t.table,{children:[(0,i.jsx)(t.thead,{children:(0,i.jsxs)(t.tr,{children:[(0,i.jsx)(t.th,{children:"Property"}),(0,i.jsx)(t.th,{children:"Type"}),(0,i.jsx)(t.th,{children:"Description"})]})}),(0,i.jsx)(t.tbody,{children:(0,i.jsxs)(t.tr,{children:[(0,i.jsx)(t.td,{children:"label"}),(0,i.jsx)(t.td,{children:"Optional[String]"}),(0,i.jsx)(t.td,{children:"Label to be added in front of the text data."})]})})]}),"\n",(0,i.jsx)(t.h2,{id:"image",children:"Image"}),"\n",(0,i.jsxs)(t.p,{children:["A view to display image data. Expects a URL to fetch the image from as its data input. See in ",(0,i.jsx)(t.a,{href:"https://zeno-ml.github.io/zeno-instance-views/?params=eyJzYW1wbGUiOiJpbWFnZS1jbGFzc2lmaWNhdGlvbiJ9",children:"this example"}),"."]}),"\n",(0,i.jsx)(r.Z,{language:"json",title:"Separated Values",children:'{\n "type": "image",\n "maxWidth": "small" | "medium" | "large" | "full" \n}\n'}),"\n",(0,i.jsx)(t.h2,{id:"audio",children:"Audio"}),"\n",(0,i.jsxs)(t.p,{children:["A view to display audio data. Expects a URL to fetch the audio data from as its input. See in ",(0,i.jsx)(t.a,{href:"https://zeno-ml.github.io/zeno-instance-views/?params=eyJzYW1wbGUiOiJhdWRpby10cmFuc2NyaXB0aW9uIn0=",children:"this example"}),"."]}),"\n",(0,i.jsx)(r.Z,{language:"json",title:"Separated Values",children:'{\n "type": "audio"\n}\n'}),"\n",(0,i.jsx)(t.h2,{id:"code",children:"Code"}),"\n",(0,i.jsxs)(t.p,{children:["A code-display with syntax highlighting. See in ",(0,i.jsx)(t.a,{href:"https://zeno-ml.github.io/zeno-instance-views/?params=eyJzYW1wbGUiOiJjb2RlLWdlbmVyYXRpb24ifQ==",children:"this example"}),"."]}),"\n",(0,i.jsx)(r.Z,{language:"json",title:"Separated Values",children:'{\n "type": "code"\n}\n'}),"\n",(0,i.jsx)(t.h2,{id:"markdown",children:"Markdown"}),"\n",(0,i.jsxs)(t.p,{children:["Markdown visualization for a more flexible text display. See in ",(0,i.jsx)(t.a,{href:"https://zeno-ml.github.io/zeno-instance-views/?params=eyJzYW1wbGUiOiJjaGF0Ym90LW1hcmtkb3duIn0=",children:"this example"}),"."]}),"\n",(0,i.jsx)(r.Z,{language:"json",title:"Separated Values",children:'{\n "type": "markdown"\n}\n'}),"\n",(0,i.jsx)(t.h2,{id:"message",children:"Message"}),"\n",(0,i.jsxs)(t.p,{children:["Visualization of data in message bubbles akin to a chat view. See in ",(0,i.jsx)(t.a,{href:"https://zeno-ml.github.io/zeno-instance-views/?params=eyJzYW1wbGUiOiJjaGF0Ym90In0=",children:"this example"}),"."]}),"\n",(0,i.jsx)(r.Z,{language:"json",title:"Separated Values",children:'{\n "type": "message"\n "plain": boolean,\n "content": ViewElement | string,\n "ownMessage": boolean,\n "highlight": boolean\n}\n'}),"\n",(0,i.jsx)(t.h4,{id:"properties-1",children:"Properties"}),"\n",(0,i.jsxs)(t.table,{children:[(0,i.jsx)(t.thead,{children:(0,i.jsxs)(t.tr,{children:[(0,i.jsx)(t.th,{children:"Property"}),(0,i.jsx)(t.th,{children:"Type"}),(0,i.jsx)(t.th,{children:"Description"})]})}),(0,i.jsxs)(t.tbody,{children:[(0,i.jsxs)(t.tr,{children:[(0,i.jsx)(t.td,{children:"content"}),(0,i.jsxs)(t.td,{children:[(0,i.jsx)(t.a,{href:"/docs/views/spec/other",children:"ViewElement"})," | String"]}),(0,i.jsxs)(t.td,{children:["Element to use to render the message content. If ",(0,i.jsx)(t.code,{children:"plain == true"}),", this is interpreted as a String and displayed as plain text instead of a OpenAI-style message object."]})]}),(0,i.jsxs)(t.tr,{children:[(0,i.jsx)(t.td,{children:"plain"}),(0,i.jsx)(t.td,{children:"Optional[boolean]"}),(0,i.jsx)(t.td,{children:"How to render the content."})]}),(0,i.jsxs)(t.tr,{children:[(0,i.jsx)(t.td,{children:"ownMessage"}),(0,i.jsx)(t.td,{children:"Optional[boolean]"}),(0,i.jsxs)(t.td,{children:["Whether this message should be displayed as incoming or outgoing. Can also be specified in the data if ",(0,i.jsx)(t.code,{children:"plain == false"}),". True for outgoing."]})]}),(0,i.jsxs)(t.tr,{children:[(0,i.jsx)(t.td,{children:"highlight"}),(0,i.jsx)(t.td,{children:"Optional[boolean]"}),(0,i.jsx)(t.td,{children:"Whether this message should be highlighted."})]})]})]}),"\n",(0,i.jsx)(t.h2,{id:"list",children:"List"}),"\n",(0,i.jsxs)(t.p,{children:["A list of ViewElements. Can be used to render multiple view elements at once. See in ",(0,i.jsx)(t.a,{href:"https://zeno-ml.github.io/zeno-instance-views/?params=eyJzYW1wbGUiOiJjaGF0Ym90In0=",children:"this example"}),"."]}),"\n",(0,i.jsx)(r.Z,{language:"json",title:"Separated Values",children:'{\n "type": "list"\n "elements": ViewElement,\n "horizontal": boolean,\n "collapsible": "top" | "bottom",\n "border": boolean,\n "pad": boolean\n}\n'}),"\n",(0,i.jsx)(t.h4,{id:"properties-2",children:"Properties"}),"\n",(0,i.jsxs)(t.table,{children:[(0,i.jsx)(t.thead,{children:(0,i.jsxs)(t.tr,{children:[(0,i.jsx)(t.th,{children:"Property"}),(0,i.jsx)(t.th,{children:"Type"}),(0,i.jsx)(t.th,{children:"Description"})]})}),(0,i.jsxs)(t.tbody,{children:[(0,i.jsxs)(t.tr,{children:[(0,i.jsx)(t.td,{children:"elements"}),(0,i.jsx)(t.td,{children:(0,i.jsx)(t.a,{href:"/docs/views/spec/other",children:"ViewElement"})}),(0,i.jsx)(t.td,{children:"Element used to render all the elements of the list."})]}),(0,i.jsxs)(t.tr,{children:[(0,i.jsx)(t.td,{children:"horizontal"}),(0,i.jsx)(t.td,{children:"Optional[boolean]"}),(0,i.jsx)(t.td,{children:"If specified, renders list horizontally."})]}),(0,i.jsxs)(t.tr,{children:[(0,i.jsx)(t.td,{children:"collapsible"}),(0,i.jsx)(t.td,{children:"Optional[String]"}),(0,i.jsxs)(t.td,{children:["If specified, only renders four elements of the list per default but adds a ",(0,i.jsx)(t.em,{children:"show more"})," button to expand. Can specify either ",(0,i.jsx)(t.code,{children:'"top"'})," or ",(0,i.jsx)(t.code,{children:'"bottom"'}),"."]})]}),(0,i.jsxs)(t.tr,{children:[(0,i.jsx)(t.td,{children:"border"}),(0,i.jsx)(t.td,{children:"Optional[boolean]"}),(0,i.jsx)(t.td,{children:"Whether to add a border around each list element."})]}),(0,i.jsxs)(t.tr,{children:[(0,i.jsx)(t.td,{children:"pad"}),(0,i.jsx)(t.td,{children:"Optional[boolean]"}),(0,i.jsx)(t.td,{children:"Whether to add padding to each list element."})]})]})]}),"\n",(0,i.jsx)(t.h2,{id:"vstack",children:"VStack"}),"\n",(0,i.jsxs)(t.p,{children:["A vertical stack of keyed elements. Can be used to combine different element types. See in ",(0,i.jsx)(t.a,{href:"https://zeno-ml.github.io/zeno-instance-views/?params=eyJzYW1wbGUiOiJyYWcifQ==",children:"this example"}),"."]}),"\n",(0,i.jsx)(r.Z,{language:"json",title:"Separated Values",children:'{\n "type": "vstack"\n "keys": Record\n}\n'}),"\n",(0,i.jsx)(t.h4,{id:"properties-3",children:"Properties"}),"\n",(0,i.jsxs)(t.table,{children:[(0,i.jsx)(t.thead,{children:(0,i.jsxs)(t.tr,{children:[(0,i.jsx)(t.th,{children:"Property"}),(0,i.jsx)(t.th,{children:"Type"}),(0,i.jsx)(t.th,{children:"Description"})]})}),(0,i.jsx)(t.tbody,{children:(0,i.jsxs)(t.tr,{children:[(0,i.jsx)(t.td,{children:"keys"}),(0,i.jsxs)(t.td,{children:["Record"]}),(0,i.jsx)(t.td,{children:"List of objects mapping from a String key to a ViewElement used to render the content of the data behind the key."})]})})]}),"\n",(0,i.jsx)(t.h2,{id:"separated-values",children:"Separated Values"}),"\n",(0,i.jsxs)(t.p,{children:["Splitting the data into columns using a specified separator. See in ",(0,i.jsx)(t.a,{href:"https://zeno-ml.github.io/zeno-instance-views/?params=eyJzYW1wbGUiOiJzcGFjZS1zZXBhcmF0ZWQtdmFsdWVzIn0=",children:"this example"}),"."]}),"\n",(0,i.jsx)(r.Z,{language:"json",title:"Separated Values",children:'{\n "type": "separatedValues",\n "separator": string,\n "header": string,\n "highlight": boolean\n}\n'}),"\n",(0,i.jsx)(t.h4,{id:"properties-4",children:"Properties"}),"\n",(0,i.jsxs)(t.table,{children:[(0,i.jsx)(t.thead,{children:(0,i.jsxs)(t.tr,{children:[(0,i.jsx)(t.th,{children:"Property"}),(0,i.jsx)(t.th,{children:"Type"}),(0,i.jsx)(t.th,{children:"Description"})]})}),(0,i.jsxs)(t.tbody,{children:[(0,i.jsxs)(t.tr,{children:[(0,i.jsx)(t.td,{children:"separator"}),(0,i.jsx)(t.td,{children:"String"}),(0,i.jsx)(t.td,{children:"Character or sequence to separate the data with."})]}),(0,i.jsxs)(t.tr,{children:[(0,i.jsx)(t.td,{children:"header"}),(0,i.jsx)(t.td,{children:"Optional[String]"}),(0,i.jsx)(t.td,{children:"The heading of the row of data. Ignored if not specified."})]}),(0,i.jsxs)(t.tr,{children:[(0,i.jsx)(t.td,{children:"highlight"}),(0,i.jsx)(t.td,{children:"Optional[boolean]"}),(0,i.jsxs)(t.td,{children:["Whether or not to highlight the data that is being separated. Can be used to create an alternating pattern of rows in a table. ",(0,i.jsx)(t.strong,{children:"Default: false"})]})]})]})]})]})}function p(e={}){const{wrapper:t}={...(0,s.a)(),...e.components};return t?(0,i.jsx)(t,{...e,children:(0,i.jsx)(c,{...e})}):c(e)}}}]); \ No newline at end of file diff --git a/assets/js/runtime~main.5f4a121b.js b/assets/js/runtime~main.ebc7f866.js similarity index 53% rename from assets/js/runtime~main.5f4a121b.js rename to assets/js/runtime~main.ebc7f866.js index 187a33f..0d7e3c1 100644 --- a/assets/js/runtime~main.5f4a121b.js +++ b/assets/js/runtime~main.ebc7f866.js @@ -1 +1 @@ -(()=>{"use strict";var e,a,t,r,c,o={},f={};function n(e){var a=f[e];if(void 0!==a)return a.exports;var t=f[e]={exports:{}};return o[e].call(t.exports,t,t.exports,n),t.exports}n.m=o,e=[],n.O=(a,t,r,c)=>{if(!t){var o=1/0;for(i=0;i=c)&&Object.keys(n.O).every((e=>n.O[e](t[d])))?t.splice(d--,1):(f=!1,c0&&e[i-1][2]>c;i--)e[i]=e[i-1];e[i]=[t,r,c]},n.n=e=>{var a=e&&e.__esModule?()=>e.default:()=>e;return n.d(a,{a:a}),a},t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,n.t=function(e,r){if(1&r&&(e=this(e)),8&r)return e;if("object"==typeof e&&e){if(4&r&&e.__esModule)return e;if(16&r&&"function"==typeof e.then)return e}var c=Object.create(null);n.r(c);var o={};a=a||[null,t({}),t([]),t(t)];for(var f=2&r&&e;"object"==typeof f&&!~a.indexOf(f);f=t(f))Object.getOwnPropertyNames(f).forEach((a=>o[a]=()=>e[a]));return o.default=()=>e,n.d(c,o),c},n.d=(e,a)=>{for(var t in a)n.o(a,t)&&!n.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:a[t]})},n.f={},n.e=e=>Promise.all(Object.keys(n.f).reduce(((a,t)=>(n.f[t](e,a),a)),[])),n.u=e=>"assets/js/"+({13:"01a85c17",53:"935f2afb",60:"ae6c4130",89:"a6aa9e1f",103:"ccc49370",194:"4d0932fd",206:"f8409a7e",237:"1df93b7f",250:"b245f42a",333:"9375f4e3",346:"989c4899",368:"a94703ab",477:"b2f554cd",489:"24c768db",517:"5cd43755",518:"a7bd4aaa",533:"b2b675dd",535:"814f3328",539:"5c1fb99f",566:"c339cc82",592:"common",608:"9e4087bc",610:"6875c492",640:"2831b18a",661:"5e95c892",713:"a7023ddc",743:"20417f73",831:"fda116a3",918:"17896441",934:"28df1be2",954:"842e05e7",979:"5ad2500b"}[e]||e)+"."+{13:"2f6134d5",53:"e857cdaa",60:"6c7f8800",89:"be2c0850",103:"8a038649",130:"0a3a43d1",194:"0924e6f2",206:"0a294e05",237:"e86a8a67",250:"c1c8fb32",333:"e4aea564",346:"fc0ac217",368:"cce9f91a",477:"c52f296b",489:"c3bff435",517:"4ad4a540",518:"92f9bc95",533:"3192af58",535:"06c77d18",539:"38a1515b",566:"4415a5ef",592:"e623b839",608:"0e417310",610:"3daf2915",640:"f78f2bd1",661:"7902997e",713:"1c0c0cb9",743:"98e56347",772:"0c8b5b60",831:"8e221e00",914:"efd8a85b",918:"454d5795",934:"4aa3c9f8",954:"c92ed74b",979:"2310f764"}[e]+".js",n.miniCssF=e=>{},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.o=(e,a)=>Object.prototype.hasOwnProperty.call(e,a),r={},c="zeno-docs:",n.l=(e,a,t,o)=>{if(r[e])r[e].push(a);else{var f,d;if(void 0!==t)for(var b=document.getElementsByTagName("script"),i=0;i{f.onerror=f.onload=null,clearTimeout(s);var c=r[e];if(delete r[e],f.parentNode&&f.parentNode.removeChild(f),c&&c.forEach((e=>e(t))),a)return a(t)},s=setTimeout(l.bind(null,void 0,{type:"timeout",target:f}),12e4);f.onerror=l.bind(null,f.onerror),f.onload=l.bind(null,f.onload),d&&document.head.appendChild(f)}},n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.p="/",n.gca=function(e){return e={17896441:"918","01a85c17":"13","935f2afb":"53",ae6c4130:"60",a6aa9e1f:"89",ccc49370:"103","4d0932fd":"194",f8409a7e:"206","1df93b7f":"237",b245f42a:"250","9375f4e3":"333","989c4899":"346",a94703ab:"368",b2f554cd:"477","24c768db":"489","5cd43755":"517",a7bd4aaa:"518",b2b675dd:"533","814f3328":"535","5c1fb99f":"539",c339cc82:"566",common:"592","9e4087bc":"608","6875c492":"610","2831b18a":"640","5e95c892":"661",a7023ddc:"713","20417f73":"743",fda116a3:"831","28df1be2":"934","842e05e7":"954","5ad2500b":"979"}[e]||e,n.p+n.u(e)},(()=>{var e={303:0,532:0};n.f.j=(a,t)=>{var r=n.o(e,a)?e[a]:void 0;if(0!==r)if(r)t.push(r[2]);else if(/^(303|532)$/.test(a))e[a]=0;else{var c=new Promise(((t,c)=>r=e[a]=[t,c]));t.push(r[2]=c);var o=n.p+n.u(a),f=new Error;n.l(o,(t=>{if(n.o(e,a)&&(0!==(r=e[a])&&(e[a]=void 0),r)){var c=t&&("load"===t.type?"missing":t.type),o=t&&t.target&&t.target.src;f.message="Loading chunk "+a+" failed.\n("+c+": "+o+")",f.name="ChunkLoadError",f.type=c,f.request=o,r[1](f)}}),"chunk-"+a,a)}},n.O.j=a=>0===e[a];var a=(a,t)=>{var r,c,o=t[0],f=t[1],d=t[2],b=0;if(o.some((a=>0!==e[a]))){for(r in f)n.o(f,r)&&(n.m[r]=f[r]);if(d)var i=d(n)}for(a&&a(t);b{"use strict";var e,t,a,r,c,o={},f={};function n(e){var t=f[e];if(void 0!==t)return t.exports;var a=f[e]={exports:{}};return o[e].call(a.exports,a,a.exports,n),a.exports}n.m=o,e=[],n.O=(t,a,r,c)=>{if(!a){var o=1/0;for(i=0;i=c)&&Object.keys(n.O).every((e=>n.O[e](a[d])))?a.splice(d--,1):(f=!1,c0&&e[i-1][2]>c;i--)e[i]=e[i-1];e[i]=[a,r,c]},n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},a=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,n.t=function(e,r){if(1&r&&(e=this(e)),8&r)return e;if("object"==typeof e&&e){if(4&r&&e.__esModule)return e;if(16&r&&"function"==typeof e.then)return e}var c=Object.create(null);n.r(c);var o={};t=t||[null,a({}),a([]),a(a)];for(var f=2&r&&e;"object"==typeof f&&!~t.indexOf(f);f=a(f))Object.getOwnPropertyNames(f).forEach((t=>o[t]=()=>e[t]));return o.default=()=>e,n.d(c,o),c},n.d=(e,t)=>{for(var a in t)n.o(t,a)&&!n.o(e,a)&&Object.defineProperty(e,a,{enumerable:!0,get:t[a]})},n.f={},n.e=e=>Promise.all(Object.keys(n.f).reduce(((t,a)=>(n.f[a](e,t),t)),[])),n.u=e=>"assets/js/"+({13:"01a85c17",53:"935f2afb",60:"ae6c4130",89:"a6aa9e1f",103:"ccc49370",194:"4d0932fd",206:"f8409a7e",237:"1df93b7f",250:"b245f42a",333:"9375f4e3",346:"989c4899",368:"a94703ab",477:"b2f554cd",489:"24c768db",517:"5cd43755",518:"a7bd4aaa",533:"b2b675dd",535:"814f3328",539:"5c1fb99f",566:"c339cc82",592:"common",608:"9e4087bc",610:"6875c492",640:"2831b18a",661:"5e95c892",713:"a7023ddc",743:"20417f73",831:"fda116a3",918:"17896441",934:"28df1be2",954:"842e05e7",979:"5ad2500b"}[e]||e)+"."+{13:"2f6134d5",53:"e857cdaa",60:"6c7f8800",89:"be2c0850",103:"8a038649",130:"0a3a43d1",194:"0924e6f2",206:"0a294e05",237:"e86a8a67",250:"c1c8fb32",333:"e4aea564",346:"fc0ac217",368:"cce9f91a",477:"c52f296b",489:"c3bff435",517:"4ad4a540",518:"92f9bc95",533:"3192af58",535:"06c77d18",539:"38a1515b",566:"4415a5ef",592:"e623b839",608:"0e417310",610:"3daf2915",640:"66ee6666",661:"7902997e",713:"1c0c0cb9",743:"98e56347",772:"0c8b5b60",831:"8e221e00",914:"efd8a85b",918:"454d5795",934:"4aa3c9f8",954:"c92ed74b",979:"2310f764"}[e]+".js",n.miniCssF=e=>{},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r={},c="zeno-docs:",n.l=(e,t,a,o)=>{if(r[e])r[e].push(t);else{var f,d;if(void 0!==a)for(var b=document.getElementsByTagName("script"),i=0;i{f.onerror=f.onload=null,clearTimeout(s);var c=r[e];if(delete r[e],f.parentNode&&f.parentNode.removeChild(f),c&&c.forEach((e=>e(a))),t)return t(a)},s=setTimeout(l.bind(null,void 0,{type:"timeout",target:f}),12e4);f.onerror=l.bind(null,f.onerror),f.onload=l.bind(null,f.onload),d&&document.head.appendChild(f)}},n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.p="/",n.gca=function(e){return e={17896441:"918","01a85c17":"13","935f2afb":"53",ae6c4130:"60",a6aa9e1f:"89",ccc49370:"103","4d0932fd":"194",f8409a7e:"206","1df93b7f":"237",b245f42a:"250","9375f4e3":"333","989c4899":"346",a94703ab:"368",b2f554cd:"477","24c768db":"489","5cd43755":"517",a7bd4aaa:"518",b2b675dd:"533","814f3328":"535","5c1fb99f":"539",c339cc82:"566",common:"592","9e4087bc":"608","6875c492":"610","2831b18a":"640","5e95c892":"661",a7023ddc:"713","20417f73":"743",fda116a3:"831","28df1be2":"934","842e05e7":"954","5ad2500b":"979"}[e]||e,n.p+n.u(e)},(()=>{var e={303:0,532:0};n.f.j=(t,a)=>{var r=n.o(e,t)?e[t]:void 0;if(0!==r)if(r)a.push(r[2]);else if(/^(303|532)$/.test(t))e[t]=0;else{var c=new Promise(((a,c)=>r=e[t]=[a,c]));a.push(r[2]=c);var o=n.p+n.u(t),f=new Error;n.l(o,(a=>{if(n.o(e,t)&&(0!==(r=e[t])&&(e[t]=void 0),r)){var c=a&&("load"===a.type?"missing":a.type),o=a&&a.target&&a.target.src;f.message="Loading chunk "+t+" failed.\n("+c+": "+o+")",f.name="ChunkLoadError",f.type=c,f.request=o,r[1](f)}}),"chunk-"+t,t)}},n.O.j=t=>0===e[t];var t=(t,a)=>{var r,c,o=a[0],f=a[1],d=a[2],b=0;if(o.some((t=>0!==e[t]))){for(r in f)n.o(f,r)&&(n.m[r]=f[r]);if(d)var i=d(n)}for(t&&t(a);b - + diff --git a/blog/index.html b/blog/index.html index 7f6aa3a..8379e75 100644 --- a/blog/index.html +++ b/blog/index.html @@ -13,7 +13,7 @@ - + diff --git a/blog/tags/index.html b/blog/tags/index.html index 09c22c0..03eedc7 100644 --- a/blog/tags/index.html +++ b/blog/tags/index.html @@ -13,7 +13,7 @@ - + diff --git a/blog/tags/introduction/index.html b/blog/tags/introduction/index.html index 5cd7e35..21c3e7f 100644 --- a/blog/tags/introduction/index.html +++ b/blog/tags/introduction/index.html @@ -13,7 +13,7 @@ - + diff --git a/blog/welcome-post/index.html b/blog/welcome-post/index.html index 1103aa8..f7d4e3f 100644 --- a/blog/welcome-post/index.html +++ b/blog/welcome-post/index.html @@ -13,7 +13,7 @@ - + diff --git a/docs/intro/index.html b/docs/intro/index.html index 03354ac..c5ae653 100644 --- a/docs/intro/index.html +++ b/docs/intro/index.html @@ -13,7 +13,7 @@ - + diff --git a/docs/python-client/index.html b/docs/python-client/index.html index fd1aada..a687f05 100644 --- a/docs/python-client/index.html +++ b/docs/python-client/index.html @@ -13,7 +13,7 @@ - + diff --git a/docs/using-zeno/index.html b/docs/using-zeno/index.html index fe8c5d8..9b022bb 100644 --- a/docs/using-zeno/index.html +++ b/docs/using-zeno/index.html @@ -13,7 +13,7 @@ - + diff --git a/docs/views/existing/index.html b/docs/views/existing/index.html index 86ed859..66def20 100644 --- a/docs/views/existing/index.html +++ b/docs/views/existing/index.html @@ -13,7 +13,7 @@ - + diff --git a/docs/views/index.html b/docs/views/index.html index aed5264..62171bf 100644 --- a/docs/views/index.html +++ b/docs/views/index.html @@ -13,7 +13,7 @@ - + diff --git a/docs/views/spec/index.html b/docs/views/spec/index.html index 6a8ab39..396a5a6 100644 --- a/docs/views/spec/index.html +++ b/docs/views/spec/index.html @@ -13,7 +13,7 @@ - + diff --git a/docs/views/spec/other/index.html b/docs/views/spec/other/index.html index 231ddf7..7358abc 100644 --- a/docs/views/spec/other/index.html +++ b/docs/views/spec/other/index.html @@ -13,7 +13,7 @@ - + @@ -39,6 +39,9 @@

CodeMarkdown

Markdown visualization for a more flexible text display. See in this example.

Separated Values
{
"type": "markdown"
}
+

3D

+

3D model rendering. Expects a URL to a glTF/GLB model. See in this example.

+
Separated Values
{
"type": "3D"
}

Message

Visualization of data in message bubbles akin to a chat view. See in this example.

Separated Values
{
"type": "message"
"plain": boolean,
"content": ViewElement | string,
"ownMessage": boolean,
"highlight": boolean
}
@@ -58,6 +61,6 @@

Separated V

Splitting the data into columns using a specified separator. See in this example.

Separated Values
{
"type": "separatedValues",
"separator": string,
"header": string,
"highlight": boolean
}

Properties

-
PropertyTypeDescription
separatorStringCharacter or sequence to separate the data with.
headerOptional[String]The heading of the row of data. Ignored if not specified.
highlightOptional[boolean]Whether or not to highlight the data that is being separated. Can be used to create an alternating pattern of rows in a table. Default: false
+
PropertyTypeDescription
separatorStringCharacter or sequence to separate the data with.
headerOptional[String]The heading of the row of data. Ignored if not specified.
highlightOptional[boolean]Whether or not to highlight the data that is being separated. Can be used to create an alternating pattern of rows in a table. Default: false
\ No newline at end of file diff --git a/faq/index.html b/faq/index.html index b1283b5..4560906 100644 --- a/faq/index.html +++ b/faq/index.html @@ -13,7 +13,7 @@ - + diff --git a/index.html b/index.html index 19b5bea..33511f0 100644 --- a/index.html +++ b/index.html @@ -13,7 +13,7 @@ - +