@equinor/fusion-framework-cli 9.3.5 → 9.4.0

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/CHANGELOG.md CHANGED
@@ -1,5 +1,19 @@
1
1
  # Change Log
2
2
 
3
+ ## 9.4.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [#1491](https://github.com/equinor/fusion-framework/pull/1491) [`0f2b4e3a`](https://github.com/equinor/fusion-framework/commit/0f2b4e3a97aa08cac2644642b612cd3432d07be4) Thanks [@odinr](https://github.com/odinr)! - Allow setting archive name when packing bundle
8
+
9
+ ### Patch Changes
10
+
11
+ - [#1487](https://github.com/equinor/fusion-framework/pull/1487) [`0dfe5a94`](https://github.com/equinor/fusion-framework/commit/0dfe5a94c89b05da3ea94d5ec0180448ba0df392) Thanks [@dependabot](https://github.com/apps/dependabot)! - build(deps-dev): bump [rollup](https://github.com/rollup/rollup/blob/master/CHANGELOG.md) from 3.29.2 to 4.3.0
12
+
13
+ - [#1478](https://github.com/equinor/fusion-framework/pull/1478) [`28bd0b8c`](https://github.com/equinor/fusion-framework/commit/28bd0b8c17fd6e7c5f5146ff490441d5b3caf602) Thanks [@dependabot](https://github.com/apps/dependabot)! - build(deps-dev): bump [@equinor/fusion-react-side-sheet](https://github.com/equinor/fusion-react-components/releases/tag/%40equinor%2Ffusion-react-side-sheet%401.2.1) from 1.2.0 to 1.2.1
14
+
15
+ - [#1485](https://github.com/equinor/fusion-framework/pull/1485) [`24d02ddd`](https://github.com/equinor/fusion-framework/commit/24d02ddd532424462059a7465ac82df688e1bc6e) Thanks [@dependabot](https://github.com/apps/dependabot)! - [bump read-pkg-up from 10.1.0 to 11.0.0](https://github.com/sindresorhus/read-package-up/compare/v10.1.0...v11.0.0)
16
+
3
17
  ## 9.3.5
4
18
 
5
19
  ### Patch Changes
@@ -8,7 +8,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
8
8
  });
9
9
  };
10
10
  import AdmZip from 'adm-zip';
11
- import { resolve } from 'node:path';
11
+ import { dirname, resolve } from 'node:path';
12
+ import { mkdir } from 'node:fs/promises';
12
13
  import { loadPackage } from './utils/load-package.js';
13
14
  import { chalk, formatByteSize, formatPath } from './utils/format.js';
14
15
  import { Spinner } from './utils/spinner.js';
@@ -48,6 +49,9 @@ export const bundleApplication = (options) => __awaiter(void 0, void 0, void 0,
48
49
  spinner.warn(`missing ${readmeFile}`);
49
50
  }
50
51
  spinner.start('compressing content');
52
+ if (!fileExistsSync(dirname(archive))) {
53
+ yield mkdir(dirname(archive), { recursive: true });
54
+ }
51
55
  bundle.writeZip(archive);
52
56
  spinner.info(formatPath(archive), formatByteSize(archive));
53
57
  spinner.succeed();
@@ -1 +1 @@
1
- {"version":3,"file":"bundle-application.js","sourceRoot":"","sources":["../../src/bin/bundle-application.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,MAAM,MAAM,SAAS,CAAC;AAE7B,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAEpC,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AACtD,OAAO,EAAE,KAAK,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AACtE,OAAO,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAC7C,OAAO,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAC1D,OAAO,oBAAoB,MAAM,6BAA6B,CAAC;AAC/D,OAAO,EAAE,cAAc,EAAE,MAAM,6BAA6B,CAAC;AAE7D,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAAO,OAA4C,EAAE,EAAE;IACpF,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,GAAG,OAAO,CAAC;IAEpC,MAAM,OAAO,GAAG,OAAO,CAAC,MAAM,CAAC,EAAE,UAAU,EAAE,KAAK,CAAC,GAAG,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC;IAElE,MAAM,GAAG,GAAG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,CAAC,CAAC;QAChC,OAAO,CAAC,IAAI,CAAC,SAAS,UAAU,EAAE,CAAC,CAAC;KACvC;SAAM;QACH,OAAO,CAAC,IAAI,CAAC,WAAW,UAAU,EAAE,CAAC,CAAC;KACzC;IAED,OAAO,CAAC,KAAK,CAAC,qBAAqB,CAAC,CAAC;IACrC,IAAI,CAAC,cAAc,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC,EAAE;QACnC,MAAM,KAAK,CAAC,OAAO,CAAC,OAAO,CAAC,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,CAAC;KACtD;IACD,MAAM,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC;IAEzB,OAAO,CAAC,IAAI,CAAC,UAAU,CAAC,OAAO,CAAC,EAAE,cAAc,CAAC,OAAO,CAAC,CAAC,CAAC;IAE3D,OAAO,CAAC,OAAO,EAAE,CAAC;AACtB,CAAC,CAAA,CAAC"}
@@ -78,8 +78,10 @@ export default (program) => {
78
78
  });
