@fluid-topics/ft-wc-utils 1.2.40 → 1.2.42
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/build/index.d.ts
CHANGED
package/build/index.js
CHANGED
|
@@ -31,6 +31,7 @@ import * as SearchPlaceConverter from "./SearchPlaceConverter";
|
|
|
31
31
|
import * as FtFormComponent from "./FtFormComponent";
|
|
32
32
|
import * as DateFormatter from "./DateFormatter";
|
|
33
33
|
import { setVariable } from "@fluid-topics/design-system-variables";
|
|
34
|
+
import * as SameWindowStorageEvent from "./SameWindowStorageEvent";
|
|
34
35
|
export const isSafari = (navigator.vendor && !!navigator.vendor.match(/apple/i))
|
|
35
36
|
|| ((_c = (_b = (_a = window.safari) === null || _a === void 0 ? void 0 : _a.pushNotification) === null || _b === void 0 ? void 0 : _b.toString()) !== null && _c !== void 0 ? _c : "") === "[object SafariRemoteNotification]";
|
|
36
37
|
export const isTouchScreen = (("ontouchstart" in window)
|
|
@@ -69,6 +70,7 @@ window.ftGlobals = (_d = window.ftGlobals) !== null && _d !== void 0 ? _d : {
|
|
|
69
70
|
...shadowQuerySelector,
|
|
70
71
|
...SearchPlaceConverter,
|
|
71
72
|
...FtFormComponent,
|
|
73
|
+
...SameWindowStorageEvent,
|
|
72
74
|
isSafari,
|
|
73
75
|
isTouchScreen,
|
|
74
76
|
setVariable,
|
|
@@ -99,3 +101,4 @@ export * from "./shadowQuerySelector";
|
|
|
99
101
|
export * from "./SearchPlaceConverter";
|
|
100
102
|
export * from "./FtFormComponent";
|
|
101
103
|
export { setVariable } from "@fluid-topics/design-system-variables";
|
|
104
|
+
export * from "./SameWindowStorageEvent";
|
|
@@ -2,7 +2,6 @@ import { configureStore, createSlice } from "@reduxjs/toolkit";
|
|
|
2
2
|
import { isFtReduxStore } from "./models";
|
|
3
3
|
import { FtCommandQueue } from "./FtCommandQueue";
|
|
4
4
|
import { WithEventBus } from "../events";
|
|
5
|
-
import { deepCopy } from "../helpers";
|
|
6
5
|
if (!window.ftReduxStores) {
|
|
7
6
|
window.ftReduxStores = {};
|
|
8
7
|
}
|
|
@@ -41,6 +40,7 @@ export class FtReduxStore extends WithEventBus {
|
|
|
41
40
|
this.reduxStore = reduxStore;
|
|
42
41
|
this.isFtReduxStore = true;
|
|
43
42
|
this.commands = new FtCommandQueue();
|
|
43
|
+
const deepCopy = (value) => value != null ? JSON.parse(JSON.stringify(value)) : value;
|
|
44
44
|
// Add proxy to automatically dispatch changes
|
|
45
45
|
this.actions = new Proxy(this.reduxSlice.actions, {
|
|
46
46
|
get: (actions, p, receiver) => {
|
|
@@ -79,7 +79,7 @@ export class FtReduxStore extends WithEventBus {
|
|
|
79
79
|
return this.reduxStore[Symbol.observable]();
|
|
80
80
|
}
|
|
81
81
|
getState() {
|
|
82
|
-
return
|
|
82
|
+
return this.reduxStore.getState();
|
|
83
83
|
}
|
|
84
84
|
replaceReducer(nextReducer) {
|
|
85
85
|
throw new Error("Not implemented yet.");
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fluid-topics/ft-wc-utils",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.42",
|
|
4
4
|
"description": "Internal web components tools",
|
|
5
5
|
"author": "Fluid Topics <devtopics@antidot.net>",
|
|
6
6
|
"license": "ISC",
|
|
@@ -24,5 +24,5 @@
|
|
|
24
24
|
"mark.js": "8.11.1",
|
|
25
25
|
"moment": "2.29.4"
|
|
26
26
|
},
|
|
27
|
-
"gitHead": "
|
|
27
|
+
"gitHead": "072e48eee7ad88adbaf13ada77bcda7fdd2baab4"
|
|
28
28
|
}
|