@plasmicpkgs/plasmic-google-maps 0.0.2 → 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.
package/README.md CHANGED
@@ -1 +1 @@
1
- Plasmic components and registration for Google Maps
1
+ Plasmic components and registration calls for Google maps
@@ -1,10 +1,10 @@
1
- import { ComponentMeta } from "@plasmicapp/host";
1
+ import { CodeComponentMeta } from "@plasmicapp/host";
2
2
  import React from "react";
3
3
  export declare function ensure<T>(x: T | null | undefined): T;
4
4
  interface GoogleMapsProps {
5
5
  className?: string;
6
6
  coordinates?: string;
7
7
  }
8
- export declare const GoogleMapsMeta: ComponentMeta<GoogleMapsProps>;
8
+ export declare const GoogleMapsMeta: CodeComponentMeta<GoogleMapsProps>;
9
9
  export declare function GoogleMaps({ coordinates, className }: GoogleMapsProps): React.JSX.Element;
10
10
  export {};
@@ -17,7 +17,7 @@ function ensure(x) {
17
17
  }
18
18
  var modulePath = "@plasmicpkgs/plasmic-google-maps";
19
19
  var GoogleMapsMeta = {
20
- name: "GoogleMaps",
20
+ name: "hostless-google-maps",
21
21
  displayName: "Google Maps ",
22
22
  importName: "GoogleMaps",
23
23
  importPath: modulePath,
@@ -1 +1 @@
1
- {"version":3,"file":"plasmic-google-maps.cjs.development.js","sources":["../src/google-maps.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-google-maps\";\n\ninterface GoogleMapsProps {\n className?: string;\n coordinates?: string;\n}\n\nexport const GoogleMapsMeta: ComponentMeta<GoogleMapsProps> = {\n name: \"GoogleMaps\",\n displayName: \"Google Maps \",\n importName: \"GoogleMaps\",\n importPath: modulePath,\n providesData: true,\n description: \"Shows Google Maps\",\n defaultStyles: {\n maxWidth: \"100%\",\n },\n props: {\n coordinates: {\n type: \"string\",\n displayName: \"Coordinates\",\n description: `The latitude, longitude of the map location.Learn how to get latitude and longitude (\"https://support.google.com/maps/answer/18539\")`,\n defaultValue: \"51.51634532635064, -0.1332152112055726\",\n helpText:`You can get latitude and longitude of your location from this website (\"https://www.gps-coordinates.net/\")`\n },\n },\n};\n\nexport function GoogleMaps({ coordinates, className }: GoogleMapsProps) {\n if (!coordinates) {\n return <div>Please enter your coordinates</div>;\n }\n const query = `https://maps.google.com/maps?q=${coordinates}&t=&z=13&ie=UTF8&iwloc=&output=embed`;\n\n return (\n <iframe\n title=\"google\"\n width=\"100%\"\n height=\"600\"\n id=\"gmap_canvas\"\n src={query}\n className={className}\n frameBorder=\"0\"\n marginHeight={0}\n marginWidth={0}\n scrolling=\"no\"\n />\n );\n}\n","import registerComponent, {\n ComponentMeta,\n} from \"@plasmicapp/host/registerComponent\";\n\nimport { GoogleMaps, GoogleMapsMeta } from \"./google-maps\";\n\nexport function registerAll(loader?: {\n registerComponent: typeof registerComponent;\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(GoogleMaps, GoogleMapsMeta);\n}\n\nexport * from \"./google-maps\";\n"],"names":["ensure","x","undefined","Error","modulePath","GoogleMapsMeta","name","displayName","importName","importPath","providesData","description","defaultStyles","maxWidth","props","coordinates","type","defaultValue","helpText","GoogleMaps","className","React","query","title","width","height","id","src","frameBorder","marginHeight","marginWidth","scrolling","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;GAC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../src/google-maps.tsx","../src/index.tsx"],"sourcesContent":["import { CodeComponentMeta } 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-google-maps\";\n\ninterface GoogleMapsProps {\n className?: string;\n coordinates?: string;\n}\n\nexport const GoogleMapsMeta: CodeComponentMeta<GoogleMapsProps> = {\n name: \"hostless-google-maps\",\n displayName: \"Google Maps \",\n importName: \"GoogleMaps\",\n importPath: modulePath,\n providesData: true,\n description: \"Shows Google Maps\",\n defaultStyles: {\n maxWidth: \"100%\",\n },\n props: {\n coordinates: {\n type: \"string\",\n displayName: \"Coordinates\",\n description: `The latitude, longitude of the map location.Learn how to get latitude and longitude (\"https://support.google.com/maps/answer/18539\")`,\n defaultValue: \"51.51634532635064, -0.1332152112055726\",\n helpText: `You can get latitude and longitude of your location from this website (\"https://www.gps-coordinates.net/\")`,\n },\n },\n};\n\nexport function GoogleMaps({ coordinates, className }: GoogleMapsProps) {\n if (!coordinates) {\n return <div>Please enter your coordinates</div>;\n }\n const query = `https://maps.google.com/maps?q=${coordinates}&t=&z=13&ie=UTF8&iwloc=&output=embed`;\n\n return (\n <iframe\n title=\"google\"\n width=\"100%\"\n height=\"600\"\n id=\"gmap_canvas\"\n src={query}\n className={className}\n frameBorder=\"0\"\n marginHeight={0}\n marginWidth={0}\n scrolling=\"no\"\n />\n );\n}\n","import registerComponent, {\n ComponentMeta,\n} from \"@plasmicapp/host/registerComponent\";\n\nimport { GoogleMaps, GoogleMapsMeta } from \"./google-maps\";\n\nexport function registerAll(loader?: {\n registerComponent: typeof registerComponent;\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(GoogleMaps, GoogleMapsMeta);\n}\n\nexport * from \"./google-maps\";\n"],"names":["ensure","x","undefined","Error","modulePath","GoogleMapsMeta","name","displayName","importName","importPath","providesData","description","defaultStyles","maxWidth","props","coordinates","type","defaultValue","helpText","GoogleMaps","_ref","className","React","query","title","width","height","id","src","frameBorder","marginHeight","marginWidth","scrolling","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,kCAAkC;IAOxCC,cAAc,GAAuC;EAChEC,IAAI,EAAE,sBAAsB;EAC5BC,WAAW,EAAE,cAAc;EAC3BC,UAAU,EAAE,YAAY;EACxBC,UAAU,EAAEL,UAAU;EACtBM,YAAY,EAAE,IAAI;EAClBC,WAAW,EAAE,mBAAmB;EAChCC,aAAa,EAAE;IACbC,QAAQ,EAAE;GACX;EACDC,KAAK,EAAE;IACLC,WAAW,EAAE;MACXC,IAAI,EAAE,QAAQ;MACdT,WAAW,EAAE,aAAa;MAC1BI,WAAW,0IAAwI;MACnJM,YAAY,EAAE,wCAAwC;MACtDC,QAAQ;;;;SAKEC,UAAUA,CAAAC,IAAA;MAAGL,WAAW,GAAAK,IAAA,CAAXL,WAAW;IAAEM,SAAS,GAAAD,IAAA,CAATC,SAAS;EACjD,IAAI,CAACN,WAAW,EAAE;IAChB,OAAOO,iEAAwC;;EAEjD,IAAMC,KAAK,uCAAqCR,WAAW,yCAAsC;EAEjG,OACEO;IACEE,KAAK,EAAC,QAAQ;IACdC,KAAK,EAAC,MAAM;IACZC,MAAM,EAAC,KAAK;IACZC,EAAE,EAAC,aAAa;IAChBC,GAAG,EAAEL,KAAK;IACVF,SAAS,EAAEA,SAAS;IACpBQ,WAAW,EAAC,GAAG;IACfC,YAAY,EAAE,CAAC;IACfC,WAAW,EAAE,CAAC;IACdC,SAAS,EAAC;IACV;AAEN;;SCvDgBC,WAAWA,CAACC,MAE3B;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,CAAChB,UAAU,EAAEd,cAAc,CAAC;AAChD;;;;;;;"}
@@ -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 t=e(require("@plasmicapp/host/registerComponent")),o=e(require("react")),a={name:"GoogleMaps",displayName:"Google Maps ",importName:"GoogleMaps",importPath:"@plasmicpkgs/plasmic-google-maps",providesData:!0,description:"Shows Google Maps",defaultStyles:{maxWidth:"100%"},props:{coordinates:{type:"string",displayName:"Coordinates",description:'The latitude, longitude of the map location.Learn how to get latitude and longitude ("https://support.google.com/maps/answer/18539")',defaultValue:"51.51634532635064, -0.1332152112055726",helpText:'You can get latitude and longitude of your location from this website ("https://www.gps-coordinates.net/")'}}};function r(e){var t=e.coordinates;return t?o.createElement("iframe",{title:"google",width:"100%",height:"600",id:"gmap_canvas",src:"https://maps.google.com/maps?q="+t+"&t=&z=13&ie=UTF8&iwloc=&output=embed",className:e.className,frameBorder:"0",marginHeight:0,marginWidth:0,scrolling:"no"}):o.createElement("div",null,"Please enter your coordinates")}exports.GoogleMaps=r,exports.GoogleMapsMeta=a,exports.ensure=function(e){if(null==e)throw new Error("Value must not be undefined or null");return e},exports.registerAll=function(e){var o,s;o=r,s=a,e?e.registerComponent(o,s):t(o,s)};
1
+ "use strict";function e(e){return e&&"object"==typeof e&&"default"in e?e.default:e}Object.defineProperty(exports,"__esModule",{value:!0});var t=e(require("@plasmicapp/host/registerComponent")),o=e(require("react")),a={name:"hostless-google-maps",displayName:"Google Maps ",importName:"GoogleMaps",importPath:"@plasmicpkgs/plasmic-google-maps",providesData:!0,description:"Shows Google Maps",defaultStyles:{maxWidth:"100%"},props:{coordinates:{type:"string",displayName:"Coordinates",description:'The latitude, longitude of the map location.Learn how to get latitude and longitude ("https://support.google.com/maps/answer/18539")',defaultValue:"51.51634532635064, -0.1332152112055726",helpText:'You can get latitude and longitude of your location from this website ("https://www.gps-coordinates.net/")'}}};function r(e){var t=e.coordinates;return t?o.createElement("iframe",{title:"google",width:"100%",height:"600",id:"gmap_canvas",src:"https://maps.google.com/maps?q="+t+"&t=&z=13&ie=UTF8&iwloc=&output=embed",className:e.className,frameBorder:"0",marginHeight:0,marginWidth:0,scrolling:"no"}):o.createElement("div",null,"Please enter your coordinates")}exports.GoogleMaps=r,exports.GoogleMapsMeta=a,exports.ensure=function(e){if(null==e)throw new Error("Value must not be undefined or null");return e},exports.registerAll=function(e){var o,s;o=r,s=a,e?e.registerComponent(o,s):t(o,s)};
2
2
  //# sourceMappingURL=plasmic-google-maps.cjs.production.min.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"plasmic-google-maps.cjs.production.min.js","sources":["../src/google-maps.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-google-maps\";\n\ninterface GoogleMapsProps {\n className?: string;\n coordinates?: string;\n}\n\nexport const GoogleMapsMeta: ComponentMeta<GoogleMapsProps> = {\n name: \"GoogleMaps\",\n displayName: \"Google Maps \",\n importName: \"GoogleMaps\",\n importPath: modulePath,\n providesData: true,\n description: \"Shows Google Maps\",\n defaultStyles: {\n maxWidth: \"100%\",\n },\n props: {\n coordinates: {\n type: \"string\",\n displayName: \"Coordinates\",\n description: `The latitude, longitude of the map location.Learn how to get latitude and longitude (\"https://support.google.com/maps/answer/18539\")`,\n defaultValue: \"51.51634532635064, -0.1332152112055726\",\n helpText:`You can get latitude and longitude of your location from this website (\"https://www.gps-coordinates.net/\")`\n },\n },\n};\n\nexport function GoogleMaps({ coordinates, className }: GoogleMapsProps) {\n if (!coordinates) {\n return <div>Please enter your coordinates</div>;\n }\n const query = `https://maps.google.com/maps?q=${coordinates}&t=&z=13&ie=UTF8&iwloc=&output=embed`;\n\n return (\n <iframe\n title=\"google\"\n width=\"100%\"\n height=\"600\"\n id=\"gmap_canvas\"\n src={query}\n className={className}\n frameBorder=\"0\"\n marginHeight={0}\n marginWidth={0}\n scrolling=\"no\"\n />\n );\n}\n","import registerComponent, {\n ComponentMeta,\n} from \"@plasmicapp/host/registerComponent\";\n\nimport { GoogleMaps, GoogleMapsMeta } from \"./google-maps\";\n\nexport function registerAll(loader?: {\n registerComponent: typeof registerComponent;\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(GoogleMaps, GoogleMapsMeta);\n}\n\nexport * from \"./google-maps\";\n"],"names":["GoogleMapsMeta","name","displayName","importName","importPath","providesData","description","defaultStyles","maxWidth","props","coordinates","type","defaultValue","helpText","GoogleMaps","React","title","width","height","id","src","className","frameBorder","marginHeight","marginWidth","scrolling","x","Error","loader","Component","defaultMeta","registerComponent"],"mappings":"uNAoBaA,EAAiD,CAC5DC,KAAM,aACNC,YAAa,eACbC,WAAY,aACZC,WAXiB,mCAYjBC,cAAc,EACdC,YAAa,oBACbC,cAAe,CACbC,SAAU,QAEZC,MAAO,CACLC,YAAa,CACXC,KAAM,SACNT,YAAa,cACbI,mJACAM,aAAc,yCACdC,kIAKUC,SAAaJ,IAAAA,YAC3B,OAAKA,EAMHK,0BACEC,MAAM,SACNC,MAAM,OACNC,OAAO,MACPC,GAAG,cACHC,sCAR4CV,yCAS5CW,YAboCA,UAcpCC,YAAY,IACZC,aAAc,EACdC,YAAa,EACbC,UAAU,OAfLV,kIAvCeW,GACxB,GAAIA,MAAAA,EAEF,MAAM,IAAIC,6CAEV,OAAOD,gCCHiBE,GAG1B,IACEC,EACAC,EADAD,EAUiBf,EATjBgB,EAS6B9B,EAPzB4B,EACFA,EAAOG,kBAAkBF,EAAWC,GAEpCC,EAAkBF,EAAWC"}
1
+ {"version":3,"file":"plasmic-google-maps.cjs.production.min.js","sources":["../src/google-maps.tsx","../src/index.tsx"],"sourcesContent":["import { CodeComponentMeta } 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-google-maps\";\n\ninterface GoogleMapsProps {\n className?: string;\n coordinates?: string;\n}\n\nexport const GoogleMapsMeta: CodeComponentMeta<GoogleMapsProps> = {\n name: \"hostless-google-maps\",\n displayName: \"Google Maps \",\n importName: \"GoogleMaps\",\n importPath: modulePath,\n providesData: true,\n description: \"Shows Google Maps\",\n defaultStyles: {\n maxWidth: \"100%\",\n },\n props: {\n coordinates: {\n type: \"string\",\n displayName: \"Coordinates\",\n description: `The latitude, longitude of the map location.Learn how to get latitude and longitude (\"https://support.google.com/maps/answer/18539\")`,\n defaultValue: \"51.51634532635064, -0.1332152112055726\",\n helpText: `You can get latitude and longitude of your location from this website (\"https://www.gps-coordinates.net/\")`,\n },\n },\n};\n\nexport function GoogleMaps({ coordinates, className }: GoogleMapsProps) {\n if (!coordinates) {\n return <div>Please enter your coordinates</div>;\n }\n const query = `https://maps.google.com/maps?q=${coordinates}&t=&z=13&ie=UTF8&iwloc=&output=embed`;\n\n return (\n <iframe\n title=\"google\"\n width=\"100%\"\n height=\"600\"\n id=\"gmap_canvas\"\n src={query}\n className={className}\n frameBorder=\"0\"\n marginHeight={0}\n marginWidth={0}\n scrolling=\"no\"\n />\n );\n}\n","import registerComponent, {\n ComponentMeta,\n} from \"@plasmicapp/host/registerComponent\";\n\nimport { GoogleMaps, GoogleMapsMeta } from \"./google-maps\";\n\nexport function registerAll(loader?: {\n registerComponent: typeof registerComponent;\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(GoogleMaps, GoogleMapsMeta);\n}\n\nexport * from \"./google-maps\";\n"],"names":["GoogleMapsMeta","name","displayName","importName","importPath","providesData","description","defaultStyles","maxWidth","props","coordinates","type","defaultValue","helpText","GoogleMaps","_ref","React","title","width","height","id","src","className","frameBorder","marginHeight","marginWidth","scrolling","x","Error","loader","Component","defaultMeta","registerComponent"],"mappings":"uNAoBaA,EAAqD,CAChEC,KAAM,uBACNC,YAAa,eACbC,WAAY,aACZC,WAXiB,mCAYjBC,cAAc,EACdC,YAAa,oBACbC,cAAe,CACbC,SAAU,QAEZC,MAAO,CACLC,YAAa,CACXC,KAAM,SACNT,YAAa,cACbI,mJACAM,aAAc,yCACdC,kIAKUC,EAAUC,OAAGL,EAAWK,EAAXL,YAC3B,OAAKA,EAMHM,0BACEC,MAAM,SACNC,MAAM,OACNC,OAAO,MACPC,GAAG,cACHC,sCAR4CX,yCAS5CY,UAb6CP,EAATO,UAcpCC,YAAY,IACZC,aAAc,EACdC,YAAa,EACbC,UAAU,OAfLV,kIAvCeW,GACxB,GAAIA,MAAAA,EAEF,MAAM,IAAIC,6CAEV,OAAOD,gCCHiBE,GAG1B,IACEC,EACAC,EADAD,EAUiBhB,EATjBiB,EAS6B/B,EAPzB6B,EACFA,EAAOG,kBAAkBF,EAAWC,GAEpCC,EAAkBF,EAAWC"}
@@ -11,7 +11,7 @@ function ensure(x) {
11
11
  }
12
12
  var modulePath = "@plasmicpkgs/plasmic-google-maps";
13
13
  var GoogleMapsMeta = {
14
- name: "GoogleMaps",
14
+ name: "hostless-google-maps",
15
15
  displayName: "Google Maps ",
16
16
  importName: "GoogleMaps",
17
17
  importPath: modulePath,
@@ -1 +1 @@
1
- {"version":3,"file":"plasmic-google-maps.esm.js","sources":["../src/google-maps.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-google-maps\";\n\ninterface GoogleMapsProps {\n className?: string;\n coordinates?: string;\n}\n\nexport const GoogleMapsMeta: ComponentMeta<GoogleMapsProps> = {\n name: \"GoogleMaps\",\n displayName: \"Google Maps \",\n importName: \"GoogleMaps\",\n importPath: modulePath,\n providesData: true,\n description: \"Shows Google Maps\",\n defaultStyles: {\n maxWidth: \"100%\",\n },\n props: {\n coordinates: {\n type: \"string\",\n displayName: \"Coordinates\",\n description: `The latitude, longitude of the map location.Learn how to get latitude and longitude (\"https://support.google.com/maps/answer/18539\")`,\n defaultValue: \"51.51634532635064, -0.1332152112055726\",\n helpText:`You can get latitude and longitude of your location from this website (\"https://www.gps-coordinates.net/\")`\n },\n },\n};\n\nexport function GoogleMaps({ coordinates, className }: GoogleMapsProps) {\n if (!coordinates) {\n return <div>Please enter your coordinates</div>;\n }\n const query = `https://maps.google.com/maps?q=${coordinates}&t=&z=13&ie=UTF8&iwloc=&output=embed`;\n\n return (\n <iframe\n title=\"google\"\n width=\"100%\"\n height=\"600\"\n id=\"gmap_canvas\"\n src={query}\n className={className}\n frameBorder=\"0\"\n marginHeight={0}\n marginWidth={0}\n scrolling=\"no\"\n />\n );\n}\n","import registerComponent, {\n ComponentMeta,\n} from \"@plasmicapp/host/registerComponent\";\n\nimport { GoogleMaps, GoogleMapsMeta } from \"./google-maps\";\n\nexport function registerAll(loader?: {\n registerComponent: typeof registerComponent;\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(GoogleMaps, GoogleMapsMeta);\n}\n\nexport * from \"./google-maps\";\n"],"names":["ensure","x","undefined","Error","modulePath","GoogleMapsMeta","name","displayName","importName","importPath","providesData","description","defaultStyles","maxWidth","props","coordinates","type","defaultValue","helpText","GoogleMaps","className","React","query","title","width","height","id","src","frameBorder","marginHeight","marginWidth","scrolling","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,kCAAkC;IAOxCC,cAAc,GAAmC;EAC5DC,IAAI,EAAE,YAAY;EAClBC,WAAW,EAAE,cAAc;EAC3BC,UAAU,EAAE,YAAY;EACxBC,UAAU,EAAEL,UAAU;EACtBM,YAAY,EAAE,IAAI;EAClBC,WAAW,EAAE,mBAAmB;EAChCC,aAAa,EAAE;IACbC,QAAQ,EAAE;GACX;EACDC,KAAK,EAAE;IACLC,WAAW,EAAE;MACXC,IAAI,EAAE,QAAQ;MACdT,WAAW,EAAE,aAAa;MAC1BI,WAAW,0IAAwI;MACnJM,YAAY,EAAE,wCAAwC;MACtDC,QAAQ;;;;SAKEC,UAAU;MAAGJ,WAAW,QAAXA,WAAW;IAAEK,SAAS,QAATA,SAAS;EACjD,IAAI,CAACL,WAAW,EAAE;IAChB,OAAOM,iEAAwC;;EAEjD,IAAMC,KAAK,uCAAqCP,WAAW,yCAAsC;EAEjG,OACEM;IACEE,KAAK,EAAC,QAAQ;IACdC,KAAK,EAAC,MAAM;IACZC,MAAM,EAAC,KAAK;IACZC,EAAE,EAAC,aAAa;IAChBC,GAAG,EAAEL,KAAK;IACVF,SAAS,EAAEA,SAAS;IACpBQ,WAAW,EAAC,GAAG;IACfC,YAAY,EAAE,CAAC;IACfC,WAAW,EAAE,CAAC;IACdC,SAAS,EAAC;IACV;AAEN;;SCvDgBC,WAAW,CAACC,MAE3B;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;EAEDF,kBAAkB,CAACf,UAAU,EAAEd,cAAc,CAAC;AAChD;;;;"}
1
+ {"version":3,"file":"plasmic-google-maps.esm.js","sources":["../src/google-maps.tsx","../src/index.tsx"],"sourcesContent":["import { CodeComponentMeta } 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-google-maps\";\n\ninterface GoogleMapsProps {\n className?: string;\n coordinates?: string;\n}\n\nexport const GoogleMapsMeta: CodeComponentMeta<GoogleMapsProps> = {\n name: \"hostless-google-maps\",\n displayName: \"Google Maps \",\n importName: \"GoogleMaps\",\n importPath: modulePath,\n providesData: true,\n description: \"Shows Google Maps\",\n defaultStyles: {\n maxWidth: \"100%\",\n },\n props: {\n coordinates: {\n type: \"string\",\n displayName: \"Coordinates\",\n description: `The latitude, longitude of the map location.Learn how to get latitude and longitude (\"https://support.google.com/maps/answer/18539\")`,\n defaultValue: \"51.51634532635064, -0.1332152112055726\",\n helpText: `You can get latitude and longitude of your location from this website (\"https://www.gps-coordinates.net/\")`,\n },\n },\n};\n\nexport function GoogleMaps({ coordinates, className }: GoogleMapsProps) {\n if (!coordinates) {\n return <div>Please enter your coordinates</div>;\n }\n const query = `https://maps.google.com/maps?q=${coordinates}&t=&z=13&ie=UTF8&iwloc=&output=embed`;\n\n return (\n <iframe\n title=\"google\"\n width=\"100%\"\n height=\"600\"\n id=\"gmap_canvas\"\n src={query}\n className={className}\n frameBorder=\"0\"\n marginHeight={0}\n marginWidth={0}\n scrolling=\"no\"\n />\n );\n}\n","import registerComponent, {\n ComponentMeta,\n} from \"@plasmicapp/host/registerComponent\";\n\nimport { GoogleMaps, GoogleMapsMeta } from \"./google-maps\";\n\nexport function registerAll(loader?: {\n registerComponent: typeof registerComponent;\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(GoogleMaps, GoogleMapsMeta);\n}\n\nexport * from \"./google-maps\";\n"],"names":["ensure","x","undefined","Error","modulePath","GoogleMapsMeta","name","displayName","importName","importPath","providesData","description","defaultStyles","maxWidth","props","coordinates","type","defaultValue","helpText","GoogleMaps","_ref","className","React","query","title","width","height","id","src","frameBorder","marginHeight","marginWidth","scrolling","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,kCAAkC;IAOxCC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
- "version": "0.0.2",
4
- "description": "Plasmic Google Maps components.",
3
+ "version": "0.0.5",
4
+ "description": "Plasmic Google maps components.",
5
5
  "main": "dist/index.js",
6
6
  "typings": "dist/index.d.ts",
7
7
  "module": "dist/plasmic-google-maps.esm.js",
@@ -14,9 +14,9 @@
14
14
  "scripts": {
15
15
  "start": "tsdx watch",
16
16
  "build": "tsdx build",
17
- "test": "yarn --cwd=../.. test --passWithNoTests",
17
+ "test": "TEST_CWD=`pwd` yarn --cwd=../.. test --passWithNoTests",
18
18
  "lint": "tsdx lint",
19
- "prepare": "if-env PREPARE_NO_BUILD=true || yarn build",
19
+ "prepublishOnly": "npm run build",
20
20
  "size": "size-limit",
21
21
  "analyze": "size-limit --why"
22
22
  },
@@ -34,18 +34,17 @@
34
34
  }
35
35
  ],
36
36
  "devDependencies": {
37
- "@plasmicapp/host": "^1.0.117",
38
- "@plasmicapp/query": "^0.1.61",
39
- "@size-limit/preset-small-lib": "^7.0.8",
40
- "@types/dlv": "^1.1.2",
41
- "@types/react": "^17.0.43",
42
- "@types/react-dom": "^17.0.14",
37
+ "@plasmicapp/host": "1.0.225",
38
+ "@types/react": "^18.0.27",
39
+ "@types/react-dom": "^18.0.10",
43
40
  "husky": "^7.0.4",
44
- "react": "^18.0.0",
45
- "react-dom": "^18.0.0",
46
- "size-limit": "^7.0.8",
41
+ "react": "^18.2.0",
42
+ "react-dom": "^18.2.0",
47
43
  "tsdx": "^0.14.1",
48
44
  "tslib": "^2.3.1"
49
45
  },
50
- "gitHead": "6a7364c3fd0b59099a5869f3e99f13b51a391d0a"
46
+ "dependencies": {
47
+ "change-case": "^4.1.2"
48
+ },
49
+ "gitHead": "400da4e813c2876ed9d2ada28ef265afd30c69d5"
51
50
  }