@digital-realty/ui-mfe-reports 11.0.2 → 11.0.3

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.
@@ -1 +1 @@
1
- var d=Object.defineProperty;var l=(o,t,e)=>t in o?d(o,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):o[t]=e;var a=(o,t,e)=>l(o,typeof t!="symbol"?t+"":t,e);import{a as u,u as m,S as h,j as r,T as p,C as f,E as x,Q as C,q as b,R as j,L as _,b as y,c as E,r as S}from"./app-3kNBdLnM.js";import n from"react-dom";import R,{Suspense as v}from"react";import"@digital-realty/ix-grid/IxGridNav";const s=document.createElement("div"),w=u({key:"dcim-reports",container:s}),A=({sessionToken:o,baseUrl:t,parent:e})=>{return i(),m(h.X_AUTH,{defaultValue:o}),r.jsx(R.StrictMode,{children:r.jsx(p,{customTheme:y(e),children:r.jsx(f,{value:w,children:r.jsx(x,{children:r.jsx(C,{client:b,children:r.jsx(v,{fallback:r.jsx(_,{}),children:r.jsx(j,{router:c()})})})})})})});function i(){e?e.insertBefore(s,e.firstChild):document.body.appendChild(s)}function c(){return E(S,{basename:t})}};class T extends HTMLElement{constructor(){super();a(this,"_root");this._root=this.attachShadow({mode:"open"})}connectedCallback(){const e=this.getAttribute("baseUrl");n.render(r.jsx(A,{baseUrl:e,parent:this._root}),this._root)}disconnectedCallback(){n.unmountComponentAtNode(this._root)}}window.customElements.get("ui-mfe-reports")||window.customElements.define("ui-mfe-reports",T);export{A};
1
+ var d=Object.defineProperty;var l=(o,t,e)=>t in o?d(o,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):o[t]=e;var a=(o,t,e)=>l(o,typeof t!="symbol"?t+"":t,e);import{a as u,u as m,S as h,j as r,T as p,C as f,E as x,Q as C,q as b,R as j,L as _,b as y,c as E,r as S}from"./app-CV_CmUqv.js";import n from"react-dom";import R,{Suspense as v}from"react";import"@digital-realty/ix-grid/IxGridNav";const s=document.createElement("div"),w=u({key:"dcim-reports",container:s}),A=({sessionToken:o,baseUrl:t,parent:e})=>{return i(),m(h.X_AUTH,{defaultValue:o}),r.jsx(R.StrictMode,{children:r.jsx(p,{customTheme:y(e),children:r.jsx(f,{value:w,children:r.jsx(x,{children:r.jsx(C,{client:b,children:r.jsx(v,{fallback:r.jsx(_,{}),children:r.jsx(j,{router:c()})})})})})})});function i(){e?e.insertBefore(s,e.firstChild):document.body.appendChild(s)}function c(){return E(S,{basename:t})}};class T extends HTMLElement{constructor(){super();a(this,"_root");this._root=this.attachShadow({mode:"open"})}connectedCallback(){const e=this.getAttribute("baseUrl");n.render(r.jsx(A,{baseUrl:e,parent:this._root}),this._root)}disconnectedCallback(){n.unmountComponentAtNode(this._root)}}window.customElements.get("ui-mfe-reports")||window.customElements.define("ui-mfe-reports",T);export{A};
package/dist/index.html CHANGED
@@ -16,9 +16,20 @@
16
16
  <link rel="stylesheet" href="https://fonts.googleapis.com/icon?family=Material+Icons|Material+Icons+Outlined" />
17
17
 
18
18
  <title>Reports - Global Portal</title>
19
+
20
+ <script>
21
+ (function () {
22
+ var xhr = new XMLHttpRequest();
23
+ xhr.open('GET', '/config.json', false);
24
+ xhr.send();
25
+ if (xhr.status >= 200 && xhr.status < 300) {
26
+ window.gpConfig = { 'ui-mfe-reports': JSON.parse(xhr.responseText) };
27
+ }
28
+ })();
29
+ </script>
19
30
  <script type="module" crossorigin src="/ui-mfe-html-reports.js"></script>
20
- <link rel="modulepreload" crossorigin href="/assets/app-3kNBdLnM.js">
21
- <link rel="modulepreload" crossorigin href="/assets/app-element-BpVUJF7T.js">
31
+ <link rel="modulepreload" crossorigin href="/assets/app-CV_CmUqv.js">
32
+ <link rel="modulepreload" crossorigin href="/assets/app-element-DAGuI7tx.js">
22
33
  </head>
23
34
  <body>
24
35
  <div id="root" sessionToken="dummy-session-token"></div>
