@incodetech/web 0.0.0-dev-20260528-e63e949b → 0.0.0-dev-20260529-392f1ccc

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.
@@ -5,15 +5,18 @@ import { t as a } from "../spinner-CKnjVHxw.js";
5
5
  import { t as o } from "../incodeModule-BH9gV7jI.js";
6
6
  import { createAntifraudManager as s } from "@incodetech/core/antifraud";
7
7
  //#region src/modules/antifraud/antifraud.tsx
8
- var c = ({ onFinish: i }) => {
9
- let [o, c] = n(() => s());
8
+ var c = ({ manager: i, onFinish: o }) => {
9
+ let [c, l] = n(() => i ?? s(), { manageLifecycle: !i });
10
10
  return e(() => {
11
- c.load();
12
- }, [c]), r({
13
- status: o.status === "finished" ? "finished" : "loading",
14
- onFinish: i
11
+ i || l.load();
12
+ }, [l, i]), r({
13
+ status: c.status === "finished" ? "finished" : "loading",
14
+ onFinish: o
15
15
  }), /* @__PURE__ */ t(a, { fullScreen: !0 });
16
- }, l = ({ onFinish: e }) => /* @__PURE__ */ t(i, { children: /* @__PURE__ */ t(c, { onFinish: e }) });
16
+ }, l = ({ manager: e, onFinish: n }) => /* @__PURE__ */ t(i, { children: /* @__PURE__ */ t(c, {
17
+ manager: e,
18
+ onFinish: n
19
+ }) });
17
20
  o(l, "incode-antifraud");
18
21
  //#endregion
19
22
  export { l as Antifraud };
@@ -1,9 +1,10 @@
1
1
  import { AntifraudConfig } from '@incodetech/core/antifraud';
2
+ import { AntifraudManager } from '@incodetech/core/antifraud';
2
3
  import { FC } from 'preact/compat';
3
4
 
4
5
  export declare const Antifraud: FC<AntifraudProps>;
5
6
 
6
- declare type AntifraudProps = IncodeModuleProps<AntifraudConfig>;
7
+ declare type AntifraudProps = IncodeModuleProps<AntifraudConfig, void, AntifraudManager>;
7
8
 
8
9
  declare type IncodeModuleProps<TConfig, TResult = void, TManager = unknown> = {
9
10
  /**
@@ -35,6 +36,8 @@ export { }
35
36
 
36
37
  declare global {
37
38
  interface HTMLElementTagNameMap {
38
- 'incode-antifraud': HTMLElement & IncodeModuleProps<AntifraudConfig>;
39
+ 'incode-antifraud': HTMLElement & IncodeModuleProps<AntifraudConfig,
40
+ void,
41
+ AntifraudManager>;
39
42
  }
40
43
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@incodetech/web",
3
- "version": "0.0.0-dev-20260528-e63e949b",
3
+ "version": "0.0.0-dev-20260529-392f1ccc",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/IncodeTechnologies/incode-web-sdk.git"
@@ -255,29 +255,32 @@
255
255
  "qrcode": "^1.5.4",
256
256
  "signature_pad": "^5.1.3",
257
257
  "tailwindcss": "^4.1.17",
258
- "@incodetech/core": "0.0.0-dev-20260528-e63e949b"
258
+ "@incodetech/core": "0.0.0-dev-20260529-392f1ccc"
259
259
  },
260
260
  "devDependencies": {
261
261
  "@microsoft/api-extractor": "^7.53.3",
262
262
  "@preact/preset-vite": "^2.10.5",
263
- "@storybook/addon-a11y": "^8.6.14",
264
- "@storybook/addon-essentials": "^8.6.14",
265
- "@storybook/addon-themes": "^8.6.14",
266
- "@storybook/blocks": "^8.6.14",
267
- "@storybook/preact": "^8.6.14",
268
- "@storybook/preact-vite": "^8.6.14",
263
+ "@storybook/addon-a11y": "^10.4.1",
264
+ "@storybook/addon-themes": "^10.4.1",
265
+ "@storybook/addon-vitest": "^10.4.1",
266
+ "@storybook/preact": "^10.4.1",
267
+ "@storybook/preact-vite": "^10.4.1",
268
+ "@storybook/react-dom-shim": "^10.4.1",
269
269
  "@tailwindcss/postcss": "^4.1.17",
270
270
  "@testing-library/preact": "^3.2.4",
271
271
  "@types/node": "^22.10.5",
272
272
  "@types/qrcode": "^1.5.6",
273
273
  "@vitejs/plugin-basic-ssl": "^2.3.0",
274
+ "@vitest/browser": "4.0.13",
275
+ "@vitest/browser-playwright": "4.0.13",
274
276
  "@vitest/coverage-v8": "^4.0.13",
275
277
  "happy-dom": "^20.7.0",
278
+ "playwright": "^1.60.0",
276
279
  "postcss": "^8.5.6",
277
280
  "postcss-import": "^16.1.1",
278
281
  "preact": "^10.27.2",
279
282
  "rollup-plugin-visualizer": "^7.0.1",
280
- "storybook": "^8.6.14",
283
+ "storybook": "^10.4.1",
281
284
  "stylelint": "^17.5.0",
282
285
  "typescript": "^5.9.3",
283
286
  "vite": "^8.0.0",
@@ -291,6 +294,7 @@
291
294
  "build:dev": "NODE_ENV=development vite build",
292
295
  "build:analyze": "rm -rf dist && ANALYZE=1 vite build && echo '\\nBundle report: packages/ui/dist/stats.html\\n'",
293
296
  "test": "vitest run",
297
+ "test:a11y": "VITE_STORYBOOK_A11Y=true vitest run",
294
298
  "coverage": "vitest run --coverage",
295
299
  "lint": "eslint . && pnpm lint:styles",
296
300
  "lint:fix": "eslint . --fix && pnpm lint:styles",