Skip to content

Commit

Permalink
Updates
Browse files Browse the repository at this point in the history
  • Loading branch information
Shane Jeffery committed Sep 26, 2024
1 parent 45a9b66 commit fc6db1a
Show file tree
Hide file tree
Showing 12 changed files with 61 additions and 61 deletions.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

39 changes: 39 additions & 0 deletions assets/ViewEmbedLocal.stories-CBH97v0B.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

39 changes: 0 additions & 39 deletions assets/ViewEmbedLocal.stories-Dzpz2qzi.js

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import{j as n}from"./jsx-runtime-DEdD30eg.js";import{V as l,T as c,E as s}from"./embedWithHooks-C2c-Nid2.js";import"./index-RYns6xqu.js";import"./v4-LUkOAzCQ.js";const i=`
import{j as n}from"./jsx-runtime-DEdD30eg.js";import{V as l,T as c,E as i}from"./embedWithHooks-B3D_lNeo.js";import"./index-RYns6xqu.js";import"./v4-LUkOAzCQ.js";const s=`
import React, { useState } from "react";
import DateTimePicker from "react-datetime-picker";
import { ViewEmbedWrapper } from "../ViewEmbedWrapper";
Expand Down Expand Up @@ -98,17 +98,17 @@ export const ViewEmbedDemo = () => {
</>
);
};
`,m=[{value:"9fccbfd0-67e8-47c9-be7a-10105a737050",label:"Holman View Embed"}],E={title:"View Embed",component:l,argTypes:{hasAuthToken:{control:"boolean",name:"hasAuthToken [Storybook Only]"},serviceAccountEmail:{control:"text",if:{arg:"hasAuthToken",truthy:!1},name:"serviceAccountEmail [Storybook Only]"},serviceAccountPassword:{control:"text",if:{arg:"hasAuthToken",truthy:!1},name:"serviceAccountPassword [Storybook Only]"},apiBaseUrl:{control:"text",if:{arg:"hasAuthToken",truthy:!1},name:"apiBaseUrl [Storybook Only]"},tagSets:{control:"object",if:{arg:"hasAuthToken",truthy:!1},name:"tagSets [Storybook Only]"},authToken:{control:"text",if:{arg:"hasAuthToken",truthy:!0},name:"authToken [Storybook Only]"},viewId:{control:"text"},tags:{control:"text"},deviceId:{control:"text"},currentDate:{control:"date"},timeRange:{options:c,control:"select"},fontFamilyUrl:{control:"text"},themeOverride:{control:"object"},wrapperStyleOverride:{control:"object"},dataSrcUrl:{control:"text"}},parameters:{layout:"centered"}},o={args:{hasAuthToken:!1,serviceAccountEmail:"",serviceAccountPassword:"",tagSets:{},apiBaseUrl:"https://api.formant.io",authToken:"",dataSrcUrl:"https://embed.formant.io",viewId:"9140bb02-32fe-47ea-bc24-8f6178eff205",tags:"",deviceId:m[0].value,timeRange:"30 minute",currentDate:new Date,fontFamilyUrl:"https://fonts.googleapis.com/css2?family=Oswald:wght@200..700&display=swap",themeOverride:{colors:{"formant-color-primary-white":"#000000","formant-color-primary-silver":"#1F1F1F","formant-color-primary-black":"#FFFFFF","formant-color-primary-dark":"#E6E6E6","formant-color-primary-flagship":"#E8E8E8","formant-color-background":"#E8E8E8","formant-color-primary-module":"#FFFFFF","formant-color-primary-steel01":"#005897","formant-color-primary-steel02":"#005897","formant-color-primary-steel03":"#81cbff","formant-color-highlights-blue":"#005897","formant-color-data-royal-blue":"#005897","formant-color-data-purple":"#E6E6FA","formant-color-data-red":"#FF7F50","formant-color-data-orange":"#FFDAB9","formant-color-data-yellow":"#F9C36E","formant-color-data-green":"#40E0D0"},fontFamily:"Oswald"}},render:e=>n.jsx(s,{deviceId:e.deviceId,viewId:e.viewId,themeOverride:e.themeOverride,fontFamilyUrl:e.fontFamilyUrl,providedAuthToken:e.authToken,timeRange:e.timeRange,currentDate:e.currentDate,dataSrcUrl:e.dataSrcUrl,hasAuthToken:e.hasAuthToken,serviceAccountEmail:e.serviceAccountEmail,serviceAccountPassword:e.serviceAccountPassword,apiBaseUrl:e.apiBaseUrl,tagSets:e.tagSets,tags:e.tags})};o.parameters={storySource:{source:i}};var t,a,r;o.parameters={...o.parameters,docs:{...(t=o.parameters)==null?void 0:t.docs,source:{originalSource:`{
`,m=[{value:"9fccbfd0-67e8-47c9-be7a-10105a737050",label:"Holman View Embed"}],h={title:"View Embed",component:l,argTypes:{hasAuthToken:{control:"boolean",name:"hasAuthToken [Storybook Only]"},serviceAccountEmail:{control:"text",if:{arg:"hasAuthToken",truthy:!1},name:"serviceAccountEmail [Storybook Only]"},serviceAccountPassword:{control:"text",if:{arg:"hasAuthToken",truthy:!1},name:"serviceAccountPassword [Storybook Only]"},apiBaseUrl:{control:"text",if:{arg:"hasAuthToken",truthy:!1},name:"apiBaseUrl [Internal Only]"},authTagSets:{control:"object",if:{arg:"hasAuthToken",truthy:!1},name:"authTagSets [Storybook Only]"},authToken:{control:"text",if:{arg:"hasAuthToken",truthy:!0},name:"authToken [Storybook Only]"},viewId:{control:"text"},viewTags:{control:"text",name:"viewTags"},deviceId:{control:"text"},currentDate:{control:"date"},timeRange:{options:c,control:"select"},fontFamilyUrl:{control:"text"},themeOverride:{control:"object"},wrapperStyleOverride:{control:"object"},dataSrcUrl:{control:"text",name:"dataSrcUrl [Internal Only]"}},parameters:{layout:"centered"}},a={args:{hasAuthToken:!1,serviceAccountEmail:"",serviceAccountPassword:"",authTagSets:{},apiBaseUrl:"https://api.formant.io",authToken:"",dataSrcUrl:"https://embed.formant.io",viewId:"9140bb02-32fe-47ea-bc24-8f6178eff205",viewTags:"",deviceId:m[0].value,timeRange:"30 minute",currentDate:new Date,fontFamilyUrl:"https://fonts.googleapis.com/css2?family=Oswald:wght@200..700&display=swap",themeOverride:{colors:{"formant-color-primary-white":"#000000","formant-color-primary-silver":"#1F1F1F","formant-color-primary-black":"#FFFFFF","formant-color-primary-dark":"#E6E6E6","formant-color-primary-flagship":"#E8E8E8","formant-color-background":"#E8E8E8","formant-color-primary-module":"#FFFFFF","formant-color-primary-steel01":"#005897","formant-color-primary-steel02":"#005897","formant-color-primary-steel03":"#81cbff","formant-color-highlights-blue":"#005897","formant-color-data-royal-blue":"#005897","formant-color-data-purple":"#E6E6FA","formant-color-data-red":"#FF7F50","formant-color-data-orange":"#FFDAB9","formant-color-data-yellow":"#F9C36E","formant-color-data-green":"#40E0D0"},fontFamily:"Oswald"}},render:e=>n.jsx(i,{deviceId:e.deviceId,viewId:e.viewId,themeOverride:e.themeOverride,fontFamilyUrl:e.fontFamilyUrl,providedAuthToken:e.authToken,timeRange:e.timeRange,currentDate:e.currentDate,dataSrcUrl:e.dataSrcUrl,hasAuthToken:e.hasAuthToken,serviceAccountEmail:e.serviceAccountEmail,serviceAccountPassword:e.serviceAccountPassword,apiBaseUrl:e.apiBaseUrl,authTagSets:e.authTagSets,viewTags:e.viewTags,wrapperStyleOverride:e.wrapperStyleOverride})};a.parameters={storySource:{source:s}};var r,o,t;a.parameters={...a.parameters,docs:{...(r=a.parameters)==null?void 0:r.docs,source:{originalSource:`{
args: {
hasAuthToken: false,
serviceAccountEmail: "",
serviceAccountPassword: "",
tagSets: {},
authTagSets: {},
apiBaseUrl: "https://api.formant.io",
authToken: "",
dataSrcUrl: "https://embed.formant.io",
viewId: "9140bb02-32fe-47ea-bc24-8f6178eff205",
tags: "",
viewTags: "",
deviceId: DEVICE_OPTIONS[0].value,
timeRange: "30 minute",
currentDate: new Date(),
Expand Down Expand Up @@ -136,5 +136,5 @@ export const ViewEmbedDemo = () => {
fontFamily: "Oswald"
}
},
render: args => <EmbedWithHooks deviceId={args.deviceId} viewId={args.viewId} themeOverride={args.themeOverride} fontFamilyUrl={args.fontFamilyUrl} providedAuthToken={args.authToken} timeRange={args.timeRange} currentDate={args.currentDate} dataSrcUrl={args.dataSrcUrl} hasAuthToken={args.hasAuthToken} serviceAccountEmail={args.serviceAccountEmail} serviceAccountPassword={args.serviceAccountPassword} apiBaseUrl={args.apiBaseUrl} tagSets={args.tagSets} tags={args.tags} />
}`,...(r=(a=o.parameters)==null?void 0:a.docs)==null?void 0:r.source}}};const h=["BaseDemo"];export{o as BaseDemo,h as __namedExportsOrder,E as default};
render: args => <EmbedWithHooks deviceId={args.deviceId} viewId={args.viewId} themeOverride={args.themeOverride} fontFamilyUrl={args.fontFamilyUrl} providedAuthToken={args.authToken} timeRange={args.timeRange} currentDate={args.currentDate} dataSrcUrl={args.dataSrcUrl} hasAuthToken={args.hasAuthToken} serviceAccountEmail={args.serviceAccountEmail} serviceAccountPassword={args.serviceAccountPassword} apiBaseUrl={args.apiBaseUrl} authTagSets={args.authTagSets} viewTags={args.viewTags} wrapperStyleOverride={args.wrapperStyleOverride} />
}`,...(t=(o=a.parameters)==null?void 0:o.docs)==null?void 0:t.source}}};const E=["BaseDemo"];export{a as BaseDemo,E as __namedExportsOrder,h as default};

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Loading

0 comments on commit fc6db1a

Please sign in to comment.