@t007/utils 0.0.16 → 0.0.18

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.cjs CHANGED
@@ -22,14 +22,18 @@ var index_exports = {};
22
22
  __export(index_exports, {
23
23
  VIRTUAL_RESOURCE: () => VIRTUAL_RESOURCE,
24
24
  assignEl: () => assignEl,
25
- bindAllMethods: () => import_utils4.bindAllMethods,
25
+ bindAllMethods: () => import_utils5.bindAllMethods,
26
26
  bindCleanupToSignal: () => bindCleanupToSignal,
27
27
  breath: () => breath,
28
28
  clamp: () => import_utils2.clamp,
29
+ cleanKeyCombo: () => import_utils4.cleanKeyCombo,
29
30
  createEl: () => createEl,
30
31
  deepBreath: () => deepBreath,
31
- guardAllMethods: () => import_utils4.guardAllMethods,
32
- guardMethod: () => import_utils4.guardMethod,
32
+ formatKeyForDisplay: () => import_utils4.formatKeyForDisplay,
33
+ formatKeyShortcutsForDisplay: () => import_utils4.formatKeyShortcutsForDisplay,
34
+ getTermsForKey: () => import_utils4.getTermsForKey,
35
+ guardAllMethods: () => import_utils5.guardAllMethods,
36
+ guardMethod: () => import_utils5.guardMethod,
33
37
  inBoolArrOpt: () => inBoolArrOpt,
34
38
  initScrollAssist: () => initScrollAssist,
35
39
  initVScrollerator: () => initVScrollerator,
@@ -44,14 +48,19 @@ __export(index_exports, {
44
48
  isSameURL: () => isSameURL,
45
49
  isStr: () => isStr,
46
50
  isSym: () => isSym,
51
+ keyEventAllowed: () => import_utils4.keyEventAllowed,
47
52
  limited: () => limited,
48
53
  loadResource: () => loadResource,
54
+ matchKeys: () => import_utils4.matchKeys,
49
55
  mockAsync: () => mockAsync,
50
- onAllMethods: () => import_utils4.onAllMethods,
56
+ onAllMethods: () => import_utils5.onAllMethods,
57
+ parseForARIAKS: () => import_utils4.parseForARIAKS,
58
+ parseKeyCombo: () => import_utils4.parseKeyCombo,
51
59
  removeScrollAssist: () => removeScrollAssist,
52
60
  requestAnimationFrame: () => import_utils3.requestAnimationFrame,
53
61
  setInterval: () => import_utils3.setInterval,
54
62
  setTimeout: () => import_utils3.setTimeout,
63
+ stringifyKeyEvent: () => import_utils4.stringifyKeyEvent,
55
64
  uid: () => uid
56
65
  });
57
66
  module.exports = __toCommonJS(index_exports);
@@ -175,9 +184,12 @@ function bindCleanupToSignal(cleanup, signal) {
175
184
  return cleanup;
176
185
  }
177
186
 
178
- // src/core/methd.ts
187
+ // src/core/keys.ts
179
188
  var import_utils4 = require("sia-reactor/utils");
180
189
 
190
+ // src/mixins/methd.ts
191
+ var import_utils5 = require("sia-reactor/utils");
192
+
181
193
  // src/quirks/scroll.ts
182
194
  function initVScrollerator({ baseSpeed = 3, maxSpeed = 10, stepDelay = 2e3, baseRate = 16, lineHeight = 80, margin = 80, car = window } = {}) {
183
195
  let linesPerSec = baseSpeed, accelId = null, lastTime = null;
@@ -285,8 +297,12 @@ if ("undefined" !== typeof window) {
285
297
  bindCleanupToSignal,
286
298
  breath,
287
299
  clamp,
300
+ cleanKeyCombo,
288
301
  createEl,
289
302
  deepBreath,
303
+ formatKeyForDisplay,
304
+ formatKeyShortcutsForDisplay,
305
+ getTermsForKey,
290
306
  guardAllMethods,
291
307
  guardMethod,
292
308
  inBoolArrOpt,
@@ -303,13 +319,18 @@ if ("undefined" !== typeof window) {
303
319
  isSameURL,
304
320
  isStr,
305
321
  isSym,
322
+ keyEventAllowed,
306
323
  limited,
307
324
  loadResource,
325
+ matchKeys,
308
326
  mockAsync,
309
327
  onAllMethods,
328
+ parseForARIAKS,
329
+ parseKeyCombo,
310
330
  removeScrollAssist,
311
331
  requestAnimationFrame,
312
332
  setInterval,
313
333
  setTimeout,
334
+ stringifyKeyEvent,
314
335
  uid
315
336
  });
package/dist/index.d.cts CHANGED
@@ -1,4 +1,4 @@
1
- export { bindAllMethods, clamp, guardAllMethods, guardMethod, isObj, onAllMethods, requestAnimationFrame, setInterval, setTimeout } from 'sia-reactor/utils';
1
+ export { KeyStruct, bindAllMethods, clamp, cleanKeyCombo, formatKeyForDisplay, formatKeyShortcutsForDisplay, getTermsForKey, guardAllMethods, guardMethod, isObj, keyEventAllowed, keysSettings, matchKeys, onAllMethods, parseForARIAKS, parseKeyCombo, requestAnimationFrame, setInterval, setTimeout, stringifyKeyEvent } from 'sia-reactor/utils';
2
2
 
3
3
  interface ScrolleratorOptions {
4
4
  baseSpeed?: number;
package/dist/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- export { bindAllMethods, clamp, guardAllMethods, guardMethod, isObj, onAllMethods, requestAnimationFrame, setInterval, setTimeout } from 'sia-reactor/utils';
1
+ export { KeyStruct, bindAllMethods, clamp, cleanKeyCombo, formatKeyForDisplay, formatKeyShortcutsForDisplay, getTermsForKey, guardAllMethods, guardMethod, isObj, keyEventAllowed, keysSettings, matchKeys, onAllMethods, parseForARIAKS, parseKeyCombo, requestAnimationFrame, setInterval, setTimeout, stringifyKeyEvent } from 'sia-reactor/utils';
2
2
 
3
3
  interface ScrolleratorOptions {
4
4
  baseSpeed?: number;
package/dist/index.js CHANGED
@@ -117,7 +117,10 @@ function bindCleanupToSignal(cleanup, signal) {
117
117
  return cleanup;
118
118
  }
119
119
 
120
- // src/core/methd.ts
120
+ // src/core/keys.ts
121
+ import { parseKeyCombo, stringifyKeyEvent, cleanKeyCombo, matchKeys, getTermsForKey, keyEventAllowed, formatKeyForDisplay, formatKeyShortcutsForDisplay, parseForARIAKS } from "sia-reactor/utils";
122
+
123
+ // src/mixins/methd.ts
121
124
  import { onAllMethods, bindAllMethods, guardAllMethods, guardMethod } from "sia-reactor/utils";
122
125
 
123
126
  // src/quirks/scroll.ts
@@ -226,8 +229,12 @@ export {
226
229
  bindCleanupToSignal,
227
230
  breath,
228
231
  clamp,
232
+ cleanKeyCombo,
229
233
  createEl,
230
234
  deepBreath,
235
+ formatKeyForDisplay,
236
+ formatKeyShortcutsForDisplay,
237
+ getTermsForKey,
231
238
  guardAllMethods,
232
239
  guardMethod,
233
240
  inBoolArrOpt,
@@ -244,13 +251,18 @@ export {
244
251
  isSameURL,
245
252
  isStr,
246
253
  isSym,
254
+ keyEventAllowed,
247
255
  limited,
248
256
  loadResource,
257
+ matchKeys,
249
258
  mockAsync,
250
259
  onAllMethods,
260
+ parseForARIAKS,
261
+ parseKeyCombo,
251
262
  removeScrollAssist,
252
263
  requestAnimationFrame2 as requestAnimationFrame,
253
264
  setInterval,
254
265
  setTimeout2 as setTimeout,
266
+ stringifyKeyEvent,
255
267
  uid
256
268
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@t007/utils",
3
- "version": "0.0.16",
3
+ "version": "0.0.18",
4
4
  "description": "High-performance, zero-dependency utility functions for the t007 ecosystem.",
5
5
  "author": "Oketade Oluwatobiloba <tobioketade007@gmail.com>",
6
6
  "license": "MIT",
@@ -45,6 +45,6 @@
45
45
  "performance"
46
46
  ],
47
47
  "dependencies": {
48
- "sia-reactor": "^0.0.16"
48
+ "sia-reactor": "^0.0.17"
49
49
  }
50
50
  }