@t007/input 0.0.6 → 0.0.8

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/README.md CHANGED
@@ -24,6 +24,7 @@
24
24
  - [Customization](#customization)
25
25
  - [Author](#author)
26
26
  - [Acknowledgments](#acknowledgments)
27
+ - [Star History](#star-history)
27
28
 
28
29
  ---
29
30
 
@@ -238,4 +239,10 @@ You can deeply customize the look and feel by overriding the built-in CSS variab
238
239
 
239
240
  ## Acknowledgments
240
241
 
241
- Built to provide a robust, dependency-free form validation engine that rivals heavyweight frontend frameworks. Part of the `@t007` utility ecosystem.
242
+ Built to provide a robust, dependency-free form validation engine that rivals heavyweight frontend frameworks. Part of the `@t007` utility ecosystem.
243
+
244
+ ## Star History
245
+
246
+ If you find this project useful, please consider giving it a star! ⭐
247
+
248
+ [![Star History Chart](https://api.star-history.com/svg?repos=Tobi007-del/t007-tools&type=Date)](https://github.com/Tobi007-del/t007-tools)
package/dist/index.d.ts CHANGED
@@ -54,6 +54,7 @@ export const handleFormValidation = FormManager["handleFormValidation"];
54
54
  declare global {
55
55
  interface T007Namespace {
56
56
  FM: FormManager;
57
+ formManager: FormManager;
57
58
  field?: FormManager["field"];
58
59
  handleFormValidation?: FormManager["handleFormValidation"];
59
60
  }
@@ -27,7 +27,7 @@
27
27
  }
28
28
  var VIRTUAL_RESOURCE = /* @__PURE__ */ Symbol.for("T007_VIRTUAL_RESOURCE");
29
29
  function loadResource(req, type = "style", { module, media, crossOrigin, integrity, referrerPolicy, nonce, fetchPriority, attempts = 3, retryKey = false } = {}, w = window) {
30
- w.t007._resourceCache ??= {};
30
+ w.t007 ??= {}, w.t007._resourceCache ??= {};
31
31
  if (req === VIRTUAL_RESOURCE || "symbol" === typeof req) return Promise.resolve();
32
32
  const src = req;
33
33
  if (w.t007._resourceCache[src]) return w.t007._resourceCache[src];
@@ -431,7 +431,7 @@
431
431
  };
432
432
  var { field, handleFormValidation } = formManager;
433
433
  if (typeof window !== "undefined") {
434
- t007.FM = formManager;
434
+ t007.FM = t007.formManager = formManager;
435
435
  t007.field = field;
436
436
  t007.handleFormValidation = handleFormValidation;
437
437
  window.field ??= t007.field;
package/dist/index.js CHANGED
@@ -295,7 +295,7 @@ var formManager = {
295
295
  };
296
296
  var { field, handleFormValidation } = formManager;
297
297
  if (typeof window !== "undefined") {
298
- t007.FM = formManager;
298
+ t007.FM = t007.formManager = formManager;
299
299
  t007.field = field;
300
300
  t007.handleFormValidation = handleFormValidation;
301
301
  window.field ??= t007.field;
@@ -25,7 +25,7 @@ function assignEl(el, props, dataset, styles) {
25
25
  }
26
26
  var VIRTUAL_RESOURCE = /* @__PURE__ */ Symbol.for("T007_VIRTUAL_RESOURCE");
27
27
  function loadResource(req, type = "style", { module, media, crossOrigin, integrity, referrerPolicy, nonce, fetchPriority, attempts = 3, retryKey = false } = {}, w = window) {
28
- w.t007._resourceCache ??= {};
28
+ w.t007 ??= {}, w.t007._resourceCache ??= {};
29
29
  if (req === VIRTUAL_RESOURCE || "symbol" === typeof req) return Promise.resolve();
30
30
  const src = req;
31
31
  if (w.t007._resourceCache[src]) return w.t007._resourceCache[src];
@@ -429,7 +429,7 @@ var formManager = {
429
429
  };
430
430
  var { field, handleFormValidation } = formManager;
431
431
  if (typeof window !== "undefined") {
432
- t007.FM = formManager;
432
+ t007.FM = t007.formManager = formManager;
433
433
  t007.field = field;
434
434
  t007.handleFormValidation = handleFormValidation;
435
435
  window.field ??= t007.field;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@t007/input",
3
- "version": "0.0.6",
3
+ "version": "0.0.8",
4
4
  "description": "A lightweight, pure JS input system.",
5
5
  "author": "Oketade Oluwatobiloba <tobioketade007@gmail.com>",
6
6
  "license": "MIT",