@sveltia/ui 0.76.0 → 0.76.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.
|
@@ -4,7 +4,9 @@
|
|
|
4
4
|
*/
|
|
5
5
|
export const LANGUAGE_LOADERS: Record<string, () => Promise<any>>;
|
|
6
6
|
/**
|
|
7
|
-
* Loaders of the syntax highlighting themes, keyed with the theme ID.
|
|
7
|
+
* Loaders of the syntax highlighting themes, keyed with the theme ID. Only the themes the code
|
|
8
|
+
* editor uses are included, so the other themes aren’t published with the consumer’s app; a theme
|
|
9
|
+
* without a loader leaves code as plain text.
|
|
8
10
|
* @type {Record<string, () => Promise<any>>}
|
|
9
11
|
*/
|
|
10
12
|
export const THEME_LOADERS: Record<string, () => Promise<any>>;
|
|
@@ -250,73 +250,12 @@ export const LANGUAGE_LOADERS = {
|
|
|
250
250
|
};
|
|
251
251
|
|
|
252
252
|
/**
|
|
253
|
-
* Loaders of the syntax highlighting themes, keyed with the theme ID.
|
|
253
|
+
* Loaders of the syntax highlighting themes, keyed with the theme ID. Only the themes the code
|
|
254
|
+
* editor uses are included, so the other themes aren’t published with the consumer’s app; a theme
|
|
255
|
+
* without a loader leaves code as plain text.
|
|
254
256
|
* @type {Record<string, () => Promise<any>>}
|
|
255
257
|
*/
|
|
256
258
|
export const THEME_LOADERS = {
|
|
257
|
-
"andromeeda": () => import('@shikijs/themes/andromeeda'),
|
|
258
|
-
"aurora-x": () => import('@shikijs/themes/aurora-x'),
|
|
259
|
-
"ayu-dark": () => import('@shikijs/themes/ayu-dark'),
|
|
260
|
-
"ayu-light": () => import('@shikijs/themes/ayu-light'),
|
|
261
|
-
"ayu-mirage": () => import('@shikijs/themes/ayu-mirage'),
|
|
262
|
-
"catppuccin-frappe": () => import('@shikijs/themes/catppuccin-frappe'),
|
|
263
|
-
"catppuccin-latte": () => import('@shikijs/themes/catppuccin-latte'),
|
|
264
|
-
"catppuccin-macchiato": () => import('@shikijs/themes/catppuccin-macchiato'),
|
|
265
|
-
"catppuccin-mocha": () => import('@shikijs/themes/catppuccin-mocha'),
|
|
266
|
-
"dark-plus": () => import('@shikijs/themes/dark-plus'),
|
|
267
|
-
"dracula": () => import('@shikijs/themes/dracula'),
|
|
268
|
-
"dracula-soft": () => import('@shikijs/themes/dracula-soft'),
|
|
269
|
-
"everforest-dark": () => import('@shikijs/themes/everforest-dark'),
|
|
270
|
-
"everforest-light": () => import('@shikijs/themes/everforest-light'),
|
|
271
|
-
"github-dark": () => import('@shikijs/themes/github-dark'),
|
|
272
|
-
"github-dark-default": () => import('@shikijs/themes/github-dark-default'),
|
|
273
|
-
"github-dark-dimmed": () => import('@shikijs/themes/github-dark-dimmed'),
|
|
274
|
-
"github-dark-high-contrast": () => import('@shikijs/themes/github-dark-high-contrast'),
|
|
275
259
|
"github-light": () => import('@shikijs/themes/github-light'),
|
|
276
|
-
"github-
|
|
277
|
-
"github-light-high-contrast": () => import('@shikijs/themes/github-light-high-contrast'),
|
|
278
|
-
"gruvbox-dark-hard": () => import('@shikijs/themes/gruvbox-dark-hard'),
|
|
279
|
-
"gruvbox-dark-medium": () => import('@shikijs/themes/gruvbox-dark-medium'),
|
|
280
|
-
"gruvbox-dark-soft": () => import('@shikijs/themes/gruvbox-dark-soft'),
|
|
281
|
-
"gruvbox-light-hard": () => import('@shikijs/themes/gruvbox-light-hard'),
|
|
282
|
-
"gruvbox-light-medium": () => import('@shikijs/themes/gruvbox-light-medium'),
|
|
283
|
-
"gruvbox-light-soft": () => import('@shikijs/themes/gruvbox-light-soft'),
|
|
284
|
-
"horizon": () => import('@shikijs/themes/horizon'),
|
|
285
|
-
"horizon-bright": () => import('@shikijs/themes/horizon-bright'),
|
|
286
|
-
"houston": () => import('@shikijs/themes/houston'),
|
|
287
|
-
"kanagawa-dragon": () => import('@shikijs/themes/kanagawa-dragon'),
|
|
288
|
-
"kanagawa-lotus": () => import('@shikijs/themes/kanagawa-lotus'),
|
|
289
|
-
"kanagawa-wave": () => import('@shikijs/themes/kanagawa-wave'),
|
|
290
|
-
"laserwave": () => import('@shikijs/themes/laserwave'),
|
|
291
|
-
"light-plus": () => import('@shikijs/themes/light-plus'),
|
|
292
|
-
"material-theme": () => import('@shikijs/themes/material-theme'),
|
|
293
|
-
"material-theme-darker": () => import('@shikijs/themes/material-theme-darker'),
|
|
294
|
-
"material-theme-lighter": () => import('@shikijs/themes/material-theme-lighter'),
|
|
295
|
-
"material-theme-ocean": () => import('@shikijs/themes/material-theme-ocean'),
|
|
296
|
-
"material-theme-palenight": () => import('@shikijs/themes/material-theme-palenight'),
|
|
297
|
-
"min-dark": () => import('@shikijs/themes/min-dark'),
|
|
298
|
-
"min-light": () => import('@shikijs/themes/min-light'),
|
|
299
|
-
"monokai": () => import('@shikijs/themes/monokai'),
|
|
300
|
-
"night-owl": () => import('@shikijs/themes/night-owl'),
|
|
301
|
-
"night-owl-light": () => import('@shikijs/themes/night-owl-light'),
|
|
302
|
-
"nord": () => import('@shikijs/themes/nord'),
|
|
303
|
-
"one-dark-pro": () => import('@shikijs/themes/one-dark-pro'),
|
|
304
|
-
"one-light": () => import('@shikijs/themes/one-light'),
|
|
305
|
-
"plastic": () => import('@shikijs/themes/plastic'),
|
|
306
|
-
"poimandres": () => import('@shikijs/themes/poimandres'),
|
|
307
|
-
"red": () => import('@shikijs/themes/red'),
|
|
308
|
-
"rose-pine": () => import('@shikijs/themes/rose-pine'),
|
|
309
|
-
"rose-pine-dawn": () => import('@shikijs/themes/rose-pine-dawn'),
|
|
310
|
-
"rose-pine-moon": () => import('@shikijs/themes/rose-pine-moon'),
|
|
311
|
-
"slack-dark": () => import('@shikijs/themes/slack-dark'),
|
|
312
|
-
"slack-ochin": () => import('@shikijs/themes/slack-ochin'),
|
|
313
|
-
"snazzy-light": () => import('@shikijs/themes/snazzy-light'),
|
|
314
|
-
"solarized-dark": () => import('@shikijs/themes/solarized-dark'),
|
|
315
|
-
"solarized-light": () => import('@shikijs/themes/solarized-light'),
|
|
316
|
-
"synthwave-84": () => import('@shikijs/themes/synthwave-84'),
|
|
317
|
-
"tokyo-night": () => import('@shikijs/themes/tokyo-night'),
|
|
318
|
-
"vesper": () => import('@shikijs/themes/vesper'),
|
|
319
|
-
"vitesse-black": () => import('@shikijs/themes/vitesse-black'),
|
|
320
|
-
"vitesse-dark": () => import('@shikijs/themes/vitesse-dark'),
|
|
321
|
-
"vitesse-light": () => import('@shikijs/themes/vitesse-light'),
|
|
260
|
+
"github-dark": () => import('@shikijs/themes/github-dark'),
|
|
322
261
|
};
|
|
@@ -4,7 +4,9 @@ import { LANGUAGE_LOADERS, THEME_LOADERS } from './generated.js';
|
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* Serve the fonts and the syntax highlighting engine, grammars and themes from the app itself
|
|
7
|
-
* rather than the CDNs, so the components don’t contact any third party.
|
|
7
|
+
* rather than the CDNs, so the components don’t contact any third party. Only the light and dark
|
|
8
|
+
* themes the code editor uses are included; add loaders with `setCodeHighlighterLoaders()` to pass
|
|
9
|
+
* another theme to `highlightCodeToHTML()`. Every file becomes a
|
|
8
10
|
* separate asset or chunk of the consumer’s bundle, only loaded when needed. Call this before the
|
|
9
11
|
* `AppShell` component is mounted.
|
|
10
12
|
*
|