@puckeditor/plugin-ai 0.10.0-canary.596c8fd5 → 0.10.0-canary.5bbc2ab4

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.d.mts CHANGED
@@ -526,4 +526,4 @@ declare module "@puckeditor/core" {
526
526
  }
527
527
  }
528
528
 
529
- export { type AIPart, type AiDictionaryKey, type ApplyPartOptions, type ComponentAiParams, type FieldAiParams, type GenerateOptions, type SendMessageOptions, type UsePuckAiOptions, createAiPlugin, defaultDictionary, usePuckAi, withDynamicConfig };
529
+ export { type AIPart, type AiDictionaryKey, type AiFieldType, type AiFieldTypeContext, type ApplyPartOptions, type ComponentAiParams, type FieldAiParams, type GenerateOptions, type SendMessageOptions, type UsePuckAiOptions, createAiPlugin, defaultDictionary, usePuckAi, withDynamicConfig };
package/dist/index.d.ts CHANGED
@@ -526,4 +526,4 @@ declare module "@puckeditor/core" {
526
526
  }
527
527
  }
528
528
 
529
- export { type AIPart, type AiDictionaryKey, type ApplyPartOptions, type ComponentAiParams, type FieldAiParams, type GenerateOptions, type SendMessageOptions, type UsePuckAiOptions, createAiPlugin, defaultDictionary, usePuckAi, withDynamicConfig };
529
+ export { type AIPart, type AiDictionaryKey, type AiFieldType, type AiFieldTypeContext, type ApplyPartOptions, type ComponentAiParams, type FieldAiParams, type GenerateOptions, type SendMessageOptions, type UsePuckAiOptions, createAiPlugin, defaultDictionary, usePuckAi, withDynamicConfig };
package/dist/index.js CHANGED
@@ -3475,7 +3475,71 @@ var VOID_ELEMENTS = /* @__PURE__ */ new Set([
3475
3475
  "track",
3476
3476
  "wbr"
3477
3477
  ]);
