Comparing version 4.3.0 to 4.4.0
@@ -5,2 +5,9 @@ # Changelog | ||
## [4.4.0](https://bitbucket.org/persona-id/persona-verify/compare/v4.3.0...v4.4.0) (2022-02-15) | ||
### Features | ||
* support multiple iframe origins ([0509b8e](https://bitbucket.org/persona-id/persona-verify/commits/0509b8e897b66e4e9e6a0ab6c905edb97c72930a)) | ||
## [4.3.0](https://bitbucket.org/persona-id/persona-verify/compare/v4.2.1...v4.3.0) (2022-01-31) | ||
@@ -7,0 +14,0 @@ |
@@ -9,3 +9,3 @@ import * as React from 'react'; | ||
} | ||
declare const _default: (props: InquiryInternalProps) => JSX.Element; | ||
declare const _default: ({ accountId, containerId, environment, fields, flowType, frameAncestors, host, inquiryId, language, lockedAttributes, messageTargetOrigin, onCancel, onComplete, onError, onEvent, onLoad, onReady, prefill, refIframe, referenceId, sessionToken, templateId, templateVersionId, themeId, }: InquiryInternalProps) => JSX.Element; | ||
export default _default; |
@@ -157,2 +157,13 @@ /** | ||
/** | ||
* Allows specifying additional origins for CSP purposes. Values should | ||
* include both protocol and host (e.g. https://withpersona.com). | ||
* | ||
* This is REQUIRED when the page that embeds the Persona widget is itself | ||
* embedded in another page as an iframe. The value should be an array of | ||
* origins for ALL iframes that are ancestors of the Persona iframe. | ||
* | ||
* `window.target.origin` is provided by default. | ||
*/ | ||
frameAncestors?: string[]; | ||
/** | ||
* Allows specifying a custom target for `window.postMessage` from the | ||
@@ -162,3 +173,4 @@ * Persona app, which defaults to the iframe origin. | ||
* This is REQUIRED when the page that embeds the Persona widget is itself | ||
* embedded in another page. | ||
* embedded in another page as an iframe. The value should be the origin where | ||
* the Persona SDK is mounted. | ||
*/ | ||
@@ -165,0 +177,0 @@ messageTargetOrigin?: string; |
{ | ||
"name": "persona", | ||
"version": "4.3.0", | ||
"version": "4.4.0", | ||
"description": "The official web client library for the Persona API.", | ||
@@ -5,0 +5,0 @@ "main": "./dist/persona.js", |
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
145317
2788