@studiocms/google 0.2.0 → 0.3.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.
@@ -30,11 +30,11 @@ declare const GoogleUser_base: Schema.Class<GoogleUser, {
30
30
  export declare class GoogleUser extends GoogleUser_base {
31
31
  }
32
32
  declare const GoogleOAuthAPI_base: Effect.Service.Class<GoogleOAuthAPI, "GoogleOAuthAPI", {
33
- readonly dependencies: readonly [import("effect/Layer").Layer<import("studiocms/lib/auth/verify-email").VerifyEmail, import("studiocms/sdk/base").DBClientInitializationError | import("studiocms/sdk/base").SDKInitializationError | import("@withstudiocms/kysely/client").DBCallbackFailure | import("@withstudiocms/kysely/core/errors").DatabaseError | import("effect/Cause").UnknownException | import("effect/ConfigError").ConfigError | import("@withstudiocms/effect/smtp").SMTPError, never>, import("effect/Layer").Layer<Platform.HttpClient.HttpClient, never, never>];
33
+ readonly dependencies: readonly [import("effect/Layer").Layer<import("studiocms/lib/auth/verify-email").VerifyEmail, import("effect/ConfigError").ConfigError | import("studiocms/sdk/base").DBClientInitializationError | import("studiocms/sdk/base").SDKInitializationError | import("@withstudiocms/kysely/client").DBCallbackFailure | import("@withstudiocms/kysely/core/errors").DatabaseError | import("effect/Cause").UnknownException | import("@withstudiocms/effect/smtp").SMTPError, never>, import("effect/Layer").Layer<Platform.HttpClient.HttpClient, never, never>];
34
34
  readonly effect: Effect.Effect<{
35
35
  initSession: (context: APIContext) => Effect.Effect<Response, import("effect/ConfigError").ConfigError | import("@withstudiocms/auth-kit/errors").SessionError, never>;
36
- initCallback: (context: APIContext) => Effect.Effect<Response, any, never>;
37
- }, import("studiocms/sdk/base").DBClientInitializationError | import("studiocms/sdk/base").SDKInitializationError | import("effect/ConfigError").ConfigError | import("@withstudiocms/auth-kit/errors").SessionError | import("@withstudiocms/auth-kit/errors").UserError, import("studiocms/lib/auth/verify-email").VerifyEmail | Platform.HttpClient.HttpClient>;
36
+ initCallback: (context: APIContext) => Effect.Effect<Response, import("effect/ConfigError").ConfigError | import("@withstudiocms/auth-kit/errors").SessionError, never>;
37
+ }, import("effect/ConfigError").ConfigError | import("studiocms/sdk/base").DBClientInitializationError | import("studiocms/sdk/base").SDKInitializationError | import("@withstudiocms/auth-kit/errors").SessionError | import("@withstudiocms/auth-kit/errors").UserError, import("studiocms/lib/auth/verify-email").VerifyEmail | Platform.HttpClient.HttpClient>;
38
38
  }>;
39
39
  /**
40
40
  * Provides Google OAuth authentication effects for the StudioCMS API.
package/dist/index.d.ts CHANGED
@@ -3,7 +3,7 @@
3
3
  * loaded when a user imports the StudioCMS plugin in their Astro configuration file. These
4
4
  * directives must be first at the top of the file and can only be preceded by this comment.
5
5
  */
6
- import { type StudioCMSPlugin } from 'studiocms/plugins';
6
+ import type { StudioCMSPluginDef } from 'studiocms/schemas';
7
7
  /**
8
8
  * Creates and returns the StudioCMS Google Plugin.
9
9
  *
@@ -11,7 +11,7 @@ import { type StudioCMSPlugin } from 'studiocms/plugins';
11
11
  * It defines the necessary configuration, including the required environment variables,
12
12
  * OAuth provider details, and the endpoint path for authentication.
13
13
  *
14
- * @returns {StudioCMSPlugin} The configured StudioCMS Google Plugin instance.
14
+ * @returns {StudioCMSPluginDef} The configured StudioCMS Google Plugin instance.
15
15
  *
16
16
  * @remarks
17
17
  * - Requires the following environment variables to be set:
@@ -21,5 +21,5 @@ import { type StudioCMSPlugin } from 'studiocms/plugins';
21
21
  * - Minimum supported StudioCMS version: `0.1.0-beta.22`
22
22
  * - Registers the Google OAuth provider with a custom SVG logo.
23
23
  */
24
- export declare function studiocmsGoogle(): StudioCMSPlugin;
24
+ export declare function studiocmsGoogle(): StudioCMSPluginDef;
25
25
  export default studiocmsGoogle;
package/dist/index.js CHANGED
@@ -6,9 +6,8 @@ function studiocmsGoogle() {
6
6
  return definePlugin({
7
7
  identifier: packageIdentifier,
8
8
  name: "StudioCMS Google Plugin",
9
- studiocmsMinimumVersion: "0.1.0-beta.22",
10
9
  hooks: {
11
- "studiocms:auth": ({ setAuthService }) => {
10
+ "studiocms:auth": async ({ setAuthService }) => {
12
11
  setAuthService({
13
12
  oAuthProvider: {
14
13
  name: "google",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@studiocms/google",
3
- "version": "0.2.0",
3
+ "version": "0.3.0",
4
4
  "description": "Add Google OAuth Support to your StudioCMS project with ease!",
5
5
  "author": {
6
6
  "name": "withstudiocms",
@@ -54,10 +54,10 @@
54
54
  "@types/node": "^22.0.0",
55
55
  "astro": "^5.12.9",
56
56
  "vite": "^6.3.4",
57
- "studiocms": "^0.2.0"
57
+ "studiocms": "^0.4.0"
58
58
  },
59
59
  "peerDependencies": {
60
- "effect": "^3.19.14"
60
+ "effect": "^3.19.19"
61
61
  },
62
62
  "scripts": {
63
63
  "build": "buildkit build 'src/**/*.{ts,astro,css,json,png}'",