@rankingcoach/vanguard 1.12.2 → 1.13.0
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/dist/index-AdvancedMarker.js +235 -0
- package/dist/index-Autocomplete.js +62 -62
- package/dist/index-DateRange.js +1 -1
- package/dist/index-GoogleMaps.js +42 -36
- package/dist/index-GoogleMapsAdvancedMarker.js +64 -0
- package/dist/index-GoogleMapsAdvancedMarkerContent.js +41 -0
- package/dist/index-Parser2.js +3 -2
- package/dist/index-_virtual10.js +5 -3
- package/dist/index-_virtual11.js +5 -5
- package/dist/index-_virtual12.js +3 -5
- package/dist/index-cjs.js +1 -1
- package/dist/index-lib5.js +1 -1
- package/dist/index-map-context.js +12 -0
- package/dist/index-map-helper.js +38 -0
- package/dist/index-tiny-invariant.js +12 -0
- package/dist/index-video.es.js +2 -2
- package/dist/index.js +425 -418
- package/dist/types/core/Autocomplete/stories/WithMultiple.story.d.ts +0 -4
- package/dist/types/core/GoogleMaps/GoogleMaps.d.ts +2 -1
- package/dist/types/core/GoogleMaps/GoogleMapsAdvancedMarker/GoogleMapsAdvancedMarker.d.ts +55 -0
- package/dist/types/core/GoogleMaps/GoogleMapsAdvancedMarker/GoogleMapsAdvancedMarkerContent.d.ts +41 -0
- package/dist/types/core/GoogleMaps/index.d.ts +6 -0
- package/dist/types/core/GoogleMaps/map-context.d.ts +1 -1
- package/dist/types/core/GoogleMaps/stories/WithAdvancedMarker.story.d.ts +2 -0
- package/dist/types/core/GoogleMaps/stories/WithAdvancedMarkerCustomIcon.story.d.ts +2 -0
- package/dist/types/core/GoogleMaps/stories/WithAdvancedMarkerHTML.story.d.ts +2 -0
- package/dist/types/core/GoogleMaps/stories/WithMapIdAndMarkers.story.d.ts +2 -0
- package/dist/types/core/GoogleMaps/stories/WithMarkerInfoBox.story.d.ts +2 -0
- package/dist/types/core/GoogleMaps/stories/WithMultipleAdvancedMarkers.story.d.ts +2 -0
- package/dist/types/core/GoogleMaps/stories/WithMultipleMarkers.story.d.ts +2 -0
- package/dist/types/core/GoogleMaps/stories/WithSingleMarker.story.d.ts +2 -0
- package/dist/types/index.d.ts +6 -0
- package/dist/vanguard-asset-analysis.json +1 -1
- package/dist-wordpress/index.js +18553 -19223
- package/dist-wordpress/types/index.d.ts +0 -2
- package/dist-wordpress/vanguard.css +1 -1
- package/package.json +4 -4
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { jsx as e, jsxs as o } from "react/jsx-runtime";
|
|
2
|
+
import "react";
|
|
3
|
+
const s = ({
|
|
4
|
+
icon: t,
|
|
5
|
+
size: r = {
|
|
6
|
+
x: 28,
|
|
7
|
+
y: 35
|
|
8
|
+
},
|
|
9
|
+
color: l = "#EA4335"
|
|
10
|
+
}) => t ? e("img", {
|
|
11
|
+
src: t,
|
|
12
|
+
alt: "marker",
|
|
13
|
+
draggable: !1,
|
|
14
|
+
style: {
|
|
15
|
+
width: `${r.x}px`,
|
|
16
|
+
height: `${r.y}px`,
|
|
17
|
+
cursor: "pointer",
|
|
18
|
+
userSelect: "none"
|
|
19
|
+
}
|
|
20
|
+
}) : o("svg", {
|
|
21
|
+
width: r.x,
|
|
22
|
+
height: r.y,
|
|
23
|
+
viewBox: "0 0 24 35",
|
|
24
|
+
fill: "none",
|
|
25
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
26
|
+
style: {
|
|
27
|
+
cursor: "pointer"
|
|
28
|
+
},
|
|
29
|
+
children: [e("path", {
|
|
30
|
+
d: "M12 0C5.4 0 0 5.4 0 12c0 8 12 23 12 23s12-15 12-23c0-6.6-5.4-12-12-12z",
|
|
31
|
+
fill: l
|
|
32
|
+
}), e("circle", {
|
|
33
|
+
cx: "12",
|
|
34
|
+
cy: "12",
|
|
35
|
+
r: "4",
|
|
36
|
+
fill: "white"
|
|
37
|
+
})]
|
|
38
|
+
});
|
|
39
|
+
export {
|
|
40
|
+
s as GoogleMapsAdvancedMarkerContent
|
|
41
|
+
};
|
package/dist/index-Parser2.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import S, { QuoteType as u } from "./index-Tokenizer.js";
|
|
2
|
+
import "./index-decode.js";
|
|
2
3
|
import { fromCodePoint as p } from "./index-decode_codepoint.js";
|
|
3
4
|
const f = /* @__PURE__ */ new Set([
|
|
4
5
|
"input",
|
|
@@ -87,7 +88,7 @@ const f = /* @__PURE__ */ new Set([
|
|
|
87
88
|
"desc",
|
|
88
89
|
"title"
|
|
89
90
|
]), I = /\s|\//;
|
|
90
|
-
class
|
|
91
|
+
class y {
|
|
91
92
|
constructor(t, e = {}) {
|
|
92
93
|
var s, i, o, h, a;
|
|
93
94
|
this.options = e, this.startIndex = 0, this.endIndex = 0, this.openTagStart = 0, this.tagname = "", this.attribname = "", this.attribvalue = "", this.attribs = null, this.stack = [], this.foreignContext = [], this.buffers = [], this.bufferOffset = 0, this.writeIndex = 0, this.ended = !1, this.cbs = t ?? {}, this.lowerCaseTagNames = (s = e.lowerCaseTags) !== null && s !== void 0 ? s : !e.xmlMode, this.lowerCaseAttributeNames = (i = e.lowerCaseAttributeNames) !== null && i !== void 0 ? i : !e.xmlMode, this.tokenizer = new ((o = e.Tokenizer) !== null && o !== void 0 ? o : S)(this.options, this), (a = (h = this.cbs).onparserinit) === null || a === void 0 || a.call(h, this);
|
|
@@ -315,5 +316,5 @@ class E {
|
|
|
315
316
|
}
|
|
316
317
|
}
|
|
317
318
|
export {
|
|
318
|
-
|
|
319
|
+
y as Parser
|
|
319
320
|
};
|
package/dist/index-_virtual10.js
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
1
|
+
import { getDefaultExportFromCjs as e } from "./index-_commonjsHelpers.js";
|
|
2
|
+
import { __require as r } from "./index-keycode.js";
|
|
3
|
+
var o = r();
|
|
4
|
+
const m = /* @__PURE__ */ e(o);
|
|
3
5
|
export {
|
|
4
|
-
|
|
6
|
+
m as default
|
|
5
7
|
};
|
package/dist/index-_virtual11.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { getDefaultExportFromCjs as
|
|
2
|
-
import { __require as
|
|
3
|
-
var
|
|
4
|
-
const
|
|
1
|
+
import { getDefaultExportFromCjs as r } from "./index-_commonjsHelpers.js";
|
|
2
|
+
import { __require as o } from "./index-lib4.js";
|
|
3
|
+
var t = o();
|
|
4
|
+
const a = /* @__PURE__ */ r(t);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
a as default
|
|
7
7
|
};
|
package/dist/index-_virtual12.js
CHANGED
|
@@ -1,7 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
var t = o();
|
|
4
|
-
const a = /* @__PURE__ */ r(t);
|
|
1
|
+
import { __require as r } from "./index-dist4.js";
|
|
2
|
+
var i = r();
|
|
5
3
|
export {
|
|
6
|
-
|
|
4
|
+
i as d
|
|
7
5
|
};
|
package/dist/index-cjs.js
CHANGED
package/dist/index-lib5.js
CHANGED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { createContext as a, useContext as o } from "react";
|
|
2
|
+
import t from "./index-tiny-invariant.js";
|
|
3
|
+
const n = a(null);
|
|
4
|
+
function p() {
|
|
5
|
+
t(!!o, "useGoogleMap is React hook and requires React version 16.8+");
|
|
6
|
+
const e = o(n);
|
|
7
|
+
return t(!!e, "useGoogleMap needs a GoogleMap available up in the tree"), e;
|
|
8
|
+
}
|
|
9
|
+
export {
|
|
10
|
+
n as MapContext,
|
|
11
|
+
p as useGoogleMap
|
|
12
|
+
};
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
function f(e, n, r) {
|
|
2
|
+
return Object.keys(e).reduce((s, t) => n(s, e[t], t), r);
|
|
3
|
+
}
|
|
4
|
+
function g(e, n) {
|
|
5
|
+
Object.keys(e).forEach((r) => n(e[r], r));
|
|
6
|
+
}
|
|
7
|
+
function p(e, n, r, s) {
|
|
8
|
+
const t = {};
|
|
9
|
+
return g(e, (o, u) => {
|
|
10
|
+
const c = r[u];
|
|
11
|
+
c !== n[u] && (t[u] = c, o(s, c));
|
|
12
|
+
}), t;
|
|
13
|
+
}
|
|
14
|
+
function d(e, n, r) {
|
|
15
|
+
return f(r, (t, i, o) => (typeof e[o] == "function" && t.push(google.maps.event.addListener(n, i, e[o])), t), []);
|
|
16
|
+
}
|
|
17
|
+
function a(e) {
|
|
18
|
+
google.maps.event.removeListener(e);
|
|
19
|
+
}
|
|
20
|
+
function v(e = []) {
|
|
21
|
+
e.forEach(a);
|
|
22
|
+
}
|
|
23
|
+
function E({
|
|
24
|
+
updaterMap: e,
|
|
25
|
+
eventMap: n,
|
|
26
|
+
prevProps: r,
|
|
27
|
+
nextProps: s,
|
|
28
|
+
instance: t
|
|
29
|
+
}) {
|
|
30
|
+
const i = d(s, t, n);
|
|
31
|
+
return p(e, r, s, t), i;
|
|
32
|
+
}
|
|
33
|
+
export {
|
|
34
|
+
p as applyUpdaterToNextProps,
|
|
35
|
+
E as applyUpdatersToPropsAndRegisterEvents,
|
|
36
|
+
d as registerEvents,
|
|
37
|
+
v as unregisterEvents
|
|
38
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
var a = process.env.NODE_ENV === "production", n = "Invariant failed";
|
|
2
|
+
function c(t, r) {
|
|
3
|
+
if (!t) {
|
|
4
|
+
if (a)
|
|
5
|
+
throw new Error(n);
|
|
6
|
+
var o = typeof r == "function" ? r() : r, i = o ? "".concat(n, ": ").concat(o) : n;
|
|
7
|
+
throw new Error(i);
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
export {
|
|
11
|
+
c as default
|
|
12
|
+
};
|
package/dist/index-video.es.js
CHANGED
|
@@ -4,8 +4,8 @@ import Rt from "./index-extends.js";
|
|
|
4
4
|
import Y from "./index-assertThisInitialized.js";
|
|
5
5
|
import V from "./index-inheritsLoose.js";
|
|
6
6
|
import Yd from "./index-tuple.js";
|
|
7
|
-
import J from "./index-
|
|
8
|
-
import po from "./index-
|
|
7
|
+
import J from "./index-_virtual10.js";
|
|
8
|
+
import po from "./index-_virtual11.js";
|
|
9
9
|
import ys from "./index-browser-index.js";
|
|
10
10
|
import Jd from "./index-construct.js";
|
|
11
11
|
import Zd from "./index-inherits.js";
|