@plasmicpkgs/plasmic-typeform 0.0.26 → 0.0.27
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 +2 -2
- 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 +2 -2
- package/dist/plasmic-typeform.esm.js.map +1 -1
- package/package.json +2 -2
|
@@ -5,8 +5,8 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
5
5
|
function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }
|
|
6
6
|
|
|
7
7
|
var registerComponent = _interopDefault(require('@plasmicapp/host/registerComponent'));
|
|
8
|
-
var React = _interopDefault(require('react'));
|
|
9
8
|
var embedReact = require('@typeform/embed-react');
|
|
9
|
+
var React = _interopDefault(require('react'));
|
|
10
10
|
|
|
11
11
|
function ensure(x) {
|
|
12
12
|
if (x === null || x === undefined) {
|
|
@@ -18,7 +18,7 @@ function ensure(x) {
|
|
|
18
18
|
}
|
|
19
19
|
var modulePath = "@plasmicpkgs/plasmic-typeform";
|
|
20
20
|
var TypeformMeta = {
|
|
21
|
-
name: "
|
|
21
|
+
name: "hostless-typeform",
|
|
22
22
|
displayName: "Typeform",
|
|
23
23
|
importName: "Typeform",
|
|
24
24
|
importPath: modulePath,
|
|
@@ -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
|
|
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 {\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,MAAM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AAEd,YAAY,CAAC;;AAG9C;;;;;;;"}
|
|
@@ -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=
|
|
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;e&&(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
|
|
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 {\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,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,gCCGiBE,GAI1B,IACEC,EACAC,EASEF,IAVFC,EAYmBV,EAXnBW,EAW6BzB,EATzBuB,EACFA,EAAOG,kBAAkBF,EAAWC,GAEpCC,EAAkBF,EAAWC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import registerComponent from '@plasmicapp/host/registerComponent';
|
|
2
|
-
import React from 'react';
|
|
3
2
|
import { Widget } from '@typeform/embed-react';
|
|
3
|
+
import React from 'react';
|
|
4
4
|
|
|
5
5
|
function ensure(x) {
|
|
6
6
|
if (x === null || x === undefined) {
|
|
@@ -12,7 +12,7 @@ function ensure(x) {
|
|
|
12
12
|
}
|
|
13
13
|
var modulePath = "@plasmicpkgs/plasmic-typeform";
|
|
14
14
|
var TypeformMeta = {
|
|
15
|
-
name: "
|
|
15
|
+
name: "hostless-typeform",
|
|
16
16
|
displayName: "Typeform",
|
|
17
17
|
importName: "Typeform",
|
|
18
18
|
importPath: modulePath,
|
|
@@ -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
|
|
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 {\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,M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
2
|
"name": "@plasmicpkgs/plasmic-typeform",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.27",
|
|
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": "1cbb80cf68d9e7307ee7723ecd79ccfe206752a0"
|
|
53
53
|
}
|