@plasmicpkgs/plasmic-mailchimp 0.0.12 → 0.0.13

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,10 +1,10 @@
1
- import { ComponentMeta } from "@plasmicapp/host";
1
+ import { CodeComponentMeta } from "@plasmicapp/host/registerComponent";
2
2
  import React from "react";
3
3
  export declare function ensure<T>(x: T | null | undefined): T;
4
4
  interface MailchimpSignupFormProps {
5
5
  className?: string;
6
6
  url?: string;
7
7
  }
8
- export declare const MailchimpSignupFormMeta: ComponentMeta<MailchimpSignupFormProps>;
8
+ export declare const MailchimpSignupFormMeta: CodeComponentMeta<MailchimpSignupFormProps>;
9
9
  export declare function MailchimpSignupForm({ className, url, }: MailchimpSignupFormProps): React.JSX.Element;
10
10
  export {};
@@ -1 +1 @@
1
- {"version":3,"file":"plasmic-mailchimp.cjs.development.js","sources":["../src/mailchimp.tsx","../src/index.tsx"],"sourcesContent":["import { ComponentMeta } from \"@plasmicapp/host\";\n\nimport React from \"react\";\n\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-mailchimp\";\n\ninterface MailchimpSignupFormProps {\n className?: string;\n url?: string;\n}\n\nexport const MailchimpSignupFormMeta: ComponentMeta<MailchimpSignupFormProps> =\n {\n name: \"hostless-mailchimp-signup-form\",\n displayName: \"Mailchimp Signup Form\",\n importName: \"MailchimpSignupForm\",\n importPath: modulePath,\n providesData: true,\n description:\n \"Shows a sign up form to users for subscribe to your newsletter\",\n props: {\n url: {\n type: \"string\",\n displayName: \"URL\",\n description: `Learn how to get your form url (\"https://mailchimp.com/help/host-your-own-signup-forms/\")`,\n defaultValue: \"http://eepurl.com/ic43yL\",\n helpText:\n \"You can learn how.(https://mailchimp.com/help/share-your-signup-form/)\",\n },\n },\n };\n\nexport function MailchimpSignupForm({\n className,\n url,\n}: MailchimpSignupFormProps) {\n if (!url) {\n return <div>Please specify URL</div>;\n }\n\n return (\n <iframe\n src={url}\n width=\"100%\"\n frameBorder=\"0\"\n marginHeight={0}\n scrolling=\"no\"\n marginWidth={0}\n height=\"600px\"\n className={className}\n />\n );\n}\n","import registerComponent, {\n ComponentMeta,\n} from \"@plasmicapp/host/registerComponent\";\nimport registerGlobalContext from \"@plasmicapp/host/registerGlobalContext\";\nimport { MailchimpSignupForm, MailchimpSignupFormMeta } from \"./mailchimp\";\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(MailchimpSignupForm, MailchimpSignupFormMeta);\n}\nexport * from \"./mailchimp\";\n"],"names":["ensure","x","undefined","Error","modulePath","MailchimpSignupFormMeta","name","displayName","importName","importPath","providesData","description","props","url","type","defaultValue","helpText","MailchimpSignupForm","_ref","className","React","src","width","frameBorder","marginHeight","scrolling","marginWidth","height","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,gCAAgC;IAOtCC,uBAAuB,GAClC;EACEC,IAAI,EAAE,gCAAgC;EACtCC,WAAW,EAAE,uBAAuB;EACpCC,UAAU,EAAE,qBAAqB;EACjCC,UAAU,EAAEL,UAAU;EACtBM,YAAY,EAAE,IAAI;EAClBC,WAAW,EACT,gEAAgE;EAClEC,KAAK,EAAE;IACLC,GAAG,EAAE;MACHC,IAAI,EAAE,QAAQ;MACdP,WAAW,EAAE,KAAK;MAClBI,WAAW,+FAA6F;MACxGI,YAAY,EAAE,0BAA0B;MACxCC,QAAQ,EACN;;;;SAKMC,mBAAmBA,CAAAC,IAAA;MACjCC,SAAS,GAAAD,IAAA,CAATC,SAAS;IACTN,GAAG,GAAAK,IAAA,CAAHL,GAAG;EAEH,IAAI,CAACA,GAAG,EAAE;IACR,OAAOO,sDAA6B;;EAGtC,OACEA;IACEC,GAAG,EAAER,GAAG;IACRS,KAAK,EAAC,MAAM;IACZC,WAAW,EAAC,GAAG;IACfC,YAAY,EAAE,CAAC;IACfC,SAAS,EAAC,IAAI;IACdC,WAAW,EAAE,CAAC;IACdC,MAAM,EAAC,OAAO;IACdR,SAAS,EAAEA;IACX;AAEN;;SCvDgBS,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,CAACb,mBAAmB,EAAEZ,uBAAuB,CAAC;AAClE;;;;;;;"}
1
+ {"version":3,"file":"plasmic-mailchimp.cjs.development.js","sources":["../src/mailchimp.tsx","../src/index.tsx"],"sourcesContent":["import { CodeComponentMeta } from \"@plasmicapp/host/registerComponent\";\n\nimport React from \"react\";\n\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-mailchimp\";\n\ninterface MailchimpSignupFormProps {\n className?: string;\n url?: string;\n}\n\nexport const MailchimpSignupFormMeta: CodeComponentMeta<MailchimpSignupFormProps> =\n {\n name: \"hostless-mailchimp-signup-form\",\n displayName: \"Mailchimp Signup Form\",\n importName: \"MailchimpSignupForm\",\n importPath: modulePath,\n providesData: true,\n description:\n \"Shows a sign up form to users for subscribe to your newsletter\",\n props: {\n url: {\n type: \"string\",\n displayName: \"URL\",\n description: `Learn how to get your form url (\"https://mailchimp.com/help/host-your-own-signup-forms/\")`,\n defaultValue: \"http://eepurl.com/ic43yL\",\n helpText:\n \"You can learn how.(https://mailchimp.com/help/share-your-signup-form/)\",\n },\n },\n };\n\nexport function MailchimpSignupForm({\n className,\n url,\n}: MailchimpSignupFormProps) {\n if (!url) {\n return <div>Please specify URL</div>;\n }\n\n return (\n <iframe\n src={url}\n width=\"100%\"\n frameBorder=\"0\"\n marginHeight={0}\n scrolling=\"no\"\n marginWidth={0}\n height=\"600px\"\n className={className}\n />\n );\n}\n","import registerComponent, {\n CodeComponentMeta,\n} from \"@plasmicapp/host/registerComponent\";\nimport registerGlobalContext from \"@plasmicapp/host/registerGlobalContext\";\nimport { MailchimpSignupForm, MailchimpSignupFormMeta } from \"./mailchimp\";\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: CodeComponentMeta<React.ComponentProps<T>>\n ) => {\n if (loader) {\n loader.registerComponent(Component, defaultMeta);\n } else {\n registerComponent(Component, defaultMeta);\n }\n };\n\n _registerComponent(MailchimpSignupForm, MailchimpSignupFormMeta);\n}\nexport * from \"./mailchimp\";\n"],"names":["ensure","x","undefined","Error","modulePath","MailchimpSignupFormMeta","name","displayName","importName","importPath","providesData","description","props","url","type","defaultValue","helpText","MailchimpSignupForm","_ref","className","React","src","width","frameBorder","marginHeight","scrolling","marginWidth","height","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,gCAAgC;IAOtCC,uBAAuB,GAClC;EACEC,IAAI,EAAE,gCAAgC;EACtCC,WAAW,EAAE,uBAAuB;EACpCC,UAAU,EAAE,qBAAqB;EACjCC,UAAU,EAAEL,UAAU;EACtBM,YAAY,EAAE,IAAI;EAClBC,WAAW,EACT,gEAAgE;EAClEC,KAAK,EAAE;IACLC,GAAG,EAAE;MACHC,IAAI,EAAE,QAAQ;MACdP,WAAW,EAAE,KAAK;MAClBI,WAAW,+FAA6F;MACxGI,YAAY,EAAE,0BAA0B;MACxCC,QAAQ,EACN;;;;SAKMC,mBAAmBA,CAAAC,IAAA;MACjCC,SAAS,GAAAD,IAAA,CAATC,SAAS;IACTN,GAAG,GAAAK,IAAA,CAAHL,GAAG;EAEH,IAAI,CAACA,GAAG,EAAE;IACR,OAAOO,sDAA6B;;EAGtC,OACEA;IACEC,GAAG,EAAER,GAAG;IACRS,KAAK,EAAC,MAAM;IACZC,WAAW,EAAC,GAAG;IACfC,YAAY,EAAE,CAAC;IACfC,SAAS,EAAC,IAAI;IACdC,WAAW,EAAE,CAAC;IACdC,MAAM,EAAC,OAAO;IACdR,SAAS,EAAEA;IACX;AAEN;;SCvDgBS,WAAWA,CAACC,MAG3B;EACC,IAAMC,kBAAkB,GAAG,SAArBA,kBAAkBA,CACtBC,SAAY,EACZC,WAAuD;IAEvD,IAAIH,MAAM,EAAE;MACVA,MAAM,CAACI,iBAAiB,CAACF,SAAS,EAAEC,WAAW,CAAC;KACjD,MAAM;MACLC,iBAAiB,CAACF,SAAS,EAAEC,WAAW,CAAC;;GAE5C;EAEDF,kBAAkB,CAACb,mBAAmB,EAAEZ,uBAAuB,CAAC;AAClE;;;;;;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"plasmic-mailchimp.cjs.production.min.js","sources":["../src/mailchimp.tsx","../src/index.tsx"],"sourcesContent":["import { ComponentMeta } from \"@plasmicapp/host\";\n\nimport React from \"react\";\n\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-mailchimp\";\n\ninterface MailchimpSignupFormProps {\n className?: string;\n url?: string;\n}\n\nexport const MailchimpSignupFormMeta: ComponentMeta<MailchimpSignupFormProps> =\n {\n name: \"hostless-mailchimp-signup-form\",\n displayName: \"Mailchimp Signup Form\",\n importName: \"MailchimpSignupForm\",\n importPath: modulePath,\n providesData: true,\n description:\n \"Shows a sign up form to users for subscribe to your newsletter\",\n props: {\n url: {\n type: \"string\",\n displayName: \"URL\",\n description: `Learn how to get your form url (\"https://mailchimp.com/help/host-your-own-signup-forms/\")`,\n defaultValue: \"http://eepurl.com/ic43yL\",\n helpText:\n \"You can learn how.(https://mailchimp.com/help/share-your-signup-form/)\",\n },\n },\n };\n\nexport function MailchimpSignupForm({\n className,\n url,\n}: MailchimpSignupFormProps) {\n if (!url) {\n return <div>Please specify URL</div>;\n }\n\n return (\n <iframe\n src={url}\n width=\"100%\"\n frameBorder=\"0\"\n marginHeight={0}\n scrolling=\"no\"\n marginWidth={0}\n height=\"600px\"\n className={className}\n />\n );\n}\n","import registerComponent, {\n ComponentMeta,\n} from \"@plasmicapp/host/registerComponent\";\nimport registerGlobalContext from \"@plasmicapp/host/registerGlobalContext\";\nimport { MailchimpSignupForm, MailchimpSignupFormMeta } from \"./mailchimp\";\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(MailchimpSignupForm, MailchimpSignupFormMeta);\n}\nexport * from \"./mailchimp\";\n"],"names":["MailchimpSignupFormMeta","name","displayName","importName","importPath","providesData","description","props","url","type","defaultValue","helpText","MailchimpSignupForm","_ref","React","src","width","frameBorder","marginHeight","scrolling","marginWidth","height","className","x","Error","loader","Component","defaultMeta","registerComponent"],"mappings":"uNAoBaA,EACX,CACEC,KAAM,iCACNC,YAAa,wBACbC,WAAY,sBACZC,WAZe,iCAafC,cAAc,EACdC,YACE,iEACFC,MAAO,CACLC,IAAK,CACHC,KAAM,SACNP,YAAa,MACbI,wGACAI,aAAc,2BACdC,SACE,qFAKMC,EAAmBC,OAEjCL,EAAGK,EAAHL,IAEA,OAAKA,EAKHM,0BACEC,IAAKP,EACLQ,MAAM,OACNC,YAAY,IACZC,aAAc,EACdC,UAAU,KACVC,YAAa,EACbC,OAAO,QACPC,UAhBKT,EAATS,YAISR,yIA1CeS,GACxB,GAAIA,MAAAA,EAEF,MAAM,IAAIC,6CAEV,OAAOD,gCCHiBE,GAI1B,IACEC,EACAC,EADAD,EAUiBd,EATjBe,EASsC3B,EAPlCyB,EACFA,EAAOG,kBAAkBF,EAAWC,GAEpCC,EAAkBF,EAAWC"}
1
+ {"version":3,"file":"plasmic-mailchimp.cjs.production.min.js","sources":["../src/mailchimp.tsx","../src/index.tsx"],"sourcesContent":["import { CodeComponentMeta } from \"@plasmicapp/host/registerComponent\";\n\nimport React from \"react\";\n\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-mailchimp\";\n\ninterface MailchimpSignupFormProps {\n className?: string;\n url?: string;\n}\n\nexport const MailchimpSignupFormMeta: CodeComponentMeta<MailchimpSignupFormProps> =\n {\n name: \"hostless-mailchimp-signup-form\",\n displayName: \"Mailchimp Signup Form\",\n importName: \"MailchimpSignupForm\",\n importPath: modulePath,\n providesData: true,\n description:\n \"Shows a sign up form to users for subscribe to your newsletter\",\n props: {\n url: {\n type: \"string\",\n displayName: \"URL\",\n description: `Learn how to get your form url (\"https://mailchimp.com/help/host-your-own-signup-forms/\")`,\n defaultValue: \"http://eepurl.com/ic43yL\",\n helpText:\n \"You can learn how.(https://mailchimp.com/help/share-your-signup-form/)\",\n },\n },\n };\n\nexport function MailchimpSignupForm({\n className,\n url,\n}: MailchimpSignupFormProps) {\n if (!url) {\n return <div>Please specify URL</div>;\n }\n\n return (\n <iframe\n src={url}\n width=\"100%\"\n frameBorder=\"0\"\n marginHeight={0}\n scrolling=\"no\"\n marginWidth={0}\n height=\"600px\"\n className={className}\n />\n );\n}\n","import registerComponent, {\n CodeComponentMeta,\n} from \"@plasmicapp/host/registerComponent\";\nimport registerGlobalContext from \"@plasmicapp/host/registerGlobalContext\";\nimport { MailchimpSignupForm, MailchimpSignupFormMeta } from \"./mailchimp\";\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: CodeComponentMeta<React.ComponentProps<T>>\n ) => {\n if (loader) {\n loader.registerComponent(Component, defaultMeta);\n } else {\n registerComponent(Component, defaultMeta);\n }\n };\n\n _registerComponent(MailchimpSignupForm, MailchimpSignupFormMeta);\n}\nexport * from \"./mailchimp\";\n"],"names":["MailchimpSignupFormMeta","name","displayName","importName","importPath","providesData","description","props","url","type","defaultValue","helpText","MailchimpSignupForm","_ref","React","src","width","frameBorder","marginHeight","scrolling","marginWidth","height","className","x","Error","loader","Component","defaultMeta","registerComponent"],"mappings":"uNAoBaA,EACX,CACEC,KAAM,iCACNC,YAAa,wBACbC,WAAY,sBACZC,WAZe,iCAafC,cAAc,EACdC,YACE,iEACFC,MAAO,CACLC,IAAK,CACHC,KAAM,SACNP,YAAa,MACbI,wGACAI,aAAc,2BACdC,SACE,qFAKMC,EAAmBC,OAEjCL,EAAGK,EAAHL,IAEA,OAAKA,EAKHM,0BACEC,IAAKP,EACLQ,MAAM,OACNC,YAAY,IACZC,aAAc,EACdC,UAAU,KACVC,YAAa,EACbC,OAAO,QACPC,UAhBKT,EAATS,YAISR,yIA1CeS,GACxB,GAAIA,MAAAA,EAEF,MAAM,IAAIC,6CAEV,OAAOD,gCCHiBE,GAI1B,IACEC,EACAC,EADAD,EAUiBd,EATjBe,EASsC3B,EAPlCyB,EACFA,EAAOG,kBAAkBF,EAAWC,GAEpCC,EAAkBF,EAAWC"}
@@ -1 +1 @@
1
- {"version":3,"file":"plasmic-mailchimp.esm.js","sources":["../src/mailchimp.tsx","../src/index.tsx"],"sourcesContent":["import { ComponentMeta } from \"@plasmicapp/host\";\n\nimport React from \"react\";\n\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-mailchimp\";\n\ninterface MailchimpSignupFormProps {\n className?: string;\n url?: string;\n}\n\nexport const MailchimpSignupFormMeta: ComponentMeta<MailchimpSignupFormProps> =\n {\n name: \"hostless-mailchimp-signup-form\",\n displayName: \"Mailchimp Signup Form\",\n importName: \"MailchimpSignupForm\",\n importPath: modulePath,\n providesData: true,\n description:\n \"Shows a sign up form to users for subscribe to your newsletter\",\n props: {\n url: {\n type: \"string\",\n displayName: \"URL\",\n description: `Learn how to get your form url (\"https://mailchimp.com/help/host-your-own-signup-forms/\")`,\n defaultValue: \"http://eepurl.com/ic43yL\",\n helpText:\n \"You can learn how.(https://mailchimp.com/help/share-your-signup-form/)\",\n },\n },\n };\n\nexport function MailchimpSignupForm({\n className,\n url,\n}: MailchimpSignupFormProps) {\n if (!url) {\n return <div>Please specify URL</div>;\n }\n\n return (\n <iframe\n src={url}\n width=\"100%\"\n frameBorder=\"0\"\n marginHeight={0}\n scrolling=\"no\"\n marginWidth={0}\n height=\"600px\"\n className={className}\n />\n );\n}\n","import registerComponent, {\n ComponentMeta,\n} from \"@plasmicapp/host/registerComponent\";\nimport registerGlobalContext from \"@plasmicapp/host/registerGlobalContext\";\nimport { MailchimpSignupForm, MailchimpSignupFormMeta } from \"./mailchimp\";\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(MailchimpSignupForm, MailchimpSignupFormMeta);\n}\nexport * from \"./mailchimp\";\n"],"names":["ensure","x","undefined","Error","modulePath","MailchimpSignupFormMeta","name","displayName","importName","importPath","providesData","description","props","url","type","defaultValue","helpText","MailchimpSignupForm","_ref","className","React","src","width","frameBorder","marginHeight","scrolling","marginWidth","height","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,gCAAgC;IAOtCC,uBAAuB,GAClC;EACEC,IAAI,EAAE,gCAAgC;EACtCC,WAAW,EAAE,uBAAuB;EACpCC,UAAU,EAAE,qBAAqB;EACjCC,UAAU,EAAEL,UAAU;EACtBM,YAAY,EAAE,IAAI;EAClBC,WAAW,EACT,gEAAgE;EAClEC,KAAK,EAAE;IACLC,GAAG,EAAE;MACHC,IAAI,EAAE,QAAQ;MACdP,WAAW,EAAE,KAAK;MAClBI,WAAW,+FAA6F;MACxGI,YAAY,EAAE,0BAA0B;MACxCC,QAAQ,EACN;;;;SAKMC,mBAAmBA,CAAAC,IAAA;MACjCC,SAAS,GAAAD,IAAA,CAATC,SAAS;IACTN,GAAG,GAAAK,IAAA,CAAHL,GAAG;EAEH,IAAI,CAACA,GAAG,EAAE;IACR,OAAOO,sDAA6B;;EAGtC,OACEA;IACEC,GAAG,EAAER,GAAG;IACRS,KAAK,EAAC,MAAM;IACZC,WAAW,EAAC,GAAG;IACfC,YAAY,EAAE,CAAC;IACfC,SAAS,EAAC,IAAI;IACdC,WAAW,EAAE,CAAC;IACdC,MAAM,EAAC,OAAO;IACdR,SAAS,EAAEA;IACX;AAEN;;SCvDgBS,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,CAACb,mBAAmB,EAAEZ,uBAAuB,CAAC;AAClE;;;;"}
1
+ {"version":3,"file":"plasmic-mailchimp.esm.js","sources":["../src/mailchimp.tsx","../src/index.tsx"],"sourcesContent":["import { CodeComponentMeta } from \"@plasmicapp/host/registerComponent\";\n\nimport React from \"react\";\n\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-mailchimp\";\n\ninterface MailchimpSignupFormProps {\n className?: string;\n url?: string;\n}\n\nexport const MailchimpSignupFormMeta: CodeComponentMeta<MailchimpSignupFormProps> =\n {\n name: \"hostless-mailchimp-signup-form\",\n displayName: \"Mailchimp Signup Form\",\n importName: \"MailchimpSignupForm\",\n importPath: modulePath,\n providesData: true,\n description:\n \"Shows a sign up form to users for subscribe to your newsletter\",\n props: {\n url: {\n type: \"string\",\n displayName: \"URL\",\n description: `Learn how to get your form url (\"https://mailchimp.com/help/host-your-own-signup-forms/\")`,\n defaultValue: \"http://eepurl.com/ic43yL\",\n helpText:\n \"You can learn how.(https://mailchimp.com/help/share-your-signup-form/)\",\n },\n },\n };\n\nexport function MailchimpSignupForm({\n className,\n url,\n}: MailchimpSignupFormProps) {\n if (!url) {\n return <div>Please specify URL</div>;\n }\n\n return (\n <iframe\n src={url}\n width=\"100%\"\n frameBorder=\"0\"\n marginHeight={0}\n scrolling=\"no\"\n marginWidth={0}\n height=\"600px\"\n className={className}\n />\n );\n}\n","import registerComponent, {\n CodeComponentMeta,\n} from \"@plasmicapp/host/registerComponent\";\nimport registerGlobalContext from \"@plasmicapp/host/registerGlobalContext\";\nimport { MailchimpSignupForm, MailchimpSignupFormMeta } from \"./mailchimp\";\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: CodeComponentMeta<React.ComponentProps<T>>\n ) => {\n if (loader) {\n loader.registerComponent(Component, defaultMeta);\n } else {\n registerComponent(Component, defaultMeta);\n }\n };\n\n _registerComponent(MailchimpSignupForm, MailchimpSignupFormMeta);\n}\nexport * from \"./mailchimp\";\n"],"names":["ensure","x","undefined","Error","modulePath","MailchimpSignupFormMeta","name","displayName","importName","importPath","providesData","description","props","url","type","defaultValue","helpText","MailchimpSignupForm","_ref","className","React","src","width","frameBorder","marginHeight","scrolling","marginWidth","height","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,gCAAgC;IAOtCC,uBAAuB,GAClC;EACEC,IAAI,EAAE,gCAAgC;EACtCC,WAAW,EAAE,uBAAuB;EACpCC,UAAU,EAAE,qBAAqB;EACjCC,UAAU,EAAEL,UAAU;EACtBM,YAAY,EAAE,IAAI;EAClBC,WAAW,EACT,gEAAgE;EAClEC,KAAK,EAAE;IACLC,GAAG,EAAE;MACHC,IAAI,EAAE,QAAQ;MACdP,WAAW,EAAE,KAAK;MAClBI,WAAW,+FAA6F;MACxGI,YAAY,EAAE,0BAA0B;MACxCC,QAAQ,EACN;;;;SAKMC,mBAAmBA,CAAAC,IAAA;MACjCC,SAAS,GAAAD,IAAA,CAATC,SAAS;IACTN,GAAG,GAAAK,IAAA,CAAHL,GAAG;EAEH,IAAI,CAACA,GAAG,EAAE;IACR,OAAOO,sDAA6B;;EAGtC,OACEA;IACEC,GAAG,EAAER,GAAG;IACRS,KAAK,EAAC,MAAM;IACZC,WAAW,EAAC,GAAG;IACfC,YAAY,EAAE,CAAC;IACfC,SAAS,EAAC,IAAI;IACdC,WAAW,EAAE,CAAC;IACdC,MAAM,EAAC,OAAO;IACdR,SAAS,EAAEA;IACX;AAEN;;SCvDgBS,WAAWA,CAACC,MAG3B;EACC,IAAMC,kBAAkB,GAAG,SAArBA,kBAAkBA,CACtBC,SAAY,EACZC,WAAuD;IAEvD,IAAIH,MAAM,EAAE;MACVA,MAAM,CAACI,iBAAiB,CAACF,SAAS,EAAEC,WAAW,CAAC;KACjD,MAAM;MACLC,iBAAiB,CAACF,SAAS,EAAEC,WAAW,CAAC;;GAE5C;EAEDF,kBAAkB,CAACb,mBAAmB,EAAEZ,uBAAuB,CAAC;AAClE;;;;"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@plasmicpkgs/plasmic-mailchimp",
3
- "version": "0.0.12",
3
+ "version": "0.0.13",
4
4
  "description": "Plasmic Mailchimp components.",
5
5
  "main": "dist/index.js",
6
6
  "typings": "dist/index.d.ts",
@@ -43,5 +43,5 @@
43
43
  "tsdx": "^0.14.1",
44
44
  "tslib": "^2.3.1"
45
45
  },
46
- "gitHead": "30e1d9c40c46f513d507349568dc16bc5f3e9572"
46
+ "gitHead": "bbba4b6636e69a3441c6dbe4cefb860ed30e826f"
47
47
  }