valaxy 0.24.1 → 0.24.3

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.
@@ -2,7 +2,7 @@
2
2
  // https://router.vuejs.org/guide/advanced/extending-router-link.html#extending-routerlink
3
3
  import { computed } from 'vue'
4
4
  import { RouterLink } from 'vue-router'
5
- import { EXTERNAL_URL_RE } from '../../node/constants'
5
+ import { EXTERNAL_URL_RE } from '../../shared'
6
6
 
7
7
  const props = defineProps<{
8
8
  showExternalIcon?: boolean
@@ -4,7 +4,7 @@ import yargs from "yargs";
4
4
  import { hideBin } from "yargs/helpers";
5
5
 
6
6
  // package.json
7
- var version = "0.24.1";
7
+ var version = "0.24.3";
8
8
 
9
9
  // node/modules/fuse.ts
10
10
  import path4 from "path";
@@ -515,42 +515,16 @@ function getGitTimestamp(file, type = "updated") {
515
515
  });
516
516
  }
517
517
 
518
- // node/constants/index.ts
519
- var EXCERPT_SEPARATOR = "<!-- more -->";
518
+ // shared/constants.ts
520
519
  var EXTERNAL_URL_RE = /^(?:[a-z]+:|\/\/)/i;
521
- var PATHNAME_PROTOCOL_RE = /^pathname:\/\//;
522
- var ALL_ROUTE = "/:all(.*)*";
523
- var customElements = /* @__PURE__ */ new Set([
524
- // katex
525
- "annotation",
526
- "math",
527
- "menclose",
528
- "mfrac",
529
- "mglyph",
530
- "mi",
531
- "mlabeledtr",
532
- "mn",
533
- "mo",
534
- "mover",
535
- "mpadded",
536
- "mphantom",
537
- "mroot",
538
- "mrow",
539
- "mspace",
540
- "msqrt",
541
- "mstyle",
542
- "msub",
543
- "msubsup",
544
- "msup",
545
- "mtable",
546
- "mtd",
547
- "mtext",
548
- "mtr",
549
- "munder",
550
- "munderover",
551
- "semantics"
552
- ]);
553
- var defaultViteConfig = {};
520
+
521
+ // shared/utils/i18n.ts
522
+ function tObject(data, lang) {
523
+ if (typeof data === "object") {
524
+ return data[lang] || Object.values(data)[0] || "";
525
+ }
526
+ return data;
527
+ }
554
528
 
555
529
  // node/utils/helper.ts
