@lvce-editor/shared-process 0.127.25 → 0.128.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lvce-editor/shared-process",
3
- "version": "0.127.25",
3
+ "version": "0.128.1",
4
4
  "main": "index.js",
5
5
  "type": "module",
6
6
  "keywords": [
@@ -3,6 +3,6 @@ import { fileURLToPath } from 'url'
3
3
 
4
4
  export const getBuiltinExtensionsPath = () => {
5
5
  const staticServerPath = fileURLToPath(import.meta.resolve('@lvce-editor/static-server'))
6
- const builtinExtensionsPath = join(staticServerPath, '..', '..', 'static', '16fc20d', 'extensions')
6
+ const builtinExtensionsPath = join(staticServerPath, '..', '..', 'static', 'ee46027', 'extensions')
7
7
  return builtinExtensionsPath
8
8
  }
@@ -37,6 +37,7 @@ const getIconAbsolutePath = (pathName) => {
37
37
 
38
38
  const driveLetterWithoutSlashPath = /^\/?[A-Za-z]:[^/]/
39
39
  const driveLetterPath = /^\/?[A-Za-z]:\//
40
+ const appRoutePattern = /(?:^|\/)(?:board|chat)\/?$/
40
41
 
41
42
  const getRemoteAbsolutePath = (pathName) => {
42
43
  const uri = pathName.slice('/remote'.length)
@@ -56,6 +57,10 @@ const getRemoteAbsolutePath = (pathName) => {
56
57
 
57
58
  // TODO clean up this code
58
59
  export const getElectronFileResponseAbsolutePath = (pathName) => {
60
+ if (appRoutePattern.test(pathName)) {
61
+ const staticPath = StaticPath.getStaticPath()
62
+ return Path.join(staticPath, 'index.html')
63
+ }
59
64
  // TODO remove if/else in prod (use replacement)
60
65
  if (pathName === `/` || pathName.startsWith(`/?`)) {
61
66
  const staticPath = StaticPath.getStaticPath()
@@ -6,6 +6,7 @@ import * as ShouldTranspileTypescript from '../ShouldTranspileTypescript/ShouldT
6
6
  import * as TranspileTypeScript from '../TranspileTypeScript/TranspileTypeScript.js'
7
7
 
8
8
  const useCache = false // TODO enable this
9
+ const appRoutePattern = /(?:^|\/)(?:board|chat)\/?$/
9
10
 
10
11
  const getWorkspaceUri = (url) => {
11
12
  const baseUrl = `${Platform.scheme}://-/`
@@ -44,7 +45,7 @@ export const getElectronFileResponseContent = async (request, absolutePath, url,
44
45
  let content = await readFile(absolutePath)
45
46
  const baseUrl = `${Platform.scheme}://-/`
46
47
  const indexUrl = typeof url === 'string' && URL.canParse(url, baseUrl) ? new URL(url, baseUrl) : undefined
47
- const isAppIndex = indexUrl && (indexUrl.pathname === '/' || indexUrl.pathname === '/index.html')
48
+ const isAppIndex = indexUrl && (indexUrl.pathname === '/' || indexUrl.pathname === '/index.html' || appRoutePattern.test(indexUrl.pathname))
48
49
  const runtimeConfig = { platform: request?.platform === 'remote' ? 'remote' : 'electron', workspaceUri: getWorkspaceUri(request?.url || url) }
49
50
  if (!Platform.isProduction && isAppIndex) {
50
51
  // @ts-ignore
@@ -56,11 +56,11 @@ export const getSetupName = () => {
56
56
  return 'Lvce-Setup'
57
57
  }
58
58
 
59
- export const version = '0.127.25'
59
+ export const version = '0.128.1'
60
60
 
61
- export const commit = '16fc20d'
61
+ export const commit = 'ee46027'
62
62
 
63
- export const date = '2026-11-10T21:40:10.000Z'
63
+ export const date = '2026-11-16T20:31:49.000Z'
64
64
 
65
65
  export const getVersion = () => {
66
66
  return version
@@ -2,5 +2,5 @@ import { join } from 'node:path'
2
2
  import * as Root from '../Root/Root.js'
3
3
 
4
4
  export const getPreloadUrl = () => {
5
- return join(Root.root, 'static', '16fc20d', 'packages', 'preload', 'dist', 'index.js')
5
+ return join(Root.root, 'static', 'ee46027', 'packages', 'preload', 'dist', 'index.js')
6
6
  }
@@ -757,6 +757,7 @@
757
757
  ],
758
758
  "state": { "idKey": "uid", "fields": ["uri", "x", "y", "width", "height"], "defaults": { "name": "" } },
759
759
  "commandPrefix": "ExtensionDetail",
760
+ "commandRenderWhenPending": ["handleTabsClick", "selectTab"],
760
761
  "commandSkipRenderWhenDiffEmpty": true,
761
762
  "ignoreKeyBindingErrors": true,
762
763
  "methods": {