polotno-node 2.10.9 → 2.11.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/README.md +54 -44
- package/dist/assets/index-Bm15lglz.js +303 -0
- package/dist/index.html +1 -1
- package/instance.js +11 -0
- package/package.json +8 -8
- package/dist/assets/index-B9EcINPM.js +0 -303
package/dist/index.html
CHANGED
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
}
|
|
9
9
|
</style>
|
|
10
10
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
11
|
-
<script type="module" crossorigin src="./assets/index-
|
|
11
|
+
<script type="module" crossorigin src="./assets/index-Bm15lglz.js"></script>
|
|
12
12
|
</head>
|
|
13
13
|
<body>
|
|
14
14
|
<div id="root"></div>
|
package/instance.js
CHANGED
|
@@ -149,6 +149,17 @@ module.exports.createInstance = async ({
|
|
|
149
149
|
}
|
|
150
150
|
});
|
|
151
151
|
}
|
|
152
|
+
if (args[1]?.textSplitAllowed) {
|
|
153
|
+
await page.evaluate(() => {
|
|
154
|
+
if (window.config && window.config.unstable_setTextSplitAllowed) {
|
|
155
|
+
window.config.unstable_setTextSplitAllowed(true);
|
|
156
|
+
} else {
|
|
157
|
+
console.error(
|
|
158
|
+
'unstable_setTextSplitAllowed function is not defined in the client.'
|
|
159
|
+
);
|
|
160
|
+
}
|
|
161
|
+
});
|
|
162
|
+
}
|
|
152
163
|
if (args[1]?.onProgress) {
|
|
153
164
|
const originalProgress = args[1].onProgress;
|
|
154
165
|
await page.exposeFunction('onProgress', async (progress) => {
|
package/package.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "polotno-node",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.11.1",
|
|
4
4
|
"description": "Polotno workflow from NodeJS",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|
|
7
|
-
"test": "ava --timeout=30s --concurrency=2
|
|
7
|
+
"test": "ava --timeout=30s --concurrency=2",
|
|
8
8
|
"build": "rm -rf ./dist && npx vite build ./client/ --base=./ --outDir ../dist",
|
|
9
9
|
"dev": "vite ./client.html"
|
|
10
10
|
},
|
|
@@ -18,22 +18,22 @@
|
|
|
18
18
|
"browserslist": "> 0.5%, last 2 versions, not dead",
|
|
19
19
|
"devDependencies": {
|
|
20
20
|
"ava": "^6.2.0",
|
|
21
|
-
"axios": "^1.7.
|
|
22
|
-
"dotenv": "^16.4.
|
|
21
|
+
"axios": "^1.7.9",
|
|
22
|
+
"dotenv": "^16.4.7",
|
|
23
23
|
"fluent-ffmpeg": "^2.1.3",
|
|
24
24
|
"pixelmatch": "^6.0.0",
|
|
25
25
|
"pngjs": "^7.0.0",
|
|
26
|
-
"polotno": "^2.
|
|
26
|
+
"polotno": "^2.16.2",
|
|
27
27
|
"react": "^18.3.1",
|
|
28
28
|
"react-dom": "^18.3.1",
|
|
29
|
-
"vite": "^
|
|
29
|
+
"vite": "^6.0.3"
|
|
30
30
|
},
|
|
31
31
|
"author": "Anton Lavrenov",
|
|
32
32
|
"license": "MIT",
|
|
33
33
|
"dependencies": {
|
|
34
34
|
"@sparticuz/chromium": "^131.0.1",
|
|
35
|
-
"puppeteer": "^23.
|
|
36
|
-
"puppeteer-core": "^23.
|
|
35
|
+
"puppeteer": "^23.10.4",
|
|
36
|
+
"puppeteer-core": "^23.10.4",
|
|
37
37
|
"tmp": "^0.2.3"
|
|
38
38
|
},
|
|
39
39
|
"bugs": {
|