@plasmicpkgs/plasmic-pigeon-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.
@@ -18,7 +18,7 @@ function ensure(x) {
18
18
  }
19
19
  var modulePath = "@plasmicpkgs/plasmic-pigeon-maps";
20
20
  var PigeonMapsMeta = {
21
- name: "PigeonMaps",
21
+ name: "hostless-pigeon-maps",
22
22
  displayName: "Pigeon Maps",
23
23
  importName: "PigeonMaps",
24
24
  importPath: modulePath,
@@ -101,7 +101,7 @@ function PigeonMaps(_ref) {
101
101
  width: 50,
102
102
  anchor: [latitude, longitude],
103
103
  style: {
104
- filter: 'none'
104
+ filter: "none"
105
105
  }
106
106
  })));
107
107
  }
@@ -1 +1 @@
1
- {"version":3,"file":"plasmic-pigeon-maps.cjs.development.js","sources":["../src/pigeon.tsx","../src/index.tsx"],"sourcesContent":["import { CodeComponentMeta } from \"@plasmicapp/host\";\nimport { Map, Marker } from \"pigeon-maps\";\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-pigeon-maps\";\n\ninterface PigeonMapsProps {\n provider?: string;\n latitude?: number;\n longitude?: number;\n zoomLevel?: number;\n width?: number;\n height?: number;\n animate?: boolean;\n zoomSnap?: boolean;\n metaWheelZoom?: boolean;\n twoFingerDrag?: boolean;\n className?: string;\n}\n\nexport const PigeonMapsMeta: CodeComponentMeta<PigeonMapsProps> = {\n name: \"PigeonMaps\",\n displayName: \"Pigeon Maps\",\n importName: \"PigeonMaps\",\n importPath: modulePath,\n providesData: true,\n defaultStyles: {\n width: \"400px\",\n height: \"600px\",\n },\n props: {\n latitude: {\n type: \"number\",\n displayName: \"Latitude\",\n description: \"Latitude\",\n defaultValue: 41.2825125,\n },\n longitude: {\n type: \"number\",\n displayName: \"Longitude\",\n description: \"Longitude\",\n defaultValue: 69.139281,\n },\n zoomLevel: {\n type: \"number\",\n displayName: \"Zoom\",\n description: \"Current zoom level [1...18]\",\n defaultValue: 10,\n },\n animate: {\n type: \"boolean\",\n displayName: \"Animations\",\n description: \"Animations enabled\",\n defaultValue: true,\n },\n zoomSnap: {\n type: \"boolean\",\n displayName: \"Zoom Snap\",\n description:\n \"Snap to discrete zoom increments (14, 15, 16, etc) when scrolling with the mouse or pinching with touch events\",\n defaultValue: true,\n },\n metaWheelZoom: {\n type: \"boolean\",\n displayName: \"Meta Wheel Zoom\",\n description:\n \"Zooming with the mouse wheel only works when you hold down the cmd or ctrl keys\",\n defaultValue: false,\n },\n twoFingerDrag: {\n type: \"boolean\",\n displayName: \"Two Finger Drag\",\n description: \"Moving the map requires touching with two fingers\",\n defaultValue: false,\n },\n },\n};\n\nexport function PigeonMaps({\n latitude,\n longitude,\n zoomLevel,\n animate,\n zoomSnap,\n metaWheelZoom,\n twoFingerDrag,\n className,\n}: PigeonMapsProps) {\n const [zoom, setZoom] = React.useState(zoomLevel);\n\n return (\n <div className={className}>\n <Map\n defaultCenter={[latitude!, longitude!]}\n zoom={zoom}\n animate={animate}\n zoomSnap={zoomSnap}\n onBoundsChanged={({ zoom }) => {\n setZoom(zoom);\n }}\n metaWheelZoom={metaWheelZoom}\n twoFingerDrag={twoFingerDrag}\n >\n <Marker width={50} anchor={[latitude!, longitude!]} style={{filter:'none'}}/>\n </Map>\n </div>\n );\n}\n","import registerComponent, {\n ComponentMeta,\n} from \"@plasmicapp/host/registerComponent\";\nimport registerGlobalContext from \"@plasmicapp/host/registerGlobalContext\";\nimport {\n PigeonMaps,\n PigeonMapsMeta\n} from \"./pigeon\";\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 _registerComponent(PigeonMaps, PigeonMapsMeta);\n }\n}\n\nexport * from \"./pigeon\";"],"names":["ensure","x","undefined","Error","modulePath","PigeonMapsMeta","name","displayName","importName","importPath","providesData","defaultStyles","width","height","props","latitude","type","description","defaultValue","longitude","zoomLevel","animate","zoomSnap","metaWheelZoom","twoFingerDrag","PigeonMaps","_ref","className","_React$useState","React","useState","zoom","setZoom","Map","defaultCenter","onBoundsChanged","_ref2","Marker","anchor","style","filter","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;IAgBxCC,cAAc,GAAuC;EAChEC,IAAI,EAAE,YAAY;EAClBC,WAAW,EAAE,aAAa;EAC1BC,UAAU,EAAE,YAAY;EACxBC,UAAU,EAAEL,UAAU;EACtBM,YAAY,EAAE,IAAI;EAClBC,aAAa,EAAE;IACbC,KAAK,EAAE,OAAO;IACdC,MAAM,EAAE;GACT;EACDC,KAAK,EAAE;IACLC,QAAQ,EAAE;MACRC,IAAI,EAAE,QAAQ;MACdT,WAAW,EAAE,UAAU;MACvBU,WAAW,EAAE,UAAU;MACvBC,YAAY,EAAE;KACf;IACDC,SAAS,EAAE;MACTH,IAAI,EAAE,QAAQ;MACdT,WAAW,EAAE,WAAW;MACxBU,WAAW,EAAE,WAAW;MACxBC,YAAY,EAAE;KACf;IACDE,SAAS,EAAE;MACTJ,IAAI,EAAE,QAAQ;MACdT,WAAW,EAAE,MAAM;MACnBU,WAAW,EAAE,6BAA6B;MAC1CC,YAAY,EAAE;KACf;IACDG,OAAO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a,EAAEA,aAAa;IAC5BC,aAAa,EAAEA;KAEfK,oBAACQ,iBAAM;IAACzB,KAAK,EAAE,EAAE;IAAE0B,MAAM,EAAE,CAACvB,QAAS,EAAEI,SAAU,CAAC;IAAGoB,KAAK,EAAE;MAACC,MAAM,EAAC;;IAAU,CAC1E,CACF;AAEV;;SC1GgBC,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;EAED,IAAIH,MAAM,EAAE;IACVC,kBAAkB,CAAClB,UAAU,EAAEpB,cAAc,CAAC;;AAElD;;;;;;;"}
1
+ {"version":3,"file":"plasmic-pigeon-maps.cjs.development.js","sources":["../src/pigeon.tsx","../src/index.tsx"],"sourcesContent":["import { CodeComponentMeta } from \"@plasmicapp/host\";\nimport { Map, Marker } from \"pigeon-maps\";\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-pigeon-maps\";\n\ninterface PigeonMapsProps {\n provider?: string;\n latitude?: number;\n longitude?: number;\n zoomLevel?: number;\n width?: number;\n height?: number;\n animate?: boolean;\n zoomSnap?: boolean;\n metaWheelZoom?: boolean;\n twoFingerDrag?: boolean;\n className?: string;\n}\n\nexport const PigeonMapsMeta: CodeComponentMeta<PigeonMapsProps> = {\n name: \"hostless-pigeon-maps\",\n displayName: \"Pigeon Maps\",\n importName: \"PigeonMaps\",\n importPath: modulePath,\n providesData: true,\n defaultStyles: {\n width: \"400px\",\n height: \"600px\",\n },\n props: {\n latitude: {\n type: \"number\",\n displayName: \"Latitude\",\n description: \"Latitude\",\n defaultValue: 41.2825125,\n },\n longitude: {\n type: \"number\",\n displayName: \"Longitude\",\n description: \"Longitude\",\n defaultValue: 69.139281,\n },\n zoomLevel: {\n type: \"number\",\n displayName: \"Zoom\",\n description: \"Current zoom level [1...18]\",\n defaultValue: 10,\n },\n animate: {\n type: \"boolean\",\n displayName: \"Animations\",\n description: \"Animations enabled\",\n defaultValue: true,\n },\n zoomSnap: {\n type: \"boolean\",\n displayName: \"Zoom Snap\",\n description:\n \"Snap to discrete zoom increments (14, 15, 16, etc) when scrolling with the mouse or pinching with touch events\",\n defaultValue: true,\n },\n metaWheelZoom: {\n type: \"boolean\",\n displayName: \"Meta Wheel Zoom\",\n description:\n \"Zooming with the mouse wheel only works when you hold down the cmd or ctrl keys\",\n defaultValue: false,\n },\n twoFingerDrag: {\n type: \"boolean\",\n displayName: \"Two Finger Drag\",\n description: \"Moving the map requires touching with two fingers\",\n defaultValue: false,\n },\n },\n};\n\nexport function PigeonMaps({\n latitude,\n longitude,\n zoomLevel,\n animate,\n zoomSnap,\n metaWheelZoom,\n twoFingerDrag,\n className,\n}: PigeonMapsProps) {\n const [zoom, setZoom] = React.useState(zoomLevel);\n\n return (\n <div className={className}>\n <Map\n defaultCenter={[latitude!, longitude!]}\n zoom={zoom}\n animate={animate}\n zoomSnap={zoomSnap}\n onBoundsChanged={({ zoom }) => {\n setZoom(zoom);\n }}\n metaWheelZoom={metaWheelZoom}\n twoFingerDrag={twoFingerDrag}\n >\n <Marker\n width={50}\n anchor={[latitude!, longitude!]}\n style={{ filter: \"none\" }}\n />\n </Map>\n </div>\n );\n}\n","import registerComponent, {\n ComponentMeta,\n} from \"@plasmicapp/host/registerComponent\";\nimport registerGlobalContext from \"@plasmicapp/host/registerGlobalContext\";\nimport {\n PigeonMaps,\n PigeonMapsMeta\n} from \"./pigeon\";\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 _registerComponent(PigeonMaps, PigeonMapsMeta);\n }\n}\n\nexport * from \"./pigeon\";"],"names":["ensure","x","undefined","Error","modulePath","PigeonMapsMeta","name","displayName","importName","importPath","providesData","defaultStyles","width","height","props","latitude","type","description","defaultValue","longitude","zoomLevel","animate","zoomSnap","metaWheelZoom","twoFingerDrag","PigeonMaps","_ref","className","_React$useState","React","useState","zoom","setZoom","Map","defaultCenter","onBoundsChanged","_ref2","Marker","anchor","style","filter","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;IAgBxCC,cAAc,GAAuC;EAChEC,IAAI,EAAE,sBAAsB;EAC5BC,WAAW,EAAE,aAAa;EAC1BC,UAAU,EAAE,YAAY;EACxBC,UAAU,EAAEL,UAAU;EACtBM,YAAY,EAAE,IAAI;EAClBC,aAAa,EAAE;IACbC,KAAK,EAAE,OAAO;IACdC,MAAM,EAAE;GACT;EACDC,KAAK,EAAE;IACLC,QAAQ,EAAE;MACRC,IAAI,EAAE,QAAQ;MACdT,WAAW,EAAE,UAAU;MACvBU,WAAW,EAAE,UAAU;MACvBC,YAAY,EAAE;KACf;IACDC,SAAS,EAAE;MACTH,IAAI,EAAE,QAAQ;MACdT,WAAW,EAAE,WAAW;MACxBU,WAAW,EAAE,WAAW;MACxBC,YAAY,EAAE;KACf;IACDE,SAAS,EAAE;MACTJ,IAAI,EAAE,QAAQ;MACdT,WAAW,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AI,GAAAK,KAAA,CAAJL,IAAI;MACtBC,OAAO,CAACD,IAAI,CAAC;KACd;IACDR,aAAa,EAAEA,aAAa;IAC5BC,aAAa,EAAEA;KAEfK,oBAACQ,iBAAM;IACLzB,KAAK,EAAE,EAAE;IACT0B,MAAM,EAAE,CAACvB,QAAS,EAAEI,SAAU,CAAC;IAC/BoB,KAAK,EAAE;MAAEC,MAAM,EAAE;;IACjB,CACE,CACF;AAEV;;SC9GgBC,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;EAED,IAAIH,MAAM,EAAE;IACVC,kBAAkB,CAAClB,UAAU,EAAEpB,cAAc,CAAC;;AAElD;;;;;;;"}
@@ -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=require("pigeon-maps"),a=e(require("react")),n={name:"PigeonMaps",displayName:"Pigeon Maps",importName:"PigeonMaps",importPath:"@plasmicpkgs/plasmic-pigeon-maps",providesData:!0,defaultStyles:{width:"400px",height:"600px"},props:{latitude:{type:"number",displayName:"Latitude",description:"Latitude",defaultValue:41.2825125},longitude:{type:"number",displayName:"Longitude",description:"Longitude",defaultValue:69.139281},zoomLevel:{type:"number",displayName:"Zoom",description:"Current zoom level [1...18]",defaultValue:10},animate:{type:"boolean",displayName:"Animations",description:"Animations enabled",defaultValue:!0},zoomSnap:{type:"boolean",displayName:"Zoom Snap",description:"Snap to discrete zoom increments (14, 15, 16, etc) when scrolling with the mouse or pinching with touch events",defaultValue:!0},metaWheelZoom:{type:"boolean",displayName:"Meta Wheel Zoom",description:"Zooming with the mouse wheel only works when you hold down the cmd or ctrl keys",defaultValue:!1},twoFingerDrag:{type:"boolean",displayName:"Two Finger Drag",description:"Moving the map requires touching with two fingers",defaultValue:!1}}};function i(e){var t=e.latitude,n=e.longitude,i=e.animate,r=e.zoomSnap,l=e.metaWheelZoom,s=e.twoFingerDrag,p=e.className,u=a.useState(e.zoomLevel),m=u[1];return a.createElement("div",{className:p},a.createElement(o.Map,{defaultCenter:[t,n],zoom:u[0],animate:i,zoomSnap:r,onBoundsChanged:function(e){m(e.zoom)},metaWheelZoom:l,twoFingerDrag:s},a.createElement(o.Marker,{width:50,anchor:[t,n],style:{filter:"none"}})))}exports.PigeonMaps=i,exports.PigeonMapsMeta=n,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,a;e&&(o=i,a=n,e?e.registerComponent(o,a):t(o,a))};
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=require("pigeon-maps"),a=e(require("react")),n={name:"hostless-pigeon-maps",displayName:"Pigeon Maps",importName:"PigeonMaps",importPath:"@plasmicpkgs/plasmic-pigeon-maps",providesData:!0,defaultStyles:{width:"400px",height:"600px"},props:{latitude:{type:"number",displayName:"Latitude",description:"Latitude",defaultValue:41.2825125},longitude:{type:"number",displayName:"Longitude",description:"Longitude",defaultValue:69.139281},zoomLevel:{type:"number",displayName:"Zoom",description:"Current zoom level [1...18]",defaultValue:10},animate:{type:"boolean",displayName:"Animations",description:"Animations enabled",defaultValue:!0},zoomSnap:{type:"boolean",displayName:"Zoom Snap",description:"Snap to discrete zoom increments (14, 15, 16, etc) when scrolling with the mouse or pinching with touch events",defaultValue:!0},metaWheelZoom:{type:"boolean",displayName:"Meta Wheel Zoom",description:"Zooming with the mouse wheel only works when you hold down the cmd or ctrl keys",defaultValue:!1},twoFingerDrag:{type:"boolean",displayName:"Two Finger Drag",description:"Moving the map requires touching with two fingers",defaultValue:!1}}};function i(e){var t=e.latitude,n=e.longitude,i=e.animate,r=e.zoomSnap,l=e.metaWheelZoom,s=e.twoFingerDrag,p=e.className,m=a.useState(e.zoomLevel),u=m[1];return a.createElement("div",{className:p},a.createElement(o.Map,{defaultCenter:[t,n],zoom:m[0],animate:i,zoomSnap:r,onBoundsChanged:function(e){u(e.zoom)},metaWheelZoom:l,twoFingerDrag:s},a.createElement(o.Marker,{width:50,anchor:[t,n],style:{filter:"none"}})))}exports.PigeonMaps=i,exports.PigeonMapsMeta=n,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,a;e&&(o=i,a=n,e?e.registerComponent(o,a):t(o,a))};
2
2
  //# sourceMappingURL=plasmic-pigeon-maps.cjs.production.min.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"plasmic-pigeon-maps.cjs.production.min.js","sources":["../src/pigeon.tsx","../src/index.tsx"],"sourcesContent":["import { CodeComponentMeta } from \"@plasmicapp/host\";\nimport { Map, Marker } from \"pigeon-maps\";\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-pigeon-maps\";\n\ninterface PigeonMapsProps {\n provider?: string;\n latitude?: number;\n longitude?: number;\n zoomLevel?: number;\n width?: number;\n height?: number;\n animate?: boolean;\n zoomSnap?: boolean;\n metaWheelZoom?: boolean;\n twoFingerDrag?: boolean;\n className?: string;\n}\n\nexport const PigeonMapsMeta: CodeComponentMeta<PigeonMapsProps> = {\n name: \"PigeonMaps\",\n displayName: \"Pigeon Maps\",\n importName: \"PigeonMaps\",\n importPath: modulePath,\n providesData: true,\n defaultStyles: {\n width: \"400px\",\n height: \"600px\",\n },\n props: {\n latitude: {\n type: \"number\",\n displayName: \"Latitude\",\n description: \"Latitude\",\n defaultValue: 41.2825125,\n },\n longitude: {\n type: \"number\",\n displayName: \"Longitude\",\n description: \"Longitude\",\n defaultValue: 69.139281,\n },\n zoomLevel: {\n type: \"number\",\n displayName: \"Zoom\",\n description: \"Current zoom level [1...18]\",\n defaultValue: 10,\n },\n animate: {\n type: \"boolean\",\n displayName: \"Animations\",\n description: \"Animations enabled\",\n defaultValue: true,\n },\n zoomSnap: {\n type: \"boolean\",\n displayName: \"Zoom Snap\",\n description:\n \"Snap to discrete zoom increments (14, 15, 16, etc) when scrolling with the mouse or pinching with touch events\",\n defaultValue: true,\n },\n metaWheelZoom: {\n type: \"boolean\",\n displayName: \"Meta Wheel Zoom\",\n description:\n \"Zooming with the mouse wheel only works when you hold down the cmd or ctrl keys\",\n defaultValue: false,\n },\n twoFingerDrag: {\n type: \"boolean\",\n displayName: \"Two Finger Drag\",\n description: \"Moving the map requires touching with two fingers\",\n defaultValue: false,\n },\n },\n};\n\nexport function PigeonMaps({\n latitude,\n longitude,\n zoomLevel,\n animate,\n zoomSnap,\n metaWheelZoom,\n twoFingerDrag,\n className,\n}: PigeonMapsProps) {\n const [zoom, setZoom] = React.useState(zoomLevel);\n\n return (\n <div className={className}>\n <Map\n defaultCenter={[latitude!, longitude!]}\n zoom={zoom}\n animate={animate}\n zoomSnap={zoomSnap}\n onBoundsChanged={({ zoom }) => {\n setZoom(zoom);\n }}\n metaWheelZoom={metaWheelZoom}\n twoFingerDrag={twoFingerDrag}\n >\n <Marker width={50} anchor={[latitude!, longitude!]} style={{filter:'none'}}/>\n </Map>\n </div>\n );\n}\n","import registerComponent, {\n ComponentMeta,\n} from \"@plasmicapp/host/registerComponent\";\nimport registerGlobalContext from \"@plasmicapp/host/registerGlobalContext\";\nimport {\n PigeonMaps,\n PigeonMapsMeta\n} from \"./pigeon\";\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 _registerComponent(PigeonMaps, PigeonMapsMeta);\n }\n}\n\nexport * from \"./pigeon\";"],"names":["PigeonMapsMeta","name","displayName","importName","importPath","providesData","defaultStyles","width","height","props","latitude","type","description","defaultValue","longitude","zoomLevel","animate","zoomSnap","metaWheelZoom","twoFingerDrag","PigeonMaps","_ref","className","_React$useState","React","useState","setZoom","Map","defaultCenter","zoom","onBoundsChanged","_ref2","Marker","anchor","style","filter","x","Error","loader","Component","defaultMeta","registerComponent"],"mappings":"gPA6BaA,EAAqD,CAChEC,KAAM,aACNC,YAAa,cACbC,WAAY,aACZC,WApBiB,mCAqBjBC,cAAc,EACdC,cAAe,CACbC,MAAO,QACPC,OAAQ,SAEVC,MAAO,CACLC,SAAU,CACRC,KAAM,SACNT,YAAa,WACbU,YAAa,WACbC,aAAc,YAEhBC,UAAW,CACTH,KAAM,SACNT,YAAa,YACbU,YAAa,YACbC,aAAc,WAEhBE,UAAW,CACTJ,KAAM,SACNT,YAAa,OACbU,YAAa,8BACbC,aAAc,IAEhBG,QAAS,CACPL,KAAM,UACNT,YAAa,aACbU,YAAa,qBACbC,cAAc,GAEhBI,SAAU,CACRN,KAAM,UACNT,YAAa,YACbU,YACE,iHACFC,cAAc,GAEhBK,cAAe,CACbP,KAAM,UACNT,YAAa,kBACbU,YACE,kFACFC,cAAc,GAEhBM,cAAe,CACbR,KAAM,UACNT,YAAa,kBACbU,YAAa,oDACbC,cAAc,cAKJO,EAAUC,OACxBX,EAAQW,EAARX,SACAI,EAASO,EAATP,UAEAE,EAAOK,EAAPL,QACAC,EAAQI,EAARJ,SACAC,EAAaG,EAAbH,cACAC,EAAaE,EAAbF,cACAG,EAASD,EAATC,UAEAC,EAAwBC,EAAMC,SAPrBJ,EAATN,WAOaW,EAAOH,KAEpB,OACEC,uBAAKF,UAAWA,GACdE,gBAACG,OACCC,cAAe,CAAClB,EAAWI,GAC3Be,KANKN,KAOLP,QAASA,EACTC,SAAUA,EACVa,gBAAiB,SAAAC,GACfL,EADsBK,EAAJF,OAGpBX,cAAeA,EACfC,cAAeA,GAEfK,gBAACQ,UAAOzB,MAAO,GAAI0B,OAAQ,CAACvB,EAAWI,GAAcoB,MAAO,CAACC,OAAO,kFA5GlDC,GACxB,GAAIA,MAAAA,EAEF,MAAM,IAAIC,6CAEV,OAAOD,gCCCiBE,GAI1B,IACEC,EACAC,EASEF,IAVFC,EAWmBnB,EAVnBoB,EAU+BxC,EAR3BsC,EACFA,EAAOG,kBAAkBF,EAAWC,GAEpCC,EAAkBF,EAAWC"}
