@5cover/lectern 0.0.0-stage → 0.2.0

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,93 @@
1
1
  {
2
2
  "name": "@5cover/lectern",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
3
+ "version": "0.2.0",
4
+ "description": "Author professional reveal.js slide decks as typed TSX components, styled by the ENGIE Fluid design system.",
5
+ "type": "module",
6
+ "license": "MIT",
7
+ "bin": {
8
+ "lectern": "./dist/cli/index.js"
9
+ },
10
+ "main": "./dist/index.js",
11
+ "types": "./dist/index.d.ts",
12
+ "exports": {
13
+ ".": {
14
+ "types": "./dist/index.d.ts",
15
+ "import": "./dist/index.js"
16
+ },
17
+ "./jsx-runtime": {
18
+ "types": "./dist/jsx-runtime.d.ts",
19
+ "import": "./dist/jsx-runtime.js"
20
+ },
21
+ "./jsx-dev-runtime": {
22
+ "types": "./dist/jsx-runtime.d.ts",
23
+ "import": "./dist/jsx-runtime.js"
24
+ },
25
+ "./tsconfig.json": "./tsconfig.authoring.json",
26
+ "./vite-env": {
27
+ "types": "./vite-env.d.ts"
28
+ },
29
+ "./engie": {
30
+ "types": "./dist/profiles/engie/index.d.ts",
31
+ "import": "./dist/profiles/engie/index.js"
32
+ },
33
+ "./engie.css": "./dist/profiles/engie/engie.css"
34
+ },
35
+ "files": [
36
+ "dist",
37
+ "tsconfig.authoring.json",
38
+ "vite-env.d.ts"
39
+ ],
40
+ "publishConfig": {
41
+ "access": "public"
42
+ },
43
+ "dependencies": {
44
+ "@engie-group/fluid-design-system": "6.4.0",
45
+ "@engie-group/fluid-design-tokens": "^6.2.1",
46
+ "cytoscape": "^3.35.0",
47
+ "cytoscape-fcose": "^2.2.0",
48
+ "infograph": "^1.1.1",
49
+ "mermaid": "^12.3.0",
50
+ "preact": "^11.2.0",
51
+ "preact-render-to-string": "^6.8.3",
52
+ "reveal.js": "^6.0.2",
53
+ "vite": "^8.3.8",
54
+ "vite-plugin-singlefile": "^2.3.4"
55
+ },
56
+ "peerDependencies": {
57
+ "playwright": "^1.48.0"
58
+ },
59
+ "peerDependenciesMeta": {
60
+ "playwright": {
61
+ "optional": true
62
+ }
63
+ },
64
+ "devDependencies": {
65
+ "@types/cytoscape-fcose": "^2.2.5",
66
+ "@types/node": "^26.6.6",
67
+ "playwright": "^1.65.1",
68
+ "prettier": "^3.10.1",
69
+ "tsup": "^9.0.0",
70
+ "tsx": "^4.23.15",
71
+ "typescript": "^6.0.3",
72
+ "vitest": "^5.1.0"
73
+ },
74
+ "prettier": {
75
+ "printWidth": 120,
76
+ "tabWidth": 2,
77
+ "singleQuote": true,
78
+ "arrowParens": "avoid",
79
+ "bracketSameLine": true,
80
+ "trailingComma": "es5",
81
+ "semi": false
82
+ },
83
+ "scripts": {
84
+ "build": "tsup && node scripts/copy-engie-css.js",
85
+ "dev": "tsup --watch",
86
+ "test": "vitest run",
87
+ "test:watch": "vitest",
88
+ "prepublish": "pnpm build && vitest run",
89
+ "typecheck": "tsc --noEmit",
90
+ "format": "prettier --write .",
91
+ "lectern": "node --import tsx ./src/cli/index.ts"
92
+ }
6
93
  }
@@ -0,0 +1,8 @@
1
+ {
2
+ "$schema": "https://json.schemastore.org/tsconfig",
3
+ "compilerOptions": {
4
+ "jsx": "react-jsx",
5
+ "jsxImportSource": "@5cover/lectern",
6
+ "types": ["@5cover/lectern/vite-env"]
7
+ }
8
+ }
package/vite-env.d.ts ADDED
@@ -0,0 +1,11 @@
1
+ /** Raw Vite asset imports are the only asset-query form Lectern documents. */
2
+ declare module '*?raw' {
3
+ const content: string
4
+ export default content
5
+ }
6
+
7
+ /** Profile assets may be embedded by the library build for standalone decks. */
8
+ declare module '*.svg' {
9
+ const source: string
10
+ export default source
11
+ }