@christophervr/pptx-viewer 0.0.1 → 0.0.2

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
@@ -1,18 +1,39 @@
1
1
  # @christophervr/pptx-viewer
2
2
 
3
- **Reserved scope placeholder.** This package name is reserved and is not yet in
4
- active use.
3
+ > ⚠️ **For now, this package is just an alias for [`pptx-viewer-core`](https://www.npmjs.com/package/pptx-viewer-core).**
4
+ > Installing it installs the core engine, and importing from it re-exports the
5
+ > entire core API. There is no extra functionality on top yet.
5
6
 
6
- The PowerPoint (`.pptx`) viewer is published as framework-specific packages, all
7
- built on the framework-agnostic [`pptx-viewer-core`](https://www.npmjs.com/package/pptx-viewer-core)
8
- engine:
7
+ ```bash
8
+ npm install @christophervr/pptx-viewer
9
+ ```
10
+
11
+ ```ts
12
+ // These are equivalent today:
13
+ import { PptxHandler } from '@christophervr/pptx-viewer';
14
+ import { PptxHandler } from 'pptx-viewer-core';
15
+ ```
16
+
17
+ `pptx-viewer-core` is the framework-agnostic engine: parse, edit, serialize, and
18
+ convert PowerPoint (`.pptx`) files in memory.
19
+
20
+ ## Want a UI component?
21
+
22
+ This package does **not** provide a viewer component. Use the framework-specific
23
+ package for your stack — each is built on `pptx-viewer-core`:
9
24
 
10
25
  - **React** — [`pptx-react-viewer`](https://www.npmjs.com/package/pptx-react-viewer)
11
26
  - **Vue 3** — [`pptx-vue-viewer`](https://www.npmjs.com/package/pptx-vue-viewer)
12
27
  - **Angular** — [`pptx-angular-viewer`](https://www.npmjs.com/package/pptx-angular-viewer)
13
28
 
29
+ ## Status
30
+
31
+ This is a reserved scope name that currently forwards to the core engine. It may
32
+ gain its own surface in the future; until then, prefer importing `pptx-viewer-core`
33
+ directly or the framework package above.
34
+
14
35
  See the [project repository](https://github.com/ChristopherVR/pptx-viewer) for
15
- documentation.
36
+ full documentation.
16
37
 
17
38
  ## License
18
39
 
package/index.cjs ADDED
@@ -0,0 +1,4 @@
1
+ // @christophervr/pptx-viewer — thin alias.
2
+ // Currently this package just re-exports the framework-agnostic engine,
3
+ // `pptx-viewer-core`. See README.md for details.
4
+ module.exports = require('pptx-viewer-core');
package/index.d.ts ADDED
@@ -0,0 +1,3 @@
1
+ // @christophervr/pptx-viewer — thin alias.
2
+ // Currently re-exports the framework-agnostic engine, `pptx-viewer-core`.
3
+ export * from 'pptx-viewer-core';
package/index.mjs ADDED
@@ -0,0 +1,4 @@
1
+ // @christophervr/pptx-viewer — thin alias.
2
+ // Currently this package just re-exports the framework-agnostic engine,
3
+ // `pptx-viewer-core`. See README.md for details.
4
+ export * from 'pptx-viewer-core';
package/package.json CHANGED
@@ -1,13 +1,14 @@
1
1
  {
2
2
  "name": "@christophervr/pptx-viewer",
3
- "version": "0.0.1",
4
- "description": "Reserved scope placeholder. The PowerPoint viewer ships as framework-specific packages see pptx-react-viewer, pptx-vue-viewer, and pptx-angular-viewer (all built on pptx-viewer-core).",
3
+ "version": "0.0.2",
4
+ "description": "Currently a thin alias that re-exports pptx-viewer-core (the framework-agnostic PPTX engine). Installing this installs the core. For UI components, use pptx-react-viewer, pptx-vue-viewer, or pptx-angular-viewer.",
5
5
  "keywords": [
6
6
  "openxml",
7
7
  "powerpoint",
8
8
  "pptx",
9
9
  "presentation",
10
- "viewer"
10
+ "viewer",
11
+ "parser"
11
12
  ],
12
13
  "homepage": "https://github.com/ChristopherVR/pptx-viewer",
13
14
  "bugs": {
@@ -19,7 +20,25 @@
19
20
  "type": "git",
20
21
  "url": "https://github.com/ChristopherVR/pptx-viewer.git"
21
22
  },
23
+ "type": "module",
24
+ "main": "./index.cjs",
25
+ "module": "./index.mjs",
26
+ "types": "./index.d.ts",
27
+ "exports": {
28
+ ".": {
29
+ "types": "./index.d.ts",
30
+ "import": "./index.mjs",
31
+ "require": "./index.cjs"
32
+ }
33
+ },
22
34
  "files": [
35
+ "index.mjs",
36
+ "index.cjs",
37
+ "index.d.ts",
38
+ "LICENSE",
23
39
  "README.md"
24
- ]
40
+ ],
41
+ "dependencies": {
42
+ "pptx-viewer-core": "^1.1.7"
43
+ }
25
44
  }