1
+ {"version":3,"file":"plasmic-pigeon-maps.cjs.production.min.js","sources":["../src/pigeon.tsx","../src/index.tsx"],"sourcesContent":["import { CodeComponentMeta } from \"@plasmicapp/host\";\nimport { Map, Marker } from \"pigeon-maps\";\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-pigeon-maps\";\n\ninterface PigeonMapsProps {\n provider?: string;\n latitude?: number;\n longitude?: number;\n zoomLevel?: number;\n width?: number;\n height?: number;\n animate?: boolean;\n zoomSnap?: boolean;\n metaWheelZoom?: boolean;\n twoFingerDrag?: boolean;\n className?: string;\n}\n\nexport const PigeonMapsMeta: CodeComponentMeta<PigeonMapsProps> = {\n name: \"hostless-pigeon-maps\",\n displayName: \"Pigeon Maps\",\n importName: \"PigeonMaps\",\n importPath: modulePath,\n providesData: true,\n defaultStyles: {\n width: \"400px\",\n height: \"600px\",\n },\n props: {\n latitude: {\n type: \"number\",\n displayName: \"Latitude\",\n description: \"Latitude\",\n defaultValue: 41.2825125,\n },\n longitude: {\n type: \"number\",\n displayName: \"Longitude\",\n description: \"Longitude\",\n defaultValue: 69.139281,\n },\n zoomLevel: {\n type: \"number\",\n displayName: \"Zoom\",\n description: \"Current zoom level [1...18]\",\n defaultValue: 10,\n },\n animate: {\n type: \"boolean\",\n displayName: \"Animations\",\n description: \"Animations enabled\",\n defaultValue: true,\n },\n zoomSnap: {\n type: \"boolean\",\n displayName: \"Zoom Snap\",\n description:\n \"Snap to discrete zoom increments (14, 15, 16, etc) when scrolling with the mouse or pinching with touch events\",\n defaultValue: true,\n },\n metaWheelZoom: {\n type: \"boolean\",\n displayName: \"Meta Wheel Zoom\",\n description:\n \"Zooming with the mouse wheel only works when you hold down the cmd or ctrl keys\",\n defaultValue: false,\n },\n twoFingerDrag: {\n type: \"boolean\",\n displayName: \"Two Finger Drag\",\n description: \"Moving the map requires touching with two fingers\",\n defaultValue: false,\n },\n },\n};\n\nexport function PigeonMaps({\n latitude,\n longitude,\n zoomLevel,\n animate,\n zoomSnap,\n metaWheelZoom,\n twoFingerDrag,\n className,\n}: PigeonMapsProps) {\n const [zoom, setZoom] = React.useState(zoomLevel);\n\n return (\n <div className={className}>\n <Map\n defaultCenter={[latitude!, longitude!]}\n zoom={zoom}\n animate={animate}\n zoomSnap={zoomSnap}\n onBoundsChanged={({ zoom }) => {\n setZoom(zoom);\n }}\n metaWheelZoom={metaWheelZoom}\n twoFingerDrag={twoFingerDrag}\n >\n <Marker\n width={50}\n anchor={[latitude!, longitude!]}\n style={{ filter: \"none\" }}\n />\n </Map>\n </div>\n );\n}\n","import registerComponent, {\n ComponentMeta,\n} from \"@plasmicapp/host/registerComponent\";\nimport registerGlobalContext from \"@plasmicapp/host/registerGlobalContext\";\nimport {\n PigeonMaps,\n PigeonMapsMeta\n} from \"./pigeon\";\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 _registerComponent(PigeonMaps, PigeonMapsMeta);\n }\n}\n\nexport * from \"./pigeon\";"],"names":["PigeonMapsMeta","name","displayName","importName","importPath","providesData","defaultStyles","width","height","props","latitude","type","description","defaultValue","longitude","zoomLevel","animate","zoomSnap","metaWheelZoom","twoFingerDrag","PigeonMaps","_ref","className","_React$useState","React","useState","setZoom","Map","defaultCenter","zoom","onBoundsChanged","_ref2","Marker","anchor","style","filter","x","Error","loader","Component","defaultMeta","registerComponent"],"mappings":"gPA6BaA,EAAqD,CAChEC,KAAM,uBACNC,YAAa,cACbC,WAAY,aACZC,WApBiB,mCAqBjBC,cAAc,EACdC,cAAe,CACbC,MAAO,QACPC,OAAQ,SAEVC,MAAO,CACLC,SAAU,CACRC,KAAM,SACNT,YAAa,WACbU,YAAa,WACbC,aAAc,YAEhBC,UAAW,CACTH,KAAM,SACNT,YAAa,YACbU,YAAa,YACbC,aAAc,WAEhBE,UAAW,CACTJ,KAAM,SACNT,YAAa,OACbU,YAAa,8BACbC,aAAc,IAEhBG,QAAS,CACPL,KAAM,UACNT,YAAa,aACbU,YAAa,qBACbC,cAAc,GAEhBI,SAAU,CACRN,KAAM,UACNT,YAAa,YACbU,YACE,iHACFC,cAAc,GAEhBK,cAAe,CACbP,KAAM,UACNT,YAAa,kBACbU,YACE,kFACFC,cAAc,GAEhBM,cAAe,CACbR,KAAM,UACNT,YAAa,kBACbU,YAAa,oDACbC,cAAc,cAKJO,EAAUC,OACxBX,EAAQW,EAARX,SACAI,EAASO,EAATP,UAEAE,EAAOK,EAAPL,QACAC,EAAQI,EAARJ,SACAC,EAAaG,EAAbH,cACAC,EAAaE,EAAbF,cACAG,EAASD,EAATC,UAEAC,EAAwBC,EAAMC,SAPrBJ,EAATN,WAOaW,EAAOH,KAEpB,OACEC,uBAAKF,UAAWA,GACdE,gBAACG,OACCC,cAAe,CAAClB,EAAWI,GAC3Be,KANKN,KAOLP,QAASA,EACTC,SAAUA,EACVa,gBAAiB,SAAAC,GACfL,EADsBK,EAAJF,OAGpBX,cAAeA,EACfC,cAAeA,GAEfK,gBAACQ,UACCzB,MAAO,GACP0B,OAAQ,CAACvB,EAAWI,GACpBoB,MAAO,CAAEC,OAAQ,kFA/GDC,GACxB,GAAIA,MAAAA,EAEF,MAAM,IAAIC,6CAEV,OAAOD,gCCCiBE,GAI1B,IACEC,EACAC,EASEF,IAVFC,EAWmBnB,EAVnBoB,EAU+BxC,EAR3BsC,EACFA,EAAOG,kBAAkBF,EAAWC,GAEpCC,EAAkBF,EAAWC"}
@@ -12,7 +12,7 @@ function ensure(x) {
12
12
  }
