@plasmicpkgs/plasmic-typeform 0.0.28 → 0.0.29
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/plasmic-typeform.cjs.development.js +1 -3
- package/dist/plasmic-typeform.cjs.development.js.map +1 -1
- package/dist/plasmic-typeform.cjs.production.min.js +1 -1
- package/dist/plasmic-typeform.cjs.production.min.js.map +1 -1
- package/dist/plasmic-typeform.esm.js +1 -3
- package/dist/plasmic-typeform.esm.js.map +1 -1
- package/package.json +2 -2
|
@@ -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 { Widget } from \"@typeform/embed-react\";\nimport React from \"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: \"hostless-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 <div className={className}>\n <Widget\n id={formId!}\n style={{ width: \"100%\", height: \"100%\" }}\n className={className}\n />\n </div>\n );\n}\n","import registerComponent, {\n ComponentMeta,\n} from \"@plasmicapp/host/registerComponent\";\nimport registerGlobalContext from \"@plasmicapp/host/registerGlobalContext\";\nimport {
|
|
1
|
+
{"version":3,"file":"plasmic-typeform.cjs.development.js","sources":["../src/typeform.tsx","../src/index.tsx"],"sourcesContent":["import { ComponentMeta } from \"@plasmicapp/host\";\n\nimport { Widget } from \"@typeform/embed-react\";\nimport React from \"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: \"hostless-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 <div className={className}>\n <Widget\n id={formId!}\n style={{ width: \"100%\", height: \"100%\" }}\n className={className}\n />\n </div>\n );\n}\n","import registerComponent, {\n ComponentMeta,\n} from \"@plasmicapp/host/registerComponent\";\nimport registerGlobalContext from \"@plasmicapp/host/registerGlobalContext\";\nimport { Typeform, TypeformMeta } from \"./typeform\";\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 _registerComponent(Typeform, TypeformMeta);\n}\n\nexport * from \"./typeform\";\n"],"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,mBAAmB;EACzBC,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,OACEA;IAAKD,SAAS,EAAEA;KACdC,oBAACC,iBAAM;IACLC,EAAE,EAAER,MAAO;IACXS,KAAK,EAAE;MAAEZ,KAAK,EAAE,MAAM;MAAEC,MAAM,EAAE;KAAQ;IACxCO,SAAS,EAAEA;IACX,CACE;AAEV;;SCjDgBK,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;EAEDF,kBAAkB,CAACT,QAAQ,EAAEd,YAAY,CAAC;AAC5C;;;;;;;"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";function e(e){return e&&"object"==typeof e&&"default"in e?e.default:e}Object.defineProperty(exports,"__esModule",{value:!0});var r=e(require("@plasmicapp/host/registerComponent")),t=require("@typeform/embed-react"),o=e(require("react")),s={name:"hostless-typeform",displayName:"Typeform",importName:"Typeform",importPath:"@plasmicpkgs/plasmic-typeform",providesData:!0,description:"Embed Typeform on your website",defaultStyles:{width:"600px",height:"700px"},props:{formId:{type:"string",displayName:"Form ID",description:"ID of your form in Typeform",defaultValue:"R2s5BM"}}};function i(e){var r=e.className,s=e.formId;return s?o.createElement("div",{className:r},o.createElement(t.Widget,{id:s,style:{width:"100%",height:"100%"},className:r})):o.createElement("div",null,"Please specify a Form ID")}exports.Typeform=i,exports.TypeformMeta=s,exports.ensure=function(e){if(null==e)throw new Error("Value must not be undefined or null");return e},exports.registerAll=function(e){var t,o;
|
|
1
|
+
"use strict";function e(e){return e&&"object"==typeof e&&"default"in e?e.default:e}Object.defineProperty(exports,"__esModule",{value:!0});var r=e(require("@plasmicapp/host/registerComponent")),t=require("@typeform/embed-react"),o=e(require("react")),s={name:"hostless-typeform",displayName:"Typeform",importName:"Typeform",importPath:"@plasmicpkgs/plasmic-typeform",providesData:!0,description:"Embed Typeform on your website",defaultStyles:{width:"600px",height:"700px"},props:{formId:{type:"string",displayName:"Form ID",description:"ID of your form in Typeform",defaultValue:"R2s5BM"}}};function i(e){var r=e.className,s=e.formId;return s?o.createElement("div",{className:r},o.createElement(t.Widget,{id:s,style:{width:"100%",height:"100%"},className:r})):o.createElement("div",null,"Please specify a Form ID")}exports.Typeform=i,exports.TypeformMeta=s,exports.ensure=function(e){if(null==e)throw new Error("Value must not be undefined or null");return e},exports.registerAll=function(e){var t,o;t=i,o=s,e?e.registerComponent(t,o):r(t,o)};
|
|
2
2
|
//# sourceMappingURL=plasmic-typeform.cjs.production.min.js.map
|
|
@@ -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 { Widget } from \"@typeform/embed-react\";\nimport React from \"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: \"hostless-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 <div className={className}>\n <Widget\n id={formId!}\n style={{ width: \"100%\", height: \"100%\" }}\n className={className}\n />\n </div>\n );\n}\n","import registerComponent, {\n ComponentMeta,\n} from \"@plasmicapp/host/registerComponent\";\nimport registerGlobalContext from \"@plasmicapp/host/registerGlobalContext\";\nimport {
|
|
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 { Widget } from \"@typeform/embed-react\";\nimport React from \"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: \"hostless-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 <div className={className}>\n <Widget\n id={formId!}\n style={{ width: \"100%\", height: \"100%\" }}\n className={className}\n />\n </div>\n );\n}\n","import registerComponent, {\n ComponentMeta,\n} from \"@plasmicapp/host/registerComponent\";\nimport registerGlobalContext from \"@plasmicapp/host/registerGlobalContext\";\nimport { Typeform, TypeformMeta } from \"./typeform\";\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 _registerComponent(Typeform, TypeformMeta);\n}\n\nexport * from \"./typeform\";\n"],"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,oBACNC,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,EAKHM,uBAAKD,UAAWA,GACdC,gBAACC,UACCC,GAAIR,EACJS,MAAO,CAAEZ,MAAO,OAAQC,OAAQ,QAChCO,UAAWA,KARRC,yHAvCeI,GACxB,GAAIA,MAAAA,EAEF,MAAM,IAAIC,6CAEV,OAAOD,gCCHiBE,GAI1B,IACEC,EACAC,EADAD,EAUiBV,EATjBW,EAS2BzB,EAPvBuB,EACFA,EAAOG,kBAAkBF,EAAWC,GAEpCC,EAAkBF,EAAWC"}
|
|
@@ -57,9 +57,7 @@ function registerAll(loader) {
|
|
|
57
57
|
registerComponent(Component, defaultMeta);
|
|
58
58
|
}
|
|
59
59
|
};
|
|
60
|
-
|
|
61
|
-
_registerComponent(Typeform, TypeformMeta);
|
|
62
|
-
}
|
|
60
|
+
_registerComponent(Typeform, TypeformMeta);
|
|
63
61
|
}
|
|
64
62
|
|
|
65
63
|
export { Typeform, TypeformMeta, ensure, registerAll };
|
|
@@ -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 { Widget } from \"@typeform/embed-react\";\nimport React from \"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: \"hostless-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 <div className={className}>\n <Widget\n id={formId!}\n style={{ width: \"100%\", height: \"100%\" }}\n className={className}\n />\n </div>\n );\n}\n","import registerComponent, {\n ComponentMeta,\n} from \"@plasmicapp/host/registerComponent\";\nimport registerGlobalContext from \"@plasmicapp/host/registerGlobalContext\";\nimport {
|
|
1
|
+
{"version":3,"file":"plasmic-typeform.esm.js","sources":["../src/typeform.tsx","../src/index.tsx"],"sourcesContent":["import { ComponentMeta } from \"@plasmicapp/host\";\n\nimport { Widget } from \"@typeform/embed-react\";\nimport React from \"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: \"hostless-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 <div className={className}>\n <Widget\n id={formId!}\n style={{ width: \"100%\", height: \"100%\" }}\n className={className}\n />\n </div>\n );\n}\n","import registerComponent, {\n ComponentMeta,\n} from \"@plasmicapp/host/registerComponent\";\nimport registerGlobalContext from \"@plasmicapp/host/registerGlobalContext\";\nimport { Typeform, TypeformMeta } from \"./typeform\";\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 _registerComponent(Typeform, TypeformMeta);\n}\n\nexport * from \"./typeform\";\n"],"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,mBAAmB;EACzBC,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,OACEA;IAAKD,SAAS,EAAEA;KACdC,oBAACC,MAAM;IACLC,EAAE,EAAER,MAAO;IACXS,KAAK,EAAE;MAAEZ,KAAK,EAAE,MAAM;MAAEC,MAAM,EAAE;KAAQ;IACxCO,SAAS,EAAEA;IACX,CACE;AAEV;;SCjDgBK,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;EAEDF,kBAAkB,CAACT,QAAQ,EAAEd,YAAY,CAAC;AAC5C;;;;"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@plasmicpkgs/plasmic-typeform",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.29",
|
|
4
4
|
"description": "Plasmic Typeform components.",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"typings": "dist/index.d.ts",
|
|
@@ -49,5 +49,5 @@
|
|
|
49
49
|
"@typeform/embed-react": "^2.30.0",
|
|
50
50
|
"change-case": "^4.1.2"
|
|
51
51
|
},
|
|
52
|
-
"gitHead": "
|
|
52
|
+
"gitHead": "8cdc7bacc59f2ff5b6b435cae9d011efa566544f"
|
|
53
53
|
}
|