79
79
  app.command('pack')
80
80
  .option('-o, --outDir, <string>', 'output directory of package', 'dist')
81
+ .option('-a, --archive, <string>', 'output filename', 'app-bundle.zip')
81
82
  .action((opt) => __awaiter(void 0, void 0, void 0, function* () {
82
- bundleApplication({ archive: 'app-bundle.zip', outDir: opt.outDir });
83
+ const { outDir, archive } = opt;
84
+ bundleApplication({ archive, outDir });
83
85
  }));
84
86
  };
85
87
  //# sourceMappingURL=main.app.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"main.app.js","sourceRoot":"","sources":["../../src/bin/main.app.ts"],"names":[],"mappings":";;;;;;;;;AAEA,OAAO,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AACxD,OAAO,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAE1D,OAAO,EAAE,UAAU,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AACtD,OAAO,oBAAoB,MAAM,6BAA6B,CAAC;AAC/D,OAAO,EAAE,iBAAiB,EAAE,MA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C,CAAO,GAAG,EAAE,EAAE;QAClB,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,GAAG,GAAG,CAAC;QAChC,iBAAiB,CAAC,EAAE,OAAO,EAAE,MAAM,EAAE,CAAC,CAAC;IAC3C,CAAC,CAAA,CAAC,CAAC;AACX,CAAC,CAAC"}
package/dist/bin/main.js CHANGED
@@ -1,7 +1,7 @@
1
1
  var _a;
2
2
  import { fileURLToPath } from 'node:url';
3
3
  import { dirname, resolve } from 'node:path';
4
- import { readPackageUpSync } from 'read-pkg-up';
4
+ import { readPackageUpSync } from 'read-package-up';
5
5
  const pkg = readPackageUpSync({ cwd: fileURLToPath(import.meta.url) });