13
13
  var modulePath = "@plasmicpkgs/plasmic-pigeon-maps";
14
14
  var PigeonMapsMeta = {
15
- name: "PigeonMaps",
15
+ name: "hostless-pigeon-maps",
16
16
  displayName: "Pigeon Maps",
17
17
  importName: "PigeonMaps",
18
18
  importPath: modulePath,
@@ -95,7 +95,7 @@ function PigeonMaps(_ref) {
95
95
  width: 50,
96
96
  anchor: [latitude, longitude],
97
97
  style: {
98
- filter: 'none'
98
+ filter: "none"
99
99
  }
100
100
  })));
101
101
  }
@@ -1 +1 @@
1
- {"version":3,"file":"plasmic-pigeon-maps.esm.js","sources":["../src/pigeon.tsx","../src/index.tsx"],"sourcesContent":["import { CodeComponentMeta } from \"@plasmicapp/host\";\nimport { Map, Marker } from \"pigeon-maps\";\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-pigeon-maps\";\n\ninterface PigeonMapsProps {\n provider?: string;\n latitude?: number;\n longitude?: number;\n zoomLevel?: number;\n width?: number;\n height?: number;\n animate?: boolean;\n zoomSnap?: boolean;\n metaWheelZoom?: boolean;\n twoFingerDrag?: boolean;\n className?: string;\n}\n\nexport const PigeonMapsMeta: CodeComponentMeta<PigeonMapsProps> = {\n name: \"PigeonMaps\",\n displayName: \"Pigeon Maps\",\n importName: \"PigeonMaps\",\n importPath: modulePath,\n providesData: true,\n defaultStyles: {\n width: \"400px\",\n height: \"600px\",\n },\n props: {\n latitude: {\n type: \"number\",\n displayName: \"Latitude\",\n description: \"Latitude\",\n defaultValue: 41.2825125,\n },\n longitude: {\n type: \"number\",\n displayName: \"Longitude\",\n description: \"Longitude\",\n defaultValue: 69.139281,\n },\n zoomLevel: {\n type: \"number\",\n displayName: \"Zoom\",\n description: \"Current zoom level [1...18]\",\n defaultValue: 10,\n },\n animate: {\n type: \"boolean\",\n displayName: \"Animations\",\n description: \"Animations enabled\",\n defaultValue: true,\n },\n zoomSnap: {\n type: \"boolean\",\n displayName: \"Zoom Snap\",\n description:\n \"Snap to discrete zoom increments (14, 15, 16, etc) when scrolling with the mouse or pinching with touch events\",\n defaultValue: true,\n },\n metaWheelZoom: {\n type: \"boolean\",\n displayName: \"Meta Wheel Zoom\",\n description:\n \"Zooming with the mouse wheel only works when you hold down the cmd or ctrl keys\",\n defaultValue: false,\n },\n twoFingerDrag: {\n type: \"boolean\",\n displayName: \"Two Finger Drag\",\n description: \"Moving the map requires touching with two fingers\",\n defaultValue: false,\n },\n },\n};\n\nexport function PigeonMaps({\n latitude,\n longitude,\n zoomLevel,\n animate,\n zoomSnap,\n metaWheelZoom,\n twoFingerDrag,\n className,\n}: PigeonMapsProps) {\n const [zoom, setZoom] = React.useState(zoomLevel);\n\n return (\n <div className={className}>\n <Map\n defaultCenter={[latitude!, longitude!]}\n zoom={zoom}\n animate={animate}\n zoomSnap={zoomSnap}\n onBoundsChanged={({ zoom }) => {\n setZoom(zoom);\n }}\n metaWheelZoom={metaWheelZoom}\n twoFingerDrag={twoFingerDrag}\n >\n <Marker width={50} anchor={[latitude!, longitude!]} style={{filter:'none'}}/>\n </Map>\n </div>\n );\n}\n","import registerComponent, {\n ComponentMeta,\n} from \"@plasmicapp/host/registerComponent\";\nimport registerGlobalContext from \"@plasmicapp/host/registerGlobalContext\";\nimport {\n PigeonMaps,\n PigeonMapsMeta\n} from \"./pigeon\";\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 _registerComponent(PigeonMaps, PigeonMapsMeta);\n }\n}\n\nexport * from \"./pigeon\";"],"names":["ensure","x","undefined","Error","modulePath","PigeonMapsMeta","name","displayName","importName","importPath","providesData","defaultStyles","width","height","props","latitude","type","description","defaultValue","longitude","zoomLevel","animate","zoomSnap","metaWheelZoom","twoFingerDrag","PigeonMaps","_ref","className","_React$useState","React","useState","zoom","setZoom","Map","defaultCenter","onBoundsChanged","_ref2","Marker","anchor","style","filter","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;IAgBxCC,cAAc,GAAuC;EAChEC,IAAI,EAAE,YAAY;EAClBC,WAAW,EAAE,aAAa;EAC1BC,UAAU,EAAE,YAAY;EACxBC,UAAU,EAAEL,UAAU;EACtBM,YAAY,EAAE,IAAI;EAClBC,aAAa,EAAE;IACbC,KAAK,EAAE,OAAO;IACdC,MAAM,EAAE;GACT;EACDC,KAAK,EAAE;IACLC,QAAQ,EAAE;MACRC,IAAI,EAAE,QAAQ;MACdT,WAAW,EAAE,UAAU;MACvBU,WAAW,EAAE,UAAU;MACvBC,YAAY,EAAE;KACf;IACDC,SAAS,EAAE;MACTH,IAAI,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SAAU,CAAC;IACtCY,IAAI,EAAEA,IAAI;IACVV,OAAO,EAAEA,OAAO;IAChBC,QAAQ,EAAEA,QAAQ;IAClBa,eAAe,EAAE,SAAAA,gBAAAC,KAAA;UAAGL,IAAI,GAAAK,KAAA,CAAJL,IAAI;MACtBC,OAAO,CAACD,IAAI,CAAC;KACd;IACDR,aAAa,EAAEA,aAAa;IAC5BC,aAAa,EAAEA;KAEfK,oBAACQ,MAAM;IAACzB,KAAK,EAAE,EAAE;IAAE0B,MAAM,EAAE,CAACvB,QAAS,EAAEI,SAAU,CAAC;IAAGoB,KAAK,EAAE;MAACC,MAAM,EAAC;;IAAU,CAC1E,CACF;AAEV;;SC1GgBC,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;EAED,IAAIH,MAAM,EAAE;IACVC,kBAAkB,CAAClB,UAAU,EAAEpB,cAAc,CAAC;;AAElD;;;;"}
1
+ {"version":3,"file":"plasmic-pigeon-maps.esm.js","sources":["../src/pigeon.tsx","../src/index.tsx"],"sourcesContent":["import { CodeComponentMeta } from \"@plasmicapp/host\";\nimport { Map, Marker } from \"pigeon-maps\";\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-pigeon-maps\";\n\ninterface PigeonMapsProps {\n provider?: string;\n latitude?: number;\n longitude?: number;\n zoomLevel?: number;\n width?: number;\n height?: number;\n animate?: boolean;\n zoomSnap?: boolean;\n metaWheelZoom?: boolean;\n twoFingerDrag?: boolean;\n className?: string;\n}\n\nexport const PigeonMapsMeta: CodeComponentMeta<PigeonMapsProps> = {\n name: \"hostless-pigeon-maps\",\n displayName: \"Pigeon Maps\",\n importName: \"PigeonMaps\",\n importPath: modulePath,\n providesData: true,\n defaultStyles: {\n width: \"400px\",\n height: \"600px\",\n },\n props: {\n latitude: {\n type: \"number\",\n displayName: \"Latitude\",\n description: \"Latitude\",\n defaultValue: 41.2825125,\n },\n longitude: {\n type: \"number\",\n displayName: \"Longitude\",\n description: \"Longitude\",\n defaultValue: 69.139281,\n },\n zoomLevel: {\n type: \"number\",\n displayName: \"Zoom\",\n description: \"Current zoom level [1...18]\",\n defaultValue: 10,\n },\n animate: {\n type: \"boolean\",\n displayName: \"Animations\",\n description: \"Animations enabled\",\n defaultValue: true,\n },\n zoomSnap: {\n type: \"boolean\",\n displayName: \"Zoom Snap\",\n description:\n \"Snap to discrete zoom increments (14, 15, 16, etc) when scrolling with the mouse or pinching with touch events\",\n defaultValue: true,\n },\n metaWheelZoom: {\n type: \"boolean\",\n displayName: \"Meta Wheel Zoom\",\n description:\n \"Zooming with the mouse wheel only works when you hold down the cmd or ctrl keys\",\n defaultValue: false,\n },\n twoFingerDrag: {\n type: \"boolean\",\n displayName: \"Two Finger Drag\",\n description: \"Moving the map requires touching with two fingers\",\n defaultValue: false,\n },\n },\n};\n\nexport function PigeonMaps({\n latitude,\n longitude,\n zoomLevel,\n animate,\n zoomSnap,\n metaWheelZoom,\n twoFingerDrag,\n className,\n}: PigeonMapsProps) {\n const [zoom, setZoom] = React.useState(zoomLevel);\n\n return (\n <div className={className}>\n <Map\n defaultCenter={[latitude!, longitude!]}\n zoom={zoom}\n animate={animate}\n zoomSnap={zoomSnap}\n onBoundsChanged={({ zoom }) => {\n setZoom(zoom);\n }}\n metaWheelZoom={metaWheelZoom}\n twoFingerDrag={twoFingerDrag}\n >\n <Marker\n width={50}\n anchor={[latitude!, longitude!]}\n style={{ filter: \"none\" }}\n />\n </Map>\n </div>\n );\n}\n","import registerComponent, {\n ComponentMeta,\n} from \"@plasmicapp/host/registerComponent\";\nimport registerGlobalContext from \"@plasmicapp/host/registerGlobalContext\";\nimport {\n PigeonMaps,\n PigeonMapsMeta\n} from \"./pigeon\";\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 _registerComponent(PigeonMaps, PigeonMapsMeta);\n }\n}\n\nexport * from \"./pigeon\";"],"names":["ensure","x","undefined","Error","modulePath","PigeonMapsMeta","name","displayName","importName","importPath","providesData","defaultStyles","width","height","props","latitude","type","description","defaultValue","longitude","zoomLevel","animate","zoomSnap","metaWheelZoom","twoFingerDrag","PigeonMaps","_ref","className","_React$useState","React","useState","zoom","setZoom","Map","defaultCenter","onBoundsChanged","_ref2","Marker","anchor","style","filter","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;IAgBxCC,cAAc,GAAuC;EAChEC,IAAI,EAAE,sBAAsB;EAC5BC,WAAW,EAAE,aAAa;EAC1BC,UAAU,EAAE,YAAY;EACxBC,UAAU,EAAEL,UAAU;EACtBM,YAAY,EAAE,IAAI;EAClBC,aAAa,EAAE;IACbC,KAAK,EAAE,OAAO;IACdC,MAAM,EAAE;GACT;EACDC,KAAK,EAAE;IACLC,QAAQ,EAAE;MACRC,IAAI,EAAE,QAAQ;MACdT,WAAW,EAAE,UAAU;MACvBU,WAAW,EAAE,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A;KACdE,oBAACI,GAAG;IACFC,aAAa,EAAE,CAACnB,QAAS,EAAEI,SAAU,CAAC;IACtCY,IAAI,EAAEA,IAAI;IACVV,OAAO,EAAEA,OAAO;IAChBC,QAAQ,EAAEA,QAAQ;IAClBa,eAAe,EAAE,SAAAA,gBAAAC,KAAA;UAAGL,IAAI,GAAAK,KAAA,CAAJL,IAAI;MACtBC,OAAO,CAACD,IAAI,CAAC;KACd;IACDR,aAAa,EAAEA,aAAa;IAC5BC,aAAa,EAAEA;KAEfK,oBAACQ,MAAM;IACLzB,KAAK,EAAE,EAAE;IACT0B,MAAM,EAAE,CAACvB,QAAS,EAAEI,SAAU,CAAC;IAC/BoB,KAAK,EAAE;MAAEC,MAAM,EAAE;;IACjB,CACE,CACF;AAEV;;SC9GgBC,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;EAED,IAAIH,MAAM,EAAE;IACVC,kBAAkB,CAAClB,UAAU,EAAEpB,cAAc,CAAC;;AAElD;;;;"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@plasmicpkgs/plasmic-pigeon-maps",
3
- "version": "0.0.13",
3
+ "version": "0.0.15",
4
4
  "description": "Plasmic Pigeon 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.183",
37
+ "@plasmicapp/host": "1.0.184",
38
38
  "@size-limit/preset-small-lib": "^7.0.8",
39
39
  "@types/dlv": "^1.1.2",
40
40
  "@types/react": "^18.0.27",
@@ -51,5 +51,5 @@
51
51
  "dlv": "^1.1.3",
52
52
  "pigeon-maps": "^0.21.3"
53
53
  },
54
- "gitHead": "13917fb48cac3563effd4fc5022009230ab0a25f"
54
+ "gitHead": "1cbb80cf68d9e7307ee7723ecd79ccfe206752a0"
55
55
  }