@wetransform/core 1.0.0 → 1.0.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/README.md +9 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -57,6 +57,15 @@ Returns a `WeTransformInstance` with:
|
|
|
57
57
|
- `displayAsModal?: boolean` (default: `true`)
|
|
58
58
|
- `mountElement?: string | HTMLElement` (default id: `weTransform_iframeContainer`, used when `displayAsModal` is `false`)
|
|
59
59
|
|
|
60
|
+
#### Inline mounting behavior (`displayAsModal: false`)
|
|
61
|
+
|
|
62
|
+
When `displayAsModal` is `false`, wetTransform SDK mounts the iframe into:
|
|
63
|
+
|
|
64
|
+
- the element with id `weTransform_iframeContainer` by default, or
|
|
65
|
+
- the element resolved from `mountElement` when you provide one.
|
|
66
|
+
|
|
67
|
+
If the target element does not exist, the SDK creates the container and appends it to `document.body`.
|
|
68
|
+
|
|
60
69
|
Some `initialLocation` values require additional auth fields:
|
|
61
70
|
|
|
62
71
|
- `uploader`: requires `authentication.templateHandle`
|