@plasmicpkgs/plasmic-google-maps 0.0.13 → 0.0.15
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-google-maps.cjs.development.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
|
|
1
|
+
{"version":3,"file":"plasmic-google-maps.cjs.development.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 CodeComponentMeta,\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: CodeComponentMeta<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,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,CAAChB,UAAU,EAAEd,cAAc,CAAC;AAChD;;;;;;;"}
|
|
@@ -1 +1 @@
|
|
|
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
|
|
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 CodeComponentMeta,\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: CodeComponentMeta<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"}
|
|
@@ -1 +1 @@
|
|
|
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
|
|
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 CodeComponentMeta,\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: CodeComponentMeta<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,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,CAAChB,UAAU,EAAEd,cAAc,CAAC;AAChD;;;;"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@plasmicpkgs/plasmic-google-maps",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.15",
|
|
4
4
|
"description": "Plasmic Google maps 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.
|
|
37
|
+
"@plasmicapp/host": "1.0.234",
|
|
38
38
|
"@types/react": "^18.0.27",
|
|
39
39
|
"@types/react-dom": "^18.0.10",
|
|
40
40
|
"husky": "^7.0.4",
|
|
@@ -46,5 +46,5 @@
|
|
|
46
46
|
"dependencies": {
|
|
47
47
|
"change-case": "^4.1.2"
|
|
48
48
|
},
|
|
49
|
-
"gitHead": "
|
|
49
|
+
"gitHead": "bbba4b6636e69a3441c6dbe4cefb860ed30e826f"
|
|
50
50
|
}
|