556
530
  function isExternal(str) {
@@ -840,6 +814,44 @@ async function resolveThemeValaxyConfig(options) {
840
814
 
841
815
  // node/plugins/markdown/transform/matter.ts
842
816
  import yaml, { CORE_SCHEMA } from "js-yaml";
817
+
818
+ // node/constants/index.ts
819
+ var EXCERPT_SEPARATOR = "<!-- more -->";
820
+ var PATHNAME_PROTOCOL_RE = /^pathname:\/\//;
821
+ var ALL_ROUTE = "/:all(.*)*";
822
+ var customElements = /* @__PURE__ */ new Set([
823
+ // katex
824
+ "annotation",
825
+ "math",
826
+ "menclose",
827
+ "mfrac",
828
+ "mglyph",
829
+ "mi",
830
+ "mlabeledtr",
831
+ "mn",
832
+ "mo",
833
+ "mover",
834
+ "mpadded",
835
+ "mphantom",
836
+ "mroot",
837
+ "mrow",
838
+ "mspace",
839
+ "msqrt",
840
+ "mstyle",
841
+ "msub",
842
+ "msubsup",
843
+ "msup",
844
+ "mtable",
845
+ "mtd",
846
+ "mtext",
847
+ "mtr",
848
+ "munder",
849
+ "munderover",
850
+ "semantics"
851
+ ]);
852
+ var defaultViteConfig = {};
853
+
854
+ // node/plugins/markdown/transform/matter.ts
843
855
  var matterOptions = {
844
856
  excerpt_separator: EXCERPT_SEPARATOR,
845
857
  engines: {
@@ -983,14 +995,6 @@ import MarkdownIt from "markdown-it";
983
995
  import ora3 from "ora";
984
996
  import { getBorderCharacters, table } from "table";
985
997
 
986
- // shared/utils/i18n.ts
987
- function tObject(data, lang) {
988
- if (typeof data === "object") {
989
- return data[lang] || Object.values(data)[0] || "";
990
- }
991
- return data;
992
- }
993
-
994
998
  // node/utils/date.ts
995
999
  import fs8 from "fs-extra";
996
1000
  async function getCreatedTime(file) {
@@ -4793,7 +4797,6 @@ function run() {
4793
4797
 
4794
4798
  export {
4795
4799
  EXCERPT_SEPARATOR,
4796
- EXTERNAL_URL_RE,
4797
4800
  PATHNAME_PROTOCOL_RE,
4798
4801
  ALL_ROUTE,
4799
4802
  customElements,
@@ -3,7 +3,7 @@ import {
3
3
  registerDevCommand,
4
4
  run,
5
5
  startValaxyDev
6
- } from "../../chunk-CY4NJH2Z.js";
6
+ } from "../../chunk-2ZCZZ2RZ.js";
7
7
  export {
8
8
  cli,
9
9
  registerDevCommand,
@@ -609,7 +609,6 @@ type UnoSetup = () => Awaitable<Partial<VitePluginConfig> | undefined>;
609
609
  declare function defineUnoSetup(fn: UnoSetup): UnoSetup;
610
610
 
611
611
  declare const EXCERPT_SEPARATOR = "<!-- more -->";
612
- declare const EXTERNAL_URL_RE: RegExp;
613
612
  declare const PATHNAME_PROTOCOL_RE: RegExp;
614
613
  declare const ALL_ROUTE = "/:all(.*)*";
615
614
  declare const customElements: Set<string>;
@@ -669,4 +668,4 @@ declare function toAtFS(path: string): string;
669
668
  declare function resolveImportPath(importName: string, ensure?: true): Promise<string>;
670
669
  declare function resolveImportPath(importName: string, ensure?: boolean): Promise<string | undefined>;
671
670
 
672
- export { ALL_ROUTE, EXCERPT_SEPARATOR, EXTERNAL_URL_RE, type HookResult, type LoadConfigFromFileOptions, PATHNAME_PROTOCOL_RE, type ResolvedConfig, type ResolvedValaxyOptions, type UnoSetup, type UserInputConfig, type UserValaxyNodeConfig, type ValaxyAddonExport, type ValaxyAddonFn, type ValaxyAddonLike, type ValaxyAddonResolver, type ValaxyAddons, type ValaxyApp, type ValaxyConfigExport, type ValaxyConfigExtendKey, type ValaxyConfigFn, type ValaxyEntryOptions, type ValaxyExtendConfig, type ValaxyHooks, type ValaxyNode, type ValaxyNodeConfig, type ValaxyPickConfig, type ValaxyServerOptions, type ValaxyTheme, ViteValaxyPlugins, build, createServer, createValaxyPlugin, customElements, defaultSiteConfig, defaultValaxyConfig, defaultViteConfig, defineAddon, defineConfig, defineSiteConfig, defineTheme, defineUnoSetup, defineValaxyAddon, defineValaxyConfig, defineValaxyTheme, generateClientRedirects, getGitTimestamp, getIndexHtml, getServerInfoText, isExternal, isInstalledGlobally, isPath, loadConfig, loadConfigFromFile, mergeValaxyConfig, mergeViteConfigs, postProcessForSSG, processValaxyOptions, resolveAddonsConfig, resolveImportPath, resolveImportUrl, resolveOptions, resolveSiteConfig, resolveSiteConfigFromRoot, resolveThemeConfigFromRoot, resolveThemeValaxyConfig, resolveUserThemeConfig, resolveValaxyConfig, resolveValaxyConfigFromRoot, ssgBuild, toAtFS, transformObject };
671
+ export { ALL_ROUTE, EXCERPT_SEPARATOR, type HookResult, type LoadConfigFromFileOptions, PATHNAME_PROTOCOL_RE, type ResolvedConfig, type ResolvedValaxyOptions, type UnoSetup, type UserInputConfig, type UserValaxyNodeConfig, type ValaxyAddonExport, type ValaxyAddonFn, type ValaxyAddonLike, type ValaxyAddonResolver, type ValaxyAddons, type ValaxyApp, type ValaxyConfigExport, type ValaxyConfigExtendKey, type ValaxyConfigFn, type ValaxyEntryOptions, type ValaxyExtendConfig, type ValaxyHooks, type ValaxyNode, type ValaxyNodeConfig, type ValaxyPickConfig, type ValaxyServerOptions, type ValaxyTheme, ViteValaxyPlugins, build, createServer, createValaxyPlugin, customElements, defaultSiteConfig, defaultValaxyConfig, defaultViteConfig, defineAddon, defineConfig, defineSiteConfig, defineTheme, defineUnoSetup, defineValaxyAddon, defineValaxyConfig, defineValaxyTheme, generateClientRedirects, getGitTimestamp, getIndexHtml, getServerInfoText, isExternal, isInstalledGlobally, isPath, loadConfig, loadConfigFromFile, mergeValaxyConfig, mergeViteConfigs, postProcessForSSG, processValaxyOptions, resolveAddonsConfig, resolveImportPath, resolveImportUrl, resolveOptions, resolveSiteConfig, resolveSiteConfigFromRoot, resolveThemeConfigFromRoot, resolveThemeValaxyConfig, resolveUserThemeConfig, resolveValaxyConfig, resolveValaxyConfigFromRoot, ssgBuild, toAtFS, transformObject };
@@ -1,7 +1,6 @@
1
1
  import {
2
2
  ALL_ROUTE,
3
3
  EXCERPT_SEPARATOR,
4
- EXTERNAL_URL_RE,
5
4
  PATHNAME_PROTOCOL_RE,
6
5
  ViteValaxyPlugins,
7
6
  build,
@@ -50,11 +49,10 @@ import {
50
49
  startValaxyDev,
51
50
  toAtFS,
52
51
  transformObject
53
- } from "../chunk-CY4NJH2Z.js";
52
+ } from "../chunk-2ZCZZ2RZ.js";
54
53
  export {
55
54
  ALL_ROUTE,
56
55
  EXCERPT_SEPARATOR,
57
- EXTERNAL_URL_RE,
58
56
  PATHNAME_PROTOCOL_RE,
59
57
  ViteValaxyPlugins,
60
58
  build,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "valaxy",
3
3
  "type": "module",
4
- "version": "0.24.1",
4
+ "version": "0.24.3",
5
5
  "description": "📄 Vite & Vue powered static blog generator.",
6
6
  "author": {
7
7
  "email": "me@yunyoujun.cn",
@@ -132,8 +132,8 @@
132
132
  "vue-i18n": "^11.1.9",
133
133
  "vue-router": "^4.5.1",
134
134
  "yargs": "^18.0.0",
135
- "@valaxyjs/devtools": "0.24.1",
136
- "@valaxyjs/utils": "0.24.1"
135
+ "@valaxyjs/devtools": "0.24.3",
136
+ "@valaxyjs/utils": "0.24.3"
137
137
  },
138
138
  "devDependencies": {
139
139
  "@mdit-vue/plugin-component": "^2.1.4",
@@ -0,0 +1 @@
1
+ export const EXTERNAL_URL_RE = /^(?:[a-z]+:|\/\/)/i
package/shared/index.ts CHANGED
@@ -1 +1,2 @@
1
+ export * from './constants'
1
2
  export * from './utils'