@singi-labs/sifa-sdk 0.9.16 → 0.9.17
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/NOTICE +12 -0
- package/dist/flags/index.cjs +20 -0
- package/dist/flags/index.cjs.map +1 -0
- package/dist/flags/index.d.cts +20 -0
- package/dist/flags/index.d.ts +20 -0
- package/dist/flags/index.js +17 -0
- package/dist/flags/index.js.map +1 -0
- package/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/package.json +16 -3
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* `@singi-labs/sifa-sdk/flags` -- Self-hosted Twemoji country flag SVGs.
|
|
3
|
+
*
|
|
4
|
+
* Shipped so sifa-web's OG image renderer and the planned sifa-app share the
|
|
5
|
+
* same flag assets without a CDN dependency at render time. Keys are
|
|
6
|
+
* ISO-3166 alpha-2 lowercase. Values are minified SVG strings.
|
|
7
|
+
*
|
|
8
|
+
* Source: Twemoji v14.0.2 (CC-BY 4.0, see NOTICE).
|
|
9
|
+
*/
|
|
10
|
+
/**
|
|
11
|
+
* Return the SVG string for a country code, or `null` if unknown.
|
|
12
|
+
* Case-insensitive: accepts both `'NL'` and `'nl'`.
|
|
13
|
+
*/
|
|
14
|
+
declare function getFlagSvg(cc: string): string | null;
|
|
15
|
+
/**
|
|
16
|
+
* Return the sorted, lowercase list of supported ISO-3166 alpha-2 codes.
|
|
17
|
+
*/
|
|
18
|
+
declare function listSupportedCountryCodes(): string[];
|
|
19
|
+
|
|
20
|
+
export { getFlagSvg, listSupportedCountryCodes };
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* `@singi-labs/sifa-sdk/flags` -- Self-hosted Twemoji country flag SVGs.
|
|
3
|
+
*
|
|
4
|
+
* Shipped so sifa-web's OG image renderer and the planned sifa-app share the
|
|
5
|
+
* same flag assets without a CDN dependency at render time. Keys are
|
|
6
|
+
* ISO-3166 alpha-2 lowercase. Values are minified SVG strings.
|
|
7
|
+
*
|
|
8
|
+
* Source: Twemoji v14.0.2 (CC-BY 4.0, see NOTICE).
|
|
9
|
+
*/
|
|
10
|
+
/**
|
|
11
|
+
* Return the SVG string for a country code, or `null` if unknown.
|
|
12
|
+
* Case-insensitive: accepts both `'NL'` and `'nl'`.
|
|
13
|
+
*/
|
|
14
|
+
declare function getFlagSvg(cc: string): string | null;
|
|
15
|
+
/**
|
|
16
|
+
* Return the sorted, lowercase list of supported ISO-3166 alpha-2 codes.
|
|
17
|
+
*/
|
|
18
|
+
declare function listSupportedCountryCodes(): string[];
|
|
19
|
+
|
|
20
|
+
export { getFlagSvg, listSupportedCountryCodes };
|