@redneckz/wildless-cms-uni-blocks 0.14.307 → 0.14.308
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/bundle/bundle.umd.js +4 -4
- package/bundle/bundle.umd.min.js +1 -1
- package/bundle/ui-kit/YandexMap/renderUserGeolocation.d.ts +3 -1
- package/dist/ui-kit/YandexMap/YandexMap.js +2 -2
- package/dist/ui-kit/YandexMap/YandexMap.js.map +1 -1
- package/dist/ui-kit/YandexMap/renderUserGeolocation.d.ts +3 -1
- package/dist/ui-kit/YandexMap/renderUserGeolocation.js +1 -1
- package/dist/ui-kit/YandexMap/renderUserGeolocation.js.map +1 -1
- package/lib/ui-kit/YandexMap/YandexMap.js +2 -2
- package/lib/ui-kit/YandexMap/YandexMap.js.map +1 -1
- package/lib/ui-kit/YandexMap/renderUserGeolocation.d.ts +3 -1
- package/lib/ui-kit/YandexMap/renderUserGeolocation.js +1 -1
- package/lib/ui-kit/YandexMap/renderUserGeolocation.js.map +1 -1
- package/mobile/bundle/bundle.umd.js +4 -4
- package/mobile/bundle/bundle.umd.min.js +1 -1
- package/mobile/bundle/ui-kit/YandexMap/renderUserGeolocation.d.ts +3 -1
- package/mobile/dist/ui-kit/YandexMap/YandexMap.js +2 -2
- package/mobile/dist/ui-kit/YandexMap/YandexMap.js.map +1 -1
- package/mobile/dist/ui-kit/YandexMap/renderUserGeolocation.d.ts +3 -1
- package/mobile/dist/ui-kit/YandexMap/renderUserGeolocation.js +1 -1
- package/mobile/dist/ui-kit/YandexMap/renderUserGeolocation.js.map +1 -1
- package/mobile/lib/ui-kit/YandexMap/YandexMap.js +2 -2
- package/mobile/lib/ui-kit/YandexMap/YandexMap.js.map +1 -1
- package/mobile/lib/ui-kit/YandexMap/renderUserGeolocation.d.ts +3 -1
- package/mobile/lib/ui-kit/YandexMap/renderUserGeolocation.js +1 -1
- package/mobile/lib/ui-kit/YandexMap/renderUserGeolocation.js.map +1 -1
- package/mobile/src/ui-kit/YandexMap/YandexMap.tsx +2 -2
- package/mobile/src/ui-kit/YandexMap/renderUserGeolocation.tsx +4 -2
- package/package.json +1 -1
- package/src/ui-kit/YandexMap/YandexMap.tsx +2 -2
- package/src/ui-kit/YandexMap/renderUserGeolocation.tsx +4 -2
|
@@ -1,3 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import type ymaps from 'yandex-maps';
|
|
3
|
-
export declare const renderUserGeolocation: (map:
|
|
3
|
+
export declare const renderUserGeolocation: (map: {
|
|
4
|
+
current: ymaps.Map;
|
|
5
|
+
}, yandexMaps: typeof ymaps, className: string) => JSX.Element;
|
|
@@ -40,12 +40,12 @@ exports.YandexMap = (0, uni_jsx_1.JSX)(({ points, className = '', zoom = 5 }) =>
|
|
|
40
40
|
map.current.setCenter(DEFAULT_CENTER_COORDS);
|
|
41
41
|
}
|
|
42
42
|
}
|
|
43
|
-
}, [yandexMaps,
|
|
43
|
+
}, [yandexMaps, points, zoom]);
|
|
44
44
|
if (!yandexMaps) {
|
|
45
45
|
return null;
|
|
46
46
|
}
|
|
47
47
|
const zIndex = 'z-10';
|
|
48
|
-
return ((0, jsx_runtime_1.jsxs)("div", { id: "map", className: (0, style_1.style)('relative', 'w-full', className), children: [(0, jsx_runtime_1.jsxs)("div", { className: (0, style_1.style)('absolute right-2 top-52 z-10 w-12 overflow-hidden border border-transparent rounded-md', zIndex), children: [(0, jsx_runtime_1.jsx)(ZoomButton_1.ZoomButton, { yandexMaps: map }), (0, jsx_runtime_1.jsx)(ZoomButton_1.ZoomButton, { yandexMaps: map, direction: "out" })] }), (0, renderUserGeolocation_1.renderUserGeolocation)(map
|
|
48
|
+
return ((0, jsx_runtime_1.jsxs)("div", { id: "map", className: (0, style_1.style)('relative', 'w-full', className), children: [(0, jsx_runtime_1.jsxs)("div", { className: (0, style_1.style)('absolute right-2 top-52 z-10 w-12 overflow-hidden border border-transparent rounded-md', zIndex), children: [(0, jsx_runtime_1.jsx)(ZoomButton_1.ZoomButton, { yandexMaps: map }), (0, jsx_runtime_1.jsx)(ZoomButton_1.ZoomButton, { yandexMaps: map, direction: "out" })] }), (0, renderUserGeolocation_1.renderUserGeolocation)(map, yandexMaps, (0, style_1.style)('right-2 top-80', zIndex))] }));
|
|
49
49
|
});
|
|
50
50
|
const getCenterPoint = (points) => [
|
|
51
51
|
getArraySumAndAverage(mapByIndex(points, 0)),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"YandexMap.js","sourceRoot":"","sources":["../../../src/ui-kit/YandexMap/YandexMap.tsx"],"names":[],"mappings":";;;AAAA,6DAA6D;AAC7D,cAAc;AACd,+CAAwC;AACxC,uDAAgE;AAGhE,6CAA0C;AAC1C,uDAAoD;AACpD,mEAAgE;AAChE,mDAAgD;AAChD,6CAA0C;AAQ1C,MAAM,qBAAqB,GAAG,CAAC,SAAS,EAAE,SAAS,CAAC,CAAC;AAErD,oHAAoH;AACpH,sDAAsD;AACtD,0DAA0D;AAC1D,6EAA6E;AAChE,QAAA,SAAS,GAAG,IAAA,aAAG,EAAiB,CAAC,EAAE,MAAM,EAAE,SAAS,GAAG,EAAE,EAAE,IAAI,GAAG,CAAC,EAAE,EAAE,EAAE;IACpF,MAAM,GAAG,GAAG,IAAA,cAAM,EAAmB,IAAI,CAAC,CAAC;IAE3C,MAAM,UAAU,GAAG,IAAA,6BAAa,GAAE,CAAC;IAEnC,IAAA,iBAAS,EAAC,GAAG,EAAE;QACb,IAAI,CAAC,GAAG,EAAE,OAAO,EAAE;YACjB,UAAU,EAAE,KAAK,CAAC,GAAG,EAAE;gBACrB,kEAAkE;gBAClE,IAAI,GAAG,CAAC,OAAO,EAAE;oBACf,OAAO;iBACR;gBAED,GAAG,CAAC,OAAO,GAAG,IAAI,UAAU,CAAC,GAAG,CAAC,KAAK,EAAE;oBACtC,MAAM,EAAE,MAAM,CAAC,CAAC,CAAC,cAAc,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,qBAAqB;oBAC/D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GAAG,CAAC,MAAuB,EAAE,EAAE,CAAC;IAClD,qBAAqB,CAAC,UAAU,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC;IAC5C,qBAAqB,CAAC,UAAU,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC;CAC7C,CAAC;AAEF,MAAM,UAAU,GAAG,CAAC,MAAuB,EAAE,KAAa,EAAE,EAAE,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC;AAElG,MAAM,qBAAqB,GAAG,CAAC,GAAa,EAAE,EAAE,CAC9C,GAAG,CAAC,MAAM,IAAI,GAAG,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,GAAG,CAAC,CAAC,GAAG,GAAG,CAAC,MAAM,CAAC"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import type ymaps from 'yandex-maps';
|
|
3
|
-
export declare const renderUserGeolocation: (map:
|
|
3
|
+
export declare const renderUserGeolocation: (map: {
|
|
4
|
+
current: ymaps.Map;
|
|
5
|
+
}, yandexMaps: typeof ymaps, className: string) => JSX.Element;
|
|
@@ -21,7 +21,7 @@ const renderUserGeolocation = (map, yandexMaps, className) => {
|
|
|
21
21
|
mapStateAutoApply: true,
|
|
22
22
|
})
|
|
23
23
|
.then(function (result) {
|
|
24
|
-
map.geoObjects.add(result.geoObjects);
|
|
24
|
+
map.current.geoObjects.add(result.geoObjects);
|
|
25
25
|
});
|
|
26
26
|
};
|
|
27
27
|
return ((0, jsx_runtime_1.jsx)("div", { className: `select-none cursor-pointer py-m w-12 bg-white ${Object.values(styles).join(' ')} ${className}`, onClick: setUserGeoLocation, children: (0, jsx_runtime_1.jsx)(Icon_1.Icon, { name: "UserGeoLocationIcon", width: "20", height: "16" }) }));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"renderUserGeolocation.js","sourceRoot":"","sources":["../../../src/ui-kit/YandexMap/renderUserGeolocation.tsx"],"names":[],"mappings":";;;AAEA,uCAAoC;AAEpC,MAAM,MAAM,GAAG;IACb,KAAK,EAAE,wCAAwC;IAC/C,KAAK,EAAE,wBAAwB;IAC/B,MAAM,EAAE,0BAA0B;IAClC,MAAM,EAAE,sCAAsC;IAC9C,QAAQ,EAAE,2CAA2C;IACrD,IAAI,EAAE,uBAAuB;CAC9B,CAAC;AAEK,MAAM,qBAAqB,GAAG,CACnC,
|
|
1
|
+
{"version":3,"file":"renderUserGeolocation.js","sourceRoot":"","sources":["../../../src/ui-kit/YandexMap/renderUserGeolocation.tsx"],"names":[],"mappings":";;;AAEA,uCAAoC;AAEpC,MAAM,MAAM,GAAG;IACb,KAAK,EAAE,wCAAwC;IAC/C,KAAK,EAAE,wBAAwB;IAC/B,MAAM,EAAE,0BAA0B;IAClC,MAAM,EAAE,sCAAsC;IAC9C,QAAQ,EAAE,2CAA2C;IACrD,IAAI,EAAE,uBAAuB;CAC9B,CAAC;AAEK,MAAM,qBAAqB,GAAG,CACnC,GAEC,EACD,UAAwB,EACxB,SAAiB,EACjB,EAAE;IACF,MAAM,kBAAkB,GAAG,GAAG,EAAE;QAC9B,6DAA6D;QAC7D,aAAa;QACb,UAAU,CAAC,WAAW;aACnB,GAAG,CAAC;YACH,QAAQ,EAAE,QAAQ;YAClB,kBAAkB,EAAE,IAAI;YACxB,iBAAiB,EAAE,IAAI;SACxB,CAAC;aACD,IAAI,CAAC,UAAU,MAAM;YACpB,GAAG,CAAC,OAAO,CAAC,UAAU,CAAC,GAAG,CAAC,MAAM,CAAC,UAAU,CAAC,CAAC;QAChD,CAAC,CAAC,CAAC;IACP,CAAC,CAAC;IAEF,OAAO,CACL,gCACE,SAAS,EAAE,iDAAiD,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC,IAAI,CACpF,GAAG,CACJ,IAAI,SAAS,EAAE,EAChB,OAAO,EAAE,kBAAkB,YAE3B,uBAAC,WAAI,IAAC,IAAI,EAAC,qBAAqB,EAAC,KAAK,EAAC,IAAI,EAAC,MAAM,EAAC,IAAI,GAAG,GACtD,CACP,CAAC;AACJ,CAAC,CAAC;AA/BW,QAAA,qBAAqB,yBA+BhC"}
|
|
@@ -38,12 +38,12 @@ export const YandexMap = JSX(({ points, className = '', zoom = 5 }) => {
|
|
|
38
38
|
map.current.setCenter(DEFAULT_CENTER_COORDS);
|
|
39
39
|
}
|
|
40
40
|
}
|
|
41
|
-
}, [yandexMaps,
|
|
41
|
+
}, [yandexMaps, points, zoom]);
|
|
42
42
|
if (!yandexMaps) {
|
|
43
43
|
return null;
|
|
44
44
|
}
|
|
45
45
|
const zIndex = 'z-10';
|
|
46
|
-
return (_jsxs("div", { id: "map", className: style('relative', 'w-full', className), children: [_jsxs("div", { className: style('absolute right-2 top-52 z-10 w-12 overflow-hidden border border-transparent rounded-md', zIndex), children: [_jsx(ZoomButton, { yandexMaps: map }), _jsx(ZoomButton, { yandexMaps: map, direction: "out" })] }), renderUserGeolocation(map
|
|
46
|
+
return (_jsxs("div", { id: "map", className: style('relative', 'w-full', className), children: [_jsxs("div", { className: style('absolute right-2 top-52 z-10 w-12 overflow-hidden border border-transparent rounded-md', zIndex), children: [_jsx(ZoomButton, { yandexMaps: map }), _jsx(ZoomButton, { yandexMaps: map, direction: "out" })] }), renderUserGeolocation(map, yandexMaps, style('right-2 top-80', zIndex))] }));
|
|
47
47
|
});
|
|
48
48
|
const getCenterPoint = (points) => [
|
|
49
49
|
getArraySumAndAverage(mapByIndex(points, 0)),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"YandexMap.js","sourceRoot":"","sources":["../../../src/ui-kit/YandexMap/YandexMap.tsx"],"names":[],"mappings":";AAAA,6DAA6D;AAC7D,cAAc;AACd,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AACxC,OAAO,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,6BA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U,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC;IAC5C,qBAAqB,CAAC,UAAU,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC;CAC7C,CAAC;AAEF,MAAM,UAAU,GAAG,CAAC,MAAuB,EAAE,KAAa,EAAE,EAAE,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC;AAElG,MAAM,qBAAqB,GAAG,CAAC,GAAa,EAAE,EAAE,CAC9C,GAAG,CAAC,MAAM,IAAI,GAAG,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,GAAG,CAAC,CAAC,GAAG,GAAG,CAAC,MAAM,CAAC"}
|
|
@@ -1,2 +1,4 @@
|
|
|
1
1
|
import type ymaps from 'yandex-maps';
|
|
2
|
-
export declare const renderUserGeolocation: (map:
|
|
2
|
+
export declare const renderUserGeolocation: (map: {
|
|
3
|
+
current: ymaps.Map;
|
|
4
|
+
}, yandexMaps: typeof ymaps, className: string) => JSX.Element;
|
|
@@ -19,7 +19,7 @@ export const renderUserGeolocation = (map, yandexMaps, className) => {
|
|
|
19
19
|
mapStateAutoApply: true,
|
|
20
20
|
})
|
|
21
21
|
.then(function (result) {
|
|
22
|
-
map.geoObjects.add(result.geoObjects);
|
|
22
|
+
map.current.geoObjects.add(result.geoObjects);
|
|
23
23
|
});
|
|
24
24
|
};
|
|
25
25
|
return (_jsx("div", { className: `select-none cursor-pointer py-m w-12 bg-white ${Object.values(styles).join(' ')} ${className}`, onClick: setUserGeoLocation, children: _jsx(Icon, { name: "UserGeoLocationIcon", width: "20", height: "16" }) }));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"renderUserGeolocation.js","sourceRoot":"","sources":["../../../src/ui-kit/YandexMap/renderUserGeolocation.tsx"],"names":[],"mappings":";AAEA,OAAO,EAAE,IAAI,EAAE,MAAM,cAAc,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AAC,qBAAqB,EAAC,KAAK,EAAC,IAAI,EAAC,MAAM,EAAC,IAAI,GAAG,GACtD,CACP,CAAC;AACJ,CAAC,CAAC"}
|
|
@@ -4143,7 +4143,7 @@
|
|
|
4143
4143
|
mapStateAutoApply: true,
|
|
4144
4144
|
})
|
|
4145
4145
|
.then(function (result) {
|
|
4146
|
-
map.geoObjects.add(result.geoObjects);
|
|
4146
|
+
map.current.geoObjects.add(result.geoObjects);
|
|
4147
4147
|
});
|
|
4148
4148
|
};
|
|
4149
4149
|
return (jsx("div", { className: `select-none cursor-pointer py-m w-12 bg-white ${Object.values(styles$1).join(' ')} ${className}`, onClick: setUserGeoLocation, children: jsx(Icon, { name: "UserGeoLocationIcon", width: "20", height: "16" }) }));
|
|
@@ -4263,12 +4263,12 @@
|
|
|
4263
4263
|
map.current.setCenter(DEFAULT_CENTER_COORDS);
|
|
4264
4264
|
}
|
|
4265
4265
|
}
|
|
4266
|
-
}, [yandexMaps,
|
|
4266
|
+
}, [yandexMaps, points, zoom]);
|
|
4267
4267
|
if (!yandexMaps) {
|
|
4268
4268
|
return null;
|
|
4269
4269
|
}
|
|
4270
4270
|
const zIndex = 'z-10';
|
|
4271
|
-
return (jsxs("div", { id: "map", className: style('relative', 'w-full', className), children: [jsxs("div", { className: style('absolute right-2 top-52 z-10 w-12 overflow-hidden border border-transparent rounded-md', zIndex), children: [jsx(ZoomButton, { yandexMaps: map }), jsx(ZoomButton, { yandexMaps: map, direction: "out" })] }), renderUserGeolocation(map
|
|
4271
|
+
return (jsxs("div", { id: "map", className: style('relative', 'w-full', className), children: [jsxs("div", { className: style('absolute right-2 top-52 z-10 w-12 overflow-hidden border border-transparent rounded-md', zIndex), children: [jsx(ZoomButton, { yandexMaps: map }), jsx(ZoomButton, { yandexMaps: map, direction: "out" })] }), renderUserGeolocation(map, yandexMaps, style('right-2 top-80', zIndex))] }));
|
|
4272
4272
|
});
|
|
4273
4273
|
const getCenterPoint = (points) => [
|
|
4274
4274
|
getArraySumAndAverage(mapByIndex(points, 0)),
|
|
@@ -5701,7 +5701,7 @@
|
|
|
5701
5701
|
slots: () => [HEADER_SLOT, FOOTER_SLOT, STICKY_FOOTER_SLOT],
|
|
5702
5702
|
});
|
|
5703
5703
|
|
|
5704
|
-
const packageVersion = "0.14.
|
|
5704
|
+
const packageVersion = "0.14.307";
|
|
5705
5705
|
|
|
5706
5706
|
exports.Blocks = Blocks;
|
|
5707
5707
|
exports.ContentPage = ContentPage;
|