3478
+ var MIXED_CASE_ATTRIBUTES = [
3479
+ "attributeName",
3480
+ "attributeType",
3481
+ "baseFrequency",
3482
+ "baseProfile",
3483
+ "calcMode",
3484
+ "clipPathUnits",
3485
+ "definitionURL",
3486
+ "diffuseConstant",
3487
+ "edgeMode",
3488
+ "filterUnits",
3489
+ "glyphRef",
3490
+ "gradientTransform",
3491
+ "gradientUnits",
3492
+ "kernelMatrix",
3493
+ "kernelUnitLength",
3494
+ "keyPoints",
3495
+ "keySplines",
3496
+ "keyTimes",
3497
+ "lengthAdjust",
3498
+ "limitingConeAngle",
3499
+ "markerHeight",
3500
+ "markerUnits",
3501
+ "markerWidth",
3502
+ "maskContentUnits",
3503
+ "maskUnits",
3504
+ "numOctaves",
3505
+ "pathLength",
3506
+ "patternContentUnits",
3507
+ "patternTransform",
3508
+ "patternUnits",
3509
+ "pointsAtX",
3510
+ "pointsAtY",
3511
+ "pointsAtZ",
3512
+ "preserveAlpha",
3513
+ "preserveAspectRatio",
3514
+ "primitiveUnits",
3515
+ "refX",
3516
+ "refY",
3517
+ "repeatCount",
3518
+ "repeatDur",
3519
+ "requiredExtensions",
3520
+ "requiredFeatures",
3521
+ "specularConstant",
3522
+ "specularExponent",
3523
+ "spreadMethod",
3524
+ "startOffset",
3525
+ "stdDeviation",
3526
+ "stitchTiles",
3527
+ "surfaceScale",
3528
+ "systemLanguage",
3529
+ "tableValues",
3530
+ "targetX",
3531
+ "targetY",
3532
+ "textLength",
3533
+ "viewBox",
3534
+ "viewTarget",
3535
+ "xChannelSelector",
3536
+ "yChannelSelector",
3537
+ "zoomAndPan"
3538
+ ];
3478
3539
  var REACT_PROP_NAMES = {
3540
+ ...Object.fromEntries(
3541
+ MIXED_CASE_ATTRIBUTES.map((name) => [name.toLowerCase(), name])
3542
+ ),
3479
3543
  class: "className",
3480
3544
  for: "htmlFor",
3481
3545
  tabindex: "tabIndex",
@@ -3488,7 +3552,9 @@ var REACT_PROP_NAMES = {
3488
3552
  accesskey: "accessKey",
3489
3553
  autocomplete: "autoComplete",
3490
3554
  autofocus: "autoFocus",
3491
- autoplay: "autoPlay"
3555
+ autoplay: "autoPlay",
3556
+ // Only this name gets the XLink namespace SVG reads it from
3557
+ "xlink:href": "xlinkHref"
3492
3558
  };
3493
3559
  var parseStyleString = (cssText) => {
3494
3560
  const style = {};
@@ -4596,7 +4662,7 @@ var usePuck2 = (0, import_core5.createUsePuck)();
4596
4662
  var DEFAULT_API_VERSION = "v2";
4597
4663
  var BUILD_OP_DEBOUNCE_MS = 1e3 / 60;
4598
4664
  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.";
4599
- var PLUGIN_AI_VERSION = true ? "0.10.0-canary.596c8fd5" : "unknown";
4665
+ var PLUGIN_AI_VERSION = true ? "0.10.0-canary.5bbc2ab4" : "unknown";
4600
4666
  var prefixedUlid = (prefix = "") => `${prefix ? `${prefix}_` : ""}${(0, import_ulid.ulid)()}`;
4601
4667
  async function prepareRequestOptions(defaults, prepareRequest) {
4602
4668
  if (!prepareRequest) return defaults;
package/dist/index.mjs CHANGED
@@ -3506,7 +3506,71 @@ var VOID_ELEMENTS = /* @__PURE__ */ new Set([
3506
3506
  "track",
3507
3507
  "wbr"
3508
3508
  ]);
3509
+ var MIXED_CASE_ATTRIBUTES = [
3510
+ "attributeName",
3511
+ "attributeType",
3512
+ "baseFrequency",
3513
+ "baseProfile",
3514
+ "calcMode",
3515
+ "clipPathUnits",
3516
+ "definitionURL",
3517
+ "diffuseConstant",
3518
+ "edgeMode",
3519
+ "filterUnits",
3520
+ "glyphRef",
3521
+ "gradientTransform",
3522
+ "gradientUnits",
3523
+ "kernelMatrix",
3524
+ "kernelUnitLength",
3525
+ "keyPoints",
3526
+ "keySplines",
3527
+ "keyTimes",
3528
+ "lengthAdjust",
3529
+ "limitingConeAngle",
3530
+ "markerHeight",
3531
+ "markerUnits",
3532
+ "markerWidth",
3533
+ "maskContentUnits",
3534
+ "maskUnits",
3535
+ "numOctaves",
3536
+ "pathLength",
3537
+ "patternContentUnits",
3538
+ "patternTransform",
3539
+ "patternUnits",
3540
+ "pointsAtX",
3541
+ "pointsAtY",
3542
+ "pointsAtZ",
3543
+ "preserveAlpha",
3544
+ "preserveAspectRatio",
3545
+ "primitiveUnits",
3546
+ "refX",
3547
+ "refY",
3548
+ "repeatCount",
3549
+ "repeatDur",
3550
+ "requiredExtensions",
3551
+ "requiredFeatures",
3552
+ "specularConstant",
3553
+ "specularExponent",
3554
+ "spreadMethod",
3555
+ "startOffset",
3556
+ "stdDeviation",
3557
+ "stitchTiles",
3558
+ "surfaceScale",
3559
+ "systemLanguage",
3560
+ "tableValues",
3561
+ "targetX",
3562
+ "targetY",
3563
+ "textLength",
3564
+ "viewBox",
3565
+ "viewTarget",
3566
+ "xChannelSelector",
3567
+ "yChannelSelector",
3568
+ "zoomAndPan"
3569
+ ];
3509
3570
  var REACT_PROP_NAMES = {
3571
+ ...Object.fromEntries(
3572
+ MIXED_CASE_ATTRIBUTES.map((name) => [name.toLowerCase(), name])
3573
+ ),
3510
3574
  class: "className",
3511
3575
  for: "htmlFor",
3512
3576
  tabindex: "tabIndex",
@@ -3519,7 +3583,9 @@ var REACT_PROP_NAMES = {
3519
3583
  accesskey: "accessKey",
3520
3584
  autocomplete: "autoComplete",
3521
3585
  autofocus: "autoFocus",
3522
- autoplay: "autoPlay"
3586
+ autoplay: "autoPlay",
3587
+ // Only this name gets the XLink namespace SVG reads it from
3588
+ "xlink:href": "xlinkHref"
3523
3589
  };
3524
3590
  var parseStyleString = (cssText) => {
3525
3591
  const style = {};
@@ -4627,7 +4693,7 @@ var usePuck2 = createUsePuck2();
4627
4693
  var DEFAULT_API_VERSION = "v2";
4628
4694
  var BUILD_OP_DEBOUNCE_MS = 1e3 / 60;
4629
4695
  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.";
4630
- var PLUGIN_AI_VERSION = true ? "0.10.0-canary.596c8fd5" : "unknown";
4696
+ var PLUGIN_AI_VERSION = true ? "0.10.0-canary.5bbc2ab4" : "unknown";
4631
4697
  var prefixedUlid = (prefix = "") => `${prefix ? `${prefix}_` : ""}${ulid()}`;
4632
4698
  async function prepareRequestOptions(defaults, prepareRequest) {
4633
4699
  if (!prepareRequest) return defaults;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@puckeditor/plugin-ai",
3
- "version": "0.10.0-canary.596c8fd5",
3
+ "version": "0.10.0-canary.5bbc2ab4",
4
4
  "author": "Chris Villa <chris@puckeditor.com>",
5
5
  "repository": {
6
6
  "type": "git",
@@ -54,12 +54,12 @@
54
54
  "typescript": "^5.5.4",
55
55
  "vite-tsconfig-paths": "^5.1.4",
56
56
  "vitest": "^4.1.12",
57
- "@puckeditor/ai-types": "0.10.0-canary.596c8fd5",
58
- "@puckeditor/platform-types": "0.10.0-canary.596c8fd5",
59
- "eslint-config-custom": "0.10.0-canary.596c8fd5",
60
- "reducer": "0.10.0-canary.596c8fd5",
61
- "tsconfig": "0.10.0-canary.596c8fd5",
62
- "tsup-config": "0.10.0-canary.596c8fd5"
57
+ "@puckeditor/ai-types": "0.10.0-canary.5bbc2ab4",
58
+ "eslint-config-custom": "0.10.0-canary.5bbc2ab4",
59
+ "reducer": "0.10.0-canary.5bbc2ab4",
60
+ "tsconfig": "0.10.0-canary.5bbc2ab4",
61
+ "@puckeditor/platform-types": "0.10.0-canary.5bbc2ab4",
62
+ "tsup-config": "0.10.0-canary.5bbc2ab4"
63
63
  },
64
64
  "peerDependencies": {
65
65
  "@puckeditor/core": "^0",