@telicent-oss/ds 0.19.2 → 0.20.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/dist/ds.js +1723 -710
- package/dist/ds.umd.cjs +1723 -710
- package/dist/src/candidate-packages/utils-lib/src/getCodec/getCodec.d.ts +26 -0
- package/dist/src/candidate-packages/utils-lib/src/getCodec/schemaAndTypes.d.ts +4 -0
- package/dist/src/candidate-packages/utils-lib/src/getCodec/toStringEncoded.d.ts +5 -0
- package/dist/src/candidate-packages/utils-lib/src/index.d.ts +3 -0
- package/dist/src/export.d.ts +1 -0
- package/package.json +3 -2
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { ENCODE_SEARCH_PARAMS_MODES_Type } from './schemaAndTypes';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* TODO make codec work on URLSearchParams - not just strings
|
|
5
|
+
* WHY
|
|
6
|
+
* As-is we rely on URLSearchParams constructor to be in
|
|
7
|
+
* the round-trip of any decoding.
|
|
8
|
+
* This means the decode fn only partially does the decoding;
|
|
9
|
+
* it relies on the external use of URLSearchParams.
|
|
10
|
+
*
|
|
11
|
+
* WHEN
|
|
12
|
+
* A.S.A.P — its a simple refactor - unfortunately I had to
|
|
13
|
+
* abandon due to ruthless prioritization.
|
|
14
|
+
*
|
|
15
|
+
* HOW
|
|
16
|
+
* https://telicent.atlassian.net/browse/TELFE-1073
|
|
17
|
+
*
|
|
18
|
+
*/
|
|
19
|
+
export type Codec = {
|
|
20
|
+
param: string;
|
|
21
|
+
encode: (str: string) => string;
|
|
22
|
+
decode: (str: string) => string;
|
|
23
|
+
};
|
|
24
|
+
export declare const base64Codec: Codec;
|
|
25
|
+
export declare const uriComponentCodec: Codec;
|
|
26
|
+
export declare const getCodec: (mode?: ENCODE_SEARCH_PARAMS_MODES_Type) => Codec;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export { getCodec, type Codec, base64Codec, uriComponentCodec, } from './getCodec/getCodec';
|
|
2
|
+
export { ENCODE_SEARCH_PARAMS_MODES_Schema, type ENCODE_SEARCH_PARAMS_MODES_Type, } from './getCodec/schemaAndTypes';
|
|
3
|
+
export { toStringEncoded, type URLSearchParamsInit, } from './getCodec/toStringEncoded';
|
package/dist/src/export.d.ts
CHANGED
|
@@ -13,3 +13,4 @@ export * from './v1/components/surfaces';
|
|
|
13
13
|
export * from './v1/theme';
|
|
14
14
|
export { Modal, type ModalProps } from './v1/components/utils/index';
|
|
15
15
|
export * from './component-library/Map';
|
|
16
|
+
export { getCodec, type Codec, base64Codec, uriComponentCodec, ENCODE_SEARCH_PARAMS_MODES_Schema, type ENCODE_SEARCH_PARAMS_MODES_Type, toStringEncoded, type URLSearchParamsInit, } from './candidate-packages/utils-lib/src/index';
|
package/package.json
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
"url": "https://github.com/telicent-oss/telicent-ds.git"
|
|
8
8
|
},
|
|
9
9
|
"type": "module",
|
|
10
|
-
"version": "0.
|
|
10
|
+
"version": "0.20.0",
|
|
11
11
|
"private": false,
|
|
12
12
|
"dependencies": {
|
|
13
13
|
"@emotion/react": "^11.10.6",
|
|
@@ -30,6 +30,7 @@
|
|
|
30
30
|
"maplibre-gl": "^3.5.0",
|
|
31
31
|
"react": "18.2.0",
|
|
32
32
|
"react-dom": "18.2.0",
|
|
33
|
+
"react-router-dom": "^6.23.1",
|
|
33
34
|
"react-error-boundary": "^5.0.0",
|
|
34
35
|
"react-map-gl": "^7.1.6",
|
|
35
36
|
"react-rnd": "^10.4.13",
|
|
@@ -212,4 +213,4 @@
|
|
|
212
213
|
"WARNING: TSC CHECK NO ERROR": true
|
|
213
214
|
}
|
|
214
215
|
}
|
|
215
|
-
}
|
|
216
|
+
}
|