@file-viewer/ppt 0.3.0 → 0.3.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/LICENSE +99 -173
- package/NOTICE +16 -17
- package/README.md +19 -16
- package/index.d.ts +15 -9
- package/index.mjs +8 -5
- package/manifest.json +12 -9
- package/package.json +1 -1
- package/ppt-native.wasm +0 -0
package/LICENSE
CHANGED
|
@@ -1,196 +1,122 @@
|
|
|
1
|
-
Flyfish Public Watermarked
|
|
2
|
-
Version
|
|
3
|
-
License policy identifier: flyfish-public-watermarked-binary-license-
|
|
1
|
+
Flyfish Public Watermarked Runtime License for @file-viewer/ppt
|
|
2
|
+
Version 2.0, July 2026
|
|
3
|
+
License policy identifier: flyfish-public-watermarked-binary-license-v2
|
|
4
4
|
|
|
5
5
|
Copyright (c) 2026 Flyfish. All rights reserved except as expressly granted in this License.
|
|
6
6
|
|
|
7
|
-
IMPORTANT: This is a proprietary
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
Package and delete every copy under Your control.
|
|
7
|
+
IMPORTANT: This is a proprietary runtime license, not an open-source license.
|
|
8
|
+
By downloading, installing, copying, accessing, or using the Public Runtime,
|
|
9
|
+
You accept this License. If You do not accept it, do not use the Public Runtime.
|
|
11
10
|
|
|
12
11
|
1. Definitions
|
|
13
12
|
|
|
14
|
-
“Flyfish” means the copyright owner and licensor
|
|
13
|
+
“Flyfish” means the copyright owner and licensor.
|
|
15
14
|
|
|
16
|
-
“Public
|
|
17
|
-
package
|
|
18
|
-
|
|
19
|
-
required Flyfish Viewer watermark.
|
|
15
|
+
“Public Runtime” means the official, unmodified @file-viewer/ppt public npm
|
|
16
|
+
package and its required JavaScript, Worker, WebAssembly, font, declaration,
|
|
17
|
+
manifest, documentation, notice, and Flyfish Viewer watermark files.
|
|
20
18
|
|
|
21
|
-
“You” means
|
|
22
|
-
|
|
23
|
-
team, employer, client, or other organization is not “You” under the free grant,
|
|
24
|
-
even when an individual accesses the Public Package on its behalf.
|
|
19
|
+
“You” means any individual or organization using or distributing the Public
|
|
20
|
+
Runtime under this License.
|
|
25
21
|
|
|
26
|
-
“
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
advantage.
|
|
22
|
+
“Integrated Product” means an application, website, service, library, demo,
|
|
23
|
+
deployment bundle, or other product in which the Public Runtime is included as
|
|
24
|
+
a functional dependency for PowerPoint preview rather than offered as a
|
|
25
|
+
standalone substitute for @file-viewer/ppt.
|
|
31
26
|
|
|
32
|
-
|
|
27
|
+
2. Public watermarked grant
|
|
33
28
|
|
|
34
|
-
|
|
29
|
+
Subject to this License, Flyfish grants You a worldwide, royalty-free,
|
|
30
|
+
non-exclusive, non-transferable license to:
|
|
35
31
|
|
|
36
|
-
|
|
37
|
-
|
|
32
|
+
- download, install, copy, and execute the Public Runtime for any lawful
|
|
33
|
+
personal, organizational, educational, government, nonprofit, internal,
|
|
34
|
+
commercial, production, SaaS, hosted, customer-facing, or professional use;
|
|
35
|
+
- integrate and deploy the Public Runtime in an Integrated Product;
|
|
36
|
+
- bundle or copy the unmodified Public Runtime through npm, package managers,
|
|
37
|
+
build tools, private registries, static asset directories, Docker images,
|
|
38
|
+
offline installers, demos, Full packages, CDN/IIFE distributions,
|
|
39
|
+
copy-assets workflows, and GitHub Release artifacts;
|
|
40
|
+
- host, mirror, and redistribute the unmodified Public Runtime when reasonably
|
|
41
|
+
required to install, operate, deploy, or distribute an Integrated Product;
|
|
42
|
+
and
|
|
43
|
+
- charge for an Integrated Product or service that includes the Public Runtime.
|
|
38
44
|
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
- serve unmodified Public Package assets only as an integrated component of
|
|
43
|
-
Your own Personal Non-Commercial Use project.
|
|
45
|
+
No paid license is required for these uses while the required Flyfish Viewer
|
|
46
|
+
watermark remains visible, complete, unobstructed, and unmodified in every
|
|
47
|
+
rendered slide and preview.
|
|
44
48
|
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
rights, modification rights, derivative-work rights, or any commercial right.
|
|
49
|
+
Routine technical bundling, tree-shaking, compression, content hashing, and
|
|
50
|
+
minification are permitted when they do not change runtime behavior, bypass
|
|
51
|
+
integrity checks, remove notices, or alter the required watermark.
|
|
49
52
|
|
|
50
|
-
3.
|
|
53
|
+
3. Watermark-free commercial authorization
|
|
51
54
|
|
|
52
|
-
|
|
53
|
-
|
|
55
|
+
A separate written commercial authorization is required only to remove,
|
|
56
|
+
replace, hide, crop, cover, weaken, restyle, or otherwise alter the required
|
|
57
|
+
Flyfish Viewer watermark, or to receive a separately built watermark-free
|
|
58
|
+
runtime or source delivery. Commercial authorization applies only to the
|
|
59
|
+
entities, deployments, features, origins, term, and other scope stated in that
|
|
60
|
+
agreement.
|
|
54
61
|
|
|
55
|
-
|
|
56
|
-
nonprofit, team, employer, customer, or client, including internal evaluation;
|
|
57
|
-
- production, intranet, extranet, SaaS, hosted, cloud, embedded, OEM, resale,
|
|
58
|
-
consulting, customer-delivery, revenue-generating, fee-supported, sponsored,
|
|
59
|
-
or professionally connected use;
|
|
60
|
-
- integration into any product, service, project, procurement, sales demo, or
|
|
61
|
-
workflow connected with business or compensated activity; and
|
|
62
|
-
- any removal, hiding, obstruction, weakening, alteration, or replacement of
|
|
63
|
-
the required Flyfish Viewer watermark or public-edition restrictions.
|
|
64
|
-
|
|
65
|
-
A separately purchased commercial or enterprise agreement applies only to the
|
|
66
|
-
features, deployments, origins, entities, term, and other scope expressly stated
|
|
67
|
-
in that agreement. A commercial agreement does not amend this Public Package.
|
|
68
|
-
Flyfish may instead provide a separately built commercial package.
|
|
69
|
-
|
|
70
|
-
Purchase and authorization information:
|
|
71
|
-
https://dev.flyfish.group/shop
|
|
62
|
+
Authorization information: https://dev.flyfish.group/shop
|
|
72
63
|
|
|
73
64
|
4. Restrictions
|
|
74
65
|
|
|
75
|
-
Except to the limited extent
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
-
|
|
82
|
-
|
|
66
|
+
Except to the limited extent mandatory law permits despite these restrictions,
|
|
67
|
+
You may not, and may not enable another person to:
|
|
68
|
+
|
|
69
|
+
- sell, rent, sublicense, rebrand, rename, or publish the Public Runtime as a
|
|
70
|
+
standalone or competing package, download, API, hosted conversion service,
|
|
71
|
+
or product that substitutes for the official @file-viewer/ppt package;
|
|
72
|
+
- represent the Public Runtime as Your own engine, as open source, or as
|
|
73
|
+
licensed under Apache-2.0, MIT, BSD, GPL, or another open-source license;
|
|
74
|
+
- modify, translate, patch, adapt, or create derivative works from the Public
|
|
75
|
+
Runtime except for the routine integration transformations expressly allowed
|
|
76
|
+
in Section 2;
|
|
83
77
|
- reverse engineer, decrypt, decompile, disassemble, extract, dump, recover, or
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
- bypass, forge, replace, disable, or interfere with
|
|
87
|
-
check, encryption, feature restriction, watermark control, or other
|
|
88
|
-
protection
|
|
78
|
+
attempt to derive source code, keys, protected modules, algorithms, or
|
|
79
|
+
non-public interfaces;
|
|
80
|
+
- bypass, forge, replace, disable, or interfere with a policy gate, integrity
|
|
81
|
+
check, encryption measure, feature restriction, watermark control, or other
|
|
82
|
+
technical protection;
|
|
89
83
|
- remove, hide, crop, cover, restyle, obscure, weaken, or interfere with the
|
|
90
|
-
Flyfish Viewer watermark
|
|
84
|
+
required Flyfish Viewer watermark without separate written authorization; or
|
|
91
85
|
- remove or alter copyright, license, attribution, provenance, trademark, or
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
the public
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
7. Ownership and reservation of rights
|
|
131
|
-
|
|
132
|
-
Flyfish and its licensors retain all title, ownership, copyright, patent,
|
|
133
|
-
trade-secret, trademark, and other intellectual-property rights in the Public
|
|
134
|
-
Package. No right is granted by implication, estoppel, exhaustion, or otherwise.
|
|
135
|
-
All rights not expressly granted are reserved.
|
|
136
|
-
|
|
137
|
-
Third-party components, if expressly identified in accompanying notices, remain
|
|
138
|
-
subject to their respective licenses solely for those identified components.
|
|
139
|
-
No third-party notice expands the grant for Flyfish proprietary components.
|
|
140
|
-
|
|
141
|
-
8. Updates and policy changes
|
|
142
|
-
|
|
143
|
-
Each version of the Public Package is governed by the LICENSE file shipped with
|
|
144
|
-
that version. Flyfish may offer later versions under revised terms. Continuing
|
|
145
|
-
to use an updated version constitutes acceptance of the terms shipped with that
|
|
146
|
-
updated version.
|
|
147
|
-
|
|
148
|
-
9. Termination
|
|
149
|
-
|
|
150
|
-
This License terminates automatically and immediately upon breach. On
|
|
151
|
-
termination, You must stop all use and delete every copy under Your possession
|
|
152
|
-
or control. Sections 3 through 7 and 9 through 11 survive termination.
|
|
153
|
-
Termination does not limit any other remedy available to Flyfish.
|
|
154
|
-
|
|
155
|
-
10. Disclaimer and limitation of liability
|
|
156
|
-
|
|
157
|
-
THE PUBLIC PACKAGE IS PROVIDED “AS IS” AND “AS AVAILABLE,” WITHOUT WARRANTIES OR
|
|
158
|
-
CONDITIONS OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING TITLE, NON-INFRINGEMENT,
|
|
159
|
-
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, ACCURACY, AVAILABILITY, OR
|
|
160
|
-
SECURITY. TO THE MAXIMUM EXTENT PERMITTED BY LAW, FLYFISH AND ITS LICENSORS WILL
|
|
161
|
-
NOT BE LIABLE FOR ANY INDIRECT, INCIDENTAL, SPECIAL, CONSEQUENTIAL, EXEMPLARY,
|
|
162
|
-
PUNITIVE, OR COMMERCIAL DAMAGES, OR FOR LOSS OF DATA, PROFITS, REVENUE, GOODWILL,
|
|
163
|
-
OR BUSINESS INTERRUPTION, ARISING FROM OR RELATED TO THE PUBLIC PACKAGE OR THIS
|
|
164
|
-
LICENSE.
|
|
165
|
-
|
|
166
|
-
11. General
|
|
167
|
-
|
|
168
|
-
This License is the complete agreement for the Public Package unless You and
|
|
169
|
-
Flyfish have signed a separate written agreement that expressly governs the
|
|
170
|
-
same use. If a provision is unenforceable, it will be limited to the minimum
|
|
171
|
-
extent necessary and the remaining provisions will continue in effect. A waiver
|
|
172
|
-
must be in writing and applies only to the stated instance. You may not assign
|
|
173
|
-
this License. Headings are for convenience only.
|
|
174
|
-
|
|
175
|
-
12. Contact
|
|
176
|
-
|
|
177
|
-
Commercial licensing: https://dev.flyfish.group/shop
|
|
178
|
-
Support email: wybaby168@gmail.com
|
|
179
|
-
|
|
180
|
-
中文摘要(仅便于阅读;如与英文条款冲突,以英文条款为准)
|
|
181
|
-
|
|
182
|
-
- 本 npm 公网包是 Flyfish 专有二进制发行版,不是开源软件,也不适用
|
|
183
|
-
Apache-2.0。单独向特定源码客户交付的 Apache-2.0 条款,仅适用于该次交付中
|
|
184
|
-
明确列出的源码和范围,不会扩展到本公网 npm 包。
|
|
185
|
-
- 免费授权对象仅为以个人身份行事的自然人,且仅限个人、非商用、非组织用途;
|
|
186
|
-
公司、组织、政府、学校、非营利机构、团队、雇主或客户的内部评估也属于商用。
|
|
187
|
-
- 公网水印版不限制正常 HTTP/HTTPS origin,但每一页必须完整显示
|
|
188
|
-
Flyfish Viewer 水印。不得删除、遮挡、裁剪、弱化或替换水印。
|
|
189
|
-
- 不得再分发、镜像、转售、重打包、修改、反编译、解密、提取、伪造授权或绕过
|
|
190
|
-
WASM、完整性校验、功能限制及其他技术保护措施。
|
|
191
|
-
- 在免费授权范围内,仅为运行本人项目而进行必要的前端打包、压缩和静态资源部署
|
|
192
|
-
是允许的,但不得将本包作为可复用依赖、镜像、独立下载、API 或服务向第三方
|
|
193
|
-
提供,并且必须完整保留许可证声明、完整性保护和水印。
|
|
194
|
-
- 商业、生产、内网、SaaS、托管、嵌入、OEM、客户项目、收费或其他业务用途,
|
|
195
|
-
必须先购买单独商业授权;只有单独构建的商业包可以不显示公网水印。
|
|
196
|
-
- 商业授权购买地址:https://dev.flyfish.group/shop
|
|
86
|
+
third-party notices.
|
|
87
|
+
|
|
88
|
+
An exact official package mirror, cache, backup, or static copy used to install
|
|
89
|
+
or deploy an Integrated Product is not prohibited standalone redistribution.
|
|
90
|
+
|
|
91
|
+
5. Proprietary and open-source boundary
|
|
92
|
+
|
|
93
|
+
This License applies only to the Public Runtime. It does not grant source code,
|
|
94
|
+
source-delivery, patent, trademark, or open-source rights. Apache-2.0 terms that
|
|
95
|
+
may apply to File Viewer or to a separately identified source delivery do not
|
|
96
|
+
extend to @file-viewer/ppt, its WebAssembly runtime, or Flyfish trademarks.
|
|
97
|
+
|
|
98
|
+
Third-party components identified in the NOTICE remain subject to their own
|
|
99
|
+
licenses. Those notices do not expand the grant for Flyfish proprietary code.
|
|
100
|
+
|
|
101
|
+
6. Ownership and trademark
|
|
102
|
+
|
|
103
|
+
Flyfish and its licensors retain all title and intellectual-property rights in
|
|
104
|
+
the Public Runtime. The narrow permission to display the unmodified Flyfish
|
|
105
|
+
Viewer watermark does not grant any other trademark or endorsement right.
|
|
106
|
+
|
|
107
|
+
7. Termination
|
|
108
|
+
|
|
109
|
+
This License terminates automatically if You materially violate it. Your rights
|
|
110
|
+
are reinstated when You cure the violation within 30 days after discovery,
|
|
111
|
+
unless Flyfish has notified You of a repeated or intentional violation.
|
|
112
|
+
|
|
113
|
+
8. Disclaimer and limitation of liability
|
|
114
|
+
|
|
115
|
+
THE PUBLIC RUNTIME IS PROVIDED “AS IS”, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
116
|
+
KIND. TO THE MAXIMUM EXTENT PERMITTED BY LAW, FLYFISH IS NOT LIABLE FOR INDIRECT,
|
|
117
|
+
INCIDENTAL, SPECIAL, CONSEQUENTIAL, OR EXEMPLARY DAMAGES ARISING FROM ITS USE.
|
|
118
|
+
|
|
119
|
+
9. Entire license
|
|
120
|
+
|
|
121
|
+
This License is the complete public grant for the Public Runtime. A separate
|
|
122
|
+
written agreement controls only where it expressly grants additional rights.
|
package/NOTICE
CHANGED
|
@@ -1,29 +1,28 @@
|
|
|
1
1
|
@file-viewer/ppt
|
|
2
2
|
Copyright 2026 Flyfish.
|
|
3
3
|
|
|
4
|
-
PROPRIETARY PUBLIC
|
|
4
|
+
PROPRIETARY PUBLIC WATERMARKED RUNTIME — NOT OPEN SOURCE
|
|
5
5
|
|
|
6
|
-
This npm package is governed
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
package.
|
|
6
|
+
This npm package is governed by the included Flyfish Public Watermarked Runtime
|
|
7
|
+
License. It is not licensed under Apache-2.0. Apache-2.0 terms that may apply to
|
|
8
|
+
File Viewer or a separately identified source delivery do not extend to this
|
|
9
|
+
runtime.
|
|
11
10
|
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
11
|
+
The unmodified public runtime may be used by individuals and organizations for
|
|
12
|
+
personal, internal, commercial, production, SaaS, hosted, and customer-facing
|
|
13
|
+
applications. It may be bundled, copied, hosted, mirrored, and redistributed as
|
|
14
|
+
an integrated dependency of File Viewer or another application, including npm,
|
|
15
|
+
Full, CDN/IIFE, Docker, offline, copy-assets, and GitHub Release distributions.
|
|
16
16
|
|
|
17
17
|
Every public rendering must display the unmodified Flyfish Viewer watermark.
|
|
18
|
-
Only
|
|
19
|
-
that watermark.
|
|
18
|
+
Only separate written commercial authorization may permit removing, replacing,
|
|
19
|
+
hiding, or weakening that watermark or using a watermark-free build.
|
|
20
20
|
|
|
21
|
-
|
|
22
|
-
runtime plus generated public declarations. It does not include
|
|
23
|
-
|
|
24
|
-
capability, source-delivery rights, or readable parser/renderer source.
|
|
21
|
+
The package contains a native PPT parsing and Canvas rasterization WebAssembly
|
|
22
|
+
runtime plus generated public declarations. It does not include source-delivery
|
|
23
|
+
rights, watermark-removal capability, or readable parser/renderer source.
|
|
25
24
|
|
|
26
|
-
Commercial
|
|
25
|
+
Commercial watermark authorization: https://dev.flyfish.group/shop
|
|
27
26
|
|
|
28
27
|
The package ships deterministic fallback font resources separately from the
|
|
29
28
|
native engine. Their copyright notices and full font licenses are appended to
|
package/README.md
CHANGED
|
@@ -193,9 +193,9 @@ moves assets, configure them explicitly:
|
|
|
193
193
|
|
|
194
194
|
```js
|
|
195
195
|
const viewer = await createPptViewer({
|
|
196
|
-
workerUrl: new URL('/vendor/file-viewer/ppt/0.3.
|
|
197
|
-
wasmUrl: new URL('/vendor/file-viewer/ppt/0.3.
|
|
198
|
-
fontUrl: new URL('/vendor/file-viewer/ppt/0.3.
|
|
196
|
+
workerUrl: new URL('/vendor/file-viewer/ppt/0.3.1/worker.mjs', location.origin),
|
|
197
|
+
wasmUrl: new URL('/vendor/file-viewer/ppt/0.3.1/ppt-native.wasm', location.origin),
|
|
198
|
+
fontUrl: new URL('/vendor/file-viewer/ppt/0.3.1/ppt-font-cjk.otf', location.origin)
|
|
199
199
|
});
|
|
200
200
|
```
|
|
201
201
|
|
|
@@ -268,18 +268,20 @@ be used when a document font is not available to the viewer.
|
|
|
268
268
|
|
|
269
269
|
| Edition | Permitted use | Watermark | Origin |
|
|
270
270
|
| --- | --- | --- | --- |
|
|
271
|
-
| Public npm edition |
|
|
272
|
-
|
|
|
271
|
+
| Public npm edition | Any lawful personal, organizational, commercial, production, SaaS, hosted, or customer-facing use | Mandatory `Flyfish Viewer` on every slide | Any normal HTTP/HTTPS origin |
|
|
272
|
+
| Watermark-free edition | Uses covered by a separate written authorization | Watermark-free build according to the purchased agreement | According to the commercial agreement |
|
|
273
273
|
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
274
|
+
The unmodified public runtime can be bundled, self-hosted, and redistributed as
|
|
275
|
+
an integrated dependency, including File Viewer Full, CDN/IIFE, Docker, offline,
|
|
276
|
+
copy-assets, and GitHub Release distributions. A paid authorization is required
|
|
277
|
+
only to remove, replace, hide, or weaken the required watermark, or to receive a
|
|
278
|
+
separate watermark-free build or source delivery.
|
|
277
279
|
|
|
278
280
|
The public npm edition is proprietary software and is **not licensed under
|
|
279
281
|
Apache-2.0**. Removing, hiding, covering, replacing, or bypassing the required
|
|
280
282
|
watermark is prohibited. See [LICENSE](./LICENSE) for the binding terms.
|
|
281
283
|
|
|
282
|
-
Purchase
|
|
284
|
+
Purchase watermark-free commercial authorization from the
|
|
283
285
|
[Flyfish Shop](https://dev.flyfish.group/shop).
|
|
284
286
|
|
|
285
287
|
### Product links
|
|
@@ -445,7 +447,7 @@ manifest.json
|
|
|
445
447
|
`application/wasm`,`.otf` 使用 `font/otf`,`.ppt` 使用
|
|
446
448
|
`application/vnd.ms-powerpoint`。
|
|
447
449
|
|
|
448
|
-
将资源发布在版本化或内容寻址目录(如 `/vendor/file-viewer/ppt/0.3.
|
|
450
|
+
将资源发布在版本化或内容寻址目录(如 `/vendor/file-viewer/ppt/0.3.1/`)后,
|
|
449
451
|
可配置:
|
|
450
452
|
|
|
451
453
|
```http
|
|
@@ -477,19 +479,20 @@ Cache-Control: public, max-age=31536000, immutable
|
|
|
477
479
|
|
|
478
480
|
| 版本 | 允许用途 | 水印 | Origin |
|
|
479
481
|
| --- | --- | --- | --- |
|
|
480
|
-
| 公网 npm 版 |
|
|
481
|
-
|
|
|
482
|
+
| 公网 npm 版 | 任何合法的个人、组织、商业、生产、SaaS、内网或客户项目用途 | 每页强制显示 `Flyfish Viewer` | 任意正常 HTTP/HTTPS origin |
|
|
483
|
+
| 无水印版 | 书面商业授权覆盖的用途 | 按协议提供无水印构建 | 按商业协议执行 |
|
|
482
484
|
|
|
483
|
-
|
|
484
|
-
|
|
485
|
+
未修改的公网运行时可以作为应用依赖打包、自托管和再分发,包括 File Viewer Full、
|
|
486
|
+
CDN/IIFE、Docker、离线包、copy-assets 和 GitHub Release。只有移除、替换、隐藏或
|
|
487
|
+
弱化强制水印,或取得单独的无水印构建/源码交付时,才需要书面商业授权。
|
|
485
488
|
|
|
486
489
|
公网 npm 版是专有软件,**不适用 Apache-2.0**。禁止删除、隐藏、遮挡、替换或
|
|
487
490
|
绕过强制水印。具有法律约束力的完整条款见 [LICENSE](./LICENSE)。
|
|
488
491
|
|
|
489
|
-
|
|
492
|
+
无水印商业授权请前往 [Flyfish 商店](https://dev.flyfish.group/shop)购买。
|
|
490
493
|
|
|
491
494
|
### 产品链接
|
|
492
495
|
|
|
493
496
|
- [产品文档](https://officejs-doc.pages.dev)
|
|
494
|
-
- [
|
|
497
|
+
- [无水印商业授权](https://dev.flyfish.group/shop)
|
|
495
498
|
- [问题反馈](https://github.com/flyfish-dev/office-preview-js/issues)
|
package/index.d.ts
CHANGED
|
@@ -16,18 +16,21 @@ export interface PptPackageManifest {
|
|
|
16
16
|
readonly id: 'FV-PPT-PUBLIC-WATERMARKED-V2';
|
|
17
17
|
readonly feature: 'ppt';
|
|
18
18
|
readonly edition: 'public-watermarked';
|
|
19
|
-
readonly holder: '
|
|
19
|
+
readonly holder: 'Individuals and Organizations';
|
|
20
20
|
readonly distribution: 'proprietary-public-binary';
|
|
21
|
-
readonly commercialUse:
|
|
21
|
+
readonly commercialUse: true;
|
|
22
22
|
readonly publicAnyOrigin: true;
|
|
23
23
|
readonly watermarkRequired: true;
|
|
24
24
|
readonly watermarkText: 'Flyfish Viewer';
|
|
25
|
-
readonly usePolicy: 'public-
|
|
26
|
-
readonly licensePolicy: 'flyfish-public-watermarked-binary-license-
|
|
25
|
+
readonly usePolicy: 'public-watermarked-general-use';
|
|
26
|
+
readonly licensePolicy: 'flyfish-public-watermarked-binary-license-v2';
|
|
27
27
|
readonly sourceCodeRights: false;
|
|
28
28
|
readonly sourceDeliveryRights: false;
|
|
29
29
|
readonly apacheLicenseApplies: false;
|
|
30
|
-
readonly redistributionAllowed:
|
|
30
|
+
readonly redistributionAllowed: true;
|
|
31
|
+
readonly redistributionPolicy: 'unmodified-integrated-bundling-only';
|
|
32
|
+
readonly standaloneRedistributionAllowed: false;
|
|
33
|
+
readonly watermarkRemovalRequiresCommercialAuthorization: true;
|
|
31
34
|
readonly runtimeLicenseRequired: false;
|
|
32
35
|
readonly renderer: 'native-wasm-worker-offscreen-canvas';
|
|
33
36
|
readonly integrity: 'native-wasm-font-sha256-v2';
|
|
@@ -45,13 +48,16 @@ export interface PptPackageManifest {
|
|
|
45
48
|
export interface PptRuntimeLicenseSummary {
|
|
46
49
|
readonly id: 'FV-PPT-PUBLIC-WATERMARKED-V2';
|
|
47
50
|
readonly edition: 'public-watermarked';
|
|
48
|
-
readonly holder: '
|
|
49
|
-
readonly policy: 'flyfish-public-watermarked-binary-license-
|
|
50
|
-
readonly commercialUse:
|
|
51
|
+
readonly holder: 'Individuals and Organizations';
|
|
52
|
+
readonly policy: 'flyfish-public-watermarked-binary-license-v2';
|
|
53
|
+
readonly commercialUse: true;
|
|
51
54
|
readonly sourceCodeRights: false;
|
|
52
55
|
readonly sourceDeliveryRights: false;
|
|
53
56
|
readonly apacheLicenseApplies: false;
|
|
54
|
-
readonly redistributionAllowed:
|
|
57
|
+
readonly redistributionAllowed: true;
|
|
58
|
+
readonly redistributionPolicy: 'unmodified-integrated-bundling-only';
|
|
59
|
+
readonly standaloneRedistributionAllowed: false;
|
|
60
|
+
readonly watermarkRemovalRequiresCommercialAuthorization: true;
|
|
55
61
|
}
|
|
56
62
|
|
|
57
63
|
export interface PptWatermarkSummary {
|
package/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const MANIFEST = Object.freeze({"kind":"flyfish-ppt-public-native-wasm-v2","product":"Flyfish PPT Viewer","format":"PowerPoint 97-2003 (.ppt)","packageName":"@file-viewer/ppt","packageVersion":"0.3.
|
|
1
|
+
const MANIFEST = Object.freeze({"kind":"flyfish-ppt-public-native-wasm-v2","product":"Flyfish PPT Viewer","format":"PowerPoint 97-2003 (.ppt)","packageName":"@file-viewer/ppt","packageVersion":"0.3.1","engine":"flyfish-classic-ppt-native-engine","engineBuild":"593d0a6cf32f928f","id":"FV-PPT-PUBLIC-WATERMARKED-V2","feature":"ppt","edition":"public-watermarked","holder":"Individuals and Organizations","distribution":"proprietary-public-binary","commercialUse":true,"publicAnyOrigin":true,"watermarkRequired":true,"watermarkText":"Flyfish Viewer","usePolicy":"public-watermarked-general-use","licensePolicy":"flyfish-public-watermarked-binary-license-v2","sourceCodeRights":false,"sourceDeliveryRights":false,"apacheLicenseApplies":false,"redistributionAllowed":true,"redistributionPolicy":"unmodified-integrated-bundling-only","standaloneRedistributionAllowed":false,"watermarkRemovalRequiresCommercialAuthorization":true,"runtimeLicenseRequired":false,"renderer":"native-wasm-worker-offscreen-canvas","integrity":"native-wasm-font-sha256-v2","wasmFile":"ppt-native.wasm","wasmBytes":1557871,"workerFile":"worker.mjs","fontPack":{"kind":"flyfish-cjk-font-pack-v1","file":"ppt-font-cjk.otf","bytes":16437364,"sha256":"2c76254f6fc379fddfce0a7e84fb5385bb135d3e399294f6eeb6680d0365b74b"},"workerDefault":true,"virtualScrollDefault":true,"frameCache":"indexeddb-final-watermarked-png-lru","watermarkEnforcement":"native-final-frame","wasmSha256":"8e95d7de0e322d6c96dcd7ea18c5cd9b6783cb82f3fe1c8714008119f19e7915"});
|
|
2
2
|
const DEFAULT_WASM_URL = new URL('./ppt-native.wasm', import.meta.url);
|
|
3
3
|
const DEFAULT_FONT_URL = new URL(`./${MANIFEST.fontPack.file}`, import.meta.url);
|
|
4
4
|
const DEFAULT_WORKER_URL = new URL(`./${MANIFEST.workerFile}`, import.meta.url);
|
|
@@ -26,13 +26,16 @@ const WASM_EXPORTS = Object.freeze([
|
|
|
26
26
|
const LICENSE = Object.freeze({
|
|
27
27
|
id: 'FV-PPT-PUBLIC-WATERMARKED-V2',
|
|
28
28
|
edition: 'public-watermarked',
|
|
29
|
-
holder: '
|
|
30
|
-
policy: 'flyfish-public-watermarked-binary-license-
|
|
31
|
-
commercialUse:
|
|
29
|
+
holder: 'Individuals and Organizations',
|
|
30
|
+
policy: 'flyfish-public-watermarked-binary-license-v2',
|
|
31
|
+
commercialUse: true,
|
|
32
32
|
sourceCodeRights: false,
|
|
33
33
|
sourceDeliveryRights: false,
|
|
34
34
|
apacheLicenseApplies: false,
|
|
35
|
-
redistributionAllowed:
|
|
35
|
+
redistributionAllowed: true,
|
|
36
|
+
redistributionPolicy: 'unmodified-integrated-bundling-only',
|
|
37
|
+
standaloneRedistributionAllowed: false,
|
|
38
|
+
watermarkRemovalRequiresCommercialAuthorization: true
|
|
36
39
|
});
|
|
37
40
|
|
|
38
41
|
const WATERMARK = Object.freeze({ required: true, text: 'Flyfish Viewer' });
|
package/manifest.json
CHANGED
|
@@ -3,29 +3,32 @@
|
|
|
3
3
|
"product": "Flyfish PPT Viewer",
|
|
4
4
|
"format": "PowerPoint 97-2003 (.ppt)",
|
|
5
5
|
"packageName": "@file-viewer/ppt",
|
|
6
|
-
"packageVersion": "0.3.
|
|
6
|
+
"packageVersion": "0.3.1",
|
|
7
7
|
"engine": "flyfish-classic-ppt-native-engine",
|
|
8
|
-
"engineBuild": "
|
|
8
|
+
"engineBuild": "593d0a6cf32f928f",
|
|
9
9
|
"id": "FV-PPT-PUBLIC-WATERMARKED-V2",
|
|
10
10
|
"feature": "ppt",
|
|
11
11
|
"edition": "public-watermarked",
|
|
12
|
-
"holder": "
|
|
12
|
+
"holder": "Individuals and Organizations",
|
|
13
13
|
"distribution": "proprietary-public-binary",
|
|
14
|
-
"commercialUse":
|
|
14
|
+
"commercialUse": true,
|
|
15
15
|
"publicAnyOrigin": true,
|
|
16
16
|
"watermarkRequired": true,
|
|
17
17
|
"watermarkText": "Flyfish Viewer",
|
|
18
|
-
"usePolicy": "public-
|
|
19
|
-
"licensePolicy": "flyfish-public-watermarked-binary-license-
|
|
18
|
+
"usePolicy": "public-watermarked-general-use",
|
|
19
|
+
"licensePolicy": "flyfish-public-watermarked-binary-license-v2",
|
|
20
20
|
"sourceCodeRights": false,
|
|
21
21
|
"sourceDeliveryRights": false,
|
|
22
22
|
"apacheLicenseApplies": false,
|
|
23
|
-
"redistributionAllowed":
|
|
23
|
+
"redistributionAllowed": true,
|
|
24
|
+
"redistributionPolicy": "unmodified-integrated-bundling-only",
|
|
25
|
+
"standaloneRedistributionAllowed": false,
|
|
26
|
+
"watermarkRemovalRequiresCommercialAuthorization": true,
|
|
24
27
|
"runtimeLicenseRequired": false,
|
|
25
28
|
"renderer": "native-wasm-worker-offscreen-canvas",
|
|
26
29
|
"integrity": "native-wasm-font-sha256-v2",
|
|
27
30
|
"wasmFile": "ppt-native.wasm",
|
|
28
|
-
"wasmBytes":
|
|
31
|
+
"wasmBytes": 1557871,
|
|
29
32
|
"workerFile": "worker.mjs",
|
|
30
33
|
"fontPack": {
|
|
31
34
|
"kind": "flyfish-cjk-font-pack-v1",
|
|
@@ -37,5 +40,5 @@
|
|
|
37
40
|
"virtualScrollDefault": true,
|
|
38
41
|
"frameCache": "indexeddb-final-watermarked-png-lru",
|
|
39
42
|
"watermarkEnforcement": "native-final-frame",
|
|
40
|
-
"wasmSha256": "
|
|
43
|
+
"wasmSha256": "8e95d7de0e322d6c96dcd7ea18c5cd9b6783cb82f3fe1c8714008119f19e7915"
|
|
41
44
|
}
|
package/package.json
CHANGED
package/ppt-native.wasm
CHANGED
|
Binary file
|