@itrocks/modal 0.0.8 → 0.0.10

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.js CHANGED
@@ -1,2 +1,2 @@
1
- import build from '../build/build.js';
2
- build('#modal form', async (form) => (await import('./modal.js')).default(form));
1
+ import { build } from '../build/build.js';
2
+ build('#modal form', async (form) => (await import('./modal.js')).modalForm(form));
package/modal.d.ts CHANGED
@@ -1 +1 @@
1
- export default function modalForm(form: HTMLFormElement): void;
1
+ export declare function modalForm(form: HTMLFormElement): void;
package/modal.js CHANGED
@@ -1,4 +1,4 @@
1
- export default function modalForm(form) {
1
+ export function modalForm(form) {
2
2
  const modal = form.closest('#modal');
3
3
  if (!modal)
4
4
  return;
package/package.json CHANGED
@@ -7,7 +7,7 @@
7
7
  "devDependencies": {
8
8
  "@types/node": "^22.9",
9
9
  "sass": "^1.80",
10
- "typescript": "5.6"
10
+ "typescript": "~5.8"
11
11
  },
12
12
  "files": [
13
13
  "LICENSE",
@@ -49,5 +49,5 @@
49
49
  },
50
50
  "type": "module",
51
51
  "types": "./modal.d.ts",
52
- "version": "0.0.8"
52
+ "version": "0.0.10"
53
53
  }