@gomusdev/web-components 4.8.2 → 4.9.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.
@@ -496,7 +496,23 @@ export declare class Shop {
496
496
  }): Promise<PasswordUpdateResponse>;
497
497
  passwordReset(params: {
498
498
  email: string;
499
+ redirect_url?: string;
499
500
  }): Promise<PasswordResetResponse>;
501
+ /**
502
+ * Sets a new password using the one-time credentials the backend appends to
503
+ * the reset-mail redirect (`access-token`, `client`, `uid` query params).
504
+ * Unlike `updatePassword` no `current_password` is needed — the reset link
505
+ * flags the session with `allow_password_change`. The 200 response carries
506
+ * fresh auth headers which AuthMiddleware ingests, signing the customer in.
507
+ */
508
+ setNewPassword(params: {
509
+ password: string;
510
+ password_confirmation: string;
511
+ }, headers: {
512
+ 'access-token': string;
513
+ client: string;
514
+ uid: string;
515
+ }): Promise<PasswordUpdateResponse>;
500
516
  activateMembership(params: MembershipActivationParams): Promise<MembershipActivationResponse>;
501
517
  checkout(params: CheckoutParams): Promise<CheckoutResponse>;
502
518
  createCart(params: PostCartParams): Promise<PostCartResponse>;
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "name": "Giantmonkey GmbH"
5
5
  },
6
6
  "license": "MIT",
7
- "version": "4.8.2",
7
+ "version": "4.9.0",
8
8
  "type": "module",
9
9
  "main": "./dist-js/gomus-webcomponents.iife.js",
10
10
  "module": "./dist-js/gomus-webcomponents.iife.js",