@grifhinz/logics-manager 2.3.2 → 2.3.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.
package/README.md CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  [![CI](https://github.com/AlexAgo83/logics-manager/actions/workflows/ci.yml/badge.svg)](https://github.com/AlexAgo83/logics-manager/actions/workflows/ci.yml)
4
4
  [![License](https://img.shields.io/github/license/AlexAgo83/logics-manager)](LICENSE)
5
- ![Version](https://img.shields.io/badge/version-v2.3.2-4C8BF5)
5
+ ![Version](https://img.shields.io/badge/version-v2.3.3-4C8BF5)
6
6
  ![VS Code](https://img.shields.io/badge/VS%20Code-1.86.0-007ACC?logo=visualstudiocode&logoColor=white)
7
7
  ![TypeScript](https://img.shields.io/badge/TypeScript-5.3.3-3178C6?logo=typescript&logoColor=white)
8
8
  ![Vitest](https://img.shields.io/badge/Vitest-2.1.8-6E9F18?logo=vitest&logoColor=white)
package/VERSION CHANGED
@@ -1 +1 @@
1
- 2.3.2
1
+ 2.3.3
@@ -40,9 +40,15 @@ DOC_FAMILIES = (
40
40
 
41
41
  STAGE_ORDER = {family.stage: index for index, family in enumerate(DOC_FAMILIES)}
42
42
  REPO_ROOT = Path(__file__).resolve().parents[1]
43
+ PACKAGE_VIEWER_ASSETS_ROOT = Path(__file__).resolve().parent / "viewer_assets"
43
44
  VIEWER_ROOT = REPO_ROOT / "clients" / "viewer"
45
+ if not (VIEWER_ROOT / "index.html").is_file():
46
+ VIEWER_ROOT = PACKAGE_VIEWER_ASSETS_ROOT / "viewer"
44
47
  SHARED_MEDIA_ROOT = REPO_ROOT / "clients" / "shared-web" / "media"
48
+ if not SHARED_MEDIA_ROOT.is_dir():
49
+ SHARED_MEDIA_ROOT = PACKAGE_VIEWER_ASSETS_ROOT / "media"
45
50
  DIST_VENDOR_ROOT = REPO_ROOT / "dist" / "vendor"
51
+ PACKAGE_VENDOR_ROOT = PACKAGE_VIEWER_ASSETS_ROOT / "vendor"
46
52
  NODE_MERMAID_ROOT = REPO_ROOT / "node_modules" / "mermaid" / "dist"
47
53
 
48
54
 
@@ -435,6 +441,8 @@ class LogicsViewerRequestHandler(BaseHTTPRequestHandler):
435
441
  vendor_path = DIST_VENDOR_ROOT / "mermaid.min.js"
436
442
  if not vendor_path.is_file():
437
443
  vendor_path = NODE_MERMAID_ROOT / "mermaid.min.js"
444
+ if not vendor_path.is_file():
445
+ vendor_path = PACKAGE_VENDOR_ROOT / "mermaid.min.js"
438
446
  self._serve_file(vendor_path)
439
447
  return
440
448
  if route.startswith("/media/"):
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@grifhinz/logics-manager",
3
3
  "displayName": "Logics Orchestrator",
4
4
  "description": "Visual orchestration for Logics workflows inside VS Code.",
5
- "version": "2.3.2",
5
+ "version": "2.3.3",
6
6
  "publisher": "cdx-logics",
7
7
  "icon": "clients/shared-web/media/icon.png",
8
8
  "repository": {
package/pyproject.toml CHANGED
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "logics-manager"
7
- version = "2.3.2"
7
+ version = "2.3.3"
8
8
  description = "Canonical Logics CLI"
9
9
  requires-python = ">=3.10"
10
10
 
@@ -12,4 +12,19 @@ requires-python = ">=3.10"
12
12
  logics-manager = "logics_manager.cli:main"
13
13
 
14
14
  [tool.setuptools]
15
- packages = ["logics_manager"]
15
+ packages = [
16
+ "logics_manager",
17
+ "logics_manager.viewer_assets",
18
+ "logics_manager.viewer_assets.media",
19
+ "logics_manager.viewer_assets.media.css",
20
+ "logics_manager.viewer_assets.vendor",
21
+ "logics_manager.viewer_assets.viewer",
22
+ ]
23
+
24
+ [tool.setuptools.package-data]
25
+ logics_manager = [
26
+ "viewer_assets/media/*",
27
+ "viewer_assets/media/css/*",
28
+ "viewer_assets/vendor/*",
29
+ "viewer_assets/viewer/*",
30
+ ]