polotno-node 2.10.8 → 2.11.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/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-DQwPFR00.js"></script>
11
+ <script type="module" crossorigin src="./assets/index-4xh-0axv.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.10.8",
3
+ "version": "2.11.0",
4
4
  "description": "Polotno workflow from NodeJS",
5
5
  "main": "index.js",
6
6
  "scripts": {
7
- "test": "ava --timeout=30s --concurrency=2 --serial",
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.7",
22
- "dotenv": "^16.4.5",
21
+ "axios": "^1.7.8",
22
+ "dotenv": "^16.4.6",
23
23
  "fluent-ffmpeg": "^2.1.3",
24
24
  "pixelmatch": "^6.0.0",
25
25
  "pngjs": "^7.0.0",
26
- "polotno": "^2.14.11",
26
+ "polotno": "^2.16.0",
27
27
  "react": "^18.3.1",
28
28
  "react-dom": "^18.3.1",
29
- "vite": "^5.4.11"
29
+ "vite": "^6.0.2"
30
30
  },
31
31
  "author": "Anton Lavrenov",
32
32
  "license": "MIT",
33
33
  "dependencies": {
34
- "@sparticuz/chromium": "^130.0.0",
35
- "puppeteer": "^23.7.1",
36
- "puppeteer-core": "^23.7.1",
34
+ "@sparticuz/chromium": "^131.0.1",
35
+ "puppeteer": "^23.9.0",
36
+ "puppeteer-core": "^23.9.0",
37
37
  "tmp": "^0.2.3"
38
38
  },
39
39
  "bugs": {