@fluid-topics/ft-wc-utils 1.2.49 → 1.2.51

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
@@ -9,6 +9,8 @@ declare global {
9
9
  }
10
10
  export declare const isSafari: boolean;
11
11
  export declare const isTouchScreen: boolean;
12
+ export * from "./a11y/FluidTopicsA11yEvents";
13
+ export * from "./a11y/FluidTopicsA11yHints";
12
14
  export * from "./CacheRegistry";
13
15
  export * from "./CancelablePromise";
14
16
  export * from "./ClusteringHelper";
@@ -18,8 +20,10 @@ export * from "./decorators";
18
20
  export * from "./designSystemVariables";
19
21
  export * from "./events";
20
22
  export * from "./floating";
23
+ export * from "./FluidTopicsScrollHelper";
21
24
  export * from "./FtCssVariables";
22
25
  export * from "./FtdsBase";
26
+ export * from "./FtFormComponent";
23
27
  export * from "./FtLitElement";
24
28
  export * from "./generic-types";
25
29
  export * from "./helpers";
@@ -28,10 +32,8 @@ export * from "./mixins.styles";
28
32
  export * from "./models";
29
33
  export * from "./ParametrizedLabelResolver";
30
34
  export * from "./redux";
35
+ export * from "./SameWindowStorageEvent";
31
36
  export * from "./ScopedRegistryLitElement";
32
- export * from "./FluidTopicsScrollHelper";
33
37
  export * from "./shadowQuerySelector";
34
38
  export * from "./SearchPlaceConverter";
35
- export * from "./FtFormComponent";
36
39
  export { setVariable } from "@fluid-topics/design-system-variables";
37
- export * from "./SameWindowStorageEvent";
package/build/index.js CHANGED
@@ -32,6 +32,8 @@ import * as FtFormComponent from "./FtFormComponent";
32
32
  import * as DateFormatter from "./DateFormatter";
33
33
  import { setVariable } from "@fluid-topics/design-system-variables";
34
34
  import * as SameWindowStorageEvent from "./SameWindowStorageEvent";
35
+ import * as FluidTopicsA11yEvents from "./a11y/FluidTopicsA11yEvents";
36
+ import * as FluidTopicsA11yHints from "./a11y/FluidTopicsA11yHints";
35
37
  export const isSafari = (navigator.vendor && !!navigator.vendor.match(/apple/i))
36
38
  || ((_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]";
37
39
  export const isTouchScreen = (("ontouchstart" in window)
@@ -55,8 +57,12 @@ window.ftGlobals = (_d = window.ftGlobals) !== null && _d !== void 0 ? _d : {
55
57
  ...designSystemVariables,
56
58
  ...events,
57
59
  ...floating,
60
+ ...FluidTopicsA11yEvents,
61
+ ...FluidTopicsA11yHints,
62
+ ...FluidTopicsScrollHelper,
58
63
  ...FtCssVariables,
59
64
  ...FtdsBase,
65
+ ...FtFormComponent,
60
66
  ...FtLitElement,
61
67
  ...genericTypes,
62
68
  ...helpers,
@@ -65,17 +71,17 @@ window.ftGlobals = (_d = window.ftGlobals) !== null && _d !== void 0 ? _d : {
65
71
  ...models,
66
72
  ...ParametrizedLabelResolver,
67
73
  ...redux,
74
+ ...SameWindowStorageEvent,
68
75
  ...ScopedRegistryLitElement,
69
- ...FluidTopicsScrollHelper,
70
76
  ...shadowQuerySelector,
71
77
  ...SearchPlaceConverter,
72
- ...FtFormComponent,
73
- ...SameWindowStorageEvent,
74
78
  isSafari,
75
79
  isTouchScreen,
76
80
  setVariable,
77
81
  }
78
82
  };
83
+ export * from "./a11y/FluidTopicsA11yEvents";
84
+ export * from "./a11y/FluidTopicsA11yHints";
79
85
  export * from "./CacheRegistry";
80
86
  export * from "./CancelablePromise";
81
87
  export * from "./ClusteringHelper";
@@ -85,8 +91,10 @@ export * from "./decorators";
85
91
  export * from "./designSystemVariables";
86
92
  export * from "./events";
87
93
  export * from "./floating";
94
+ export * from "./FluidTopicsScrollHelper";
88
95
  export * from "./FtCssVariables";
89
96
  export * from "./FtdsBase";
97
+ export * from "./FtFormComponent";
90
98
  export * from "./FtLitElement";
91
99
  export * from "./generic-types";
92
100
  export * from "./helpers";
@@ -95,10 +103,8 @@ export * from "./mixins.styles";
95
103
  export * from "./models";
96
104
  export * from "./ParametrizedLabelResolver";
97
105
  export * from "./redux";
106
+ export * from "./SameWindowStorageEvent";
98
107
  export * from "./ScopedRegistryLitElement";
99
- export * from "./FluidTopicsScrollHelper";
100
108
  export * from "./shadowQuerySelector";
101
109
  export * from "./SearchPlaceConverter";
102
- export * from "./FtFormComponent";
103
110
  export { setVariable } from "@fluid-topics/design-system-variables";
104
- export * from "./SameWindowStorageEvent";
@@ -6,4 +6,5 @@ export declare class FtCommandQueue {
6
6
  private queue;
7
7
  add(command: FtCommand, unique?: boolean): void;
8
8
  consume<T extends FtCommand>(type: string): Optional<T>;
9
+ clear(typeMatcher: string | RegExp): void;
9
10
  }
@@ -4,7 +4,7 @@ export class FtCommandQueue {
4
4
  }
5
5
  add(command, unique = false) {
6
6
  if (unique) {
7
- this.queue = this.queue.filter(c => c.type !== command.type);
7
+ this.clear(command.type);
8
8
  }
9
9
  this.queue.push(command);
10
10
  }
@@ -15,4 +15,12 @@ export class FtCommandQueue {
15
15
  }
16
16
  return maybeCommand;
17
17
  }
18
+ clear(typeMatcher) {
19
+ if (typeof typeMatcher == "string") {
20
+ this.queue = this.queue.filter(c => c.type !== typeMatcher);
21
+ }
22
+ else {
23
+ this.queue = this.queue.filter(c => !typeMatcher.test(c.type));
24
+ }
25
+ }
18
26
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fluid-topics/ft-wc-utils",
3
- "version": "1.2.49",
3
+ "version": "1.2.51",
4
4
  "description": "Internal web components tools",
5
5
  "author": "Fluid Topics <devtopics@antidot.net>",
6
6
  "license": "ISC",
@@ -15,7 +15,7 @@
15
15
  "dependencies": {
16
16
  "@floating-ui/dom": "1.5.3",
17
17
  "@fluid-topics/design-system-variables": "0.1.92",
18
- "@fluid-topics/public-api": "1.0.89",
18
+ "@fluid-topics/public-api": "1.0.90",
19
19
  "@reduxjs/toolkit": "1.9.5",
20
20
  "@types/mark.js": "8.11.12",
21
21
  "@webcomponents/scoped-custom-element-registry": "0.0.9",
@@ -24,5 +24,5 @@
24
24
  "mark.js": "8.11.1",
25
25
  "moment": "2.29.4"
26
26
  },
27
- "gitHead": "eac6d1d34424e5f5ca7e20068e646caeba2e15a7"
27
+ "gitHead": "f37803963479545409bdddea3571d34dbad90413"
28
28
  }