@finos/legend-application 16.0.104 → 16.0.105
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/__lib__/LegendApplicationNavigation.d.ts +4 -1
- package/lib/__lib__/LegendApplicationNavigation.d.ts.map +1 -1
- package/lib/__lib__/LegendApplicationNavigation.js +8 -1
- package/lib/__lib__/LegendApplicationNavigation.js.map +1 -1
- package/lib/index.css +1 -1
- package/lib/package.json +1 -1
- package/package.json +4 -4
- package/src/__lib__/LegendApplicationNavigation.ts +14 -3
|
@@ -20,10 +20,13 @@ export declare enum LEGEND_APPLICATION_PARAM_TOKEN {
|
|
|
20
20
|
* @external_application_navigation This depends on Legend Studio routing and is hardcoded so it's potentially brittle
|
|
21
21
|
*/
|
|
22
22
|
export declare const EXTERNAL_APPLICATION_NAVIGATION__generateStudioProjectViewUrl: (studioApplicationUrl: string, groupId: string, artifactId: string, versionId: string, entityPath: string | undefined) => string;
|
|
23
|
+
export declare const btoaURLSafe: (value: string) => string;
|
|
23
24
|
/**
|
|
24
25
|
* @external_application_navigation This depends on Legend DataCube routing and is hardcoded so it's potentially brittle
|
|
25
26
|
*/
|
|
26
|
-
export declare const EXTERNAL_APPLICATION_NAVIGATION__generateNewDataCubeUrl: (dataCubeApplicationUrl: string, sourceData: object
|
|
27
|
+
export declare const EXTERNAL_APPLICATION_NAVIGATION__generateNewDataCubeUrl: (dataCubeApplicationUrl: string, sourceData: object, options?: {
|
|
28
|
+
addUrlSafeBase64Characters?: boolean | undefined;
|
|
29
|
+
}) => string;
|
|
27
30
|
/**
|
|
28
31
|
* @external_application_navigation This depends on Registry routing and is hardcoded so it's potentially brittle
|
|
29
32
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LegendApplicationNavigation.d.ts","sourceRoot":"","sources":["../../src/__lib__/LegendApplicationNavigation.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAIH,oBAAY,8BAA8B;IACxC,mBAAmB,sBAAsB;CAC1C;AAED;;GAEG;AACH,eAAO,MAAM,6DAA6D,GACxE,sBAAsB,MAAM,EAC5B,SAAS,MAAM,EACf,YAAY,MAAM,EAClB,WAAW,MAAM,EACjB,YAAY,MAAM,GAAG,SAAS,KAC7B,MAK8C,CAAC;AAElD;;GAEG;AACH,eAAO,MAAM,uDAAuD,GAClE,wBAAwB,MAAM,EAC9B,YAAY,MAAM,
|
|
1
|
+
{"version":3,"file":"LegendApplicationNavigation.d.ts","sourceRoot":"","sources":["../../src/__lib__/LegendApplicationNavigation.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAIH,oBAAY,8BAA8B;IACxC,mBAAmB,sBAAsB;CAC1C;AAED;;GAEG;AACH,eAAO,MAAM,6DAA6D,GACxE,sBAAsB,MAAM,EAC5B,SAAS,MAAM,EACf,YAAY,MAAM,EAClB,WAAW,MAAM,EACjB,YAAY,MAAM,GAAG,SAAS,KAC7B,MAK8C,CAAC;AAElD,eAAO,MAAM,WAAW,GAAI,OAAO,MAAM,KAAG,MACW,CAAC;AAExD;;GAEG;AACH,eAAO,MAAM,uDAAuD,GAClE,wBAAwB,MAAM,EAC9B,YAAY,MAAM,EAClB,UAAU;IACR,0BAA0B,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;CAClD,KACA,MAQF,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,2DAA2D,GACtE,wBAAwB,MAAM,EAC9B,iBAAiB,MAAM,EACvB,iBAAiB,MAAM,KACtB,MACwI,CAAC;AAE5I,eAAO,MAAM,8DAA8D,GACzE,wBAAwB,MAAM,EAC9B,IAAI,MAAM,KACT,MAAqD,CAAC"}
|
|
@@ -22,10 +22,17 @@ export var LEGEND_APPLICATION_PARAM_TOKEN;
|
|
|
22
22
|
* @external_application_navigation This depends on Legend Studio routing and is hardcoded so it's potentially brittle
|
|
23
23
|
*/
|
|
24
24
|
export const EXTERNAL_APPLICATION_NAVIGATION__generateStudioProjectViewUrl = (studioApplicationUrl, groupId, artifactId, versionId, entityPath) => `${studioApplicationUrl}/view/archive/${generateGAVCoordinates(groupId, artifactId, versionId)}${entityPath ? `/entity/${entityPath}` : ''}`;
|
|
25
|
+
export const btoaURLSafe = (value) => btoa(value).replaceAll('+', '-').replaceAll('/', '_');
|
|
25
26
|
/**
|
|
26
27
|
* @external_application_navigation This depends on Legend DataCube routing and is hardcoded so it's potentially brittle
|
|
27
28
|
*/
|
|
28
|
-
export const EXTERNAL_APPLICATION_NAVIGATION__generateNewDataCubeUrl = (dataCubeApplicationUrl, sourceData) =>
|
|
29
|
+
export const EXTERNAL_APPLICATION_NAVIGATION__generateNewDataCubeUrl = (dataCubeApplicationUrl, sourceData, options) => {
|
|
30
|
+
const sourceDataString = JSON.stringify(sourceData);
|
|
31
|
+
const encodedSourceData = options?.addUrlSafeBase64Characters
|
|
32
|
+
? btoaURLSafe(sourceDataString)
|
|
33
|
+
: btoa(sourceDataString);
|
|
34
|
+
return `${dataCubeApplicationUrl}?sourceData=${encodeURIComponent(encodedSourceData)}`;
|
|
35
|
+
};
|
|
29
36
|
/**
|
|
30
37
|
* @external_application_navigation This depends on Registry routing and is hardcoded so it's potentially brittle
|
|
31
38
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LegendApplicationNavigation.js","sourceRoot":"","sources":["../../src/__lib__/LegendApplicationNavigation.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,sBAAsB,EAAE,MAAM,uBAAuB,CAAC;AAE/D,MAAM,CAAN,IAAY,8BAEX;AAFD,WAAY,8BAA8B;IACxC,2EAAyC,CAAA;AAC3C,CAAC,EAFW,8BAA8B,KAA9B,8BAA8B,QAEzC;AAED;;GAEG;AACH,MAAM,CAAC,MAAM,6DAA6D,GAAG,CAC3E,oBAA4B,EAC5B,OAAe,EACf,UAAkB,EAClB,SAAiB,EACjB,UAA8B,EACtB,EAAE,CACV,GAAG,oBAAoB,iBAAiB,sBAAsB,CAC5D,OAAO,EACP,UAAU,EACV,SAAS,CACV,GAAG,UAAU,CAAC,CAAC,CAAC,WAAW,UAAU,EAAE,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC;AAElD;;GAEG;AACH,MAAM,CAAC,MAAM,uDAAuD,GAAG,CACrE,sBAA8B,EAC9B,UAAkB,
|
|
1
|
+
{"version":3,"file":"LegendApplicationNavigation.js","sourceRoot":"","sources":["../../src/__lib__/LegendApplicationNavigation.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,sBAAsB,EAAE,MAAM,uBAAuB,CAAC;AAE/D,MAAM,CAAN,IAAY,8BAEX;AAFD,WAAY,8BAA8B;IACxC,2EAAyC,CAAA;AAC3C,CAAC,EAFW,8BAA8B,KAA9B,8BAA8B,QAEzC;AAED;;GAEG;AACH,MAAM,CAAC,MAAM,6DAA6D,GAAG,CAC3E,oBAA4B,EAC5B,OAAe,EACf,UAAkB,EAClB,SAAiB,EACjB,UAA8B,EACtB,EAAE,CACV,GAAG,oBAAoB,iBAAiB,sBAAsB,CAC5D,OAAO,EACP,UAAU,EACV,SAAS,CACV,GAAG,UAAU,CAAC,CAAC,CAAC,WAAW,UAAU,EAAE,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC;AAElD,MAAM,CAAC,MAAM,WAAW,GAAG,CAAC,KAAa,EAAU,EAAE,CACnD,IAAI,CAAC,KAAK,CAAC,CAAC,UAAU,CAAC,GAAG,EAAE,GAAG,CAAC,CAAC,UAAU,CAAC,GAAG,EAAE,GAAG,CAAC,CAAC;AAExD;;GAEG;AACH,MAAM,CAAC,MAAM,uDAAuD,GAAG,CACrE,sBAA8B,EAC9B,UAAkB,EAClB,OAEC,EACO,EAAE;IACV,MAAM,gBAAgB,GAAG,IAAI,CAAC,SAAS,CAAC,UAAU,CAAC,CAAC;IACpD,MAAM,iBAAiB,GAAG,OAAO,EAAE,0BAA0B;QAC3D,CAAC,CAAC,WAAW,CAAC,gBAAgB,CAAC;QAC/B,CAAC,CAAC,IAAI,CAAC,gBAAgB,CAAC,CAAC;IAC3B,OAAO,GAAG,sBAAsB,eAAe,kBAAkB,CAC/D,iBAAiB,CAClB,EAAE,CAAC;AACN,CAAC,CAAC;AAEF;;GAEG;AACH,MAAM,CAAC,MAAM,2DAA2D,GAAG,CACzE,sBAA8B,EAC9B,eAAuB,EACvB,eAAuB,EACf,EAAE,CACV,GAAG,sBAAsB,oCAAoC,eAAe,CAAC,WAAW,EAAE,gBAAgB,eAAe,CAAC,WAAW,EAAE,EAAE,CAAC;AAE5I,MAAM,CAAC,MAAM,8DAA8D,GAAG,CAC5E,sBAA8B,EAC9B,EAAU,EACF,EAAE,CAAC,GAAG,sBAAsB,cAAc,EAAE,EAAE,CAAC"}
|
package/lib/index.css
CHANGED
package/lib/package.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@finos/legend-application",
|
|
3
|
-
"version": "16.0.
|
|
3
|
+
"version": "16.0.105",
|
|
4
4
|
"description": "Legend application core",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"legend",
|
|
@@ -45,9 +45,9 @@
|
|
|
45
45
|
"test:watch": "jest --watch"
|
|
46
46
|
},
|
|
47
47
|
"dependencies": {
|
|
48
|
-
"@finos/legend-art": "7.1.
|
|
49
|
-
"@finos/legend-shared": "11.0.
|
|
50
|
-
"@finos/legend-storage": "3.0.
|
|
48
|
+
"@finos/legend-art": "7.1.147",
|
|
49
|
+
"@finos/legend-shared": "11.0.24",
|
|
50
|
+
"@finos/legend-storage": "3.0.145",
|
|
51
51
|
"@types/react": "19.0.10",
|
|
52
52
|
"@types/react-dom": "19.0.4",
|
|
53
53
|
"@types/react-router-dom": "5.3.3",
|
|
@@ -36,16 +36,27 @@ export const EXTERNAL_APPLICATION_NAVIGATION__generateStudioProjectViewUrl = (
|
|
|
36
36
|
versionId,
|
|
37
37
|
)}${entityPath ? `/entity/${entityPath}` : ''}`;
|
|
38
38
|
|
|
39
|
+
export const btoaURLSafe = (value: string): string =>
|
|
40
|
+
btoa(value).replaceAll('+', '-').replaceAll('/', '_');
|
|
41
|
+
|
|
39
42
|
/**
|
|
40
43
|
* @external_application_navigation This depends on Legend DataCube routing and is hardcoded so it's potentially brittle
|
|
41
44
|
*/
|
|
42
45
|
export const EXTERNAL_APPLICATION_NAVIGATION__generateNewDataCubeUrl = (
|
|
43
46
|
dataCubeApplicationUrl: string,
|
|
44
47
|
sourceData: object,
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
+
options?: {
|
|
49
|
+
addUrlSafeBase64Characters?: boolean | undefined;
|
|
50
|
+
},
|
|
51
|
+
): string => {
|
|
52
|
+
const sourceDataString = JSON.stringify(sourceData);
|
|
53
|
+
const encodedSourceData = options?.addUrlSafeBase64Characters
|
|
54
|
+
? btoaURLSafe(sourceDataString)
|
|
55
|
+
: btoa(sourceDataString);
|
|
56
|
+
return `${dataCubeApplicationUrl}?sourceData=${encodeURIComponent(
|
|
57
|
+
encodedSourceData,
|
|
48
58
|
)}`;
|
|
59
|
+
};
|
|
49
60
|
|
|
50
61
|
/**
|
|
51
62
|
* @external_application_navigation This depends on Registry routing and is hardcoded so it's potentially brittle
|