6
6
  if (!pkg) {
7
7
  throw Error('failed to find program root');
@@ -1 +1 @@
1
- {"version":3,"file":"main.js","sourceRoot":"","sources":["../../src/bin/main.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AACzC,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAG7C,OAAO,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAChD,MAAM,GAAG,GAAG,iBAAiB,CAAC,EAAE,GAAG,EAAE,aAAa,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC;AACvE,IAAI,CAAC,GAAG,EAAE;IACN,MAAM,KAAK,CAAC,6BAA6B,CAAC,CAAC;CAC9C;AACD,OAAO,CAAC,GAAG,CAAC,OAAO,GAAG,OAAO,CACzB,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,EACjB,MAAM,CAAC,GAAG,CAAC,WAAW,CAAC,GAAI,CAAC,sBAAsB,CAAC,CAAC,CACvD,CAAC;AAEF,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAEpC,MAAM,OAAO,GAAG,IAAI,OAAO,EAAE,CAAC;AAC9B,OAAO,CAAC,IAAI,CAAC,GAAG,CAAC,WAAW,CAAC,IAAI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CAAC;AAGzC,OAAO,GAAG,MAAM,eAAe,CAAC;AAChC,GAAG,CAAC,OAAO,CAAC,CAAC;AAGb,OAAO,CAAC,KAAK,EAAE,CAAC"}
@@ -1907,6 +1907,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
1907
1907
  height: 3rem;
1908
1908
  width: 1rem;
1909
1909
  margin-right: 1rem;
1910
+ border-radius: 2px;
1910
1911
  `,QI=({color:r})=>x.jsx(Q1e,{color:r}),XI=({subTitle:r})=>x.jsx(pd,{variant:"meta",children:r}),JI=({title:r})=>x.jsx(pd,{variant:"h4",children:r});var X1e=globalThis&&globalThis.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(n[o]=i[o])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),ir=globalThis&&globalThis.__assign||function(){return ir=Object.assign||function(r){for(var e,t=1,n=arguments.length;t<n;t++){e=arguments[t];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(r[i]=e[i])}return r},ir.apply(this,arguments)},m9={width:"100%",height:"10px",top:"0px",left:"0px",cursor:"row-resize"},v9={width:"10px",height:"100%",top:"0px",left:"0px",cursor:"col-resize"},uf={width:"20px",height:"20px",position:"absolute"},J1e={top:ir(ir({},m9),{top:"-5px"}),right:ir(ir({},v9),{left:void 0,right:"-5px"}),bottom:ir(ir({},m9),{top:void 0,bottom:"-5px"}),left:ir(ir({},v9),{left:"-5px"}),topRight:ir(ir({},uf),{right:"-10px",top:"-10px",cursor:"ne-resize"}),bottomRight:ir(ir({},uf),{right:"-10px",bottom:"-10px",cursor:"se-resize"}),bottomLeft:ir(ir({},uf),{left:"-10px",bottom:"-10px",cursor:"sw-resize"}),topLeft:ir(ir({},uf),{left:"-10px",top:"-10px",cursor:"nw-resize"})},efe=function(r){X1e(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.onMouseDown=function(n){t.props.onResizeStart(n,t.props.direction)},t.onTouchStart=function(n){t.props.onResizeStart(n,t.props.direction)},t}return e.prototype.render=function(){return b.createElement("div",{className:this.props.className||"",style:ir(ir({position:"absolute",userSelect:"none"},J1e[this.props.direction]),this.props.replaceStyles||{}),onMouseDown:this.onMouseDown,onTouchStart:this.onTouchStart},this.props.children)},e}(b.PureComponent),tfe=globalThis&&globalThis.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(n[o]=i[o])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),eo=globalThis&&globalThis.__assign||function(){return eo=Object.assign||function(r){for(var e,t=1,n=arguments.length;t<n;t++){e=arguments[t];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(r[i]=e[i])}return r},eo.apply(this,arguments)},rfe={width:"auto",height:"auto"},hf=function(r,e,t){return Math.max(Math.min(r,t),e)},g9=function(r,e){return Math.round(r/e)*e},Nc=function(r,e){return new RegExp(r,"i").test(e)},ff=function(r){return!!(r.touches&&r.touches.length)},nfe=function(r){return!!((r.clientX||r.clientX===0)&&(r.clientY||r.clientY===0))},y9=function(r,e,t){t===void 0&&(t=0);var n=e.reduce(function(o,a,s){return Math.abs(a-r)<Math.abs(e[o]-r)?s:o},0),i=Math.abs(e[n]-r);return t===0||i<t?e[n]:r},Sv=function(r){return r=r.toString(),r==="auto"||r.endsWith("px")||r.endsWith("%")||r.endsWith("vh")||r.endsWith("vw")||r.endsWith("vmax")||r.endsWith("vmin")?r:r+"px"},pf=function(r,e,t,n){if(r&&typeof r=="string"){if(r.endsWith("px"))return Number(r.replace("px",""));if(r.endsWith("%")){var i=Number(r.replace("%",""))/100;return e*i}if(r.endsWith("vw")){var i=Number(r.replace("vw",""))/100;return t*i}if(r.endsWith("vh")){var i=Number(r.replace("vh",""))/100;return n*i}}return r},ife=function(r,e,t,n,i,o,a){return n=pf(n,r.width,e,t),i=pf(i,r.height,e,t),o=pf(o,r.width,e,t),a=pf(a,r.height,e,t),{maxWidth:typeof n>"u"?void 0:Number(n),maxHeight:typeof i>"u"?void 0:Number(i),minWidth:typeof o>"u"?void 0:Number(o),minHeight:typeof a>"u"?void 0:Number(a)}},ofe=["as","style","className","grid","snap","bounds","boundsByDirection","size","defaultSize","minWidth","minHeight","maxWidth","maxHeight","lockAspectRatio","lockAspectRatioExtraWidth","lockAspectRatioExtraHeight","enable","handleStyles","handleClasses","handleWrapperStyle","handleWrapperClass","children","onResizeStart","onResize","onResizeStop","handleComponent","scale","resizeRatio","snapGap"],_9="__resizable_base__",afe=function(r){tfe(e,r);function e(t){var n=r.call(this,t)||this;return n.ratio=1,n.resizable=null,n.parentLeft=0,n.parentTop=0,n.resizableLeft=0,n.resizableRight=0,n.resizableTop=0,n.resizableBottom=0,n.targetLeft=0,n.targetTop=0,n.appendBase=function(){if(!n.resizable||!n.window)return null;var i=n.parentNode;if(!i)return null;var o=n.window.document.createElement("div");return o.style.width="100%",o.style.height="100%",o.style.position="absolute",o.style.transform="scale(0, 0)",o.style.left="0",o.style.flex="0 0 100%",o.classList?o.classList.add(_9):o.className+=_9,i.appendChild(o),o},n.removeBase=function(i){var o=n.parentNode;o&&o.removeChild(i)},n.ref=function(i){i&&(n.resizable=i)},n.state={isResizing:!1,width:typeof(n.propsSize&&n.propsSize.width)>"u"?"auto":n.propsSize&&n.propsSize.width,height:typeof(n.propsSize&&n.propsSize.height)>"u"?"auto":n.propsSize&&n.propsSize.height,direction:"right",original:{x:0,y:0,width:0,height:0},backgroundStyle:{height:"100%",width:"100%",backgroundColor:"rgba(0,0,0,0)",cursor:"auto",opacity:0,position:"fixed",zIndex:9999,top:"0",left:"0",bottom:"0",right:"0"},flexBasis:void 0},n.onResizeStart=n.onResizeStart.bind(n),n.onMouseMove=n.onMouseMove.bind(n),n.onMouseUp=n.onMouseUp.bind(n),n}return Object.defineProperty(e.prototype,"parentNode",{get:function(){return this.resizable?this.resizable.parentNode:null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"window",{get:function(){return!this.resizable||!this.resizable.ownerDocument?null:this.resizable.ownerDocument.defaultView},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"propsSize",{get:function(){return this.props.size||this.props.defaultSize||rfe},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"size",{get:function(){var t=0,n=0;if(this.resizable&&this.window){var i=this.resizable.offsetWidth,o=this.resizable.offsetHeight,a=this.resizable.style.position;a!=="relative"&&(this.resizable.style.position="relative"),t=this.resizable.style.width!=="auto"?this.resizable.offsetWidth:i,n=this.resizable.style.height!=="auto"?this.resizable.offsetHeight:o,this.resizable.style.position=a}return{width:t,height:n}},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"sizeStyle",{get:function(){var t=this,n=this.props.size,i=function(s){if(typeof t.state[s]>"u"||t.state[s]==="auto")return"auto";if(t.propsSize&&t.propsSize[s]&&t.propsSize[s].toString().endsWith("%")){if(t.state[s].toString().endsWith("%"))return t.state[s].toString();var c=t.getParentSize(),l=Number(t.state[s].toString().replace("px","")),d=l/c[s]*100;return d+"%"}return Sv(t.state[s])},o=n&&typeof n.width<"u"&&!this.state.isResizing?Sv(n.width):i("width"),a=n&&typeof n.height<"u"&&!this.state.isResizing?Sv(n.height):i("height");return{width:o,height:a}},enumerable:!1,configurable:!0}),e.prototype.getParentSize=function(){if(!this.parentNode)return this.window?{width:this.window.innerWidth,height:this.window.innerHeight}:{width:0,height:0};var t=this.appendBase();if(!t)return{width:0,height:0};var n=!1,i=this.parentNode.style.flexWrap;i!=="wrap"&&(n=!0,this.parentNode.style.flexWrap="wrap"),t.style.position="relative",t.style.minWidth="100%",t.style.minHeight="100%";var o={width:t.offsetWidth,height:t.offsetHeight};return n&&(this.parentNode.style.flexWrap=i),this.removeBase(t),o},e.prototype.bindEvents=function(){this.window&&(this.window.addEventListener("mouseup",this.onMouseUp),this.window.addEventListener("mousemove",this.onMouseMove),this.window.addEventListener("mouseleave",this.onMouseUp),this.window.addEventListener("touchmove",this.onMouseMove,{capture:!0,passive:!1}),this.window.addEventListener("touchend",this.onMouseUp))},e.prototype.unbindEvents=function(){this.window&&(this.window.removeEventListener("mouseup",this.onMouseUp),this.window.removeEventListener("mousemove",this.onMouseMove),this.window.removeEventListener("mouseleave",this.onMouseUp),this.window.removeEventListener("touchmove",this.onMouseMove,!0),this.window.removeEventListener("touchend",this.onMouseUp))},e.prototype.componentDidMount=function(){if(!(!this.resizable||!this.window)){var t=this.window.getComputedStyle(this.resizable);this.setState({width:this.state.width||this.size.width,height:this.state.height||this.size.height,flexBasis:t.flexBasis!=="auto"?t.flexBasis:void 0})}},e.prototype.componentWillUnmount=function(){this.window&&this.unbindEvents()},e.prototype.createSizeForCssProperty=function(t,n){var i=this.propsSize&&this.propsSize[n];return this.state[n]==="auto"&&this.state.original[n]===t&&(typeof i>"u"||i==="auto")?"auto":t},e.prototype.calculateNewMaxFromBoundary=function(t,n){var i=this.props.boundsByDirection,o=this.state.direction,a=i&&Nc("left",o),s=i&&Nc("top",o),c,l;if(this.props.bounds==="parent"){var d=this.parentNode;d&&(c=a?this.resizableRight-this.parentLeft:d.offsetWidth+(this.parentLeft-this.resizableLeft),l=s?this.resizableBottom-this.parentTop:d.offsetHeight+(this.parentTop-this.resizableTop))}else this.props.bounds==="window"?this.window&&(c=a?this.resizableRight:this.window.innerWidth-this.resizableLeft,l=s?this.resizableBottom:this.window.innerHeight-this.resizableTop):this.props.bounds&&(c=a?this.resizableRight-this.targetLeft:this.props.bounds.offsetWidth+(this.targetLeft-this.resizableLeft),l=s?this.resizableBottom-this.targetTop:this.props.bounds.offsetHeight+(this.targetTop-this.resizableTop));return c&&Number.isFinite(c)&&(t=t&&t<c?t:c),l&&Number.isFinite(l)&&(n=n&&n<l?n:l),{maxWidth:t,maxHeight:n}},e.prototype.calculateNewSizeFromDirection=function(t,n){var i=this.props.scale||1,o=this.props.resizeRatio||1,a=this.state,s=a.direction,c=a.original,l=this.props,d=l.lockAspectRatio,u=l.lockAspectRatioExtraHeight,h=l.lockAspectRatioExtraWidth,f=c.width,p=c.height,m=u||0,w=h||0;return Nc("right",s)&&(f=c.width+(t-c.x)*o/i,d&&(p=(f-w)/this.ratio+m)),Nc("left",s)&&(f=c.width-(t-c.x)*o/i,d&&(p=(f-w)/this.ratio+m)),Nc("bottom",s)&&(p=c.height+(n-c.y)*o/i,d&&(f=(p-m)*this.ratio+w)),Nc("top",s)&&(p=c.height-(n-c.y)*o/i,d&&(f=(p-m)*this.ratio+w)),{newWidth:f,newHeight:p}},e.prototype.calculateNewSizeFromAspectRatio=function(t,n,i,o){var a=this.props,s=a.lockAspectRatio,c=a.lockAspectRatioExtraHeight,l=a.lockAspectRatioExtraWidth,d=typeof o.width>"u"?10:o.width,u=typeof i.width>"u"||i.width<0?t:i.width,h=typeof o.height>"u"?10:o.height,f=typeof i.height>"u"||i.height<0?n:i.height,p=c||0,m=l||0;if(s){var w=(h-p)*this.ratio+m,g=(f-p)*this.ratio+m,v=(d-m)/this.ratio+p,_=(u-m)/this.ratio+p,y=Math.max(d,w),E=Math.min(u,g),I=Math.max(h,v),A=Math.min(f,_);t=hf(t,y,E),n=hf(n,I,A)}else t=hf(t,d,u),n=hf(n,h,f);return{newWidth:t,newHeight:n}},e.prototype.setBoundingClientRect=function(){if(this.props.bounds==="parent"){var t=this.parentNode;if(t){var n=t.getBoundingClientRect();this.parentLeft=n.left,this.parentTop=n.top}}if(this.props.bounds&&typeof this.props.bounds!="string"){var i=this.props.bounds.getBoundingClientRect();this.targetLeft=i.left,this.targetTop=i.top}if(this.resizable){var o=this.resizable.getBoundingClientRect(),a=o.left,s=o.top,c=o.right,l=o.bottom;this.resizableLeft=a,this.resizableRight=c,this.resizableTop=s,this.resizableBottom=l}},e.prototype.onResizeStart=function(t,n){if(!(!this.resizable||!this.window)){var i=0,o=0;if(t.nativeEvent&&nfe(t.nativeEvent)?(i=t.nativeEvent.clientX,o=t.nativeEvent.clientY):t.nativeEvent&&ff(t.nativeEvent)&&(i=t.nativeEvent.touches[0].clientX,o=t.nativeEvent.touches[0].clientY),this.props.onResizeStart&&this.resizable){var a=this.props.onResizeStart(t,n,this.resizable);if(a===!1)return}this.props.size&&(typeof this.props.size.height<"u"&&this.props.size.height!==this.state.height&&this.setState({height:this.props.size.height}),typeof this.props.size.width<"u"&&this.props.size.width!==this.state.width&&this.setState({width:this.props.size.width})),this.ratio=typeof this.props.lockAspectRatio=="number"?this.props.lockAspectRatio:this.size.width/this.size.height;var s,c=this.window.getComputedStyle(this.resizable);if(c.flexBasis!=="auto"){var l=this.parentNode;if(l){var d=this.window.getComputedStyle(l).flexDirection;this.flexDir=d.startsWith("row")?"row":"column",s=c.flexBasis}}this.setBoundingClientRect(),this.bindEvents();var u={original:{x:i,y:o,width:this.size.width,height:this.size.height},isResizing:!0,backgroundStyle:eo(eo({},this.state.backgroundStyle),{cursor:this.window.getComputedStyle(t.target).cursor||"auto"}),direction:n,flexBasis:s};this.setState(u)}},e.prototype.onMouseMove=function(t){var n=this;if(!(!this.state.isResizing||!this.resizable||!this.window)){if(this.window.TouchEvent&&ff(t))try{t.preventDefault(),t.stopPropagation()}catch{}var i=this.props,o=i.maxWidth,a=i.maxHeight,s=i.minWidth,c=i.minHeight,l=ff(t)?t.touches[0].clientX:t.clientX,d=ff(t)?t.touches[0].clientY:t.clientY,u=this.state,h=u.direction,f=u.original,p=u.width,m=u.height,w=this.getParentSize(),g=ife(w,this.window.innerWidth,this.window.innerHeight,o,a,s,c);o=g.maxWidth,a=g.maxHeight,s=g.minWidth,c=g.minHeight;var v=this.calculateNewSizeFromDirection(l,d),_=v.newHeight,y=v.newWidth,E=this.calculateNewMaxFromBoundary(o,a);this.props.snap&&this.props.snap.x&&(y=y9(y,this.props.snap.x,this.props.snapGap)),this.props.snap&&this.props.snap.y&&(_=y9(_,this.props.snap.y,this.props.snapGap));var I=this.calculateNewSizeFromAspectRatio(y,_,{width:E.maxWidth,height:E.maxHeight},{width:s,height:c});if(y=I.newWidth,_=I.newHeight,this.props.grid){var A=g9(y,this.props.grid[0]),D=g9(_,this.props.grid[1]),te=this.props.snapGap||0;y=te===0||Math.abs(A-y)<=te?A:y,_=te===0||Math.abs(D-_)<=te?D:_}var re={width:y-f.width,height:_-f.height};if(p&&typeof p=="string"){if(p.endsWith("%")){var oe=y/w.width*100;y=oe+"%"}else if(p.endsWith("vw")){var ne=y/this.window.innerWidth*100;y=ne+"vw"}else if(p.endsWith("vh")){var O=y/this.window.innerHeight*100;y=O+"vh"}}if(m&&typeof m=="string"){if(m.endsWith("%")){var oe=_/w.height*100;_=oe+"%"}else if(m.endsWith("vw")){var ne=_/this.window.innerWidth*100;_=ne+"vw"}else if(m.endsWith("vh")){var O=_/this.window.innerHeight*100;_=O+"vh"}}var H={width:this.createSizeForCssProperty(y,"width"),height:this.createSizeForCssProperty(_,"height")};this.flexDir==="row"?H.flexBasis=H.width:this.flexDir==="column"&&(H.flexBasis=H.height),Vh.flushSync(function(){n.setState(H)}),this.props.onResize&&this.props.onResize(t,h,this.resizable,re)}},e.prototype.onMouseUp=function(t){var n=this.state,i=n.isResizing,o=n.direction,a=n.original;if(!(!i||!this.resizable)){var s={width:this.size.width-a.width,height:this.size.height-a.height};this.props.onResizeStop&&this.props.onResizeStop(t,o,this.resizable,s),this.props.size&&this.setState(this.props.size),this.unbindEvents(),this.setState({isResizing:!1,backgroundStyle:eo(eo({},this.state.backgroundStyle),{cursor:"auto"})})}},e.prototype.updateSize=function(t){this.setState({width:t.width,height:t.height})},e.prototype.renderResizer=function(){var t=this,n=this.props,i=n.enable,o=n.handleStyles,a=n.handleClasses,s=n.handleWrapperStyle,c=n.handleWrapperClass,l=n.handleComponent;if(!i)return null;var d=Object.keys(i).map(function(u){return i[u]!==!1?b.createElement(efe,{key:u,direction:u,onResizeStart:t.onResizeStart,replaceStyles:o&&o[u],className:a&&a[u]},l&&l[u]?l[u]:null):null});return b.createElement("div",{className:c,style:s},d)},e.prototype.render=function(){var t=this,n=Object.keys(this.props).reduce(function(a,s){return ofe.indexOf(s)!==-1||(a[s]=t.props[s]),a},{}),i=eo(eo(eo({position:"relative",userSelect:this.state.isResizing?"none":"auto"},this.props.style),this.sizeStyle),{maxWidth:this.props.maxWidth,maxHeight:this.props.maxHeight,minWidth:this.props.minWidth,minHeight:this.props.minHeight,boxSizing:"border-box",flexShrink:0});this.state.flexBasis&&(i.flexBasis=this.state.flexBasis);var o=this.props.as||"div";return b.createElement(o,eo({ref:this.ref,style:i,className:this.props.className},n),this.state.isResizing&&b.createElement("div",{style:this.state.backgroundStyle}),this.props.children,this.renderResizer())},e.defaultProps={as:"div",onResizeStart:function(){},onResize:function(){},onResizeStop:function(){},enable:{top:!0,right:!0,bottom:!0,left:!0,topRight:!0,bottomRight:!0,bottomLeft:!0,topLeft:!0},style:{},grid:[1,1],lockAspectRatio:!1,lockAspectRatioExtraWidth:0,lockAspectRatioExtraHeight:0,scale:1,resizeRatio:1,snapGap:0},e}(b.PureComponent);const sfe=J(pue)`
1911
1912
  animation: ScrimAnimation ease 0.3s;
1912
1913
  animation-iteration-count: 1;
@@ -32,7 +32,7 @@
32
32
  }
33
33
  </style>
34
34
 
35
- <script type="module" crossorigin src="/assets/index-1da0160c.js"></script>
35
+ <script type="module" crossorigin src="/assets/index-18aa3627.js"></script>
36
36
 
37
37
  <body>
38
38
  <div id="root"></div>
@@ -7,7 +7,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
7
7
  step((generator = generator.apply(thisArg, _arguments || [])).next());
8
8
  });
