@studiocms/wysiwyg 0.1.0-beta.30 → 0.1.0-beta.31

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 CHANGED
@@ -46,10 +46,10 @@ function wysiwyg(opts) {
46
46
  name: "StudioCMS WYSIWYG Editor",
47
47
  studiocmsMinimumVersion: "0.1.0-beta.23",
48
48
  hooks: {
49
- "studiocms:astro:config": ({ addIntegrations }) => {
49
+ "studiocms:astro-config": ({ addIntegrations }) => {
50
50
  addIntegrations(internalWysiwygIntegration(packageIdentifier, options));
51
51
  },
52
- "studiocms:config:setup": ({ setRendering }) => {
52
+ "studiocms:rendering": ({ setRendering }) => {
53
53
  setRendering({
54
54
  pageTypes: [
55
55
  {
package/dist/lib/db.d.ts CHANGED
@@ -28,28 +28,14 @@ export declare const UseSDK: Effect.Effect<{
28
28
  *
29
29
  * @returns An array of all plugin data entries.
30
30
  */
31
- getAll: () => Effect.Effect<import("studiocms/sdk/types").PluginDataEntry<{
32
- dataSources: unknown[];
33
- assets: unknown[];
34
- styles: unknown[];
35
- symbols: unknown[];
36
- pages: unknown[];
37
- __STUDIOCMS_HTML?: string | undefined;
38
- }>[], Error | import("@withstudiocms/effect/drizzle").LibSQLClientError, never>;
31
+ getAll: () => Effect.Effect<import("@withstudiocms/sdk/types").PluginDataEntry<any>[], Error, never>;
39
32
  /**
40
33
  * Retrieves a specific entry of the plugin data by its ID.
41
34
  *
42
35
  * @param id - The unique identifier for the plugin data entry.
43
36
  * @returns An Effect that resolves to the plugin data entry with the specified ID.
44
37
  */
45
- load: (id: string) => Effect.Effect<import("studiocms/sdk/types").PluginDataEntry<{
46
- dataSources: unknown[];
47
- assets: unknown[];
48
- styles: unknown[];
49
- symbols: unknown[];
50
- pages: unknown[];
51
- __STUDIOCMS_HTML?: string | undefined;
52
- }> | undefined, Error | import("@withstudiocms/effect/drizzle").LibSQLClientError, never>;
38
+ load: (id: string) => Effect.Effect<import("@withstudiocms/sdk/types").PluginDataEntry<any> | undefined, Error, never>;
53
39
  /**
54
40
  * Inserts or updates a plugin data entry with the specified ID and data.
55
41
  *
@@ -64,14 +50,7 @@ export declare const UseSDK: Effect.Effect<{
64
50
  symbols: unknown[];
65
51
  pages: unknown[];
66
52
  __STUDIOCMS_HTML?: string | undefined;
67
- }) => Effect.Effect<import("studiocms/sdk/types").PluginDataEntry<{
68
- dataSources: unknown[];
69
- assets: unknown[];
70
- styles: unknown[];
71
- symbols: unknown[];
72
- pages: unknown[];
73
- __STUDIOCMS_HTML?: string | undefined;
74
- }>, Error | import("@withstudiocms/effect/drizzle").LibSQLClientError, never>;
53
+ }) => Effect.Effect<import("@withstudiocms/sdk/types").PluginDataEntry<any>, Error, never>;
75
54
  /**
76
55
  * Returns the inferred type for the plugin data schema.
77
56
  */
@@ -101,4 +80,4 @@ export declare const UseSDK: Effect.Effect<{
101
80
  __STUDIOCMS_HTML?: string | undefined;
102
81
  };
103
82
  };
104
- }, never, never>;
83
+ }, import("studiocms/sdk/base").DBClientInitializationError | import("studiocms/sdk/base").SDKInitializationError, never>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@studiocms/wysiwyg",
3
- "version": "0.1.0-beta.30",
3
+ "version": "0.1.0-beta.31",
4
4
  "description": "Add A WYSIWYG Editor to your StudioCMS project with ease!",
5
5
  "author": {
6
6
  "name": "withstudiocms",
@@ -59,7 +59,7 @@
59
59
  "dependencies": {
60
60
  "astro-integration-kit": "^0.19.1",
61
61
  "deepmerge-ts": "^7.1.5",
62
- "grapesjs": "^0.22.13",
62
+ "grapesjs": "^0.22.14",
63
63
  "tui-image-editor": "^3.15.3"
64
64
  },
65
65
  "devDependencies": {
@@ -69,8 +69,8 @@
69
69
  "@studiocms/ui": "^1.0.0-beta.4",
70
70
  "astro": "^5.12.9",
71
71
  "vite": "^6.3.4",
72
- "@withstudiocms/component-registry": "0.1.0-beta.6",
73
- "studiocms": "0.1.0-beta.30"
72
+ "@withstudiocms/component-registry": "0.1.0-beta.7",
73
+ "studiocms": "0.1.0-beta.31"
74
74
  },
75
75
  "scripts": {
76
76
  "build": "buildkit build 'src/**/*.{ts,astro,css,js}'",