@finos/legend-application 16.0.79 → 16.0.80

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/index.css CHANGED
@@ -1,4 +1,4 @@
1
- /** @license @finos/legend-application v16.0.79
1
+ /** @license @finos/legend-application v16.0.80
2
2
  * Copyright (c) 2020-present, Goldman Sachs
3
3
  *
4
4
  * Licensed under the Apache License, Version 2.0 (the "License");
package/lib/index.d.ts CHANGED
@@ -35,6 +35,7 @@ export { forceDispatchKeyboardEvent, BackdropContainer, } from './components/App
35
35
  export * from './stores/ApplicationStore.js';
36
36
  export { NAVIGATION_ZONE_SEPARATOR, NavigationService, type NavigationAddress, type NavigationLocation, type NavigationZone, } from './stores/navigation/NavigationService.js';
37
37
  export { downloadStream } from './util/DownloadHelperServiceWorker.js';
38
+ export { useSyncStateAndSearchParam } from './util/URLUtils.js';
38
39
  export * from './stores/storage/ApplicationStorage.js';
39
40
  export * from './stores/storage/StorageService.js';
40
41
  export * from './stores/SettingService.js';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,cAAc,+BAA+B,CAAC;AAC9C,cAAc,4CAA4C,CAAC;AAC3D,cAAc,oCAAoC,CAAC;AACnD,cAAc,0CAA0C,CAAC;AACzD,cAAc,iDAAiD,CAAC;AAEhE,cAAc,qCAAqC,CAAC;AACpD,cAAc,yCAAyC,CAAC;AACxD,cAAc,uCAAuC,CAAC;AACtD,cAAc,6CAA6C,CAAC;AAC5D,cAAc,0CAA0C,CAAC;AACzD,OAAO,EAAE,8BAA8B,EAAE,MAAM,0CAA0C,CAAC;AAE1F,cAAc,0CAA0C,CAAC;AACzD,cAAc,8CAA8C,CAAC;AAC7D,cAAc,iDAAiD,CAAC;AAChE,cAAc,qCAAqC,CAAC;AACpD,cAAc,6BAA6B,CAAC;AAC5C,cAAc,qCAAqC,CA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;AACzD,cAAc,8CAA8C,CAAC;AAC7D,cAAc,iDAAiD,CAAC;AAChE,cAAc,qCAAqC,CAAC;AACpD,cAAc,6BAA6B,CAAC;AAC5C,cAAc,qCAAqC,CAAC;AACpD,cAAc,+BAA+B,CAAC;AAC9C,OAAO,EACL,0BAA0B,EAC1B,iBAAiB,GAClB,MAAM,uDAAuD,CAAC;AAE/D,cAAc,8BAA8B,CAAC;AAC7C,OAAO,EACL,yBAAyB,EACzB,iBAAiB,EACjB,KAAK,iBAAiB,EACtB,KAAK,kBAAkB,EACvB,KAAK,cAAc,GACpB,MAAM,0CAA0C,CAAC;AAClD,OAAO,EAAE,cAAc,EAAE,MAAM,uCAAuC,CAAC;AACvE,OAAO,EAAE,0BAA0B,EAAE,MAAM,oBAAoB,CAAC;AAChE,cAAc,wCAAwC,CAAC;AACvD,cAAc,oCAAoC,CAAC;AACnD,cAAc,4BAA4B,CAAC;AAC3C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,kCAAkC,CAAC;AACjD,cAAc,4BAA4B,CAAC;AAC3C,cAAc,gCAAgC,CAAC;AAC/C,cAAc,6CAA6C,CAAC;AAC5D,cAAc,8BAA8B,CAAC;AAC7C,cAAc,iCAAiC,CAAC;AAChD,cAAc,0BAA0B,CAAC;AACzC,cAAc,iCAAiC,CAAC;AAChD,cAAc,8BAA8B,CAAC;AAC7C,cAAc,iDAAiD,CAAC;AAChE,cAAc,qCAAqC,CAAC;AACpD,cAAc,0CAA0C,CAAC;AACzD,OAAO,EAAE,mBAAmB,EAAE,MAAM,+BAA+B,CAAC"}
package/lib/index.js CHANGED
@@ -35,6 +35,7 @@ export { forceDispatchKeyboardEvent, BackdropContainer, } from './components/App
35
35
  export * from './stores/ApplicationStore.js';
36
36
  export { NAVIGATION_ZONE_SEPARATOR, NavigationService, } from './stores/navigation/NavigationService.js';
37
37
  export { downloadStream } from './util/DownloadHelperServiceWorker.js';
38
+ export { useSyncStateAndSearchParam } from './util/URLUtils.js';
38
39
  export * from './stores/storage/ApplicationStorage.js';
39
40
  export * from './stores/storage/StorageService.js';
40
41
  export * from './stores/SettingService.js';
package/lib/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,cAAc,+BAA+B,CAAC;AAC9C,cAAc,4CAA4C,CAAC;AAC3D,cAAc,oCAAoC,CAAC;AACnD,cAAc,0CAA0C,CAAC;AACzD,cAAc,iDAAiD,CAAC;AAEhE,cAAc,qCAAqC,CAAC;AACpD,cAAc,yCAAyC,CAAC;AACxD,cAAc,uCAAuC,CAAC;AACtD,cAAc,6CAA6C,CAAC;AAC5D,cAAc,0CAA0C,CAAC;AACzD,OAAO,EAAE,8BAA8B,EAAE,MAAM,0CAA0C,CAAC;AAE1F,cAAc,0CAA0C,CAAC;AACzD,cAAc,8CAA8C,CAAC;AAC7D,cAAc,iDAAiD,CAAC;AAChE,cAAc,qCAAqC,CAAC;AACpD,cAAc,6BAA6B,CAAC;AAC5C,cAAc,qCAAqC,CAAC;AACpD,cAAc,+BAA+B,CAAC;AAC9C,OAAO,EACL,0BAA0B,EAC1B,iBAAiB,GAClB,MAAM,uDAAuD,CAAC;AAE/D,cAAc,8BAA8B,CAAC;AAC7C,OAAO,EACL,yBAAyB,EACzB,iBAAiB,GAIlB,MAAM,0CAA0C,CAAC;AAClD,OAAO,EAAE,cAAc,EAAE,MAAM,uCAAuC,CAAC;AACvE,cAAc,wCAAwC,CAAC;AACvD,cAAc,oCAAoC,CAAC;AACnD,cAAc,4BAA4B,CAAC;AAC3C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,kCAAkC,CAAC;AACjD,cAAc,4BAA4B,CAAC;AAC3C,cAAc,gCAAgC,CAAC;AAC/C,cAAc,6CAA6C,CAAC;AAC5D,cAAc,8BAA8B,CAAC;AAC7C,cAAc,iCAAiC,CAAC;AAChD,cAAc,0BAA0B,CAAC;AACzC,cAAc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AC;AAC/C,cAAc,6CAA6C,CAAC;AAC5D,cAAc,8BAA8B,CAAC;AAC7C,cAAc,iCAAiC,CAAC;AAChD,cAAc,0BAA0B,CAAC;AACzC,cAAc,iCAAiC,CAAC;AAChD,cAAc,8BAA8B,CAAC;AAC7C,cAAc,iDAAiD,CAAC;AAChE,cAAc,qCAAqC,CAAC;AACpD,cAAc,0CAA0C,CAAC;AACzD,OAAO,EAAE,mBAAmB,EAAE,MAAM,+BAA+B,CAAC"}
package/lib/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@finos/legend-application",
3
- "version": "16.0.79",
3
+ "version": "16.0.80",
4
4
  "description": "Legend application core",
5
5
  "keywords": [
6
6
  "legend",
@@ -0,0 +1,28 @@
1
+ /**
2
+ * Copyright (c) 2020-present, Goldman Sachs
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+ import type { SetURLSearchParams } from 'react-router';
17
+ /**
18
+ * Util hook to keep a state variable in sync with a URL search parameter.
19
+ *
20
+ * @param stateVar the state variable to sync
21
+ * @param updateStateVar setter function to update the state variable (should be memoized with useCallback)
22
+ * @param searchParamKey the key of the URL search parameter to sync with
23
+ * @param searchParams the current URL search parameters (i.e., from useSearchParams)
24
+ * @param setSearchParams function to update the URL search parameters (i.e., from useSearchParams)
25
+ * @param initializedCallback function to check if the underlying state is initialized and ready to sync with URL (should be memoized with useCallback)
26
+ */
27
+ export declare const useSyncStateAndSearchParam: (stateVar: string | boolean | number | undefined, updateStateVar: (val: string | undefined) => void, searchParamKey: string, searchParams: URLSearchParams, setSearchParams: SetURLSearchParams, initializedCallback: () => boolean) => void;
28
+ //# sourceMappingURL=URLUtils.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"URLUtils.d.ts","sourceRoot":"","sources":["../../src/util/URLUtils.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAGH,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,cAAc,CAAC;AAEvD;;;;;;;;;GASG;AACH,eAAO,MAAM,0BAA0B,GACrC,UAAU,MAAM,GAAG,OAAO,GAAG,MAAM,GAAG,SAAS,EAC/C,gBAAgB,CAAC,GAAG,EAAE,MAAM,GAAG,SAAS,KAAK,IAAI,EACjD,gBAAgB,MAAM,EACtB,cAAc,eAAe,EAC7B,iBAAiB,kBAAkB,EACnC,qBAAqB,MAAM,OAAO,KACjC,IA6BF,CAAC"}
@@ -0,0 +1,57 @@
1
+ /**
2
+ * Copyright (c) 2020-present, Goldman Sachs
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+ import { useEffect } from 'react';
17
+ /**
18
+ * Util hook to keep a state variable in sync with a URL search parameter.
19
+ *
20
+ * @param stateVar the state variable to sync
21
+ * @param updateStateVar setter function to update the state variable (should be memoized with useCallback)
22
+ * @param searchParamKey the key of the URL search parameter to sync with
23
+ * @param searchParams the current URL search parameters (i.e., from useSearchParams)
24
+ * @param setSearchParams function to update the URL search parameters (i.e., from useSearchParams)
25
+ * @param initializedCallback function to check if the underlying state is initialized and ready to sync with URL (should be memoized with useCallback)
26
+ */
27
+ export const useSyncStateAndSearchParam = (stateVar, updateStateVar, searchParamKey, searchParams, setSearchParams, initializedCallback) => {
28
+ // Sync state with URL search param
29
+ useEffect(() => {
30
+ if (initializedCallback()) {
31
+ // On mount or when searchParams change, update state from URL
32
+ const urlParamValue = searchParams.get(searchParamKey) ?? undefined;
33
+ updateStateVar(urlParamValue);
34
+ }
35
+ }, [initializedCallback, searchParamKey, searchParams, updateStateVar]);
36
+ // Sync URL search param with state
37
+ useEffect(() => {
38
+ if (initializedCallback()) {
39
+ // When state changes, update URL param
40
+ if (stateVar) {
41
+ setSearchParams((params) => {
42
+ const newParams = new URLSearchParams(params);
43
+ newParams.set(searchParamKey, String(stateVar));
44
+ return newParams;
45
+ });
46
+ }
47
+ else {
48
+ setSearchParams((params) => {
49
+ const newParams = new URLSearchParams(params);
50
+ newParams.delete(searchParamKey);
51
+ return newParams;
52
+ });
53
+ }
54
+ }
55
+ }, [initializedCallback, searchParamKey, stateVar, setSearchParams]);
56
+ };
57
+ //# sourceMappingURL=URLUtils.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"URLUtils.js","sourceRoot":"","sources":["../../src/util/URLUtils.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAGlC;;;;;;;;;GASG;AACH,MAAM,CAAC,MAAM,0BAA0B,GAAG,CACxC,QAA+C,EAC/C,cAAiD,EACjD,cAAsB,EACtB,YAA6B,EAC7B,eAAmC,EACnC,mBAAkC,EAC5B,EAAE;IACR,mCAAmC;IACnC,SAAS,CAAC,GAAG,EAAE;QACb,IAAI,mBAAmB,EAAE,EAAE,CAAC;YAC1B,8DAA8D;YAC9D,MAAM,aAAa,GAAG,YAAY,CAAC,GAAG,CAAC,cAAc,CAAC,IAAI,SAAS,CAAC;YACpE,cAAc,CAAC,aAAa,CAAC,CAAC;QAChC,CAAC;IACH,CAAC,EAAE,CAAC,mBAAmB,EAAE,cAAc,EAAE,YAAY,EAAE,cAAc,CAAC,CAAC,CAAC;IAExE,mCAAmC;IACnC,SAAS,CAAC,GAAG,EAAE;QACb,IAAI,mBAAmB,EAAE,EAAE,CAAC;YAC1B,uCAAuC;YACvC,IAAI,QAAQ,EAAE,CAAC;gBACb,eAAe,CAAC,CAAC,MAAM,EAAE,EAAE;oBACzB,MAAM,SAAS,GAAG,IAAI,eAAe,CAAC,MAAM,CAAC,CAAC;oBAC9C,SAAS,CAAC,GAAG,CAAC,cAAc,EAAE,MAAM,CAAC,QAAQ,CAAC,CAAC,CAAC;oBAChD,OAAO,SAAS,CAAC;gBACnB,CAAC,CAAC,CAAC;YACL,CAAC;iBAAM,CAAC;gBACN,eAAe,CAAC,CAAC,MAAM,EAAE,EAAE;oBACzB,MAAM,SAAS,GAAG,IAAI,eAAe,CAAC,MAAM,CAAC,CAAC;oBAC9C,SAAS,CAAC,MAAM,CAAC,cAAc,CAAC,CAAC;oBACjC,OAAO,SAAS,CAAC;gBACnB,CAAC,CAAC,CAAC;YACL,CAAC;QACH,CAAC;IACH,CAAC,EAAE,CAAC,mBAAmB,EAAE,cAAc,EAAE,QAAQ,EAAE,eAAe,CAAC,CAAC,CAAC;AACvE,CAAC,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@finos/legend-application",
3
- "version": "16.0.79",
3
+ "version": "16.0.80",
4
4
  "description": "Legend application core",