9
9
  };
10
- import { readPackageUp, } from 'read-pkg-up';
10
+ import { readPackageUp, } from 'read-package-up';
11
11
  import { assert } from './utils/assert.js';
12
12
  export function defineAppPackage(fnOrObject) {
13
13
  return fnOrObject;
@@ -1 +1 @@
1
- {"version":3,"file":"app-package.js","sourceRoot":"","sources":["../../src/lib/app-package.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAEH,aAAa,GAEhB,MAAM,aAAa,CAAC;AAGrB,OAAO,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAsB3C,MAAM,UAAU,gBAAgB,CAAC,UAAiC;IAC9D,OAAO,UAAU,CAAC;AACtB,CAAC;AAED,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAAC,WAAiD,EAAE,EAAE;IACnF,MAAM,EAAE,IAAI,EAAE,KAAK,GAAG,WAAW,CAAC,MAAM,EAAE,GAAG,WAAW,CAAC;IACzD,MAAM,CAAC,KAAK,EAAE,uCAAuC,CAAC,CAAC;IACvD,OAAO,KAAK,CAAC;AACjB,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,aAAa,GAAG,CAAC,WAAsC,EAAE,EAAE;IACpE,MAAM,CAAC,WAAW,CAAC,IAAI,EAAE,gCAAgC,CAAC,CAAC;IAC3D,OAAO,WAAW,CAAC,IAAI,CAAC,OAAO,CAAC,aAAa,EAAE,EAAE,CAAC,CAAC;AACvD,CAAC,CAAC;AAGF,MAAM,CAAC,MAAM,aAAa,GAAG,CAAC,IAA6B,EAAE,EAAE,GAAE,CAAC,CAAC;AAEnE,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAC7B,OAAkC,EACP,EAAE;IAC7B,MAAM,MAAM,GAAG,MAAM,aAAa,CAAC,OAAO,CAAC,CAAC;IAC5C,IAAI,CAAC,MAAM,EAAE;QACT,MAAM,KAAK,CAAC,6BAA6B,CAAC,CAAC;KAC9C;IACD,OAAO,MAAM,CAAC;AAClB,CAAC,CAAA,CAAC;AAEF,eAAe,iBAAiB,CAAC"}
1
+ {"version":3,"file":"app-package.js","sourceRoot":"","sources":["../../src/lib/app-package.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAEH,aAAa,GAEhB,MAAM,iBAAiB,CAAC;AAGzB,OAAO,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAsB3C,MAAM,UAAU,gBAAgB,CAAC,UAAiC;IAC9D,OAAO,UAAU,CAAC;AACtB,CAAC;AAED,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAAC,WAAiD,EAAE,EAAE;IACnF,MAAM,EAAE,IAAI,EAAE,KAAK,GAAG,WAAW,CAAC,MAAM,EAAE,GAAG,WAAW,CAAC;IACzD,MAAM,CAAC,KAAK,EAAE,uCAAuC,CAAC,CAAC;IACvD,OAAO,KAAK,CAAC;AACjB,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,aAAa,GAAG,CAAC,WAAsC,EAAE,EAAE;IACpE,MAAM,CAAC,WAAW,CAAC,IAAI,EAAE,gCAAgC,CAAC,CAAC;IAC3D,OAAO,WAAW,CAAC,IAAI,CAAC,OAAO,CAAC,aAAa,EAAE,EAAE,CAAC,CAAC;AACvD,CAAC,CAAC;AAGF,MAAM,CAAC,MAAM,aAAa,GAAG,CAAC,IAA6B,EAAE,EAAE,GAAE,CAAC,CAAC;AAEnE,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAC7B,OAAkC,EACP,EAAE;IAC7B,MAAM,MAAM,GAAG,MAAM,aAAa,CAAC,OAAO,CAAC,CAAC;IAC5C,IAAI,CAAC,MAAM,EAAE;QACT,MAAM,KAAK,CAAC,6BAA6B,CAAC,CAAC;KAC9C;IACD,OAAO,MAAM,CAAC;AAClB,CAAC,CAAA,CAAC;AAEF,eAAe,iBAAiB,CAAC"}
@@ -9,7 +9,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
9
9
  };
10
10
  import tsc from 'typescript';
11
11
  import { dirname, join, resolve } from 'node:path';
12
- import { readPackageUp } from 'read-pkg-up';
12
+ import { readPackageUp } from 'read-package-up';
13
13
  import assert from 'node:assert';
14
14
  import { existsSync } from 'node:fs';
15
15
  import { mkdir, readFile, stat, writeFile } from 'node:fs/promises';
@@ -1 +1 @@
1
- {"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W,EAAE;YAC3B,OAAO,UAAU,CAAC;SACrB;KACJ;IAED,IAAI,CAAC,UAAU,CAAC,OAAO,CAAC,UAAU,CAAC,CAAC,EAAE;QAClC,MAAM,KAAK,CAAC,QAAQ,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,CAAC;KAC9C;IAED,MAAM,eAAe,GAAG,MAAM,mBAAmB,CAAC,eAAe,CAAC,CAAC;IAEnE,MAAM,SAAS,GAAG,CAAC,MAAM,QAAQ,CAAC,UAAU,CAAC,CAAC,CAAC,QAAQ,EAAE,CAAC;IAC1D,MAAM,SAAS,GAAG,GAAG,CAAC,eAAe,CAAC,SAAS,EAAE,EAAE,eAAe,EAAE,CAAC,CAAC,UAAU,CAAC;IAEjF,MAAM,CAAC,SAAS,EAAE,wBAAwB,IAAI,GAAG,CAAC,CAAC;IAEnD,MAAM,SAAS,CAAC,UAAU,EAAE,SAAS,CAAC,CAAC;IACvC,OAAO,UAAU,CAAC;AACtB,CAAC,CAAA,CAAC;AAEF,MAAM,mBAAmB,GAAG,CAAC,QAAgB,EAA4B,EAAE;IACvE,MAAM,MAAM,GAAG,GAAG,CAAC,cAAc,CAAC,QAAQ,EAAE,GAAG,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC,MAAM,CAAC;IACrE,IAAI,MAAM,CAAC,OAAO,EAAE;QAChB,MAAM,QAAQ,GAAG,OAAO,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;QACzC,uCACO,mBAAmB,CAAC,QAAQ,CAAC,GAC7B,MAAM,CAAC,eAAe,EAC3B;KACL;IACD,OAAO,MAAM,CAAC,eAAe,CAAC;AAClC,CAAC,CAAC;AAEF,eAAe,SAAS,CAAC"}
@@ -1,4 +1,4 @@
1
- import { PackageJson, type NormalizeOptions as ResolveAppPackageOptions } from 'read-pkg-up';
1
+ import { PackageJson, type NormalizeOptions as ResolveAppPackageOptions } from 'read-package-up';
2
2
  import { AppManifest } from './app-manifest.js';
3
3
  export type AppPackageJson = PackageJson & {
4
4
  manifest?: AppManifest;
@@ -1 +1 @@
1
- export declare const version = "9.3.5";
1
+ export declare const version = "9.4.0";
package/dist/version.js CHANGED
@@ -1,2 +1,2 @@
1
- export const version = '9.3.5';
1
+ export const version = '9.4.0';
2
2
  //# sourceMappingURL=version.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@equinor/fusion-framework-cli",
3
- "version": "9.3.5",
3
+ "version": "9.4.0",
4
4
  "keywords": [
5
5
  "Fusion",
6
6
  "Fusion Framework",
@@ -45,7 +45,7 @@
45
45
  "ora": "^7.0.1",
46
46
  "portfinder": "^1.0.32",
47
47
  "pretty-bytes": "^6.1.1",
48
- "read-pkg-up": "^10.0.0",
48
+ "read-package-up": "^11.0.0",
49
49
  "semver": "^7.5.4",
50
50
  "vite": "^4.4.9",
51
51
  "vite-plugin-environment": "^1.1.3",
@@ -65,7 +65,7 @@
65
65
  "@equinor/fusion-react-menu": "^0.2.0",
66
66
  "@equinor/fusion-react-person": "^0.6.0",
67
67
  "@equinor/fusion-react-progress-indicator": "^0.2.0",
68
- "@equinor/fusion-react-side-sheet": "1.2.0",
68
+ "@equinor/fusion-react-side-sheet": "1.2.1",
69
69
  "@equinor/fusion-react-styles": "^0.6.0",
70
70
  "@material-ui/styles": "^4.11.5",
71
71
  "@types/express": "^4.17.17",
@@ -75,7 +75,7 @@
75
75
  "react": "^18.2.0",
76
76
  "react-dom": "^18.2.0",
77
77
  "react-router-dom": "^6.15.0",
78
- "rollup": "^3.28.1",
78
+ "rollup": "^4.3.0",
79
79
  "rxjs": "^7.8.1",
80
80
  "styled-components": "^6.0.7",
81
81
  "types": "link:./types",
@@ -87,10 +87,10 @@
87
87
  "@equinor/fusion-framework-module-context": "^4.0.17",
88
88
  "@equinor/fusion-framework-module-http": "^5.1.1",
89
89
  "@equinor/fusion-framework-module-msal": "^3.0.7",
90
- "@equinor/fusion-framework-module-navigation": "^3.1.2",
91
90
  "@equinor/fusion-framework-module-services": "^3.2.2",
92
91
  "@equinor/fusion-framework-react": "^5.3.3",
93
92
  "@equinor/fusion-framework-react-components-bookmark": "^0.2.11",
93
+ "@equinor/fusion-framework-module-navigation": "^3.1.2",
94
94
  "@equinor/fusion-framework-react-module-bookmark": "^2.0.21",
95
95
  "@equinor/fusion-query": "^4.0.3"
96
96
  },