@sveltia/ui 0.65.0 → 0.65.1
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.
|
@@ -1,6 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @import { EmojiData } from '../../typedefs';
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* Version of `emojilib` the data is fetched from, which also scopes the cache so a bump invalidates
|
|
6
|
+
* it.
|
|
7
|
+
*
|
|
8
|
+
* This is written out rather than read from `emojilib/package.json`, because this package ships
|
|
9
|
+
* unbundled: a consumer’s test runner may well load these modules through Node, where a JSON import
|
|
10
|
+
* needs an import attribute and exposes no named exports, and not every bundler understands the
|
|
11
|
+
* attribute either. A test keeps this in step with the installed version.
|
|
12
|
+
*/
|
|
13
|
+
export const EMOJILIB_VERSION: "4.0.3";
|
|
1
14
|
export function getEmojiDataURL(): string;
|
|
2
|
-
export { EMOJILIB_VERSION };
|
|
3
15
|
export function setEmojiDataLoader(newLoader: () => Promise<EmojiData>): void;
|
|
4
16
|
export function getEmojiDataLoader(): () => Promise<EmojiData>;
|
|
5
|
-
import { version as EMOJILIB_VERSION } from 'emojilib/package.json';
|
|
6
17
|
import type { EmojiData } from '../../typedefs';
|
|
@@ -1,9 +1,18 @@
|
|
|
1
|
-
import { version as EMOJILIB_VERSION } from 'emojilib/package.json';
|
|
2
|
-
|
|
3
1
|
/**
|
|
4
2
|
* @import { EmojiData } from '../../typedefs';
|
|
5
3
|
*/
|
|
6
4
|
|
|
5
|
+
/**
|
|
6
|
+
* Version of `emojilib` the data is fetched from, which also scopes the cache so a bump invalidates
|
|
7
|
+
* it.
|
|
8
|
+
*
|
|
9
|
+
* This is written out rather than read from `emojilib/package.json`, because this package ships
|
|
10
|
+
* unbundled: a consumer’s test runner may well load these modules through Node, where a JSON import
|
|
11
|
+
* needs an import attribute and exposes no named exports, and not every bundler understands the
|
|
12
|
+
* attribute either. A test keeps this in step with the installed version.
|
|
13
|
+
*/
|
|
14
|
+
export const EMOJILIB_VERSION = '4.0.3';
|
|
15
|
+
|
|
7
16
|
const CDN_BASE_URL = 'https://unpkg.com/emojilib';
|
|
8
17
|
/**
|
|
9
18
|
* How long to wait for the emoji data, in milliseconds. The suggestions are a convenience, so a
|
|
@@ -16,17 +25,12 @@ const FETCH_TIMEOUT = 5000;
|
|
|
16
25
|
*
|
|
17
26
|
* The data is fetched rather than bundled because it’s a few hundred kilobytes that most sessions
|
|
18
27
|
* never need, and a single-file bundle — our main consumer, Sveltia CMS — would otherwise inline it
|
|
19
|
-
* wholesale. The
|
|
20
|
-
*
|
|
28
|
+
* wholesale. The URL is pinned to {@link EMOJILIB_VERSION}, so the data always matches the package
|
|
29
|
+
* this was developed against.
|
|
21
30
|
* @returns {string} URL.
|
|
22
31
|
*/
|
|
23
32
|
export const getEmojiDataURL = () => `${CDN_BASE_URL}@${EMOJILIB_VERSION}/dist/emoji-en-US.json`;
|
|
24
33
|
|
|
25
|
-
/**
|
|
26
|
-
* Version of the emoji data, used to scope the cache so a bump invalidates it.
|
|
27
|
-
*/
|
|
28
|
-
export { EMOJILIB_VERSION };
|
|
29
|
-
|
|
30
34
|
/**
|
|
31
35
|
* Fetch the emoji data from the CDN.
|
|
32
36
|
* @returns {Promise<EmojiData>} Emoji data, keyed by emoji character.
|
|
@@ -7,7 +7,7 @@ export const SHIKI_VERSION: "4.4.3";
|
|
|
7
7
|
/**
|
|
8
8
|
* Version of this package, used to resolve the prebuilt Shiki engine chunk from a CDN.
|
|
9
9
|
*/
|
|
10
|
-
export const UI_VERSION: "0.65.
|
|
10
|
+
export const UI_VERSION: "0.65.1";
|
|
11
11
|
/**
|
|
12
12
|
* Available syntax highlighting languages, sorted by display name.
|
|
13
13
|
* @type {{ id: string, name: string, aliases?: string[] }[]}
|
|
@@ -10,7 +10,7 @@ export const SHIKI_VERSION = "4.4.3";
|
|
|
10
10
|
/**
|
|
11
11
|
* Version of this package, used to resolve the prebuilt Shiki engine chunk from a CDN.
|
|
12
12
|
*/
|
|
13
|
-
export const UI_VERSION = "0.65.
|
|
13
|
+
export const UI_VERSION = "0.65.1";
|
|
14
14
|
|
|
15
15
|
/**
|
|
16
16
|
* Available syntax highlighting languages, sorted by display name.
|