osameditor 0.1.0 → 0.1.1

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/README.md CHANGED
@@ -27,13 +27,15 @@ Built on [TipTap](https://tiptap.dev/) / ProseMirror.
27
27
 
28
28
  ```bash
29
29
  npm install osameditor
30
- # optional — only if you upload through OsamStorage:
31
- npm install osamstorage
32
- # optional — only if you embed HLS (.m3u8) video, e.g. OsamStorage-processed video:
33
- npm install hls.js
34
30
  ```
35
31
 
36
- `react` and `react-dom` (>=17) are peer dependencies.
32
+ That's it — `osamstorage` (uploads) and `hls.js` (HLS video playback) come with
33
+ it. The only things you provide are `react` and `react-dom` (>=17), which you
34
+ already have.
35
+
36
+ > Both extras are pulled in only at runtime, and only when actually used
37
+ > (`osamstorage` when an OsamStorage upload runs, `hls.js` when an `.m3u8` video
38
+ > plays outside Safari) — so they add nothing to your initial bundle.
37
39
 
38
40
  ---
39
41
 
@@ -326,8 +328,8 @@ export default function Post({ html }: { html: string }) {
326
328
  }
327
329
  ```
328
330
 
329
- `OsamContent` also upgrades `.m3u8` videos with `hls.js` (if installed) outside
330
- Safari. Pass `hls={false}` to skip.
331
+ `OsamContent` also plays `.m3u8` videos outside Safari (loads `hls.js` on
332
+ demand). Pass `hls={false}` to skip.
331
333
 
332
334
  ---
333
335
 
package/dist/index.cjs CHANGED
@@ -2525,7 +2525,7 @@ function createOsamStorageUploader(options) {
2525
2525
  return new OsamStorage({ getToken, baseUrl, chunkSize, concurrency, maxAttempts });
2526
2526
  }).catch((err) => {
2527
2527
  throw new Error(
2528
- "osameditor: the 'osamstorage' package is not installed. Run `npm i osamstorage`, or pass your own `client` / use `createVpsUploader()` instead.\n" + String(err)
2528
+ "osameditor: could not load 'osamstorage' (it ships as a dependency, so this is unusual \u2014 check your install). You can also pass your own `client`, or use `createVpsUploader()` instead.\n" + String(err)
2529
2529
  );
2530
2530
  });
2531
2531
  }