@sneat/auth-ui 0.8.0 → 0.9.1

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.
@@ -2,6 +2,10 @@ import { Injectable, inject } from '@angular/core';
2
2
  import { ModalController } from '@ionic/angular/standalone';
3
3
  import { UserRequiredFieldsModalComponent } from './user-required-fields-modal.component';
4
4
  import * as i0 from "@angular/core";
5
+ // providedIn:'root' so every consumer resolves it without a local provider.
6
+ // SpacesListComponent injects it, and that component is embedded in
7
+ // SpacesCardComponent (used on app landing pages) — without root provision,
8
+ // rendering the card on a route that doesn't provide it throws NG0201.
5
9
  export class UserRequiredFieldsService {
6
10
  constructor() {
7
11
  this.modalController = inject(ModalController);
@@ -21,9 +25,10 @@ export class UserRequiredFieldsService {
21
25
  });
22
26
  }
23
27
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: UserRequiredFieldsService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
24
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: UserRequiredFieldsService }); }
28
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: UserRequiredFieldsService, providedIn: 'root' }); }
25
29
  }
26
30
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: UserRequiredFieldsService, decorators: [{
27
- type: Injectable
31
+ type: Injectable,
32
+ args: [{ providedIn: 'root' }]
28
33
  }] });
29
34
  //# sourceMappingURL=user-required-fields.service.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"user-required-fields.service.js","sourceRoot":"","sources":["../../../../../../../../libs/auth/ui/src/lib/components/user-required-fields/user-required-fields.service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AACnD,OAAO,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAC;AAC5D,OAAO,EAAE,gCAAgC,EAAE,MAAM,wCAAwC,CAAC;;AAG1F,MAAM,OAAO,yBAAyB;IADtC;QAEmB,oBAAe,GAAG,MAAM,CAAC,eAAe,CAAC,CAAC;KAgB5D;IAdQ,KAAK,CAAC,IAAI;QACf,MAAM,KAAK,GAAG,MAAM,IAAI,CAAC,eAAe,CAAC,MAAM,CAAC;YAC9C,SAAS,EAAE,gCAAgC;SAC5C,CAAC,CAAC;QACH,MAAM,KAAK,CAAC,OAAO,EAAE,CAAC;QACtB,OAAO,IAAI,OAAO,CAAC,CAAC,OAAO,EAAE,MAAM,EAAE,EAAE;YACrC,KAAK;iBACF,YAAY,EAAE;iBACd,IAAI,CAAC,CAAC,KAAK,EAAE,EAAE;gBACd,OAAO,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC;YACnB,CAAC,CAAC;iBACD,KAAK,CAAC,MAAM,CAAC,CAAC;QACnB,CAAC,CAAC,CAAC;IACL,CAAC;8GAhBU,yBAAyB;kHAAzB,yBAAyB;;2FAAzB,yBAAyB;kBADrC,UAAU","sourcesContent":["import { Injectable, inject } from '@angular/core';\nimport { ModalController } from '@ionic/angular/standalone';\nimport { UserRequiredFieldsModalComponent } from './user-required-fields-modal.component';\n\n@Injectable()\nexport class UserRequiredFieldsService {\n private readonly modalController = inject(ModalController);\n\n public async open(): Promise<boolean> {\n const modal = await this.modalController.create({\n component: UserRequiredFieldsModalComponent,\n });\n await modal.present();\n return new Promise((resolve, reject) => {\n modal\n .onDidDismiss()\n .then((value) => {\n resolve(!!value);\n })\n .catch(reject);\n });\n }\n}\n"]}
1
+ {"version":3,"file":"user-required-fields.service.js","sourceRoot":"","sources":["../../../../../../../../libs/auth/ui/src/lib/components/user-required-fields/user-required-fields.service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AACnD,OAAO,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAC;AAC5D,OAAO,EAAE,gCAAgC,EAAE,MAAM,wCAAwC,CAAC;;AAE1F,4EAA4E;AAC5E,oEAAoE;AACpE,4EAA4E;AAC5E,uEAAuE;AAEvE,MAAM,OAAO,yBAAyB;IADtC;QAEmB,oBAAe,GAAG,MAAM,CAAC,eAAe,CAAC,CAAC;KAgB5D;IAdQ,KAAK,CAAC,IAAI;QACf,MAAM,KAAK,GAAG,MAAM,IAAI,CAAC,eAAe,CAAC,MAAM,CAAC;YAC9C,SAAS,EAAE,gCAAgC;SAC5C,CAAC,CAAC;QACH,MAAM,KAAK,CAAC,OAAO,EAAE,CAAC;QACtB,OAAO,IAAI,OAAO,CAAC,CAAC,OAAO,EAAE,MAAM,EAAE,EAAE;YACrC,KAAK;iBACF,YAAY,EAAE;iBACd,IAAI,CAAC,CAAC,KAAK,EAAE,EAAE;gBACd,OAAO,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC;YACnB,CAAC,CAAC;iBACD,KAAK,CAAC,MAAM,CAAC,CAAC;QACnB,CAAC,CAAC,CAAC;IACL,CAAC;8GAhBU,yBAAyB;kHAAzB,yBAAyB,cADZ,MAAM;;2FACnB,yBAAyB;kBADrC,UAAU;mBAAC,EAAE,UAAU,EAAE,MAAM,EAAE","sourcesContent":["import { Injectable, inject } from '@angular/core';\nimport { ModalController } from '@ionic/angular/standalone';\nimport { UserRequiredFieldsModalComponent } from './user-required-fields-modal.component';\n\n// providedIn:'root' so every consumer resolves it without a local provider.\n// SpacesListComponent injects it, and that component is embedded in\n// SpacesCardComponent (used on app landing pages) — without root provision,\n// rendering the card on a route that doesn't provide it throws NG0201.\n@Injectable({ providedIn: 'root' })\nexport class UserRequiredFieldsService {\n private readonly modalController = inject(ModalController);\n\n public async open(): Promise<boolean> {\n const modal = await this.modalController.create({\n component: UserRequiredFieldsModalComponent,\n });\n await modal.present();\n return new Promise((resolve, reject) => {\n modal\n .onDidDismiss()\n .then((value) => {\n resolve(!!value);\n })\n .catch(reject);\n });\n }\n}\n"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sneat/auth-ui",
3
- "version": "0.8.0",
3
+ "version": "0.9.1",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },