@atlaskit/media-client 39.4.11 → 39.4.13
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/AGENTS.md +8 -0
- package/CHANGELOG.md +16 -0
- package/README.md +14 -0
- package/dist/cjs/client/media-store/MediaStore.js +449 -198
- package/dist/es2019/client/media-store/MediaStore.js +115 -41
- package/dist/esm/client/media-store/MediaStore.js +449 -198
- package/dist/types/client/media-store/MediaStore.d.ts +1 -0
- package/package.json +2 -2
package/AGENTS.md
CHANGED
|
@@ -55,6 +55,14 @@ first, edit, then `kg.py edit <path> --message "<reason>"`.
|
|
|
55
55
|
- All new behaviour changes must be behind a feature gate (`fg()` from
|
|
56
56
|
`@atlaskit/platform-feature-flags`)
|
|
57
57
|
|
|
58
|
+
## Bounded read credentials
|
|
59
|
+
|
|
60
|
+
`platform_media_bounded_read_tokens` enables file-scoped auth resolution for read tokens over 7,000
|
|
61
|
+
characters and groups `/items` requests by credential. Providers receive a single-file
|
|
62
|
+
`AuthContext.access` read request. Keep the gate-off path and short-token request count unchanged.
|
|
63
|
+
Fetch-based reads use auth headers; async signed-URL APIs still put the bounded token in the URL.
|
|
64
|
+
Artifact, upload and copy authentication are outside this gate.
|
|
65
|
+
|
|
58
66
|
## Uploads without collection read access
|
|
59
67
|
|
|
60
68
|
With `platform_media_upload_without_read` enabled, pass `skipRemoteFileState: true` on an
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,21 @@
|
|
|
1
1
|
# @atlaskit/media-client
|
|
2
2
|
|
|
3
|
+
## 39.4.13
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies
|
|
8
|
+
|
|
9
|
+
## 39.4.12
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [`c65766e1b529a`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/c65766e1b529a) -
|
|
14
|
+
Behind `platform_media_bounded_read_tokens`, request file-scoped credentials when a media read
|
|
15
|
+
token exceeds the supported size, group metadata requests by credential, and use authenticated
|
|
16
|
+
client previews when an SSR image URL is too long. Gate-off behavior and short-token request
|
|
17
|
+
counts are preserved.
|
|
18
|
+
|
|
3
19
|
## 39.4.11
|
|
4
20
|
|
|
5
21
|
### Patch Changes
|
package/README.md
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
# Media Client
|
|
2
|
+
|
|
3
|
+
Media API client for file metadata, previews, uploads and downloads.
|
|
4
|
+
|
|
5
|
+
## Bounded read credentials
|
|
6
|
+
|
|
7
|
+
With `platform_media_bounded_read_tokens` enabled, reads with tokens longer than 7,000 characters
|
|
8
|
+
ask the auth provider for a single-file read credential through `AuthContext.access`. Providers
|
|
9
|
+
must return a credential covering that file. Metadata requests are grouped by credential; a
|
|
10
|
+
failure in any group rejects the metadata operation. Short tokens keep one metadata request.
|
|
11
|
+
|
|
12
|
+
Fetch-based reads send the credential in the authorization header. APIs that return signed URLs
|
|
13
|
+
still include authentication in the URL, using the bounded credential. Synchronous URL generation,
|
|
14
|
+
artifact URLs, uploads and copy operations retain their existing authentication behavior.
|