@puckeditor/plugin-ai 0.5.0-canary.c689dcb2 → 0.5.0-canary.dd1cead3

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
@@ -1,7 +1,7 @@
1
1
  import * as react from 'react';
2
2
  import * as react_jsx_runtime from 'react/jsx-runtime';
3
3
  import { LanguageModelUsage, UIMessage, CreateUIMessage, DataUIPart, ChatStatus } from 'ai';
4
- import { PuckAction, Data } from '@measured/puck';
4
+ import { PuckAction, Data } from '@puckeditor/core';
5
5
 
6
6
  type _JSONSchema = boolean | JSONSchema;
7
7
  type JSONSchema = {
@@ -82,7 +82,7 @@ type FieldAiParams = {
82
82
  schema?: JSONSchema;
83
83
  };
84
84
 
85
- declare module "@measured/puck" {
85
+ declare module "@puckeditor/core" {
86
86
  export interface ComponentMetadata {
87
87
  ai?: ComponentAiParams;
88
88
  }
package/dist/index.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  import * as react from 'react';
2
2
  import * as react_jsx_runtime from 'react/jsx-runtime';
3
3
  import { LanguageModelUsage, UIMessage, CreateUIMessage, DataUIPart, ChatStatus } from 'ai';
4
- import { PuckAction, Data } from '@measured/puck';
4
+ import { PuckAction, Data } from '@puckeditor/core';
5
5
 
6
6
  type _JSONSchema = boolean | JSONSchema;
7
7
  type JSONSchema = {
@@ -82,7 +82,7 @@ type FieldAiParams = {
82
82
  schema?: JSONSchema;
83
83
  };
84
84
 
85
- declare module "@measured/puck" {
85
+ declare module "@puckeditor/core" {
86
86
  export interface ComponentMetadata {
87
87
  ai?: ComponentAiParams;
88
88
  }
package/dist/index.js CHANGED
@@ -477,7 +477,7 @@ function useChat({
477
477
  }
478
478
 
479
479
  // src/components/Chat/index.tsx
480
- var import_puck2 = require("@measured/puck");
480
+ var import_core2 = require("@puckeditor/core");
481
481
  var import_ai4 = require("ai");
482
482
  var import_react22 = require("react");
483
483
  var import_ulid = require("ulid");
@@ -802,7 +802,7 @@ init_react_import();
802
802
 
803
803
  // ../platform-client/components/AutoForm/AutoForm.tsx
804
804
  init_react_import();
805
- var import_puck = require("@measured/puck");
805
+ var import_core = require("@puckeditor/core");
806
806
  var import_react11 = require("react");
807
807
 
808
808
  // css-module:/home/runner/work/puck-platform/puck-platform/packages/platform-client/components/AutoForm/AutoForm.module.css#css-module
@@ -1555,11 +1555,11 @@ var q = (0, import_qler.default)();
1555
1555
  var BENCHMARK = false;
1556
1556
  var prefixedUlid = (prefix = "") => `${prefix ? `${prefix}_` : ""}${(0, import_ulid.ulid)()}`;
1557
1557
  var getClassName17 = getClassNameFactory("Chat", styles_module_default);
1558
- var usePuck = (0, import_puck2.createUsePuck)();
1558
+ var usePuck = (0, import_core2.createUsePuck)();
1559
1559
  function Chat2({ chat, host = "/api/puck/chat" }) {
1560
1560
  const { examplePrompts } = chat ?? {};
1561
1561
  const puckDispatch = usePuck((s) => s.dispatch);
1562
- const getPuck = (0, import_puck2.useGetPuck)();
1562
+ const getPuck = (0, import_core2.useGetPuck)();
1563
1563
  const localChatId = (0, import_react22.useRef)("");
1564
1564
  const inputRef = (0, import_react22.useRef)(null);
1565
1565
  const pluginRef = (0, import_react22.useRef)(null);
package/dist/index.mjs CHANGED
@@ -471,7 +471,7 @@ function useChat({
471
471
  }
472
472
 
473
473
  // src/components/Chat/index.tsx
474
- import { createUsePuck, useGetPuck } from "@measured/puck";
474
+ import { createUsePuck, useGetPuck } from "@puckeditor/core";
475
475
  import {
476
476
  DefaultChatTransport
477
477
  } from "ai";
@@ -800,7 +800,7 @@ init_react_import();
800
800
 
801
801
  // ../platform-client/components/AutoForm/AutoForm.tsx
802
802
  init_react_import();
803
- import { AutoField, FieldLabel } from "@measured/puck";
803
+ import { AutoField, FieldLabel } from "@puckeditor/core";
804
804
  import { useEffect as useEffect5, useState as useState5 } from "react";
805
805
 
806
806
  // css-module:/home/runner/work/puck-platform/puck-platform/packages/platform-client/components/AutoForm/AutoForm.module.css#css-module
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@puckeditor/plugin-ai",
3
- "version": "0.5.0-canary.c689dcb2",
3
+ "version": "0.5.0-canary.dd1cead3",
4
4
  "author": "Chris Villa <chris@puckeditor.com>",
5
5
  "repository": "puckeditor/puck",
6
6
  "bugs": "https://github.com/puckeditor/puck/issues",
@@ -37,8 +37,8 @@
37
37
  },
38
38
  "devDependencies": {
39
39
  "@ai-sdk/react": "^2.0.29",
40
- "@measured/puck": "0.21.0-canary.ed351ce5",
41
40
  "@puckeditor/ai-types": "workspace:*",
41
+ "@puckeditor/core": "0.21.0-canary.de0baf39",
42
42
  "@puckeditor/platform-types": "workspace:*",
43
43
  "@types/jest": "^30.0.0",
44
44
  "@types/node": "^24.3.0",
@@ -54,7 +54,7 @@
54
54
  "typescript": "^5.5.4"
55
55
  },
56
56
  "peerDependencies": {
57
- "@measured/puck": "0.21.0-canary.ed351ce5",
57
+ "@puckeditor/core": "0.21.0-canary.de0baf39",
58
58
  "react": "^18.0.0 || ^19.0.0"
59
59
  }
60
60
  }