@plasmicpkgs/plasmic-typeform 0.0.4 → 0.0.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.
@@ -1 +1 @@
1
- {"version":3,"file":"plasmic-typeform.cjs.development.js","sources":["../src/typeform.tsx","../src/index.tsx"],"sourcesContent":["import { ComponentMeta } from \"@plasmicapp/host\";\n\nimport React from \"react\";\nimport { Widget } from \"@typeform/embed-react\";\nexport function ensure<T>(x: T | null | undefined): T {\n if (x === null || x === undefined) {\n debugger;\n throw new Error(`Value must not be undefined or null`);\n } else {\n return x;\n }\n}\n\nconst modulePath = \"@plasmicpkgs/plasmic-typeform\";\n\ninterface TypeformProps {\n className?: string;\n formId?: string;\n}\n\nexport const TypeformMeta: ComponentMeta<TypeformProps> = {\n name: \"TypeForm\",\n displayName: \"Typeform\",\n importName: \"Typeform\",\n importPath: modulePath,\n providesData: true,\n description: \"Embed Typeform on your website\",\n defaultStyles: {\n width: \"600px\",\n height: \"700px\"\n },\n props: {\n formId: {\n type: \"string\",\n displayName: \"Form ID\",\n description: \"ID of your form in Typeform\",\n defaultValue: \"R2s5BM\"\n },\n },\n};\n\nexport function Typeform({ className, formId }: TypeformProps) {\n if (!formId) {\n return <div>Please specify a Form ID</div>;\n }\n\n return (\n\n <div className={className}>\n <Widget id={formId!} style={{ width: \"100%\", height: \"100%\" }} className={className} />\n </div>\n\n\n );\n}\n","import registerComponent, {\n ComponentMeta,\n} from \"@plasmicapp/host/registerComponent\";\nimport registerGlobalContext from \"@plasmicapp/host/registerGlobalContext\";\nimport {\n Typeform,\n TypeformMeta,\n\n\n} from \"./typeform\";\n\n\nexport function registerAll(loader?: {\n registerComponent: typeof registerComponent;\n registerGlobalContext: typeof registerGlobalContext;\n}) {\n const _registerComponent = <T extends React.ComponentType<any>>(\n Component: T,\n defaultMeta: ComponentMeta<React.ComponentProps<T>>\n ) => {\n if (loader) {\n loader.registerComponent(Component, defaultMeta);\n } else {\n registerComponent(Component, defaultMeta);\n }\n };\n\n if (loader) {\n\n _registerComponent(Typeform, TypeformMeta);\n\n }\n}\n\nexport * from \"./typeform\";"],"names":["ensure","x","undefined","Error","modulePath","TypeformMeta","name","displayName","importName","importPath","providesData","description","defaultStyles","width","height","props","formId","type","defaultValue","Typeform","className","React","Widget","id","style","registerAll","loader","_registerComponent","Component","defaultMeta","registerComponent"],"mappings":";;;;;;;;;;SAIgBA,MAAM,CAAIC,CAAuB;EAC/C,IAAIA,CAAC,KAAK,IAAI,IAAIA,CAAC,KAAKC,SAAS,EAAE;IACjC;IACA,MAAM,IAAIC,KAAK,uCAAuC;GACvD,MAAM;IACL,OAAOF,CAAC;;AAEZ;AAEA,IAAMG,UAAU,GAAG,+BAA+B;IAOrCC,YAAY,GAAiC;EACxDC,IAAI,EAAE,UAAU;EAChBC,WAAW,EAAE,UAAU;EACvBC,UAAU,EAAE,UAAU;EACtBC,UAAU,EAAEL,UAAU;EACtBM,YAAY,EAAE,IAAI;EAClBC,WAAW,EAAE,gCAAgC;EAC7CC,aAAa,EAAE;IACbC,KAAK,EAAE,OAAO;IACdC,MAAM,EAAE;GACT;EACDC,KAAK,EAAE;IACLC,MAAM,EAAE;MACNC,IAAI,EAAE,QAAQ;MACdV,WAAW,EAAE,SAAS;MACtBI,WAAW,EAAE,6BAA6B;MAC1CO,YAAY,EAAE;;;;SAKJC,QAAQ;MAAGC,SAAS,QAATA,SAAS;IAAEJ,MAAM,QAANA,MAAM;EAC1C,IAAI,CAACA,MAAM,EAAE;IACX,OAAOK,4DAAmC;;EAG5C,OAEEA;IAAKD,SAAS,EAAEA;KACdC,oBAACC,iBAAM;IAACC,EAAE,EAAEP,MAAO;IAAEQ,KAAK,EAAE;MAAEX,KAAK,EAAE,MAAM;MAAEC,MAAM,EAAE;KAAQ;IAAEM,SAAS,EAAEA;IAAa,CACnF;AAIV;;SC1CgBK,WAAW,CAACC,MAG3B;EACC,IAAMC,kBAAkB,GAAG,SAArBA,kBAAkB,CACtBC,SAAY,EACZC,WAAmD;IAEnD,IAAIH,MAAM,EAAE;MACVA,MAAM,CAACI,iBAAiB,CAACF,SAAS,EAAEC,WAAW,CAAC;KACjD,MAAM;MACLC,iBAAiB,CAACF,SAAS,EAAEC,WAAW,CAAC;;GAE5C;EAED,IAAIH,MAAM,EAAE;IAEVC,kBAAkB,CAACR,QAAQ,EAAEd,YAAY,CAAC;;AAG9C;;;;;;;"}
1
+ {"version":3,"file":"plasmic-typeform.cjs.development.js","sources":["../src/typeform.tsx","../src/index.tsx"],"sourcesContent":["import { ComponentMeta } from \"@plasmicapp/host\";\n\nimport React from \"react\";\nimport { Widget } from \"@typeform/embed-react\";\nexport function ensure<T>(x: T | null | undefined): T {\n if (x === null || x === undefined) {\n debugger;\n throw new Error(`Value must not be undefined or null`);\n } else {\n return x;\n }\n}\n\nconst modulePath = \"@plasmicpkgs/plasmic-typeform\";\n\ninterface TypeformProps {\n className?: string;\n formId?: string;\n}\n\nexport const TypeformMeta: ComponentMeta<TypeformProps> = {\n name: \"TypeForm\",\n displayName: \"Typeform\",\n importName: \"Typeform\",\n importPath: modulePath,\n providesData: true,\n description: \"Embed Typeform on your website\",\n defaultStyles: {\n width: \"600px\",\n height: \"700px\"\n },\n props: {\n formId: {\n type: \"string\",\n displayName: \"Form ID\",\n description: \"ID of your form in Typeform\",\n defaultValue: \"R2s5BM\"\n },\n },\n};\n\nexport function Typeform({ className, formId }: TypeformProps) {\n if (!formId) {\n return <div>Please specify a Form ID</div>;\n }\n\n return (\n\n <div className={className}>\n <Widget id={formId!} style={{ width: \"100%\", height: \"100%\" }} className={className} />\n </div>\n\n\n );\n}\n","import registerComponent, {\n ComponentMeta,\n} from \"@plasmicapp/host/registerComponent\";\nimport registerGlobalContext from \"@plasmicapp/host/registerGlobalContext\";\nimport {\n Typeform,\n TypeformMeta,\n\n\n} from \"./typeform\";\n\n\nexport function registerAll(loader?: {\n registerComponent: typeof registerComponent;\n registerGlobalContext: typeof registerGlobalContext;\n}) {\n const _registerComponent = <T extends React.ComponentType<any>>(\n Component: T,\n defaultMeta: ComponentMeta<React.ComponentProps<T>>\n ) => {\n if (loader) {\n loader.registerComponent(Component, defaultMeta);\n } else {\n registerComponent(Component, defaultMeta);\n }\n };\n\n if (loader) {\n\n _registerComponent(Typeform, TypeformMeta);\n\n }\n}\n\nexport * from \"./typeform\";"],"names":["ensure","x","undefined","Error","modulePath","TypeformMeta","name","displayName","importName","importPath","providesData","description","defaultStyles","width","height","props","formId","type","defaultValue","Typeform","_ref","className","React","Widget","id","style","registerAll","loader","_registerComponent","Component","defaultMeta","registerComponent"],"mappings":";;;;;;;;;;SAIgBA,MAAMA,CAAIC,CAAuB;EAC/C,IAAIA,CAAC,KAAK,IAAI,IAAIA,CAAC,KAAKC,SAAS,EAAE;IACjC;IACA,MAAM,IAAIC,KAAK,sCAAsC,CAAC;GACvD,MAAM;IACL,OAAOF,CAAC;;AAEZ;AAEA,IAAMG,UAAU,GAAG,+BAA+B;IAOrCC,YAAY,GAAiC;EACxDC,IAAI,EAAE,UAAU;EAChBC,WAAW,EAAE,UAAU;EACvBC,UAAU,EAAE,UAAU;EACtBC,UAAU,EAAEL,UAAU;EACtBM,YAAY,EAAE,IAAI;EAClBC,WAAW,EAAE,gCAAgC;EAC7CC,aAAa,EAAE;IACbC,KAAK,EAAE,OAAO;IACdC,MAAM,EAAE;GACT;EACDC,KAAK,EAAE;IACLC,MAAM,EAAE;MACNC,IAAI,EAAE,QAAQ;MACdV,WAAW,EAAE,SAAS;MACtBI,WAAW,EAAE,6BAA6B;MAC1CO,YAAY,EAAE;;;;SAKJC,QAAQA,CAAAC,IAAA;MAAGC,SAAS,GAAAD,IAAA,CAATC,SAAS;IAAEL,MAAM,GAAAI,IAAA,CAANJ,MAAM;EAC1C,IAAI,CAACA,MAAM,EAAE;IACX,OAAOM,4DAAmC;;EAG5C,OAEEA;IAAKD,SAAS,EAAEA;KACdC,oBAACC,iBAAM;IAACC,EAAE,EAAER,MAAO;IAAES,KAAK,EAAE;MAAEZ,KAAK,EAAE,MAAM;MAAEC,MAAM,EAAE;KAAQ;IAAEO,SAAS,EAAEA;IAAa,CACnF;AAIV;;SC1CgBK,WAAWA,CAACC,MAG3B;EACC,IAAMC,kBAAkB,GAAG,SAArBA,kBAAkBA,CACtBC,SAAY,EACZC,WAAmD;IAEnD,IAAIH,MAAM,EAAE;MACVA,MAAM,CAACI,iBAAiB,CAACF,SAAS,EAAEC,WAAW,CAAC;KACjD,MAAM;MACLC,iBAAiB,CAACF,SAAS,EAAEC,WAAW,CAAC;;GAE5C;EAED,IAAIH,MAAM,EAAE;IAEVC,kBAAkB,CAACT,QAAQ,EAAEd,YAAY,CAAC;;AAG9C;;;;;;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"plasmic-typeform.cjs.production.min.js","sources":["../src/typeform.tsx","../src/index.tsx"],"sourcesContent":["import { ComponentMeta } from \"@plasmicapp/host\";\n\nimport React from \"react\";\nimport { Widget } from \"@typeform/embed-react\";\nexport function ensure<T>(x: T | null | undefined): T {\n if (x === null || x === undefined) {\n debugger;\n throw new Error(`Value must not be undefined or null`);\n } else {\n return x;\n }\n}\n\nconst modulePath = \"@plasmicpkgs/plasmic-typeform\";\n\ninterface TypeformProps {\n className?: string;\n formId?: string;\n}\n\nexport const TypeformMeta: ComponentMeta<TypeformProps> = {\n name: \"TypeForm\",\n displayName: \"Typeform\",\n importName: \"Typeform\",\n importPath: modulePath,\n providesData: true,\n description: \"Embed Typeform on your website\",\n defaultStyles: {\n width: \"600px\",\n height: \"700px\"\n },\n props: {\n formId: {\n type: \"string\",\n displayName: \"Form ID\",\n description: \"ID of your form in Typeform\",\n defaultValue: \"R2s5BM\"\n },\n },\n};\n\nexport function Typeform({ className, formId }: TypeformProps) {\n if (!formId) {\n return <div>Please specify a Form ID</div>;\n }\n\n return (\n\n <div className={className}>\n <Widget id={formId!} style={{ width: \"100%\", height: \"100%\" }} className={className} />\n </div>\n\n\n );\n}\n","import registerComponent, {\n ComponentMeta,\n} from \"@plasmicapp/host/registerComponent\";\nimport registerGlobalContext from \"@plasmicapp/host/registerGlobalContext\";\nimport {\n Typeform,\n TypeformMeta,\n\n\n} from \"./typeform\";\n\n\nexport function registerAll(loader?: {\n registerComponent: typeof registerComponent;\n registerGlobalContext: typeof registerGlobalContext;\n}) {\n const _registerComponent = <T extends React.ComponentType<any>>(\n Component: T,\n defaultMeta: ComponentMeta<React.ComponentProps<T>>\n ) => {\n if (loader) {\n loader.registerComponent(Component, defaultMeta);\n } else {\n registerComponent(Component, defaultMeta);\n }\n };\n\n if (loader) {\n\n _registerComponent(Typeform, TypeformMeta);\n\n }\n}\n\nexport * from \"./typeform\";"],"names":["TypeformMeta","name","displayName","importName","importPath","providesData","description","defaultStyles","width","height","props","formId","type","defaultValue","Typeform","className","React","Widget","id","style","x","Error","loader","Component","defaultMeta","registerComponent"],"mappings":"0PAoBaA,EAA6C,CACxDC,KAAM,WACNC,YAAa,WACbC,WAAY,WACZC,WAXiB,gCAYjBC,cAAc,EACdC,YAAa,iCACbC,cAAe,CACbC,MAAO,QACPC,OAAQ,SAEVC,MAAO,CACLC,OAAQ,CACNC,KAAM,SACNV,YAAa,UACbI,YAAa,8BACbO,aAAc,qBAKJC,SAAWC,IAAAA,UAAWJ,IAAAA,OACpC,OAAKA,EAMHK,uBAAKD,UAAWA,GACdC,gBAACC,UAAOC,GAAIP,EAASQ,MAAO,CAAEX,MAAO,OAAQC,OAAQ,QAAUM,UAAWA,KANrEC,yHAvCeI,GACxB,GAAIA,MAAAA,EAEF,MAAM,IAAIC,6CAEV,OAAOD,gCCGiBE,GAI1B,IACEC,EACAC,EASEF,IAVFC,EAYmBT,EAXnBU,EAW6BxB,EATzBsB,EACFA,EAAOG,kBAAkBF,EAAWC,GAEpCC,EAAkBF,EAAWC"}
1
+ {"version":3,"file":"plasmic-typeform.cjs.production.min.js","sources":["../src/typeform.tsx","../src/index.tsx"],"sourcesContent":["import { ComponentMeta } from \"@plasmicapp/host\";\n\nimport React from \"react\";\nimport { Widget } from \"@typeform/embed-react\";\nexport function ensure<T>(x: T | null | undefined): T {\n if (x === null || x === undefined) {\n debugger;\n throw new Error(`Value must not be undefined or null`);\n } else {\n return x;\n }\n}\n\nconst modulePath = \"@plasmicpkgs/plasmic-typeform\";\n\ninterface TypeformProps {\n className?: string;\n formId?: string;\n}\n\nexport const TypeformMeta: ComponentMeta<TypeformProps> = {\n name: \"TypeForm\",\n displayName: \"Typeform\",\n importName: \"Typeform\",\n importPath: modulePath,\n providesData: true,\n description: \"Embed Typeform on your website\",\n defaultStyles: {\n width: \"600px\",\n height: \"700px\"\n },\n props: {\n formId: {\n type: \"string\",\n displayName: \"Form ID\",\n description: \"ID of your form in Typeform\",\n defaultValue: \"R2s5BM\"\n },\n },\n};\n\nexport function Typeform({ className, formId }: TypeformProps) {\n if (!formId) {\n return <div>Please specify a Form ID</div>;\n }\n\n return (\n\n <div className={className}>\n <Widget id={formId!} style={{ width: \"100%\", height: \"100%\" }} className={className} />\n </div>\n\n\n );\n}\n","import registerComponent, {\n ComponentMeta,\n} from \"@plasmicapp/host/registerComponent\";\nimport registerGlobalContext from \"@plasmicapp/host/registerGlobalContext\";\nimport {\n Typeform,\n TypeformMeta,\n\n\n} from \"./typeform\";\n\n\nexport function registerAll(loader?: {\n registerComponent: typeof registerComponent;\n registerGlobalContext: typeof registerGlobalContext;\n}) {\n const _registerComponent = <T extends React.ComponentType<any>>(\n Component: T,\n defaultMeta: ComponentMeta<React.ComponentProps<T>>\n ) => {\n if (loader) {\n loader.registerComponent(Component, defaultMeta);\n } else {\n registerComponent(Component, defaultMeta);\n }\n };\n\n if (loader) {\n\n _registerComponent(Typeform, TypeformMeta);\n\n }\n}\n\nexport * from \"./typeform\";"],"names":["TypeformMeta","name","displayName","importName","importPath","providesData","description","defaultStyles","width","height","props","formId","type","defaultValue","Typeform","_ref","className","React","Widget","id","style","x","Error","loader","Component","defaultMeta","registerComponent"],"mappings":"0PAoBaA,EAA6C,CACxDC,KAAM,WACNC,YAAa,WACbC,WAAY,WACZC,WAXiB,gCAYjBC,cAAc,EACdC,YAAa,iCACbC,cAAe,CACbC,MAAO,QACPC,OAAQ,SAEVC,MAAO,CACLC,OAAQ,CACNC,KAAM,SACNV,YAAa,UACbI,YAAa,8BACbO,aAAc,qBAKJC,EAAQC,OAAGC,EAASD,EAATC,UAAWL,EAAMI,EAANJ,OACpC,OAAKA,EAMHM,uBAAKD,UAAWA,GACdC,gBAACC,UAAOC,GAAIR,EAASS,MAAO,CAAEZ,MAAO,OAAQC,OAAQ,QAAUO,UAAWA,KANrEC,yHAvCeI,GACxB,GAAIA,MAAAA,EAEF,MAAM,IAAIC,6CAEV,OAAOD,gCCGiBE,GAI1B,IACEC,EACAC,EASEF,IAVFC,EAYmBV,EAXnBW,EAW6BzB,EATzBuB,EACFA,EAAOG,kBAAkBF,EAAWC,GAEpCC,EAAkBF,EAAWC"}
@@ -1 +1 @@
1
- {"version":3,"file":"plasmic-typeform.esm.js","sources":["../src/typeform.tsx","../src/index.tsx"],"sourcesContent":["import { ComponentMeta } from \"@plasmicapp/host\";\n\nimport React from \"react\";\nimport { Widget } from \"@typeform/embed-react\";\nexport function ensure<T>(x: T | null | undefined): T {\n if (x === null || x === undefined) {\n debugger;\n throw new Error(`Value must not be undefined or null`);\n } else {\n return x;\n }\n}\n\nconst modulePath = \"@plasmicpkgs/plasmic-typeform\";\n\ninterface TypeformProps {\n className?: string;\n formId?: string;\n}\n\nexport const TypeformMeta: ComponentMeta<TypeformProps> = {\n name: \"TypeForm\",\n displayName: \"Typeform\",\n importName: \"Typeform\",\n importPath: modulePath,\n providesData: true,\n description: \"Embed Typeform on your website\",\n defaultStyles: {\n width: \"600px\",\n height: \"700px\"\n },\n props: {\n formId: {\n type: \"string\",\n displayName: \"Form ID\",\n description: \"ID of your form in Typeform\",\n defaultValue: \"R2s5BM\"\n },\n },\n};\n\nexport function Typeform({ className, formId }: TypeformProps) {\n if (!formId) {\n return <div>Please specify a Form ID</div>;\n }\n\n return (\n\n <div className={className}>\n <Widget id={formId!} style={{ width: \"100%\", height: \"100%\" }} className={className} />\n </div>\n\n\n );\n}\n","import registerComponent, {\n ComponentMeta,\n} from \"@plasmicapp/host/registerComponent\";\nimport registerGlobalContext from \"@plasmicapp/host/registerGlobalContext\";\nimport {\n Typeform,\n TypeformMeta,\n\n\n} from \"./typeform\";\n\n\nexport function registerAll(loader?: {\n registerComponent: typeof registerComponent;\n registerGlobalContext: typeof registerGlobalContext;\n}) {\n const _registerComponent = <T extends React.ComponentType<any>>(\n Component: T,\n defaultMeta: ComponentMeta<React.ComponentProps<T>>\n ) => {\n if (loader) {\n loader.registerComponent(Component, defaultMeta);\n } else {\n registerComponent(Component, defaultMeta);\n }\n };\n\n if (loader) {\n\n _registerComponent(Typeform, TypeformMeta);\n\n }\n}\n\nexport * from \"./typeform\";"],"names":["ensure","x","undefined","Error","modulePath","TypeformMeta","name","displayName","importName","importPath","providesData","description","defaultStyles","width","height","props","formId","type","defaultValue","Typeform","className","React","Widget","id","style","registerAll","loader","_registerComponent","Component","defaultMeta","registerComponent"],"mappings":";;;;SAIgBA,MAAM,CAAIC,CAAuB;EAC/C,IAAIA,CAAC,KAAK,IAAI,IAAIA,CAAC,KAAKC,SAAS,EAAE;IACjC;IACA,MAAM,IAAIC,KAAK,uCAAuC;GACvD,MAAM;IACL,OAAOF,CAAC;;AAEZ;AAEA,IAAMG,UAAU,GAAG,+BAA+B;IAOrCC,YAAY,GAAiC;EACxDC,IAAI,EAAE,UAAU;EAChBC,WAAW,EAAE,UAAU;EACvBC,UAAU,EAAE,UAAU;EACtBC,UAAU,EAAEL,UAAU;EACtBM,YAAY,EAAE,IAAI;EAClBC,WAAW,EAAE,gCAAgC;EAC7CC,aAAa,EAAE;IACbC,KAAK,EAAE,OAAO;IACdC,MAAM,EAAE;GACT;EACDC,KAAK,EAAE;IACLC,MAAM,EAAE;MACNC,IAAI,EAAE,QAAQ;MACdV,WAAW,EAAE,SAAS;MACtBI,WAAW,EAAE,6BAA6B;MAC1CO,YAAY,EAAE;;;;SAKJC,QAAQ;MAAGC,SAAS,QAATA,SAAS;IAAEJ,MAAM,QAANA,MAAM;EAC1C,IAAI,CAACA,MAAM,EAAE;IACX,OAAOK,4DAAmC;;EAG5C,OAEEA;IAAKD,SAAS,EAAEA;KACdC,oBAACC,MAAM;IAACC,EAAE,EAAEP,MAAO;IAAEQ,KAAK,EAAE;MAAEX,KAAK,EAAE,MAAM;MAAEC,MAAM,EAAE;KAAQ;IAAEM,SAAS,EAAEA;IAAa,CACnF;AAIV;;SC1CgBK,WAAW,CAACC,MAG3B;EACC,IAAMC,kBAAkB,GAAG,SAArBA,kBAAkB,CACtBC,SAAY,EACZC,WAAmD;IAEnD,IAAIH,MAAM,EAAE;MACVA,MAAM,CAACI,iBAAiB,CAACF,SAAS,EAAEC,WAAW,CAAC;KACjD,MAAM;MACLC,iBAAiB,CAACF,SAAS,EAAEC,WAAW,CAAC;;GAE5C;EAED,IAAIH,MAAM,EAAE;IAEVC,kBAAkB,CAACR,QAAQ,EAAEd,YAAY,CAAC;;AAG9C;;;;"}
1
+ {"version":3,"file":"plasmic-typeform.esm.js","sources":["../src/typeform.tsx","../src/index.tsx"],"sourcesContent":["import { ComponentMeta } from \"@plasmicapp/host\";\n\nimport React from \"react\";\nimport { Widget } from \"@typeform/embed-react\";\nexport function ensure<T>(x: T | null | undefined): T {\n if (x === null || x === undefined) {\n debugger;\n throw new Error(`Value must not be undefined or null`);\n } else {\n return x;\n }\n}\n\nconst modulePath = \"@plasmicpkgs/plasmic-typeform\";\n\ninterface TypeformProps {\n className?: string;\n formId?: string;\n}\n\nexport const TypeformMeta: ComponentMeta<TypeformProps> = {\n name: \"TypeForm\",\n displayName: \"Typeform\",\n importName: \"Typeform\",\n importPath: modulePath,\n providesData: true,\n description: \"Embed Typeform on your website\",\n defaultStyles: {\n width: \"600px\",\n height: \"700px\"\n },\n props: {\n formId: {\n type: \"string\",\n displayName: \"Form ID\",\n description: \"ID of your form in Typeform\",\n defaultValue: \"R2s5BM\"\n },\n },\n};\n\nexport function Typeform({ className, formId }: TypeformProps) {\n if (!formId) {\n return <div>Please specify a Form ID</div>;\n }\n\n return (\n\n <div className={className}>\n <Widget id={formId!} style={{ width: \"100%\", height: \"100%\" }} className={className} />\n </div>\n\n\n );\n}\n","import registerComponent, {\n ComponentMeta,\n} from \"@plasmicapp/host/registerComponent\";\nimport registerGlobalContext from \"@plasmicapp/host/registerGlobalContext\";\nimport {\n Typeform,\n TypeformMeta,\n\n\n} from \"./typeform\";\n\n\nexport function registerAll(loader?: {\n registerComponent: typeof registerComponent;\n registerGlobalContext: typeof registerGlobalContext;\n}) {\n const _registerComponent = <T extends React.ComponentType<any>>(\n Component: T,\n defaultMeta: ComponentMeta<React.ComponentProps<T>>\n ) => {\n if (loader) {\n loader.registerComponent(Component, defaultMeta);\n } else {\n registerComponent(Component, defaultMeta);\n }\n };\n\n if (loader) {\n\n _registerComponent(Typeform, TypeformMeta);\n\n }\n}\n\nexport * from \"./typeform\";"],"names":["ensure","x","undefined","Error","modulePath","TypeformMeta","name","displayName","importName","importPath","providesData","description","defaultStyles","width","height","props","formId","type","defaultValue","Typeform","_ref","className","React","Widget","id","style","registerAll","loader","_registerComponent","Component","defaultMeta","registerComponent"],"mappings":";;;;SAIgBA,MAAMA,CAAIC,CAAuB;EAC/C,IAAIA,CAAC,KAAK,IAAI,IAAIA,CAAC,KAAKC,SAAS,EAAE;IACjC;IACA,MAAM,IAAIC,KAAK,sCAAsC,CAAC;GACvD,MAAM;IACL,OAAOF,CAAC;;AAEZ;AAEA,IAAMG,UAAU,GAAG,+BAA+B;IAOrCC,YAAY,GAAiC;EACxDC,IAAI,EAAE,UAAU;EAChBC,WAAW,EAAE,UAAU;EACvBC,UAAU,EAAE,UAAU;EACtBC,UAAU,EAAEL,UAAU;EACtBM,YAAY,EAAE,IAAI;EAClBC,WAAW,EAAE,gCAAgC;EAC7CC,aAAa,EAAE;IACbC,KAAK,EAAE,OAAO;IACdC,MAAM,EAAE;GACT;EACDC,KAAK,EAAE;IACLC,MAAM,EAAE;MACNC,IAAI,EAAE,QAAQ;MACdV,WAAW,EAAE,SAAS;MACtBI,WAAW,EAAE,6BAA6B;MAC1CO,YAAY,EAAE;;;;SAKJC,QAAQA,CAAAC,IAAA;MAAGC,SAAS,GAAAD,IAAA,CAATC,SAAS;IAAEL,MAAM,GAAAI,IAAA,CAANJ,MAAM;EAC1C,IAAI,CAACA,MAAM,EAAE;IACX,OAAOM,4DAAmC;;EAG5C,OAEEA;IAAKD,SAAS,EAAEA;KACdC,oBAACC,MAAM;IAACC,EAAE,EAAER,MAAO;IAAES,KAAK,EAAE;MAAEZ,KAAK,EAAE,MAAM;MAAEC,MAAM,EAAE;KAAQ;IAAEO,SAAS,EAAEA;IAAa,CACnF;AAIV;;SC1CgBK,WAAWA,CAACC,MAG3B;EACC,IAAMC,kBAAkB,GAAG,SAArBA,kBAAkBA,CACtBC,SAAY,EACZC,WAAmD;IAEnD,IAAIH,MAAM,EAAE;MACVA,MAAM,CAACI,iBAAiB,CAACF,SAAS,EAAEC,WAAW,CAAC;KACjD,MAAM;MACLC,iBAAiB,CAACF,SAAS,EAAEC,WAAW,CAAC;;GAE5C;EAED,IAAIH,MAAM,EAAE;IAEVC,kBAAkB,CAACT,QAAQ,EAAEd,YAAY,CAAC;;AAG9C;;;;"}
@@ -1,9 +1,10 @@
1
1
  import { ComponentMeta } from "@plasmicapp/host";
