@mxstage/mxstage 0.2.4
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/LICENSE +109 -0
- package/README.md +142 -0
- package/THIRD_PARTY_LICENSES.txt +10365 -0
- package/THIRD_PARTY_NOTICES.md +33 -0
- package/app/apple-touch-icon.png +0 -0
- package/app/assets/data-grid-overlay-editor-DQtebd85.js +1 -0
- package/app/assets/ibm-plex-mono-latin-400-normal-CvHOgSBP.woff +0 -0
- package/app/assets/ibm-plex-mono-latin-400-normal-DMJ8VG8y.woff2 +0 -0
- package/app/assets/ibm-plex-sans-jp-japanese-400-normal-D9b5-NCV.woff +0 -0
- package/app/assets/ibm-plex-sans-jp-japanese-400-normal-WWS2zpoO.woff2 +0 -0
- package/app/assets/ibm-plex-sans-jp-japanese-600-normal-G82u7SZs.woff2 +0 -0
- package/app/assets/ibm-plex-sans-jp-japanese-600-normal-Yx8moQLO.woff +0 -0
- package/app/assets/ibm-plex-sans-latin-400-normal-CDDApCn2.woff2 +0 -0
- package/app/assets/ibm-plex-sans-latin-400-normal-CYLoc0-x.woff +0 -0
- package/app/assets/ibm-plex-sans-latin-600-normal-Cu4Hd6ag.woff +0 -0
- package/app/assets/ibm-plex-sans-latin-600-normal-CuJfVYMP.woff2 +0 -0
- package/app/assets/index-B6-YMnm2.js +280 -0
- package/app/assets/index-B7H0eul9.css +1 -0
- package/app/assets/number-overlay-editor-ASCP4orf.js +9 -0
- package/app/assets/vault.worker-sXMFUEQ6.js +1 -0
- package/app/favicon-32.png +0 -0
- package/app/favicon.svg +1 -0
- package/app/icon-192.png +0 -0
- package/app/icon-512.png +0 -0
- package/app/icon-maskable-512.png +0 -0
- package/app/index.html +22 -0
- package/app/manifest.webmanifest +18 -0
- package/app/sw.js +1 -0
- package/bin/mxstage.mjs +6 -0
- package/package.json +47 -0
- package/server/mxstage-bridge.mjs +39669 -0
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
# Third-party notices
|
|
2
|
+
|
|
3
|
+
MX Stage is licensed under the Business Source License 1.1 ([LICENSE](LICENSE)). It is built with the open-source components listed below. Each component stays under its own license, and nothing in LICENSE limits your rights under those licenses.
|
|
4
|
+
|
|
5
|
+
This repository does not contain copies of these components. `npm install` downloads them, and each package includes its own license text (`node_modules/<package>/LICENSE`). Release packages of MX Stage include the full license text of every component they bundle.
|
|
6
|
+
|
|
7
|
+
## Work screen (built into `dist/app`)
|
|
8
|
+
|
|
9
|
+
| Component | License | Copyright |
|
|
10
|
+
| --- | --- | --- |
|
|
11
|
+
| [Carbon Design System](https://github.com/carbon-design-system/carbon): `@carbon/react`, `@carbon/styles`, `@carbon/icons-react` and the `@carbon/*` packages they use | Apache-2.0 | Copyright IBM Corp. 2016, 2026 |
|
|
12
|
+
| [IBM Plex](https://github.com/IBM/plex) fonts: IBM Plex Sans, IBM Plex Sans JP and IBM Plex Mono, packaged by [Fontsource](https://fontsource.org) | SIL Open Font License 1.1 | Copyright © 2017 IBM Corp. with Reserved Font Name "Plex" |
|
|
13
|
+
| [React](https://react.dev): `react`, `react-dom`, `react-is` | MIT | Copyright (c) Facebook, Inc. and its affiliates |
|
|
14
|
+
| [Glide Data Grid](https://github.com/glideapps/glide-data-grid) | MIT | Copyright (c) 2021 typeguard, Inc. |
|
|
15
|
+
| [Zod](https://zod.dev) | MIT | Copyright (c) 2025 Colin McDonnell |
|
|
16
|
+
| [marked](https://github.com/markedjs/marked) | MIT | Copyright (c) 2018+, MarkedJS; Copyright (c) 2011-2018, Christopher Jeffrey |
|
|
17
|
+
| [Lodash](https://lodash.com) | MIT | Copyright OpenJS Foundation and other contributors |
|
|
18
|
+
| [react-responsive-carousel](https://github.com/leandrowd/react-responsive-carousel) | MIT | See the package's LICENSE |
|
|
19
|
+
|
|
20
|
+
These components bring in smaller libraries under the MIT, Apache-2.0, ISC, BSD-3-Clause and 0BSD licenses (for example Floating UI, Downshift, flatpickr, Motion and Linaria).
|
|
21
|
+
|
|
22
|
+
MX Stage uses the IBM Plex fonts without modification. "Plex" is a Reserved Font Name under the SIL Open Font License 1.1.
|
|
23
|
+
|
|
24
|
+
## Bridge (the local MCP server)
|
|
25
|
+
|
|
26
|
+
| Component | License | Copyright |
|
|
27
|
+
| --- | --- | --- |
|
|
28
|
+
| [MCP TypeScript SDK](https://github.com/modelcontextprotocol/typescript-sdk): `@modelcontextprotocol/server`, `@modelcontextprotocol/core` | MIT and Apache-2.0 (the project is moving from MIT to Apache-2.0; see the package's LICENSE) | See the package's LICENSE |
|
|
29
|
+
| [Zod](https://zod.dev) | MIT | Copyright (c) 2025 Colin McDonnell |
|
|
30
|
+
|
|
31
|
+
## Trademarks
|
|
32
|
+
|
|
33
|
+
IBM and Maximo are trademarks of International Business Machines Corporation, registered in many jurisdictions worldwide. MX Stage is an independent product. It is not affiliated with, sponsored by or endorsed by IBM.
|
|
Binary file
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{s as L,r,i as D,a as $,b as z,c as J,T as Q,C as U,m as Z}from"./index-B6-YMnm2.js";const ee=()=>t=>t.targetX,te=()=>t=>t.targetY,re=()=>t=>t.targetWidth,ne=()=>t=>t.targetHeight,ie=()=>t=>t.targetY+10,se=()=>t=>Math.max(0,(t.targetHeight-28)/2),ae=L("div")({name:"DataGridOverlayEditorStyle",class:"gdg-d19meir1",propsAsIs:!1,vars:{"d19meir1-0":[te(),"px"],"d19meir1-1":[ee(),"px"],"d19meir1-2":[re(),"px"],"d19meir1-3":[ne(),"px"],"d19meir1-4":[ie(),"px"],"d19meir1-5":[se(),"px"]}});function oe(){const[t,s]=r.useState();return[t??void 0,s]}function de(){const[t,s]=oe(),[n,p]=r.useState(0),[f,b]=r.useState(!0);r.useLayoutEffect(()=>{if(t===void 0||!("IntersectionObserver"in window))return;const a=new IntersectionObserver(o=>{o.length!==0&&b(o[0].isIntersecting)},{threshold:1});return a.observe(t),()=>a.disconnect()},[t]),r.useEffect(()=>{if(f||t===void 0)return;let a;const o=()=>{const{right:v}=t.getBoundingClientRect();p(g=>Math.min(g+window.innerWidth-v-10,0)),a=requestAnimationFrame(o)};return a=requestAnimationFrame(o),()=>{a!==void 0&&cancelAnimationFrame(a)}},[t,f]);const C=r.useMemo(()=>({transform:`translateX(${n}px)`}),[n]);return{ref:s,style:C}}const ue=t=>{const{target:s,content:n,onFinishEditing:p,forceEditMode:f,initialValue:b,imageEditorOverride:C,markdownDivCreateNode:a,highlight:o,className:v,theme:g,id:G,cell:x,bloom:I,validateCell:m,getCellRenderer:w,provideEditor:F,isOutsideClick:H}=t,[d,X]=r.useState(f?n:void 0),O=r.useRef(d??n);O.current=d??n;const[y,S]=r.useState(()=>m===void 0?!0:!(D(n)&&m?.(x,n,O.current)===!1)),u=r.useCallback((e,i)=>{p(y?e:void 0,i)},[y,p]),A=r.useCallback(e=>{if(m!==void 0&&e!==void 0&&D(e)){const i=m(x,e,O.current);i===!1?S(!1):(typeof i=="object"&&(e=i),S(!0))}X(e)},[x,m]),h=r.useRef(!1),c=r.useRef(void 0),K=r.useCallback(()=>{u(d,[0,0]),h.current=!0},[d,u]),W=r.useCallback((e,i)=>{u(e,i??c.current??[0,0]),h.current=!0},[u]),Y=r.useCallback(async e=>{let i=!1;e.key==="Escape"?(e.stopPropagation(),e.preventDefault(),c.current=[0,0]):e.key==="Enter"&&!e.shiftKey?(e.stopPropagation(),e.preventDefault(),c.current=[0,1],i=!0):e.key==="Tab"&&(e.stopPropagation(),e.preventDefault(),c.current=[e.shiftKey?-1:1,0],i=!0),window.setTimeout(()=>{!h.current&&c.current!==void 0&&(u(i?d:void 0,c.current),h.current=!0)},0)},[u,d]),k=d??n,[l,j]=r.useMemo(()=>{if($(n))return[];const e=F?.(n);return e!==void 0?[e,!1]:[w(n)?.provideEditor?.(n),!1]},[n,w,F]),{ref:q,style:B}=de();let P=!0,M,_=!0,E;if(l!==void 0){P=l.disablePadding!==!0,_=l.disableStyling!==!0;const e=z(l);e&&(E=l.styleOverride);const i=e?l.editor:l;M=r.createElement(i,{isHighlighted:o,onChange:A,value:k,initialValue:b,onFinishedEditing:W,validatedSelection:D(k)?k.selectionRange:void 0,forceEditMode:f,target:s,imageEditorOverride:C,markdownDivCreateNode:a,isValid:y,theme:g})}E={...E,...B};const N=document.getElementById("portal");if(N===null)return console.error('Cannot open Data Grid overlay editor, because portal not found. Please add `<div id="portal" />` as the last child of your `<body>`.'),null;let R=_?"gdg-style":"gdg-unstyle";y||(R+=" gdg-invalid"),P&&(R+=" gdg-pad");const T=I?.[0]??1,V=I?.[1]??1;return J.createPortal(r.createElement(Q.Provider,{value:g},r.createElement(U,{style:Z(g),className:v,onClickOutside:K,isOutsideClick:H},r.createElement(ae,{ref:q,id:G,className:R,style:E,as:j===!0?"label":void 0,targetX:s.x-T,targetY:s.y-V,targetWidth:s.width+T*2,targetHeight:s.height+V*2},r.createElement("div",{className:"gdg-clip-region",onKeyDown:Y},M)))),N)};export{ue as default};
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|