5
5
  "keywords": [
6
6
  "legend",
package/src/index.ts CHANGED
@@ -48,6 +48,7 @@ export {
48
48
  type NavigationZone,
49
49
  } from './stores/navigation/NavigationService.js';
50
50
  export { downloadStream } from './util/DownloadHelperServiceWorker.js';
51
+ export { useSyncStateAndSearchParam } from './util/URLUtils.js';
51
52
  export * from './stores/storage/ApplicationStorage.js';
52
53
  export * from './stores/storage/StorageService.js';
53
54
  export * from './stores/SettingService.js';
@@ -0,0 +1,66 @@
1
+ /**
2
+ * Copyright (c) 2020-present, Goldman Sachs
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+
17
+ import { useEffect } from 'react';
18
+ import type { SetURLSearchParams } from 'react-router';
19
+
20
+ /**
21
+ * Util hook to keep a state variable in sync with a URL search parameter.
22
+ *
23
+ * @param stateVar the state variable to sync
24
+ * @param updateStateVar setter function to update the state variable (should be memoized with useCallback)
25
+ * @param searchParamKey the key of the URL search parameter to sync with
26
+ * @param searchParams the current URL search parameters (i.e., from useSearchParams)
27
+ * @param setSearchParams function to update the URL search parameters (i.e., from useSearchParams)
28
+ * @param initializedCallback function to check if the underlying state is initialized and ready to sync with URL (should be memoized with useCallback)
29
+ */
30
+ export const useSyncStateAndSearchParam = (
31
+ stateVar: string | boolean | number | undefined,
32
+ updateStateVar: (val: string | undefined) => void,
33
+ searchParamKey: string,
34
+ searchParams: URLSearchParams,
35
+ setSearchParams: SetURLSearchParams,
36
+ initializedCallback: () => boolean,
37
+ ): void => {
38
+ // Sync state with URL search param
39
+ useEffect(() => {
40
+ if (initializedCallback()) {
41
+ // On mount or when searchParams change, update state from URL
42
+ const urlParamValue = searchParams.get(searchParamKey) ?? undefined;
43
+ updateStateVar(urlParamValue);
44
+ }
45
+ }, [initializedCallback, searchParamKey, searchParams, updateStateVar]);
46
+
47
+ // Sync URL search param with state
48
+ useEffect(() => {
49
+ if (initializedCallback()) {
50
+ // When state changes, update URL param
51
+ if (stateVar) {
52
+ setSearchParams((params) => {
53
+ const newParams = new URLSearchParams(params);
54
+ newParams.set(searchParamKey, String(stateVar));
55
+ return newParams;
56
+ });
57
+ } else {
58
+ setSearchParams((params) => {
59
+ const newParams = new URLSearchParams(params);
60
+ newParams.delete(searchParamKey);
61
+ return newParams;
62
+ });
63
+ }
64
+ }
65
+ }, [initializedCallback, searchParamKey, stateVar, setSearchParams]);
66
+ };
package/tsconfig.json CHANGED
@@ -96,6 +96,7 @@
96
96
  "./src/stores/terminal/Terminal.ts",
97
97
  "./src/stores/terminal/XTerm.ts",
98
98
  "./src/util/DownloadHelperServiceWorker.ts",
99
+ "./src/util/URLUtils.ts",
99
100
  "./src/components/ActionAlert.tsx",
100
101
  "./src/components/ApplicationComponentFrameworkProvider.tsx",
101
102
  "./src/components/ApplicationFrameworkProvider.tsx",