@puckeditor/plugin-ai 0.9.0-canary.9a2a27cf → 0.9.0-canary.9c664bf4
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.js +10 -1
- package/dist/index.mjs +10 -1
- package/package.json +7 -7
package/dist/index.js
CHANGED
|
@@ -4473,6 +4473,14 @@ var getDocumentSize = (root) => {
|
|
|
4473
4473
|
};
|
|
4474
4474
|
};
|
|
4475
4475
|
|
|
4476
|
+
// src/lib/screenshot-overflow.ts
|
|
4477
|
+
init_react_import();
|
|
4478
|
+
var applyBrowserOverflowStylesTo = (document2) => {
|
|
4479
|
+
for (const element of [document2.documentElement, document2.body]) {
|
|
4480
|
+
element?.style.setProperty("overflow", "visible", "important");
|
|
4481
|
+
}
|
|
4482
|
+
};
|
|
4483
|
+
|
|
4476
4484
|
// src/lib/capture-screenshot.ts
|
|
4477
4485
|
var editorOnlyClassPrefixes = ["_DraggableComponent--hover", "_ActionBar"];
|
|
4478
4486
|
var releaseCanvas = (canvas) => {
|
|
@@ -4541,6 +4549,7 @@ var captureScreenshot = async (root, { scale = CAPTURE_SCALE, quality = 0.8, wid
|
|
|
4541
4549
|
allowTaint: false,
|
|
4542
4550
|
useCORS: true,
|
|
4543
4551
|
scrollY: 0,
|
|
4552
|
+
onclone: applyBrowserOverflowStylesTo,
|
|
4544
4553
|
ignoreElements: (el) => Array.from(el.classList).some(
|
|
4545
4554
|
(c) => editorOnlyClassPrefixes.some((prefix) => c.startsWith(prefix))
|
|
4546
4555
|
)
|
|
@@ -4575,7 +4584,7 @@ var q = (0, import_qler.default)();
|
|
|
4575
4584
|
var DEFAULT_API_VERSION = "v2";
|
|
4576
4585
|
var BUILD_OP_DEBOUNCE_MS = 1e3 / 60;
|
|
4577
4586
|
var CLIENT_TOOL_ENDPOINT_UNAVAILABLE_ERROR_MESSAGE = "Unable to verify the page data. Please enable the `/chat/tool` endpoint on the server and try again.";
|
|
4578
|
-
var PLUGIN_AI_VERSION = true ? "0.9.0-canary.
|
|
4587
|
+
var PLUGIN_AI_VERSION = true ? "0.9.0-canary.9c664bf4" : "unknown";
|
|
4579
4588
|
var BENCHMARK = false;
|
|
4580
4589
|
var prefixedUlid = (prefix = "") => `${prefix ? `${prefix}_` : ""}${(0, import_ulid.ulid)()}`;
|
|
4581
4590
|
var getClassName18 = getClassNameFactory("Chat", styles_module_default);
|
package/dist/index.mjs
CHANGED
|
@@ -4505,6 +4505,14 @@ var getDocumentSize = (root) => {
|
|
|
4505
4505
|
};
|
|
4506
4506
|
};
|
|
4507
4507
|
|
|
4508
|
+
// src/lib/screenshot-overflow.ts
|
|
4509
|
+
init_react_import();
|
|
4510
|
+
var applyBrowserOverflowStylesTo = (document2) => {
|
|
4511
|
+
for (const element of [document2.documentElement, document2.body]) {
|
|
4512
|
+
element?.style.setProperty("overflow", "visible", "important");
|
|
4513
|
+
}
|
|
4514
|
+
};
|
|
4515
|
+
|
|
4508
4516
|
// src/lib/capture-screenshot.ts
|
|
4509
4517
|
var editorOnlyClassPrefixes = ["_DraggableComponent--hover", "_ActionBar"];
|
|
4510
4518
|
var releaseCanvas = (canvas) => {
|
|
@@ -4573,6 +4581,7 @@ var captureScreenshot = async (root, { scale = CAPTURE_SCALE, quality = 0.8, wid
|
|
|
4573
4581
|
allowTaint: false,
|
|
4574
4582
|
useCORS: true,
|
|
4575
4583
|
scrollY: 0,
|
|
4584
|
+
onclone: applyBrowserOverflowStylesTo,
|
|
4576
4585
|
ignoreElements: (el) => Array.from(el.classList).some(
|
|
4577
4586
|
(c) => editorOnlyClassPrefixes.some((prefix) => c.startsWith(prefix))
|
|
4578
4587
|
)
|
|
@@ -4607,7 +4616,7 @@ var q = qler();
|
|
|
4607
4616
|
var DEFAULT_API_VERSION = "v2";
|
|
4608
4617
|
var BUILD_OP_DEBOUNCE_MS = 1e3 / 60;
|
|
4609
4618
|
var CLIENT_TOOL_ENDPOINT_UNAVAILABLE_ERROR_MESSAGE = "Unable to verify the page data. Please enable the `/chat/tool` endpoint on the server and try again.";
|
|
4610
|
-
var PLUGIN_AI_VERSION = true ? "0.9.0-canary.
|
|
4619
|
+
var PLUGIN_AI_VERSION = true ? "0.9.0-canary.9c664bf4" : "unknown";
|
|
4611
4620
|
var BENCHMARK = false;
|
|
4612
4621
|
var prefixedUlid = (prefix = "") => `${prefix ? `${prefix}_` : ""}${ulid()}`;
|
|
4613
4622
|
var getClassName18 = getClassNameFactory("Chat", styles_module_default);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@puckeditor/plugin-ai",
|
|
3
|
-
"version": "0.9.0-canary.
|
|
3
|
+
"version": "0.9.0-canary.9c664bf4",
|
|
4
4
|
"author": "Chris Villa <chris@puckeditor.com>",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -52,12 +52,12 @@
|
|
|
52
52
|
"tsup": "^8.2.4",
|
|
53
53
|
"typescript": "^5.5.4",
|
|
54
54
|
"vitest": "^4.1.11",
|
|
55
|
-
"@puckeditor/
|
|
56
|
-
"
|
|
57
|
-
"
|
|
58
|
-
"
|
|
59
|
-
"
|
|
60
|
-
"
|
|
55
|
+
"@puckeditor/platform-types": "0.9.0-canary.9c664bf4",
|
|
56
|
+
"tsup-config": "0.9.0-canary.9c664bf4",
|
|
57
|
+
"@puckeditor/ai-types": "0.9.0-canary.9c664bf4",
|
|
58
|
+
"tsconfig": "0.9.0-canary.9c664bf4",
|
|
59
|
+
"eslint-config-custom": "0.9.0-canary.9c664bf4",
|
|
60
|
+
"reducer": "0.9.0-canary.9c664bf4"
|
|
61
61
|
},
|
|
62
62
|
"peerDependencies": {
|
|
63
63
|
"@puckeditor/core": "^0",
|