2
+ import React from "react";
2
3
  export declare function ensure<T>(x: T | null | undefined): T;
3
4
  interface TypeformProps {
4
5
  className?: string;
5
6
  formId?: string;
6
7
  }
7
8
  export declare const TypeformMeta: ComponentMeta<TypeformProps>;
8
- export declare function Typeform({ className, formId }: TypeformProps): JSX.Element;
9
+ export declare function Typeform({ className, formId }: TypeformProps): React.JSX.Element;
9
10
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@plasmicpkgs/plasmic-typeform",
3
- "version": "0.0.4",
3
+ "version": "0.0.5",
4
4
  "description": "Plasmic Typeform components.",
5
5
  "main": "dist/index.js",
6
6
  "typings": "dist/index.d.ts",
@@ -34,7 +34,7 @@
34
34
  }
35
35
  ],
36
36
  "devDependencies": {
37
- "@plasmicapp/host": "1.0.162",
37
+ "@plasmicapp/host": "1.0.163",
38
38
  "@size-limit/preset-small-lib": "^7.0.8",
39
39
  "@types/react": "^18.0.27",
40
40
  "@types/react-dom": "^18.0.10",
@@ -49,5 +49,5 @@
49
49
  "@typeform/embed-react": "^2.30.0",
50
50
  "change-case": "^4.1.2"
51
51
  },
52
- "gitHead": "bf12f2268d3e2794698bee0996d4e2008b6827c5"
52
+ "gitHead": "ab608db4274a0622f29909c4c735aa79313b779d"
53
53
  }