@chayns-components/core 5.5.56 → 5.5.59-beta.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.
- package/lib/cjs/api/image/post.js +8 -3
- package/lib/cjs/api/image/post.js.map +1 -1
- package/lib/cjs/api/video/post.js +7 -3
- package/lib/cjs/api/video/post.js.map +1 -1
- package/lib/cjs/components/animated-number/AnimatedNumber.js.map +1 -1
- package/lib/cjs/config/uploadUrls.js +83 -0
- package/lib/cjs/config/uploadUrls.js.map +1 -0
- package/lib/cjs/config/uploadUrls.test.js +64 -0
- package/lib/cjs/config/uploadUrls.test.js.map +1 -0
- package/lib/cjs/index.js +25 -0
- package/lib/cjs/index.js.map +1 -1
- package/lib/cjs/utils/uploadFile.js +6 -3
- package/lib/cjs/utils/uploadFile.js.map +1 -1
- package/lib/esm/api/image/post.js +8 -3
- package/lib/esm/api/image/post.js.map +1 -1
- package/lib/esm/api/video/post.js +7 -3
- package/lib/esm/api/video/post.js.map +1 -1
- package/lib/esm/components/animated-number/AnimatedNumber.js.map +1 -1
- package/lib/esm/config/uploadUrls.js +74 -0
- package/lib/esm/config/uploadUrls.js.map +1 -0
- package/lib/esm/config/uploadUrls.test.js +62 -0
- package/lib/esm/config/uploadUrls.test.js.map +1 -0
- package/lib/esm/index.js +1 -0
- package/lib/esm/index.js.map +1 -1
- package/lib/esm/utils/uploadFile.js +6 -3
- package/lib/esm/utils/uploadFile.js.map +1 -1
- package/lib/types/api/image/post.d.ts +6 -1
- package/lib/types/api/video/post.d.ts +6 -1
- package/lib/types/config/uploadUrls.d.ts +54 -0
- package/lib/types/index.d.ts +1 -0
- package/lib/types/utils/uploadFile.d.ts +6 -1
- package/package.json +3 -3
- package/lib/cjs/constants/serverUrls.js +0 -61
- package/lib/cjs/constants/serverUrls.js.map +0 -1
- package/lib/esm/constants/serverUrls.js +0 -55
- package/lib/esm/constants/serverUrls.js.map +0 -1
- package/lib/types/constants/serverUrls.d.ts +0 -34
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* URL of the image service used to upload images.
|
|
3
|
-
*
|
|
4
|
-
* Can be overridden via the `PUBLIC_IMAGE_SERVICE_URL` environment variable
|
|
5
|
-
* (e.g. for OnPremise deployments with a self-hosted image service). The
|
|
6
|
-
* variable is expected to be substituted for its value by a pre-deploy
|
|
7
|
-
* script that replaces literal `process.env.PUBLIC_IMAGE_SERVICE_URL`
|
|
8
|
-
* occurrences with a quoted string, mirroring the approach used in the
|
|
9
|
-
* chayns-threads project.
|
|
10
|
-
*
|
|
11
|
-
* Accessing `process` is wrapped in a try/catch so that a `ReferenceError`
|
|
12
|
-
* thrown in environments where the substitution did not run and `process`
|
|
13
|
-
* is not defined (e.g. in the browser) is swallowed, falling back to the
|
|
14
|
-
* default chayns image service instead. Unlike a `typeof process` guard,
|
|
15
|
-
* this does not suppress an already-substituted literal value at runtime,
|
|
16
|
-
* since that value no longer depends on `process` being defined.
|
|
17
|
-
*/
|
|
18
|
-
export declare const IMAGE_SERVICE_URL: string;
|
|
19
|
-
/**
|
|
20
|
-
* URL of the image resizer service used to upload images larger than 10 MB.
|
|
21
|
-
*
|
|
22
|
-
* Can be overridden via the `PUBLIC_IMAGE_RESIZER_URL` environment variable
|
|
23
|
-
* (e.g. for OnPremise deployments with a self-hosted image service). See
|
|
24
|
-
* {@link IMAGE_SERVICE_URL} for details on the substitution mechanism.
|
|
25
|
-
*/
|
|
26
|
-
export declare const IMAGE_RESIZER_URL: string;
|
|
27
|
-
/**
|
|
28
|
-
* URL of the streaming service used to upload videos.
|
|
29
|
-
*
|
|
30
|
-
* Can be overridden via the `PUBLIC_VIDEO_SERVICE_URL` environment variable
|
|
31
|
-
* (e.g. for OnPremise deployments with a self-hosted video service). See
|
|
32
|
-
* {@link IMAGE_SERVICE_URL} for details on the substitution mechanism.
|
|
33
|
-
*/
|
|
34
|
-
export declare const VIDEO_SERVICE_URL: string;
|