@incodetech/web 2.1.0-rc.0 → 2.1.0-rc.1

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.es.js CHANGED
@@ -3,7 +3,7 @@ import { t as setUiConfig } from "./uiConfig-D2_wawvr.js";
3
3
  import { DEFAULT_WASM_VERSION } from "@incodetech/core/wasm";
4
4
  import { setup as setup$1 } from "@incodetech/core";
5
5
  //#region src/setup.ts
6
- async function setup({ apiURL, token, customHeaders, timeout, wasm, ipLookup, i18n, uiConfig }) {
6
+ async function setup({ apiURL, token, customHeaders, timeout, wasm, ipLookup, devMode, i18n, uiConfig }) {
7
7
  if (uiConfig) setUiConfig(uiConfig);
8
8
  await setup$1({
9
9
  apiURL,
@@ -11,7 +11,8 @@ async function setup({ apiURL, token, customHeaders, timeout, wasm, ipLookup, i1
11
11
  customHeaders,
12
12
  timeout,
13
13
  wasm,
14
- ipLookup
14
+ ipLookup,
15
+ devMode
15
16
  });
16
17
  setI18nInstance(createI18n(i18n));
17
18
  }
@@ -22,7 +22,7 @@ export declare function setI18nInstance(instance: i18n): void;
22
22
  */
23
23
  export declare function setUiConfig(next: UiConfig): void;
24
24
 
25
- export declare function setup({ apiURL, token, customHeaders, timeout, wasm, ipLookup, i18n, uiConfig, }: SetupOptions): Promise<void>;
25
+ export declare function setup({ apiURL, token, customHeaders, timeout, wasm, ipLookup, devMode, i18n, uiConfig, }: SetupOptions): Promise<void>;
26
26
 
27
27
  declare type SetupOptions = {
28
28
  apiURL: string;
@@ -31,6 +31,12 @@ declare type SetupOptions = {
31
31
  timeout?: number;
32
32
  wasm?: WasmConfig | false;
33
33
  ipLookup?: boolean;
34
+ /**
35
+ * Disables the browser devtools detector for local development. Forwarded to
36
+ * core `setup()`. Leave `false` (default) in production — see the core
37
+ * `SetupOptions.devMode` docs. WASM logging is controlled via `wasm.showLogs`.
38
+ */
39
+ devMode?: boolean;
34
40
  i18n?: I18nOptions;
35
41
  uiConfig?: UiConfig;
36
42
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@incodetech/web",
3
- "version": "2.1.0-rc.0",
3
+ "version": "2.1.0-rc.1",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/IncodeTechnologies/incode-web-sdk.git"
@@ -255,7 +255,7 @@
255
255
  "qrcode": "^1.5.4",
256
256
  "signature_pad": "^5.1.3",
257
257
  "tailwindcss": "^4.1.17",
258
- "@incodetech/core": "2.1.0-rc.0"
258
+ "@incodetech/core": "2.1.0-rc.1"
259
259
  },
260
260
  "devDependencies": {
261
261
  "@microsoft/api-extractor": "^7.53.3",