@plasmicpkgs/plasmic-pigeon-maps 0.0.67 → 0.0.69
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-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
|
|
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 CodeComponentMeta,\n} from \"@plasmicapp/host/registerComponent\";\nimport registerGlobalContext from \"@plasmicapp/host/registerGlobalContext\";\nimport { PigeonMaps, PigeonMapsMeta } from \"./pigeon\";\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(PigeonMaps, PigeonMapsMeta);\n}\n\nexport * from \"./pigeon\";\n"],"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,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,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,iBAAM;IACLzB,KAAK,EAAE,EAAE;IACT0B,MAAM,EAAE,CAACvB,QAAS,EAAEI,SAAU,CAAC;IAC/BoB,KAAK,EAAE;MAAEC,MAAM,EAAE;;IACjB,CACE,CACF;AAEV;;SClHgBC,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,CAAClB,UAAU,EAAEpB,cAAc,CAAC;AAChD;;;;;;;"}
|
|
@@ -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: \"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
|
|
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 CodeComponentMeta,\n} from \"@plasmicapp/host/registerComponent\";\nimport registerGlobalContext from \"@plasmicapp/host/registerGlobalContext\";\nimport { PigeonMaps, PigeonMapsMeta } from \"./pigeon\";\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(PigeonMaps, PigeonMapsMeta);\n}\n\nexport * from \"./pigeon\";\n"],"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,gCCHiBE,GAI1B,IACEC,EACAC,EADAD,EAUiBnB,EATjBoB,EAS6BxC,EAPzBsC,EACFA,EAAOG,kBAAkBF,EAAWC,GAEpCC,EAAkBF,EAAWC"}
|
|
@@ -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: \"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
|
|
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 CodeComponentMeta,\n} from \"@plasmicapp/host/registerComponent\";\nimport registerGlobalContext from \"@plasmicapp/host/registerGlobalContext\";\nimport { PigeonMaps, PigeonMapsMeta } from \"./pigeon\";\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(PigeonMaps, PigeonMapsMeta);\n}\n\nexport * from \"./pigeon\";\n"],"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,EAAE,MAAM;MACnBU,WAAW,EAAE,6BAA6B;MAC1CC,YAAY,EAAE;KACf;IACDG,OAAO,EAAE;MACPL,IAAI,EAAE,SAAS;MACfT,WAAW,EAAE,YAAY;MACzBU,WAAW,EAAE,oBAAoB;MACjCC,YAAY,EAAE;KACf;IACDI,QAAQ,EAAE;MACRN,IAAI,EAAE,SAAS;MACfT,WA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AAEC,MAAM,EAAE;;IACjB,CACE,CACF;AAEV;;SClHgBC,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,CAAClB,UAAU,EAAEpB,cAAc,CAAC;AAChD;;;;"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@plasmicpkgs/plasmic-pigeon-maps",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.69",
|
|
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.
|
|
37
|
+
"@plasmicapp/host": "1.0.235",
|
|
38
38
|
"@types/dlv": "^1.1.2",
|
|
39
39
|
"@types/react": "^18.0.27",
|
|
40
40
|
"@types/react-dom": "^18.0.10",
|
|
@@ -49,5 +49,5 @@
|
|
|
49
49
|
"dlv": "^1.1.3",
|
|
50
50
|
"pigeon-maps": "^0.21.3"
|
|
51
51
|
},
|
|
52
|
-
"gitHead": "
|
|
52
|
+
"gitHead": "380a91b2e7eac342c9b2ddafdacd84b4a812b795"
|
|
53
53
|
}
|