@sitecore-feaas/clientside 0.3.13 → 0.3.14
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/build/ui/FEAASExternal.js +6 -2
- package/build/ui/FEAASExternal.js.map +1 -1
- package/dist/browser/react.cjs +5 -5
- package/dist/browser/react.cjs.map +2 -2
- package/dist/browser/react.esm.js +5 -5
- package/dist/browser/react.esm.js.map +1 -1
- package/dist/node/react.cjs +4 -4
- package/dist/node/react.cjs.map +2 -2
- package/dist/node/react.esm.js +4 -4
- package/dist/node/react.esm.js.map +2 -2
- package/package.json +1 -1
- package/react.cjs +5 -5
- package/react.cjs.map +2 -2
- package/react.js +5 -5
- package/react.js.map +2 -2
- package/src/ui/FEAASExternal.tsx +9 -2
- package/types/tsbuildinfo +1 -1
- package/types/ui/FEAASExternal.d.ts.map +1 -1
- package/types/ui/tsbuildinfo +1 -1
package/src/ui/FEAASExternal.tsx
CHANGED
|
@@ -309,8 +309,15 @@ class FEAASExternalRegistration extends WebComponent {
|
|
|
309
309
|
}
|
|
310
310
|
}
|
|
311
311
|
|
|
312
|
-
if (typeof window !== 'undefined' && window)
|
|
313
|
-
|
|
312
|
+
if (typeof window !== 'undefined' && window) {
|
|
313
|
+
if (!('FEAASExternalComponents' in window))
|
|
314
|
+
Object.defineProperty(window, 'FEAASExternalComponents', { get: () => FEAASExternal.registered })
|
|
315
|
+
else if (!location.hostname.startsWith('xmc-'))
|
|
316
|
+
console.error(
|
|
317
|
+
'FEAAS Clientside is loaded twice into the bundle. This can lead to unexpected problems and needs to be resolved'
|
|
318
|
+
)
|
|
319
|
+
}
|
|
320
|
+
|
|
314
321
|
FEAASExternal.register('feaas-external')
|
|
315
322
|
FEAASExternal.setRegistrationCallback()
|
|
316
323
|
FEAASExternalRegistration.register('feaas-registration')
|