@wetransform/vue 2.1.0 → 3.0.0

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
@@ -134,6 +134,7 @@ And re-exports these symbols from `@wetransform/core`:
134
134
  ## Notes
135
135
 
136
136
  - Requires Vue `>= 3.5`.
137
+ - Relies on `Promise.withResolvers` (ES2024): Chrome/Edge 119+, Firefox 121+, Safari 17.4+. Polyfill it to support older browsers.
137
138
  - Wrapper lifecycle behavior forwards to core and does not modify core semantics.
138
139
  - The SDK instance is created on mount (never during setup), so the component and composable are SSR-safe: server rendering only produces the container markup. Subscriptions registered with `on()` during setup attach automatically once the instance exists.
139
140
  - Component: `config` is used at instantiation time. For structural config changes, remount with a Vue `:key`.
package/dist/index.d.mts CHANGED
@@ -1,7 +1,6 @@
1
1
  import { SupportedLocales, SupportedLocales as SupportedLocales$1, WeTransformConfig, WeTransformConfig as WeTransformConfig$1, WeTransformEventMap, WeTransformEventMap as WeTransformEventMap$1, WeTransformInitialLocations, WeTransformInstance, WeTransformInstance as WeTransformInstance$1, WeTransformSDKCustomization, createWeTransform } from "@wetransform/core";
2
2
  import { MaybeRefOrGetter, PropType } from "vue";
3
3
  import { DistributiveOmit } from "@wetransform/core/internal";
4
-
5
4
  //#region src/composables.d.ts
6
5
  /**
7
6
  * The config is read (via `toValue`) each time an instance is created — on
@@ -66,10 +65,6 @@ declare const WeTransformSdk: import("vue").DefineComponent<import("vue").Extrac
66
65
  required: false;
67
66
  };
68
67
  }>> & Readonly<{
69
- onOpen?: (() => any) | undefined;
70
- onClose?: (() => any) | undefined;
71
- onDestroy?: (() => any) | undefined;
72
- onReady?: (() => any) | undefined;
73
68
  onSuccessSubmit?: ((_payload: {
74
69
  customerId: string;
75
70
  templateHandle: string;
@@ -82,7 +77,11 @@ declare const WeTransformSdk: import("vue").DefineComponent<import("vue").Extrac
82
77
  message: string;
83
78
  stack?: string;
84
79
  }) => any) | undefined;
80
+ onOpen?: (() => any) | undefined;
85
81
  "onUpdate:open"?: ((_value: boolean) => any) | undefined;
82
+ onClose?: (() => any) | undefined;
83
+ onDestroy?: (() => any) | undefined;
84
+ onReady?: (() => any) | undefined;
86
85
  }>, {
87
86
  open: boolean;
88
87
  autoOpen: boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wetransform/vue",
3
- "version": "2.1.0",
3
+ "version": "3.0.0",
4
4
  "description": "Vue 3 wrapper for the WeTransform browser SDK.",
5
5
  "keywords": [
6
6
  "AI data importer",
@@ -29,17 +29,17 @@
29
29
  "access": "public"
30
30
  },
31
31
  "dependencies": {
32
- "@wetransform/core": "2.1.0"
32
+ "@wetransform/core": "3.0.0"
33
33
  },
34
34
  "devDependencies": {
35
35
  "@types/node": "^24.12.4",
36
- "@vitejs/plugin-vue": "^6.0.7",
36
+ "@vitejs/plugin-vue": "^6.0.8",
37
37
  "@vue/test-utils": "^2.4.11",
38
- "jsdom": "^29.1.1",
38
+ "jsdom": "^30.0.1",
39
39
  "typescript": "^6.0.3",
40
- "vite": "npm:@voidzero-dev/vite-plus-core@0.2.1",
41
- "vite-plus": "0.2.1",
42
- "vue": "^3.5.38",
40
+ "vite": "npm:@voidzero-dev/vite-plus-core@0.2.9",
41
+ "vite-plus": "0.2.9",
42
+ "vue": "^3.5.41",
43
43
  "@wetransform/test-utils": "0.0.0"
44
44
  },
45
45
  "peerDependencies": {
@@ -48,7 +48,6 @@
48
48
  "scripts": {
49
49
  "build": "VITE_MODE=production vp pack",
50
50
  "dev": "vp pack --watch",
51
- "lint": "vp lint --type-aware --type-check .",
52
- "test": "vp test run"
51
+ "lint": "vp lint --type-aware --type-check ."
53
52
  }
54
53
  }