@forgeroute/ui 0.5.7 → 0.5.9
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/fesm2022/forgeroute-ui.mjs +6 -3
- package/fesm2022/forgeroute-ui.mjs.map +1 -1
- package/package.json +1 -1
- package/types/forgeroute-ui-messaging.d.ts +5 -5
- package/types/forgeroute-ui-quickbooks.d.ts +2 -2
- package/types/forgeroute-ui-square.d.ts +3 -3
- package/types/forgeroute-ui-stripe.d.ts +1 -1
- package/types/forgeroute-ui.d.ts +6 -2
|
@@ -71956,8 +71956,11 @@ const UI_LANGUAGE_CONFIG = new InjectionToken("UI_LANGUAGE_CONFIG");
|
|
|
71956
71956
|
const EMBEDDING_PARENT = new InjectionToken("EMBEDDING_PARENT", {
|
|
71957
71957
|
providedIn: "root",
|
|
71958
71958
|
factory: () => {
|
|
71959
|
-
const
|
|
71960
|
-
return
|
|
71959
|
+
const doc = inject(DOCUMENT);
|
|
71960
|
+
return () => {
|
|
71961
|
+
const view = doc.defaultView;
|
|
71962
|
+
return view && view.parent && view.parent !== view ? view.parent : null;
|
|
71963
|
+
};
|
|
71961
71964
|
}
|
|
71962
71965
|
});
|
|
71963
71966
|
const BUILT_IN_ENDONYMS = {
|
|
@@ -72172,7 +72175,7 @@ var UiLanguageService = class UiLanguageService {
|
|
|
72172
72175
|
}
|
|
72173
72176
|
listenToEmbeddingPage() {
|
|
72174
72177
|
const view = this.doc.defaultView;
|
|
72175
|
-
const parent = this.embeddingParent;
|
|
72178
|
+
const parent = this.embeddingParent();
|
|
72176
72179
|
if (!this.config.trackEmbeddingParent || !view || !parent || this.messageListener || this.destroyed) return;
|
|
72177
72180
|
this.messageListener = (e) => {
|
|
72178
72181
|
if (e.source !== parent) return;
|