@@ -1 +1 @@
1
- import{j as l}from"./assets/app-3kNBdLnM.js";import a from"react-dom";import{A as f}from"./assets/app-element-BpVUJF7T.js";import"react";import"@digital-realty/ix-grid/IxGridNav";import"@digital-realty/ix-grid/ix-grid-nav.js";(function(){const o=document.createElement("link").relList;if(o&&o.supports&&o.supports("modulepreload"))return;for(const e of document.querySelectorAll('link[rel="modulepreload"]'))n(e);new MutationObserver(e=>{for(const t of e)if(t.type==="childList")for(const s of t.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&n(s)}).observe(document,{childList:!0,subtree:!0});function u(e){const t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),e.crossOrigin==="use-credentials"?t.credentials="include":e.crossOrigin==="anonymous"?t.credentials="omit":t.credentials="same-origin",t}function n(e){if(e.ep)return;e.ep=!0;const t=u(e);fetch(e.href,t)}})();var i={},c=a;i.createRoot=c.createRoot,i.hydrateRoot=c.hydrateRoot;const r=document.getElementById("root"),d=(r==null?void 0:r.getAttribute("sessionToken"))||"",m=(r==null?void 0:r.getAttribute("baseUrl"))||"";i.createRoot(r).render(l.jsx(f,{sessionToken:d,baseUrl:m}));
1
+ import{j as l}from"./assets/app-CV_CmUqv.js";import a from"react-dom";import{A as f}from"./assets/app-element-DAGuI7tx.js";import"react";import"@digital-realty/ix-grid/IxGridNav";import"@digital-realty/ix-grid/ix-grid-nav.js";(function(){const o=document.createElement("link").relList;if(o&&o.supports&&o.supports("modulepreload"))return;for(const e of document.querySelectorAll('link[rel="modulepreload"]'))n(e);new MutationObserver(e=>{for(const t of e)if(t.type==="childList")for(const s of t.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&n(s)}).observe(document,{childList:!0,subtree:!0});function u(e){const t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),e.crossOrigin==="use-credentials"?t.credentials="include":e.crossOrigin==="anonymous"?t.credentials="omit":t.credentials="same-origin",t}function n(e){if(e.ep)return;e.ep=!0;const t=u(e);fetch(e.href,t)}})();var i={},c=a;i.createRoot=c.createRoot,i.hydrateRoot=c.hydrateRoot;const r=document.getElementById("root"),d=(r==null?void 0:r.getAttribute("sessionToken"))||"",m=(r==null?void 0:r.getAttribute("baseUrl"))||"";i.createRoot(r).render(l.jsx(f,{sessionToken:d,baseUrl:m}));
@@ -1 +1 @@
1
- import{u as o,S as u,j as e,T as i,E as l,Q as n,q as d,R as c,L as m,b as p,c as x,r as j}from"./assets/app-3kNBdLnM.js";import h,{Suspense as f}from"react";import"@digital-realty/ix-grid/IxGridNav";import"react-dom";import"@digital-realty/ix-grid/ix-grid-nav.js";const v=({sessionToken:r,baseUrl:t,parent:s})=>{return o(u.X_AUTH,{defaultValue:r}),e.jsx(h.StrictMode,{children:e.jsx(i,{customTheme:p(s),children:e.jsx(l,{children:e.jsx(n,{client:d,children:e.jsx(f,{fallback:e.jsx(m,{}),children:e.jsx(c,{router:a()})})})})})});function a(){return x(j,{basename:t})}};export{v as default};
1
+ import{u as o,S as u,j as e,T as i,E as l,Q as n,q as d,R as c,L as m,b as p,c as x,r as j}from"./assets/app-CV_CmUqv.js";import h,{Suspense as f}from"react";import"@digital-realty/ix-grid/IxGridNav";import"react-dom";import"@digital-realty/ix-grid/ix-grid-nav.js";const v=({sessionToken:r,baseUrl:t,parent:s})=>{return o(u.X_AUTH,{defaultValue:r}),e.jsx(h.StrictMode,{children:e.jsx(i,{customTheme:p(s),children:e.jsx(l,{children:e.jsx(n,{client:d,children:e.jsx(f,{fallback:e.jsx(m,{}),children:e.jsx(c,{router:a()})})})})})});function a(){return x(j,{basename:t})}};export{v as default};
@@ -1 +1 @@
1
- import"./assets/app-3kNBdLnM.js";import"react-dom";import"./assets/app-element-BpVUJF7T.js";import"react";import"@digital-realty/ix-grid/IxGridNav";import"@digital-realty/ix-grid/ix-grid-nav.js";
1
+ import"./assets/app-CV_CmUqv.js";import"react-dom";import"./assets/app-element-DAGuI7tx.js";import"react";import"@digital-realty/ix-grid/IxGridNav";import"@digital-realty/ix-grid/ix-grid-nav.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@digital-realty/ui-mfe-reports",
3
- "version": "11.0.2",
3
+ "version": "11.0.3",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  "./ui-mfe-reports.js": "./dist/ui-mfe-reports.js",
@@ -17,8 +17,8 @@
17
17
  "../lib-components/packages/*"
18
18
  ],
19
19
  "scripts": {
20
- "build": "npm run generate-config && tsc && vite build && npx ix-write-versions write-versions",
21
- "build:workspace": "npm run generate-config && npm run build",
20
+ "build": "tsc && vite build && npx ix-write-versions write-versions",
21
+ "build:workspace": "npm run build",
22
22
  "prepack": "npm run build",
23
23
  "clean": "rimraf node_modules dist",
24
24
  "dev": "vite",
@@ -26,8 +26,7 @@
26
26
  "lint": "eslint . --ext ts,tsx --report-unused-disable-directives",
27
27
  "lint:fix": "eslint --fix .",
28
28
  "test": "jest --verbose",
29
- "preview": "vite preview",
30
- "generate-config": "node build_scripts/generate-config"
29
+ "preview": "vite preview"
31
30
  },
32
31
  "dependencies": {
33
32
  "@digital-realty/ix-app-logic": "1.0.4",