@chayns-components/core 5.5.53 → 5.5.54
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.
|
@@ -30,7 +30,7 @@ const readEnv = key => {
|
|
|
30
30
|
* (e.g. for OnPremise deployments with a self-hosted image service). Falls back
|
|
31
31
|
* to the default chayns image service when the variable is not defined.
|
|
32
32
|
*/
|
|
33
|
-
const IMAGE_SERVICE_API_V3_URL = exports.IMAGE_SERVICE_API_V3_URL =
|
|
33
|
+
const IMAGE_SERVICE_API_V3_URL = exports.IMAGE_SERVICE_API_V3_URL = process.env.CHAYNS_IMAGE_SERVICE_URL ?? 'https://cube.tobit.cloud/image-service/v3/Images';
|
|
34
34
|
|
|
35
35
|
/**
|
|
36
36
|
* URL of the image resizer service used to upload images larger than 10 MB.
|
|
@@ -39,7 +39,7 @@ const IMAGE_SERVICE_API_V3_URL = exports.IMAGE_SERVICE_API_V3_URL = readEnv('CHA
|
|
|
39
39
|
* (e.g. for OnPremise deployments with a self-hosted image service). Falls back
|
|
40
40
|
* to the default chayns image resizer when the variable is not defined.
|
|
41
41
|
*/
|
|
42
|
-
const IMAGE_RESIZER_API_URL = exports.IMAGE_RESIZER_API_URL =
|
|
42
|
+
const IMAGE_RESIZER_API_URL = exports.IMAGE_RESIZER_API_URL = process.env.CHAYNS_IMAGE_RESIZER_URL ?? 'https://cube.tobit.cloud/image-resizer-backend/api/v1.0/image';
|
|
43
43
|
|
|
44
44
|
/**
|
|
45
45
|
* URL of the streaming service used to upload videos.
|
|
@@ -48,5 +48,5 @@ const IMAGE_RESIZER_API_URL = exports.IMAGE_RESIZER_API_URL = readEnv('CHAYNS_IM
|
|
|
48
48
|
* (e.g. for OnPremise deployments with a self-hosted video service). Falls back
|
|
49
49
|
* to the default chayns streaming service when the variable is not defined.
|
|
50
50
|
*/
|
|
51
|
-
const VIDEO_SERVICE_URL = exports.VIDEO_SERVICE_URL =
|
|
51
|
+
const VIDEO_SERVICE_URL = exports.VIDEO_SERVICE_URL = process.env.CHAYNS_VIDEO_SERVICE_URL ?? 'https://streamingservice.chayns.space/video';
|
|
52
52
|
//# sourceMappingURL=uploadUrls.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"uploadUrls.js","names":["readEnv","key","process","env","value","length","undefined","IMAGE_SERVICE_API_V3_URL","exports","IMAGE_RESIZER_API_URL","VIDEO_SERVICE_URL"],"sources":["../../../src/constants/uploadUrls.ts"],"sourcesContent":["/**\n * Reads an environment variable defensively so that accessing `process.env` does\n * not throw a `ReferenceError` in browser environments where `process` is not\n * defined. Returns `undefined` if the variable is not set or not accessible.\n */\nconst readEnv = (key: string): string | undefined => {\n try {\n if (typeof process !== 'undefined' && process.env) {\n const value = process.env[key];\n\n if (typeof value === 'string' && value.length > 0) {\n return value;\n }\n }\n } catch {\n // Accessing `process` can throw in some sandboxed environments.\n }\n\n return undefined;\n};\n\n/**\n * URL of the image service used to upload images.\n *\n * Can be overridden via the `CHAYNS_IMAGE_SERVICE_URL` environment variable\n * (e.g. for OnPremise deployments with a self-hosted image service). Falls back\n * to the default chayns image service when the variable is not defined.\n */\nexport const IMAGE_SERVICE_API_V3_URL =\n
|
|
1
|
+
{"version":3,"file":"uploadUrls.js","names":["readEnv","key","process","env","value","length","undefined","IMAGE_SERVICE_API_V3_URL","exports","CHAYNS_IMAGE_SERVICE_URL","IMAGE_RESIZER_API_URL","CHAYNS_IMAGE_RESIZER_URL","VIDEO_SERVICE_URL","CHAYNS_VIDEO_SERVICE_URL"],"sources":["../../../src/constants/uploadUrls.ts"],"sourcesContent":["/**\n * Reads an environment variable defensively so that accessing `process.env` does\n * not throw a `ReferenceError` in browser environments where `process` is not\n * defined. Returns `undefined` if the variable is not set or not accessible.\n */\nconst readEnv = (key: string): string | undefined => {\n try {\n if (typeof process !== 'undefined' && process.env) {\n const value = process.env[key];\n\n if (typeof value === 'string' && value.length > 0) {\n return value;\n }\n }\n } catch {\n // Accessing `process` can throw in some sandboxed environments.\n }\n\n return undefined;\n};\n\n/**\n * URL of the image service used to upload images.\n *\n * Can be overridden via the `CHAYNS_IMAGE_SERVICE_URL` environment variable\n * (e.g. for OnPremise deployments with a self-hosted image service). Falls back\n * to the default chayns image service when the variable is not defined.\n */\nexport const IMAGE_SERVICE_API_V3_URL =\n process.env.CHAYNS_IMAGE_SERVICE_URL ?? 'https://cube.tobit.cloud/image-service/v3/Images';\n\n/**\n * URL of the image resizer service used to upload images larger than 10 MB.\n *\n * Can be overridden via the `CHAYNS_IMAGE_RESIZER_URL` environment variable\n * (e.g. for OnPremise deployments with a self-hosted image service). Falls back\n * to the default chayns image resizer when the variable is not defined.\n */\nexport const IMAGE_RESIZER_API_URL =\n process.env.CHAYNS_IMAGE_RESIZER_URL ??\n 'https://cube.tobit.cloud/image-resizer-backend/api/v1.0/image';\n\n/**\n * URL of the streaming service used to upload videos.\n *\n * Can be overridden via the `CHAYNS_VIDEO_SERVICE_URL` environment variable\n * (e.g. for OnPremise deployments with a self-hosted video service). Falls back\n * to the default chayns streaming service when the variable is not defined.\n */\nexport const VIDEO_SERVICE_URL =\n process.env.CHAYNS_VIDEO_SERVICE_URL ?? 'https://streamingservice.chayns.space/video';\n"],"mappings":";;;;;;AAAA;AACA;AACA;AACA;AACA;AACA,MAAMA,OAAO,GAAIC,GAAW,IAAyB;EACjD,IAAI;IACA,IAAI,OAAOC,OAAO,KAAK,WAAW,IAAIA,OAAO,CAACC,GAAG,EAAE;MAC/C,MAAMC,KAAK,GAAGF,OAAO,CAACC,GAAG,CAACF,GAAG,CAAC;MAE9B,IAAI,OAAOG,KAAK,KAAK,QAAQ,IAAIA,KAAK,CAACC,MAAM,GAAG,CAAC,EAAE;QAC/C,OAAOD,KAAK;MAChB;IACJ;EACJ,CAAC,CAAC,MAAM;IACJ;EAAA;EAGJ,OAAOE,SAAS;AACpB,CAAC;;AAED;AACA;AACA;AACA;AACA;AACA;AACA;AACO,MAAMC,wBAAwB,GAAAC,OAAA,CAAAD,wBAAA,GACjCL,OAAO,CAACC,GAAG,CAACM,wBAAwB,IAAI,kDAAkD;;AAE9F;AACA;AACA;AACA;AACA;AACA;AACA;AACO,MAAMC,qBAAqB,GAAAF,OAAA,CAAAE,qBAAA,GAC9BR,OAAO,CAACC,GAAG,CAACQ,wBAAwB,IACpC,+DAA+D;;AAEnE;AACA;AACA;AACA;AACA;AACA;AACA;AACO,MAAMC,iBAAiB,GAAAJ,OAAA,CAAAI,iBAAA,GAC1BV,OAAO,CAACC,GAAG,CAACU,wBAAwB,IAAI,6CAA6C","ignoreList":[]}
|
|
@@ -24,7 +24,7 @@ const readEnv = key => {
|
|
|
24
24
|
* (e.g. for OnPremise deployments with a self-hosted image service). Falls back
|
|
25
25
|
* to the default chayns image service when the variable is not defined.
|
|
26
26
|
*/
|
|
27
|
-
export const IMAGE_SERVICE_API_V3_URL =
|
|
27
|
+
export const IMAGE_SERVICE_API_V3_URL = process.env.CHAYNS_IMAGE_SERVICE_URL ?? 'https://cube.tobit.cloud/image-service/v3/Images';
|
|
28
28
|
|
|
29
29
|
/**
|
|
30
30
|
* URL of the image resizer service used to upload images larger than 10 MB.
|
|
@@ -33,7 +33,7 @@ export const IMAGE_SERVICE_API_V3_URL = readEnv('CHAYNS_IMAGE_SERVICE_URL') ?? '
|
|
|
33
33
|
* (e.g. for OnPremise deployments with a self-hosted image service). Falls back
|
|
34
34
|
* to the default chayns image resizer when the variable is not defined.
|
|
35
35
|
*/
|
|
36
|
-
export const IMAGE_RESIZER_API_URL =
|
|
36
|
+
export const IMAGE_RESIZER_API_URL = process.env.CHAYNS_IMAGE_RESIZER_URL ?? 'https://cube.tobit.cloud/image-resizer-backend/api/v1.0/image';
|
|
37
37
|
|
|
38
38
|
/**
|
|
39
39
|
* URL of the streaming service used to upload videos.
|
|
@@ -42,5 +42,5 @@ export const IMAGE_RESIZER_API_URL = readEnv('CHAYNS_IMAGE_RESIZER_URL') ?? 'htt
|
|
|
42
42
|
* (e.g. for OnPremise deployments with a self-hosted video service). Falls back
|
|
43
43
|
* to the default chayns streaming service when the variable is not defined.
|
|
44
44
|
*/
|
|
45
|
-
export const VIDEO_SERVICE_URL =
|
|
45
|
+
export const VIDEO_SERVICE_URL = process.env.CHAYNS_VIDEO_SERVICE_URL ?? 'https://streamingservice.chayns.space/video';
|
|
46
46
|
//# sourceMappingURL=uploadUrls.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"uploadUrls.js","names":["readEnv","key","process","env","value","length","undefined","IMAGE_SERVICE_API_V3_URL","IMAGE_RESIZER_API_URL","VIDEO_SERVICE_URL"],"sources":["../../../src/constants/uploadUrls.ts"],"sourcesContent":["/**\n * Reads an environment variable defensively so that accessing `process.env` does\n * not throw a `ReferenceError` in browser environments where `process` is not\n * defined. Returns `undefined` if the variable is not set or not accessible.\n */\nconst readEnv = (key: string): string | undefined => {\n try {\n if (typeof process !== 'undefined' && process.env) {\n const value = process.env[key];\n\n if (typeof value === 'string' && value.length > 0) {\n return value;\n }\n }\n } catch {\n // Accessing `process` can throw in some sandboxed environments.\n }\n\n return undefined;\n};\n\n/**\n * URL of the image service used to upload images.\n *\n * Can be overridden via the `CHAYNS_IMAGE_SERVICE_URL` environment variable\n * (e.g. for OnPremise deployments with a self-hosted image service). Falls back\n * to the default chayns image service when the variable is not defined.\n */\nexport const IMAGE_SERVICE_API_V3_URL =\n
|
|
1
|
+
{"version":3,"file":"uploadUrls.js","names":["readEnv","key","process","env","value","length","undefined","IMAGE_SERVICE_API_V3_URL","CHAYNS_IMAGE_SERVICE_URL","IMAGE_RESIZER_API_URL","CHAYNS_IMAGE_RESIZER_URL","VIDEO_SERVICE_URL","CHAYNS_VIDEO_SERVICE_URL"],"sources":["../../../src/constants/uploadUrls.ts"],"sourcesContent":["/**\n * Reads an environment variable defensively so that accessing `process.env` does\n * not throw a `ReferenceError` in browser environments where `process` is not\n * defined. Returns `undefined` if the variable is not set or not accessible.\n */\nconst readEnv = (key: string): string | undefined => {\n try {\n if (typeof process !== 'undefined' && process.env) {\n const value = process.env[key];\n\n if (typeof value === 'string' && value.length > 0) {\n return value;\n }\n }\n } catch {\n // Accessing `process` can throw in some sandboxed environments.\n }\n\n return undefined;\n};\n\n/**\n * URL of the image service used to upload images.\n *\n * Can be overridden via the `CHAYNS_IMAGE_SERVICE_URL` environment variable\n * (e.g. for OnPremise deployments with a self-hosted image service). Falls back\n * to the default chayns image service when the variable is not defined.\n */\nexport const IMAGE_SERVICE_API_V3_URL =\n process.env.CHAYNS_IMAGE_SERVICE_URL ?? 'https://cube.tobit.cloud/image-service/v3/Images';\n\n/**\n * URL of the image resizer service used to upload images larger than 10 MB.\n *\n * Can be overridden via the `CHAYNS_IMAGE_RESIZER_URL` environment variable\n * (e.g. for OnPremise deployments with a self-hosted image service). Falls back\n * to the default chayns image resizer when the variable is not defined.\n */\nexport const IMAGE_RESIZER_API_URL =\n process.env.CHAYNS_IMAGE_RESIZER_URL ??\n 'https://cube.tobit.cloud/image-resizer-backend/api/v1.0/image';\n\n/**\n * URL of the streaming service used to upload videos.\n *\n * Can be overridden via the `CHAYNS_VIDEO_SERVICE_URL` environment variable\n * (e.g. for OnPremise deployments with a self-hosted video service). Falls back\n * to the default chayns streaming service when the variable is not defined.\n */\nexport const VIDEO_SERVICE_URL =\n process.env.CHAYNS_VIDEO_SERVICE_URL ?? 'https://streamingservice.chayns.space/video';\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA,MAAMA,OAAO,GAAIC,GAAW,IAAyB;EACjD,IAAI;IACA,IAAI,OAAOC,OAAO,KAAK,WAAW,IAAIA,OAAO,CAACC,GAAG,EAAE;MAC/C,MAAMC,KAAK,GAAGF,OAAO,CAACC,GAAG,CAACF,GAAG,CAAC;MAE9B,IAAI,OAAOG,KAAK,KAAK,QAAQ,IAAIA,KAAK,CAACC,MAAM,GAAG,CAAC,EAAE;QAC/C,OAAOD,KAAK;MAChB;IACJ;EACJ,CAAC,CAAC,MAAM;IACJ;EAAA;EAGJ,OAAOE,SAAS;AACpB,CAAC;;AAED;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,MAAMC,wBAAwB,GACjCL,OAAO,CAACC,GAAG,CAACK,wBAAwB,IAAI,kDAAkD;;AAE9F;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,MAAMC,qBAAqB,GAC9BP,OAAO,CAACC,GAAG,CAACO,wBAAwB,IACpC,+DAA+D;;AAEnE;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,MAAMC,iBAAiB,GAC1BT,OAAO,CAACC,GAAG,CAACS,wBAAwB,IAAI,6CAA6C","ignoreList":[]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@chayns-components/core",
|
|
3
|
-
"version": "5.5.
|
|
3
|
+
"version": "5.5.54",
|
|
4
4
|
"description": "A set of beautiful React components for developing your own applications with chayns.",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"browserslist": [
|
|
@@ -93,5 +93,5 @@
|
|
|
93
93
|
"publishConfig": {
|
|
94
94
|
"access": "public"
|
|
95
95
|
},
|
|
96
|
-
"gitHead": "
|
|
96
|
+
"gitHead": "a04b37216d101e41e13ed80c123dd47ca82ad310"
|
|
97
97
|
}
|