@medipha/feed 0.3.1 → 0.3.2

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 @@
1
+ var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,i=Object.getPrototypeOf,a=Object.prototype.hasOwnProperty,o=(e,t)=>()=>(t||(e((t={exports:{}}).exports,t),e=null),t.exports),s=(e,i,o,s)=>{if(i&&typeof i==`object`||typeof i==`function`)for(var c=r(i),l=0,u=c.length,d;l<u;l++)d=c[l],!a.call(e,d)&&d!==o&&t(e,d,{get:(e=>i[e]).bind(null,d),enumerable:!(s=n(i,d))||s.enumerable});return e},c=(n,r,o)=>(o=n==null?{}:e(i(n)),s(r||!n||!n.__esModule||!a.call(n,`default`)?t(o,`default`,{value:n,enumerable:!0}):o,n));Object.defineProperty(exports,"n",{enumerable:!0,get:function(){return c}}),Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return o}});
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Phones play H.264 mp4, so a video is re-encoded to it before upload. Anything the browser cannot
3
+ * encode keeps the original file.
4
+ */
5
+ export declare function prepareVideoFileForUpload(file: File): Promise<File>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@medipha/feed",
3
- "version": "0.3.1",
3
+ "version": "0.3.2",
4
4
  "description": "Embeddable Medic-ERP newsfeed module for React applications.",
5
5
  "license": "UNLICENSED",
6
6
  "type": "module",
@@ -36,9 +36,9 @@
36
36
  },
37
37
  "dependencies": {
38
38
  "@ant-design/icons": "^6.3.4",
39
+ "@bsky.app/video-compressor": "0.2.0",
39
40
  "apexcharts": "^7.8.0",
40
41
  "emoji-picker-react": "^5.0.0",
41
- "mediabunny": "^1.65.0",
42
42
  "react-apexcharts": "^2.1.1",
43
43
  "socket.io-client": "^4.8.4"
44
44
  },
@@ -1,2 +0,0 @@
1
- /** True when the token expires within `bufferSeconds`. `expireTime` is epoch seconds (the JWT `exp`). */
2
- export declare function isTokenExpired(expireTime: number, bufferSeconds?: number): boolean;
@@ -1,5 +0,0 @@
1
- /**
2
- * Re-encodes a video to H.264/AAC mp4 in the browser so phones can play it.
3
- * Falls back to the original file when the browser cannot encode it.
4
- */
5
- export declare function toH264Mp4(file: File, onProgress?: (ratio: number) => void): Promise<File>;