@synnaxlabs/media 0.45.1 → 0.47.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.
@@ -0,0 +1,3 @@
1
+ import { default as synnaxConfig } from 'eslint-config-synnaxlabs';
2
+ export default synnaxConfig;
3
+ //# sourceMappingURL=eslint.config.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"eslint.config.d.ts","sourceRoot":"","sources":["../eslint.config.ts"],"names":[],"mappings":"AASA,OAAO,YAAY,MAAM,0BAA0B,CAAC;AAEpD,eAAe,YAAY,CAAC"}
package/dist/media.cjs CHANGED
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const ae=require("react");var j={exports:{}},E={};/**
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const ae=require("react");var b={exports:{}},E={};/**
2
2
  * @license React
3
3
  * react-jsx-runtime.production.js
4
4
  *
@@ -6,7 +6,7 @@
6
6
  *
7
7
  * This source code is licensed under the MIT license found in the
8
8
  * LICENSE file in the root directory of this source tree.
9
- */var $;function oe(){if($)return E;$=1;var n=Symbol.for("react.transitional.element"),s=Symbol.for("react.fragment");function i(o,l,f){var p=null;if(f!==void 0&&(p=""+f),l.key!==void 0&&(p=""+l.key),"key"in l){f={};for(var v in l)v!=="key"&&(f[v]=l[v])}else f=l;return l=f.ref,{$$typeof:n,type:o,key:p,ref:l!==void 0?l:null,props:f}}return E.Fragment=s,E.jsx=i,E.jsxs=i,E}var g={};/**
9
+ */var $;function oe(){if($)return E;$=1;var n=Symbol.for("react.transitional.element"),s=Symbol.for("react.fragment");function i(o,l,f){var p=null;if(f!==void 0&&(p=""+f),l.key!==void 0&&(p=""+l.key),"key"in l){f={};for(var v in l)v!=="key"&&(f[v]=l[v])}else f=l;return l=f.ref,{$$typeof:n,type:o,key:p,ref:l!==void 0?l:null,props:f}}return E.Fragment=s,E.jsx=i,E.jsxs=i,E}var _={};/**
10
10
  * @license React
11
11
  * react-jsx-runtime.development.js
12
12
  *
@@ -14,9 +14,9 @@
14
14
  *
15
15
  * This source code is licensed under the MIT license found in the
16
16
  * LICENSE file in the root directory of this source tree.
17
- */var U;function se(){return U||(U=1,process.env.NODE_ENV!=="production"&&function(){function n(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===re?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case _:return"Fragment";case z:return"Profiler";case V:return"StrictMode";case Z:return"Suspense";case Q:return"SuspenseList";case ee:return"Activity"}if(typeof e=="object")switch(typeof e.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),e.$$typeof){case J:return"Portal";case H:return(e.displayName||"Context")+".Provider";case B:return(e._context.displayName||"Context")+".Consumer";case X:var r=e.render;return e=e.displayName,e||(e=r.displayName||r.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case K:return r=e.displayName||null,r!==null?r:n(e.type)||"Memo";case A:r=e._payload,e=e._init;try{return n(e(r))}catch{}}return null}function s(e){return""+e}function i(e){try{s(e);var r=!1}catch{r=!0}if(r){r=console;var a=r.error,c=typeof Symbol=="function"&&Symbol.toStringTag&&e[Symbol.toStringTag]||e.constructor.name||"Object";return a.call(r,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",c),s(e)}}function o(e){if(e===_)return"<>";if(typeof e=="object"&&e!==null&&e.$$typeof===A)return"<...>";try{var r=n(e);return r?"<"+r+">":"<...>"}catch{return"<...>"}}function l(){var e=R.A;return e===null?null:e.getOwner()}function f(){return Error("react-stack-top-frame")}function p(e){if(P.call(e,"key")){var r=Object.getOwnPropertyDescriptor(e,"key").get;if(r&&r.isReactWarning)return!1}return e.key!==void 0}function v(e,r){function a(){L||(L=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",r))}a.isReactWarning=!0,Object.defineProperty(e,"key",{get:a,configurable:!0})}function G(){var e=n(this.type);return N[e]||(N[e]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),e=this.props.ref,e!==void 0?e:null}function q(e,r,a,c,m,d,y,T){return a=d.ref,e={$$typeof:O,type:e,key:r,props:d,_owner:m},(a!==void 0?a:null)!==null?Object.defineProperty(e,"ref",{enumerable:!1,get:G}):Object.defineProperty(e,"ref",{enumerable:!1,value:null}),e._store={},Object.defineProperty(e._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(e,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(e,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:y}),Object.defineProperty(e,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:T}),Object.freeze&&(Object.freeze(e.props),Object.freeze(e)),e}function k(e,r,a,c,m,d,y,T){var u=r.children;if(u!==void 0)if(c)if(te(u)){for(c=0;c<u.length;c++)S(u[c]);Object.freeze&&Object.freeze(u)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else S(u);if(P.call(r,"key")){u=n(e);var x=Object.keys(r).filter(function(ne){return ne!=="key"});c=0<x.length?"{key: someKey, "+x.join(": ..., ")+": ...}":"{key: someKey}",I[u+c]||(x=0<x.length?"{"+x.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
17
+ */var U;function se(){return U||(U=1,process.env.NODE_ENV!=="production"&&(function(){function n(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===re?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case j:return"Fragment";case z:return"Profiler";case V:return"StrictMode";case Z:return"Suspense";case Q:return"SuspenseList";case ee:return"Activity"}if(typeof e=="object")switch(typeof e.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),e.$$typeof){case J:return"Portal";case H:return(e.displayName||"Context")+".Provider";case B:return(e._context.displayName||"Context")+".Consumer";case X:var r=e.render;return e=e.displayName,e||(e=r.displayName||r.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case K:return r=e.displayName||null,r!==null?r:n(e.type)||"Memo";case A:r=e._payload,e=e._init;try{return n(e(r))}catch{}}return null}function s(e){return""+e}function i(e){try{s(e);var r=!1}catch{r=!0}if(r){r=console;var a=r.error,c=typeof Symbol=="function"&&Symbol.toStringTag&&e[Symbol.toStringTag]||e.constructor.name||"Object";return a.call(r,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",c),s(e)}}function o(e){if(e===j)return"<>";if(typeof e=="object"&&e!==null&&e.$$typeof===A)return"<...>";try{var r=n(e);return r?"<"+r+">":"<...>"}catch{return"<...>"}}function l(){var e=R.A;return e===null?null:e.getOwner()}function f(){return Error("react-stack-top-frame")}function p(e){if(P.call(e,"key")){var r=Object.getOwnPropertyDescriptor(e,"key").get;if(r&&r.isReactWarning)return!1}return e.key!==void 0}function v(e,r){function a(){L||(L=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",r))}a.isReactWarning=!0,Object.defineProperty(e,"key",{get:a,configurable:!0})}function G(){var e=n(this.type);return N[e]||(N[e]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),e=this.props.ref,e!==void 0?e:null}function q(e,r,a,c,m,d,y,T){return a=d.ref,e={$$typeof:O,type:e,key:r,props:d,_owner:m},(a!==void 0?a:null)!==null?Object.defineProperty(e,"ref",{enumerable:!1,get:G}):Object.defineProperty(e,"ref",{enumerable:!1,value:null}),e._store={},Object.defineProperty(e._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(e,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(e,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:y}),Object.defineProperty(e,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:T}),Object.freeze&&(Object.freeze(e.props),Object.freeze(e)),e}function k(e,r,a,c,m,d,y,T){var u=r.children;if(u!==void 0)if(c)if(te(u)){for(c=0;c<u.length;c++)S(u[c]);Object.freeze&&Object.freeze(u)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else S(u);if(P.call(r,"key")){u=n(e);var x=Object.keys(r).filter(function(ne){return ne!=="key"});c=0<x.length?"{key: someKey, "+x.join(": ..., ")+": ...}":"{key: someKey}",I[u+c]||(x=0<x.length?"{"+x.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
18
18
  let props = %s;
19
19
  <%s {...props} />
20
20
  React keys must be passed directly to JSX without using spread:
21
21
  let props = %s;
22
- <%s key={someKey} {...props} />`,c,u,x,u),I[u+c]=!0)}if(u=null,a!==void 0&&(i(a),u=""+a),p(r)&&(i(r.key),u=""+r.key),"key"in r){a={};for(var w in r)w!=="key"&&(a[w]=r[w])}else a=r;return u&&v(a,typeof e=="function"?e.displayName||e.name||"Unknown":e),q(e,u,d,m,l(),a,y,T)}function S(e){typeof e=="object"&&e!==null&&e.$$typeof===O&&e._store&&(e._store.validated=1)}var b=ae,O=Symbol.for("react.transitional.element"),J=Symbol.for("react.portal"),_=Symbol.for("react.fragment"),V=Symbol.for("react.strict_mode"),z=Symbol.for("react.profiler"),B=Symbol.for("react.consumer"),H=Symbol.for("react.context"),X=Symbol.for("react.forward_ref"),Z=Symbol.for("react.suspense"),Q=Symbol.for("react.suspense_list"),K=Symbol.for("react.memo"),A=Symbol.for("react.lazy"),ee=Symbol.for("react.activity"),re=Symbol.for("react.client.reference"),R=b.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,P=Object.prototype.hasOwnProperty,te=Array.isArray,h=console.createTask?console.createTask:function(){return null};b={"react-stack-bottom-frame":function(e){return e()}};var L,N={},C=b["react-stack-bottom-frame"].bind(b,f)(),Y=h(o(f)),I={};g.Fragment=_,g.jsx=function(e,r,a,c,m){var d=1e4>R.recentlyCreatedOwnerStacks++;return k(e,r,a,!1,c,m,d?Error("react-stack-top-frame"):C,d?h(o(e)):Y)},g.jsxs=function(e,r,a,c,m){var d=1e4>R.recentlyCreatedOwnerStacks++;return k(e,r,a,!0,c,m,d?Error("react-stack-top-frame"):C,d?h(o(e)):Y)}}()),g}var F;function ie(){return F||(F=1,process.env.NODE_ENV==="production"?j.exports=oe():j.exports=se()),j.exports}var t=ie();function M(n){var s,i,o="";if(typeof n=="string"||typeof n=="number")o+=n;else if(typeof n=="object")if(Array.isArray(n)){var l=n.length;for(s=0;s<l;s++)n[s]&&(i=M(n[s]))&&(o&&(o+=" "),o+=i)}else for(i in n)n[i]&&(o&&(o+=" "),o+=i);return o}function le(){for(var n,s,i=0,o="",l=arguments.length;i<l;i++)(n=arguments[i])&&(s=M(n))&&(o&&(o+=" "),o+=s);return o}const ce=n=>t.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 200 189.34",...n,children:[t.jsxs("defs",{children:[t.jsxs("linearGradient",{id:"synnax-linear-gradient",x1:"-2.63",y1:"56.85",x2:"167.19",y2:"157.88",gradientUnits:"userSpaceOnUse",children:[t.jsx("stop",{offset:"0",stopColor:"#10007f"}),t.jsx("stop",{offset:"1",stopColor:"#0084e9"})]}),t.jsxs("filter",{id:"fillpartial",primitiveUnits:"objectBoundingBox",x:"0%",y:"0%",width:"100%",height:"100%",children:[t.jsx("feFlood",{x:"0%",y:"0%",width:"100%",height:"100%"}),t.jsx("feOffset",{dy:"0.5",children:t.jsx("animate",{attributeName:"dy",from:"1",to:"0",dur:"1s",repeatCount:"indefinite"})}),t.jsx("feComposite",{operator:"in",in2:"SourceGraphic"}),t.jsx("feComposite",{operator:"over",in2:"SourceGraphic"})]})]}),t.jsx("g",{id:"Layer_2","data-name":"Layer 2",children:t.jsx("g",{id:"Layer_1-2","data-name":"Layer 1",children:t.jsx("path",{filter:"url(#fillpartial)",stroke:"black",strokeWidth:"1",className:"cls-1",d:"M52.61,168.82A14.81,14.81,0,0,1,39.78,146.6L94.22,52.33c5.7-9.88,20-9.88,25.9.42l51.77,89.67a6.88,6.88,0,0,0,2.48,2.49l15.42,8.9a6.78,6.78,0,0,0,9.26-9.27L119.87,7.41a14.8,14.8,0,0,0-25.65,0L2,167.12a14.81,14.81,0,0,0,12.83,22.22H170.39a6.79,6.79,0,0,0,3.39-12.66l-12.05-7a6.83,6.83,0,0,0-3.39-.91Z"})})})]}),ue=n=>t.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 200 189.34",...n,children:[t.jsx("defs",{children:t.jsxs("linearGradient",{id:"synnax-linear-gradient",x1:"-2.63",y1:"56.85",x2:"167.19",y2:"157.88",gradientUnits:"userSpaceOnUse",children:[t.jsx("stop",{offset:"0",stopColor:"#10007f"}),t.jsx("stop",{offset:"1",stopColor:"#0084e9"})]})}),t.jsx("g",{id:"Layer_2","data-name":"Layer 2",children:t.jsx("g",{id:"Layer_1-2","data-name":"Layer 1",children:t.jsx("path",{className:"cls-1",vectorEffect:"non-scaling-stroke",d:"M52.61,168.82A14.81,14.81,0,0,1,39.78,146.6L94.22,52.33c5.7-9.88,20-9.88,25.9.42l51.77,89.67a6.88,6.88,0,0,0,2.48,2.49l15.42,8.9a6.78,6.78,0,0,0,9.26-9.27L119.87,7.41a14.8,14.8,0,0,0-25.65,0L2,167.12a14.81,14.81,0,0,0,12.83,22.22H170.39a6.79,6.79,0,0,0,3.39-12.66l-12.05-7a6.83,6.83,0,0,0-3.39-.91Z"})})})]}),fe=n=>t.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1050 285",...n,children:[t.jsx("defs",{children:t.jsxs("linearGradient",{id:"synnax-linear-gradient",x1:"-2.64",y1:"16561.34",x2:"167.18",y2:"16460.3",gradientTransform:"matrix(1, 0, 0, -1, 0, 16643.76)",gradientUnits:"userSpaceOnUse",children:[t.jsx("stop",{offset:"0",stopColor:"#10007f"}),t.jsx("stop",{offset:"1",stopColor:"#0084e9"})]})}),t.jsxs("g",{id:"Layer_2","data-name":"Layer 2",children:[t.jsx("path",{d:"M52.6,194.4a14.81,14.81,0,0,1-12.83-22.22L94.21,77.91c5.7-9.88,20-9.88,25.9.42L171.88,168a6.78,6.78,0,0,0,2.48,2.48l15.42,8.91a6.78,6.78,0,0,0,9.26-9.27L119.86,33a14.8,14.8,0,0,0-25.65,0L2,192.69a14.81,14.81,0,0,0,12.83,22.22H170.38a6.78,6.78,0,0,0,3.39-12.65l-12.05-6.95a6.73,6.73,0,0,0-3.39-.91Z"}),t.jsx("text",{transform:"translate(208.99 215.58)",children:"Synnax"})]})]}),de={icon:ue,title:fe,loader:ce},W=({variant:n="icon",color:s="auto",className:i,...o})=>{const l=de[n];return t.jsx(l,{className:le("synnax-logo",`synnax-logo--${s}`,`synnax-logo--${n}`,i),...o})},me=({children:n,...s})=>t.jsxs("div",{className:"synnax-logo-watermark__container",children:[t.jsx(W,{className:"synnax-logo-watermark",...s}),n]}),D=W;D.Watermark=me;exports.Logo=D;
22
+ <%s key={someKey} {...props} />`,c,u,x,u),I[u+c]=!0)}if(u=null,a!==void 0&&(i(a),u=""+a),p(r)&&(i(r.key),u=""+r.key),"key"in r){a={};for(var w in r)w!=="key"&&(a[w]=r[w])}else a=r;return u&&v(a,typeof e=="function"?e.displayName||e.name||"Unknown":e),q(e,u,d,m,l(),a,y,T)}function S(e){typeof e=="object"&&e!==null&&e.$$typeof===O&&e._store&&(e._store.validated=1)}var g=ae,O=Symbol.for("react.transitional.element"),J=Symbol.for("react.portal"),j=Symbol.for("react.fragment"),V=Symbol.for("react.strict_mode"),z=Symbol.for("react.profiler"),B=Symbol.for("react.consumer"),H=Symbol.for("react.context"),X=Symbol.for("react.forward_ref"),Z=Symbol.for("react.suspense"),Q=Symbol.for("react.suspense_list"),K=Symbol.for("react.memo"),A=Symbol.for("react.lazy"),ee=Symbol.for("react.activity"),re=Symbol.for("react.client.reference"),R=g.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,P=Object.prototype.hasOwnProperty,te=Array.isArray,h=console.createTask?console.createTask:function(){return null};g={react_stack_bottom_frame:function(e){return e()}};var L,N={},C=g.react_stack_bottom_frame.bind(g,f)(),Y=h(o(f)),I={};_.Fragment=j,_.jsx=function(e,r,a,c,m){var d=1e4>R.recentlyCreatedOwnerStacks++;return k(e,r,a,!1,c,m,d?Error("react-stack-top-frame"):C,d?h(o(e)):Y)},_.jsxs=function(e,r,a,c,m){var d=1e4>R.recentlyCreatedOwnerStacks++;return k(e,r,a,!0,c,m,d?Error("react-stack-top-frame"):C,d?h(o(e)):Y)}})()),_}var F;function ie(){return F||(F=1,process.env.NODE_ENV==="production"?b.exports=oe():b.exports=se()),b.exports}var t=ie();function M(n){var s,i,o="";if(typeof n=="string"||typeof n=="number")o+=n;else if(typeof n=="object")if(Array.isArray(n)){var l=n.length;for(s=0;s<l;s++)n[s]&&(i=M(n[s]))&&(o&&(o+=" "),o+=i)}else for(i in n)n[i]&&(o&&(o+=" "),o+=i);return o}function le(){for(var n,s,i=0,o="",l=arguments.length;i<l;i++)(n=arguments[i])&&(s=M(n))&&(o&&(o+=" "),o+=s);return o}const ce=n=>t.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 200 189.34",...n,children:[t.jsxs("defs",{children:[t.jsxs("linearGradient",{id:"synnax-linear-gradient",x1:"-2.63",y1:"56.85",x2:"167.19",y2:"157.88",gradientUnits:"userSpaceOnUse",children:[t.jsx("stop",{offset:"0",stopColor:"#10007f"}),t.jsx("stop",{offset:"1",stopColor:"#0084e9"})]}),t.jsxs("filter",{id:"fillpartial",primitiveUnits:"objectBoundingBox",x:"0%",y:"0%",width:"100%",height:"100%",children:[t.jsx("feFlood",{x:"0%",y:"0%",width:"100%",height:"100%"}),t.jsx("feOffset",{dy:"0.5",children:t.jsx("animate",{attributeName:"dy",from:"1",to:"0",dur:"1s",repeatCount:"indefinite"})}),t.jsx("feComposite",{operator:"in",in2:"SourceGraphic"}),t.jsx("feComposite",{operator:"over",in2:"SourceGraphic"})]})]}),t.jsx("g",{id:"Layer_2","data-name":"Layer 2",children:t.jsx("g",{id:"Layer_1-2","data-name":"Layer 1",children:t.jsx("path",{filter:"url(#fillpartial)",stroke:"black",strokeWidth:"1",className:"cls-1",d:"M52.61,168.82A14.81,14.81,0,0,1,39.78,146.6L94.22,52.33c5.7-9.88,20-9.88,25.9.42l51.77,89.67a6.88,6.88,0,0,0,2.48,2.49l15.42,8.9a6.78,6.78,0,0,0,9.26-9.27L119.87,7.41a14.8,14.8,0,0,0-25.65,0L2,167.12a14.81,14.81,0,0,0,12.83,22.22H170.39a6.79,6.79,0,0,0,3.39-12.66l-12.05-7a6.83,6.83,0,0,0-3.39-.91Z"})})})]}),ue=n=>t.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 200 189.34",...n,children:[t.jsx("defs",{children:t.jsxs("linearGradient",{id:"synnax-linear-gradient",x1:"-2.63",y1:"56.85",x2:"167.19",y2:"157.88",gradientUnits:"userSpaceOnUse",children:[t.jsx("stop",{offset:"0",stopColor:"#10007f"}),t.jsx("stop",{offset:"1",stopColor:"#0084e9"})]})}),t.jsx("g",{id:"Layer_2","data-name":"Layer 2",children:t.jsx("g",{id:"Layer_1-2","data-name":"Layer 1",children:t.jsx("path",{className:"cls-1",vectorEffect:"non-scaling-stroke",d:"M52.61,168.82A14.81,14.81,0,0,1,39.78,146.6L94.22,52.33c5.7-9.88,20-9.88,25.9.42l51.77,89.67a6.88,6.88,0,0,0,2.48,2.49l15.42,8.9a6.78,6.78,0,0,0,9.26-9.27L119.87,7.41a14.8,14.8,0,0,0-25.65,0L2,167.12a14.81,14.81,0,0,0,12.83,22.22H170.39a6.79,6.79,0,0,0,3.39-12.66l-12.05-7a6.83,6.83,0,0,0-3.39-.91Z"})})})]}),fe=n=>t.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1050 285",...n,children:[t.jsx("defs",{children:t.jsxs("linearGradient",{id:"synnax-linear-gradient",x1:"-2.64",y1:"16561.34",x2:"167.18",y2:"16460.3",gradientTransform:"matrix(1, 0, 0, -1, 0, 16643.76)",gradientUnits:"userSpaceOnUse",children:[t.jsx("stop",{offset:"0",stopColor:"#10007f"}),t.jsx("stop",{offset:"1",stopColor:"#0084e9"})]})}),t.jsxs("g",{id:"Layer_2","data-name":"Layer 2",children:[t.jsx("path",{d:"M52.6,194.4a14.81,14.81,0,0,1-12.83-22.22L94.21,77.91c5.7-9.88,20-9.88,25.9.42L171.88,168a6.78,6.78,0,0,0,2.48,2.48l15.42,8.91a6.78,6.78,0,0,0,9.26-9.27L119.86,33a14.8,14.8,0,0,0-25.65,0L2,192.69a14.81,14.81,0,0,0,12.83,22.22H170.38a6.78,6.78,0,0,0,3.39-12.65l-12.05-6.95a6.73,6.73,0,0,0-3.39-.91Z"}),t.jsx("text",{transform:"translate(208.99 215.58)",children:"Synnax"})]})]}),de={icon:ue,title:fe,loader:ce},W=({variant:n="icon",color:s="auto",className:i,...o})=>{const l=de[n];return t.jsx(l,{className:le("synnax-logo",`synnax-logo--${s}`,`synnax-logo--${n}`,i),...o})},me=({children:n,...s})=>t.jsxs("div",{className:"synnax-logo-watermark__container",children:[t.jsx(W,{className:"synnax-logo-watermark",...s}),n]}),D=W;D.Watermark=me;exports.Logo=D;
package/dist/media.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import ne from "react";
2
- var b = { exports: {} }, v = {};
2
+ var j = { exports: {} }, _ = {};
3
3
  /**
4
4
  * @license React
5
5
  * react-jsx-runtime.production.js
@@ -11,7 +11,7 @@ var b = { exports: {} }, v = {};
11
11
  */
12
12
  var $;
13
13
  function ae() {
14
- if ($) return v;
14
+ if ($) return _;
15
15
  $ = 1;
16
16
  var n = Symbol.for("react.transitional.element"), s = Symbol.for("react.fragment");
17
17
  function i(o, l, f) {
@@ -29,9 +29,9 @@ function ae() {
29
29
  props: f
30
30
  };
31
31
  }
32
- return v.Fragment = s, v.jsx = i, v.jsxs = i, v;
32
+ return _.Fragment = s, _.jsx = i, _.jsxs = i, _;
33
33
  }
34
- var g = {};
34
+ var v = {};
35
35
  /**
36
36
  * @license React
37
37
  * react-jsx-runtime.development.js
@@ -43,14 +43,14 @@ var g = {};
43
43
  */
44
44
  var U;
45
45
  function oe() {
46
- return U || (U = 1, process.env.NODE_ENV !== "production" && function() {
46
+ return U || (U = 1, process.env.NODE_ENV !== "production" && (function() {
47
47
  function n(e) {
48
48
  if (e == null) return null;
49
49
  if (typeof e == "function")
50
50
  return e.$$typeof === ee ? null : e.displayName || e.name || null;
51
51
  if (typeof e == "string") return e;
52
52
  switch (e) {
53
- case _:
53
+ case b:
54
54
  return "Fragment";
55
55
  case V:
56
56
  return "Profiler";
@@ -108,7 +108,7 @@ function oe() {
108
108
  }
109
109
  }
110
110
  function o(e) {
111
- if (e === _) return "<>";
111
+ if (e === b) return "<>";
112
112
  if (typeof e == "object" && e !== null && e.$$typeof === S)
113
113
  return "<...>";
114
114
  try {
@@ -235,19 +235,19 @@ React keys must be passed directly to JSX without using spread:
235
235
  function A(e) {
236
236
  typeof e == "object" && e !== null && e.$$typeof === O && e._store && (e._store.validated = 1);
237
237
  }
238
- var j = ne, O = Symbol.for("react.transitional.element"), q = Symbol.for("react.portal"), _ = Symbol.for("react.fragment"), J = Symbol.for("react.strict_mode"), V = Symbol.for("react.profiler"), z = Symbol.for("react.consumer"), B = Symbol.for("react.context"), H = Symbol.for("react.forward_ref"), X = Symbol.for("react.suspense"), Z = Symbol.for("react.suspense_list"), Q = Symbol.for("react.memo"), S = Symbol.for("react.lazy"), K = Symbol.for("react.activity"), ee = Symbol.for("react.client.reference"), R = j.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, P = Object.prototype.hasOwnProperty, re = Array.isArray, h = console.createTask ? console.createTask : function() {
238
+ var g = ne, O = Symbol.for("react.transitional.element"), q = Symbol.for("react.portal"), b = Symbol.for("react.fragment"), J = Symbol.for("react.strict_mode"), V = Symbol.for("react.profiler"), z = Symbol.for("react.consumer"), B = Symbol.for("react.context"), H = Symbol.for("react.forward_ref"), X = Symbol.for("react.suspense"), Z = Symbol.for("react.suspense_list"), Q = Symbol.for("react.memo"), S = Symbol.for("react.lazy"), K = Symbol.for("react.activity"), ee = Symbol.for("react.client.reference"), R = g.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, P = Object.prototype.hasOwnProperty, re = Array.isArray, h = console.createTask ? console.createTask : function() {
239
239
  return null;
240
240
  };
241
- j = {
242
- "react-stack-bottom-frame": function(e) {
241
+ g = {
242
+ react_stack_bottom_frame: function(e) {
243
243
  return e();
244
244
  }
245
245
  };
246
- var N, L = {}, C = j["react-stack-bottom-frame"].bind(
247
- j,
246
+ var N, L = {}, C = g.react_stack_bottom_frame.bind(
247
+ g,
248
248
  f
249
249
  )(), Y = h(o(f)), I = {};
250
- g.Fragment = _, g.jsx = function(e, r, a, c, m) {
250
+ v.Fragment = b, v.jsx = function(e, r, a, c, m) {
251
251
  var d = 1e4 > R.recentlyCreatedOwnerStacks++;
252
252
  return k(
253
253
  e,
@@ -259,7 +259,7 @@ React keys must be passed directly to JSX without using spread:
259
259
  d ? Error("react-stack-top-frame") : C,
260
260
  d ? h(o(e)) : Y
261
261
  );
262
- }, g.jsxs = function(e, r, a, c, m) {
262
+ }, v.jsxs = function(e, r, a, c, m) {
263
263
  var d = 1e4 > R.recentlyCreatedOwnerStacks++;
264
264
  return k(
265
265
  e,
@@ -272,11 +272,11 @@ React keys must be passed directly to JSX without using spread:
272
272
  d ? h(o(e)) : Y
273
273
  );
274
274
  };
275
- }()), g;
275
+ })()), v;
276
276
  }
277
277
  var F;
278
278
  function se() {
279
- return F || (F = 1, process.env.NODE_ENV === "production" ? b.exports = ae() : b.exports = oe()), b.exports;
279
+ return F || (F = 1, process.env.NODE_ENV === "production" ? j.exports = ae() : j.exports = oe()), j.exports;
280
280
  }
281
281
  var t = se();
282
282
  function M(n) {
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Logo.d.ts","sourceRoot":"","sources":["../../../src/Logo/Logo.tsx"],"names":[],"mappings":"AASA,OAAO,iBAAiB,CAAC;AAGzB,OAAO,EAGL,KAAK,cAAc,EACnB,KAAK,YAAY,EAClB,MAAM,OAAO,CAAC;AAEf,MAAM,MAAM,WAAW,GAAG,MAAM,GAAG,OAAO,GAAG,QAAQ,CAAC;AAEtD,MAAM,WAAW,SAAU,SAAQ,cAAc,CAAC,UAAU,CAAC;IAC3D,OAAO,CAAC,EAAE,WAAW,CAAC;IACtB,KAAK,CAAC,EAAE,OAAO,GAAG,OAAO,GAAG,UAAU,GAAG,MAAM,CAAC;CACjD;AA8GD,eAAO,MAAM,IAAI,GAAI,wCAKlB,SAAS,KAAG,YAad,CAAC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"LogoWatermark.d.ts","sourceRoot":"","sources":["../../../src/Logo/LogoWatermark.tsx"],"names":[],"mappings":"AASA,OAAO,0BAA0B,CAAC;AAElC,OAAO,EAAE,KAAK,iBAAiB,EAAE,KAAK,YAAY,EAAE,MAAM,OAAO,CAAC;AAElE,OAAO,EAAQ,KAAK,SAAS,EAAE,MAAM,aAAa,CAAC;AAEnD,MAAM,WAAW,kBAAmB,SAAQ,iBAAiB,CAAC,SAAS,CAAC;CAAG;AAE3E;;;;GAIG;AACH,eAAO,MAAM,aAAa,GAAI,uBAG3B,kBAAkB,KAAG,YAKvB,CAAC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/Logo/index.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,IAAI,IAAI,QAAQ,EAAE,MAAM,QAAQ,CAAC;AAC1C,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAEhD,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,QAAQ,CAAC;AAExC,KAAK,YAAY,GAAG,OAAO,QAAQ,CAAC;AAEpC,MAAM,WAAW,QAAS,SAAQ,YAAY;IAC5C,SAAS,EAAE,OAAO,aAAa,CAAC;CACjC;AAED,eAAO,MAAM,IAAI,EAAe,QAAQ,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AASA,cAAc,QAAQ,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AASA,cAAc,QAAQ,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@synnaxlabs/media",
3
- "version": "0.45.1",
3
+ "version": "0.47.0",
4
4
  "type": "module",
5
5
  "description": "Media Assets for Synnax Labs",
6
6
  "repository": "https://github.com/synnaxlabs/synnax/tree/main/x/media",
@@ -14,30 +14,30 @@
14
14
  ],
15
15
  "dependencies": {
16
16
  "clsx": "^2.1.1",
17
- "react": "^19.1.0",
17
+ "react": "^19.1.1",
18
18
  "react-icons": "^5.5.0"
19
19
  },
20
20
  "devDependencies": {
21
- "@types/node": "^24.0.12",
22
- "@types/react": "^19.1.8",
23
- "@vitejs/plugin-react": "^4.6.0",
24
- "eslint": "^9.30.1",
21
+ "@types/node": "^24.4.0",
22
+ "@types/react": "^19.1.13",
23
+ "@vitejs/plugin-react": "^5.0.2",
24
+ "eslint": "^9.37.0",
25
25
  "madge": "^8.0.0",
26
- "typescript": "^5.8.3",
27
- "vite": "^7.0.4",
26
+ "typescript": "^5.9.2",
27
+ "vite": "^7.1.5",
28
28
  "@synnaxlabs/tsconfig": "^0.43.0",
29
- "eslint-config-synnaxlabs": "^0.43.0",
30
- "@synnaxlabs/vite-plugin": "^0.43.0"
29
+ "@synnaxlabs/vite-plugin": "^0.43.0",
30
+ "eslint-config-synnaxlabs": "^0.43.0"
31
31
  },
32
32
  "files": [
33
33
  "dist"
34
34
  ],
35
35
  "main": "./dist/media.cjs",
36
36
  "module": "./dist/media.js",
37
- "types": "./dist/index.d.ts",
37
+ "types": "./dist/src/index.d.ts",
38
38
  "exports": {
39
39
  ".": {
40
- "types": "./dist/index.d.ts",
40
+ "types": "./dist/src/index.d.ts",
41
41
  "import": "./dist/media.js",
42
42
  "require": "./dist/media.cjs"
43
43
  },
@@ -1 +0,0 @@
1
- {"version":3,"file":"Logo.d.ts","sourceRoot":"","sources":["../../src/Logo/Logo.tsx"],"names":[],"mappings":"AASA,OAAO,iBAAiB,CAAC;AAGzB,OAAO,EAGL,KAAK,cAAc,EACnB,KAAK,YAAY,EAClB,MAAM,OAAO,CAAC;AAEf,MAAM,MAAM,WAAW,GAAG,MAAM,GAAG,OAAO,GAAG,QAAQ,CAAC;AAEtD,MAAM,WAAW,SAAU,SAAQ,cAAc,CAAC,UAAU,CAAC;IAC3D,OAAO,CAAC,EAAE,WAAW,CAAC;IACtB,KAAK,CAAC,EAAE,OAAO,GAAG,OAAO,GAAG,UAAU,GAAG,MAAM,CAAC;CACjD;AA8GD,eAAO,MAAM,IAAI,GAAI,wCAKlB,SAAS,KAAG,YAad,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"LogoWatermark.d.ts","sourceRoot":"","sources":["../../src/Logo/LogoWatermark.tsx"],"names":[],"mappings":"AASA,OAAO,0BAA0B,CAAC;AAElC,OAAO,EAAE,KAAK,iBAAiB,EAAE,KAAK,YAAY,EAAE,MAAM,OAAO,CAAC;AAElE,OAAO,EAAQ,KAAK,SAAS,EAAE,MAAM,aAAa,CAAC;AAEnD,MAAM,WAAW,kBAAmB,SAAQ,iBAAiB,CAAC,SAAS,CAAC;CAAG;AAE3E;;;;GAIG;AACH,eAAO,MAAM,aAAa,GAAI,uBAG3B,kBAAkB,KAAG,YAKvB,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/Logo/index.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,IAAI,IAAI,QAAQ,EAAE,MAAM,QAAQ,CAAC;AAC1C,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,QAAQ,CAAC;AAExC,KAAK,YAAY,GAAG,OAAO,QAAQ,CAAC;AAEpC,MAAM,WAAW,QAAS,SAAQ,YAAY;IAC5C,SAAS,EAAE,OAAO,aAAa,CAAC;CACjC;AAED,eAAO,MAAM,IAAI,EAAe,QAAQ,CAAC"}
File without changes
File without changes
File without changes
File without changes