@lunora/angular 1.0.0-alpha.237 → 1.0.0-alpha.239
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/dist/upload.d.mts +20 -0
- package/dist/upload.d.ts +20 -0
- package/package.json +3 -3
package/dist/upload.d.mts
CHANGED
|
@@ -1,3 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* `@lunora/angular/upload` — end-user file-upload signals.
|
|
3
|
+
*
|
|
4
|
+
* The admin `uploadStorageObject` path on `LunoraClient` is a one-shot PUT gated
|
|
5
|
+
* by an `adminToken` — right for the Studio file browser, wrong for end users.
|
|
6
|
+
* This module gives end-user browsers progress, pause/resume, large-file
|
|
7
|
+
* resumable uploads and per-part retry by wrapping `@lunora/client/upload` (the
|
|
8
|
+
* framework-neutral core, itself a re-export of `@visulima/storage-client` —
|
|
9
|
+
* Lunora does not hand-roll the uploader) in Angular signals. Point {@link upload}
|
|
10
|
+
* at a route backed by `@lunora/storage/upload`'s RLS-gated handler — end-user
|
|
11
|
+
* uploads gated by _your_ per-user policy, not an `adminToken`.
|
|
12
|
+
*
|
|
13
|
+
* Unlike the React/Vue/Solid/Svelte adapters, this one is hand-written rather
|
|
14
|
+
* than a re-export: `@visulima/storage-client` ships no `/angular` entry. It
|
|
15
|
+
* wraps the TUS / chunked-REST surface (identical shape on both — progress,
|
|
16
|
+
* pause, resume, abort) that `createUpload` defaults to; batch multipart
|
|
17
|
+
* uploads have a different shape (`uploadBatch`, per-item abort) and aren't
|
|
18
|
+
* wrapped here — call `createMultipartAdapter` (re-exported below) directly
|
|
19
|
+
* for that.
|
|
20
|
+
*/
|
|
1
21
|
import { Signal, DestroyRef } from '@angular/core';
|
|
2
22
|
import { UploadResult, CreateUploadOptions, UploadProtocol } from '@lunora/client/upload';
|
|
3
23
|
export { type ChunkedRestAdapter, type ChunkedRestAdapterOptions, type FingerprintFunction, type HeadersResolver, type MultipartAdapter, type MultipartAdapterOptions, type OnBeforeRequest, type RequestOptions, RestrictionError, type TusAdapter, type TusAdapterOptions, type UploadAdapter, UploadError, type UploadRestrictions, type UploadResult, createChunkedRestAdapter, createMultipartAdapter, createTusAdapter, createUpload } from '@lunora/client/upload';
|
package/dist/upload.d.ts
CHANGED
|
@@ -1,3 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* `@lunora/angular/upload` — end-user file-upload signals.
|
|
3
|
+
*
|
|
4
|
+
* The admin `uploadStorageObject` path on `LunoraClient` is a one-shot PUT gated
|
|
5
|
+
* by an `adminToken` — right for the Studio file browser, wrong for end users.
|
|
6
|
+
* This module gives end-user browsers progress, pause/resume, large-file
|
|
7
|
+
* resumable uploads and per-part retry by wrapping `@lunora/client/upload` (the
|
|
8
|
+
* framework-neutral core, itself a re-export of `@visulima/storage-client` —
|
|
9
|
+
* Lunora does not hand-roll the uploader) in Angular signals. Point {@link upload}
|
|
10
|
+
* at a route backed by `@lunora/storage/upload`'s RLS-gated handler — end-user
|
|
11
|
+
* uploads gated by _your_ per-user policy, not an `adminToken`.
|
|
12
|
+
*
|
|
13
|
+
* Unlike the React/Vue/Solid/Svelte adapters, this one is hand-written rather
|
|
14
|
+
* than a re-export: `@visulima/storage-client` ships no `/angular` entry. It
|
|
15
|
+
* wraps the TUS / chunked-REST surface (identical shape on both — progress,
|
|
16
|
+
* pause, resume, abort) that `createUpload` defaults to; batch multipart
|
|
17
|
+
* uploads have a different shape (`uploadBatch`, per-item abort) and aren't
|
|
18
|
+
* wrapped here — call `createMultipartAdapter` (re-exported below) directly
|
|
19
|
+
* for that.
|
|
20
|
+
*/
|
|
1
21
|
import { Signal, DestroyRef } from '@angular/core';
|
|
2
22
|
import { UploadResult, CreateUploadOptions, UploadProtocol } from '@lunora/client/upload';
|
|
3
23
|
export { type ChunkedRestAdapter, type ChunkedRestAdapterOptions, type FingerprintFunction, type HeadersResolver, type MultipartAdapter, type MultipartAdapterOptions, type OnBeforeRequest, type RequestOptions, RestrictionError, type TusAdapter, type TusAdapterOptions, type UploadAdapter, UploadError, type UploadRestrictions, type UploadResult, createChunkedRestAdapter, createMultipartAdapter, createTusAdapter, createUpload } from '@lunora/client/upload';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lunora/angular",
|
|
3
|
-
"version": "1.0.0-alpha.
|
|
3
|
+
"version": "1.0.0-alpha.239",
|
|
4
4
|
"description": "Angular reactive adapter for Lunora — signal-based live queries and mutations",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"angular",
|
|
@@ -53,8 +53,8 @@
|
|
|
53
53
|
"access": "public"
|
|
54
54
|
},
|
|
55
55
|
"dependencies": {
|
|
56
|
-
"@lunora/client": "1.0.0-alpha.
|
|
57
|
-
"@lunora/ratelimit": "1.0.0-alpha.
|
|
56
|
+
"@lunora/client": "1.0.0-alpha.254",
|
|
57
|
+
"@lunora/ratelimit": "1.0.0-alpha.173",
|
|
58
58
|
"@lunora/wire": "1.0.0-alpha.2",
|
|
59
59
|
"@visulima/storage-client": "1.0.9"
|
|
60
60
|
},
|