@rpg-engine/shared 0.6.81 → 0.6.83
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":"deviceHelpers.d.ts","sourceRoot":"","sources":["../../src/helpers/deviceHelpers.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"deviceHelpers.d.ts","sourceRoot":"","sources":["../../src/helpers/deviceHelpers.ts"],"names":[],"mappings":"AAYA,eAAO,MAAM,gBAAgB,QAAO,OAEnC,CAAC;AAEF,eAAO,MAAM,QAAQ,QAAO,OAE3B,CAAC"}
|
|
@@ -1,16 +1,18 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.isMobile = exports.isMobileOrTablet = void 0;
|
|
4
|
+
const react_device_detect_1 = require("react-device-detect");
|
|
4
5
|
const isSmallerThanBreakpoint = (breakpoint) => {
|
|
5
6
|
const mql = window.matchMedia(`(max-width: ${breakpoint}) and (orientation: portrait), (max-height: ${breakpoint}) and (orientation: landscape)`);
|
|
6
7
|
return mql.matches;
|
|
7
8
|
};
|
|
8
9
|
const isMobileOrTablet = () => {
|
|
9
|
-
|
|
10
|
+
var _a;
|
|
11
|
+
return (_a = react_device_detect_1.isMobile !== null && react_device_detect_1.isMobile !== void 0 ? react_device_detect_1.isMobile : react_device_detect_1.isTablet) !== null && _a !== void 0 ? _a : isSmallerThanBreakpoint("767px");
|
|
10
12
|
};
|
|
11
13
|
exports.isMobileOrTablet = isMobileOrTablet;
|
|
12
14
|
const isMobile = () => {
|
|
13
|
-
return isSmallerThanBreakpoint("479px");
|
|
15
|
+
return react_device_detect_1.isMobile !== null && react_device_detect_1.isMobile !== void 0 ? react_device_detect_1.isMobile : isSmallerThanBreakpoint("479px");
|
|
14
16
|
};
|
|
15
17
|
exports.isMobile = isMobile;
|
|
16
18
|
//# sourceMappingURL=deviceHelpers.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"deviceHelpers.js","sourceRoot":"","sources":["../../src/helpers/deviceHelpers.ts"],"names":[],"mappings":";;;AAAA,MAAM,uBAAuB,GAAG,CAAC,UAAkB,EAAW,EAAE;IAC9D,MAAM,GAAG,GAAG,MAAM,CAAC,UAAU,CAC3B,eAAe,UAAU,+CAA+C,UAAU,gCAAgC,CACnH,CAAC;
|
|
1
|
+
{"version":3,"file":"deviceHelpers.js","sourceRoot":"","sources":["../../src/helpers/deviceHelpers.ts"],"names":[],"mappings":";;;AAAA,6DAAyF;AAEzF,MAAM,uBAAuB,GAAG,CAAC,UAAkB,EAAW,EAAE;IAC9D,MAAM,GAAG,GAAG,MAAM,CAAC,UAAU,CAC3B,eAAe,UAAU,+CAA+C,UAAU,gCAAgC,CACnH,CAAC;IAEF,OAAO,GAAG,CAAC,OAAO,CAAC;AACrB,CAAC,CAAC;AAIK,MAAM,gBAAgB,GAAG,GAAY,EAAE;;IAC5C,OAAO,MAAA,8BAAY,aAAZ,8BAAY,cAAZ,8BAAY,GAAI,8BAAY,mCAAI,uBAAuB,CAAC,OAAO,CAAC,CAAC;AAC1E,CAAC,CAAC;AAFW,QAAA,gBAAgB,oBAE3B;AAEK,MAAM,QAAQ,GAAG,GAAY,EAAE;IACpC,OAAO,8BAAY,aAAZ,8BAAY,cAAZ,8BAAY,GAAI,uBAAuB,CAAC,OAAO,CAAC,CAAC;AAC1D,CAAC,CAAC;AAFW,QAAA,QAAQ,YAEnB"}
|
package/dist/index.d.ts
CHANGED
|
@@ -2,7 +2,6 @@ export * from "./constants/date.constants";
|
|
|
2
2
|
export * from "./constants/npc.constants";
|
|
3
3
|
export * from "./constants/socket.constants";
|
|
4
4
|
export * from "./constants/world.constants";
|
|
5
|
-
export * from "./helpers/deviceHelpers";
|
|
6
5
|
export * from "./helpers/itemSlotHelper";
|
|
7
6
|
export * from "./helpers/skillHelpers";
|
|
8
7
|
export * from "./libs/GridHelper";
|
|
@@ -37,6 +36,7 @@ export * from "./types/resource.types";
|
|
|
37
36
|
export * from "./types/scene.types";
|
|
38
37
|
export * from "./types/skills.types";
|
|
39
38
|
export * from "./types/socket.types";
|
|
39
|
+
export * from "./types/spell.types";
|
|
40
40
|
export * from "./types/tiled.types";
|
|
41
41
|
export * from "./types/trade.types";
|
|
42
42
|
export * from "./types/translation.types";
|
|
@@ -45,5 +45,4 @@ export * from "./types/useWith.types";
|
|
|
45
45
|
export * from "./types/user.types";
|
|
46
46
|
export * from "./types/validation.types";
|
|
47
47
|
export * from "./types/view.types";
|
|
48
|
-
export * from "./types/spell.types";
|
|
49
48
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,4BAA4B,CAAC;AAC3C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,4BAA4B,CAAC;AAC3C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,0BAA0B,CAAC;AACzC,cAAc,wBAAwB,CAAC;AACvC,cAAc,mBAAmB,CAAC;AAClC,cAAc,mBAAmB,CAAC;AAClC,cAAc,qBAAqB,CAAC;AACpC,cAAc,mBAAmB,CAAC;AAClC,cAAc,mBAAmB,CAAC;AAClC,cAAc,yBAAyB,CAAC;AACxC,cAAc,mBAAmB,CAAC;AAClC,cAAc,qBAAqB,CAAC;AACpC,cAAc,oBAAoB,CAAC;AACnC,cAAc,sBAAsB,CAAC;AACrC,cAAc,yBAAyB,CAAC;AACxC,cAAc,oBAAoB,CAAC;AACnC,cAAc,qBAAqB,CAAC;AACpC,cAAc,sBAAsB,CAAC;AACrC,cAAc,sBAAsB,CAAC;AACrC,cAAc,mBAAmB,CAAC;AAClC,cAAc,yBAAyB,CAAC;AACxC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,yBAAyB,CAAC;AACxC,cAAc,oBAAoB,CAAC;AACnC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,oBAAoB,CAAC;AACnC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,mBAAmB,CAAC;AAClC,cAAc,0BAA0B,CAAC;AACzC,cAAc,sBAAsB,CAAC;AACrC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,qBAAqB,CAAC;AACpC,cAAc,wBAAwB,CAAC;AACvC,cAAc,qBAAqB,CAAC;AACpC,cAAc,sBAAsB,CAAC;AACrC,cAAc,sBAAsB,CAAC;AACrC,cAAc,qBAAqB,CAAC;AACpC,cAAc,qBAAqB,CAAC;AACpC,cAAc,qBAAqB,CAAC;AACpC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,kBAAkB,CAAC;AACjC,cAAc,uBAAuB,CAAC;AACtC,cAAc,oBAAoB,CAAC;AACnC,cAAc,0BAA0B,CAAC;AACzC,cAAc,oBAAoB,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -18,7 +18,6 @@ __exportStar(require("./constants/date.constants"), exports);
|
|
|
18
18
|
__exportStar(require("./constants/npc.constants"), exports);
|
|
19
19
|
__exportStar(require("./constants/socket.constants"), exports);
|
|
20
20
|
__exportStar(require("./constants/world.constants"), exports);
|
|
21
|
-
__exportStar(require("./helpers/deviceHelpers"), exports);
|
|
22
21
|
__exportStar(require("./helpers/itemSlotHelper"), exports);
|
|
23
22
|
__exportStar(require("./helpers/skillHelpers"), exports);
|
|
24
23
|
__exportStar(require("./libs/GridHelper"), exports);
|
|
@@ -53,6 +52,7 @@ __exportStar(require("./types/resource.types"), exports);
|
|
|
53
52
|
__exportStar(require("./types/scene.types"), exports);
|
|
54
53
|
__exportStar(require("./types/skills.types"), exports);
|
|
55
54
|
__exportStar(require("./types/socket.types"), exports);
|
|
55
|
+
__exportStar(require("./types/spell.types"), exports);
|
|
56
56
|
__exportStar(require("./types/tiled.types"), exports);
|
|
57
57
|
__exportStar(require("./types/trade.types"), exports);
|
|
58
58
|
__exportStar(require("./types/translation.types"), exports);
|
|
@@ -61,5 +61,4 @@ __exportStar(require("./types/useWith.types"), exports);
|
|
|
61
61
|
__exportStar(require("./types/user.types"), exports);
|
|
62
62
|
__exportStar(require("./types/validation.types"), exports);
|
|
63
63
|
__exportStar(require("./types/view.types"), exports);
|
|
64
|
-
__exportStar(require("./types/spell.types"), exports);
|
|
65
64
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,6DAA2C;AAC3C,4DAA0C;AAC1C,+DAA6C;AAC7C,8DAA4C;AAC5C,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,6DAA2C;AAC3C,4DAA0C;AAC1C,+DAA6C;AAC7C,8DAA4C;AAC5C,2DAAyC;AACzC,yDAAuC;AACvC,oDAAkC;AAClC,oDAAkC;AAClC,sDAAoC;AACpC,oDAAkC;AAClC,oDAAkC;AAClC,0DAAwC;AACxC,oDAAkC;AAClC,sDAAoC;AACpC,qDAAmC;AACnC,uDAAqC;AACrC,0DAAwC;AACxC,qDAAmC;AACnC,sDAAoC;AACpC,uDAAqC;AACrC,uDAAqC;AACrC,oDAAkC;AAClC,0DAAwC;AACxC,4DAA0C;AAC1C,0DAAwC;AACxC,qDAAmC;AACnC,8DAA4C;AAC5C,qDAAmC;AACnC,6DAA2C;AAC3C,oDAAkC;AAClC,2DAAyC;AACzC,uDAAqC;AACrC,6DAA2C;AAC3C,sDAAoC;AACpC,yDAAuC;AACvC,sDAAoC;AACpC,uDAAqC;AACrC,uDAAqC;AACrC,sDAAoC;AACpC,sDAAoC;AACpC,sDAAoC;AACpC,4DAA0C;AAC1C,mDAAiC;AACjC,wDAAsC;AACtC,qDAAmC;AACnC,2DAAyC;AACzC,qDAAmC"}
|