@geexcode/geex-angular 0.0.1 → 0.0.2

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,4 +1,4 @@
1
- import { WritableSignal, Injector, Provider } from '@angular/core';
1
+ import { WritableSignal, InjectionToken, Injector, Provider } from '@angular/core';
2
2
  import { Observable } from 'rxjs';
3
3
 
4
4
  interface Tenant {
@@ -85,6 +85,14 @@ type GeexModule<TExtension = any> = {} & TExtension;
85
85
 
86
86
  type GeexOverrides<TExtensionModules extends Record<string, GeexModule> = {}> = Partial<GeexModules<TExtensionModules>>;
87
87
  declare let geex: GeexModules;
88
+ declare let Geex: InjectionToken<{
89
+ tenant: TenantModule;
90
+ auth: AuthModule;
91
+ identity: IdentityModule;
92
+ messaging: MessagingModule;
93
+ settings: SettingsModule;
94
+ ui: UiModule;
95
+ }>;
88
96
  /**
89
97
  * Initialize geex singleton with concrete dependencies
90
98
  * @param deps Required runtime services
@@ -94,4 +102,4 @@ declare function configGeex<TExtensionModules extends Record<string, GeexModule>
94
102
 
95
103
  declare function provideGeex(injector: any, overrides?: GeexOverrides): Provider[];
96
104
 
97
- export { type GeexOverrides, configGeex, geex, provideGeex };
105
+ export { Geex, type GeexOverrides, configGeex, geex, provideGeex };
package/dist/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { WritableSignal, Injector, Provider } from '@angular/core';
1
+ import { WritableSignal, InjectionToken, Injector, Provider } from '@angular/core';
2
2
  import { Observable } from 'rxjs';
3
3
 
4
4
  interface Tenant {
@@ -85,6 +85,14 @@ type GeexModule<TExtension = any> = {} & TExtension;
85
85
 
86
86
  type GeexOverrides<TExtensionModules extends Record<string, GeexModule> = {}> = Partial<GeexModules<TExtensionModules>>;
87
87
  declare let geex: GeexModules;
88
+ declare let Geex: InjectionToken<{
89
+ tenant: TenantModule;
90
+ auth: AuthModule;
91
+ identity: IdentityModule;
92
+ messaging: MessagingModule;
93
+ settings: SettingsModule;
94
+ ui: UiModule;
95
+ }>;
88
96
  /**
89
97
  * Initialize geex singleton with concrete dependencies
90
98
  * @param deps Required runtime services
@@ -94,4 +102,4 @@ declare function configGeex<TExtensionModules extends Record<string, GeexModule>
94
102
 
95
103
  declare function provideGeex(injector: any, overrides?: GeexOverrides): Provider[];
96
104
 
97
- export { type GeexOverrides, configGeex, geex, provideGeex };
105
+ export { Geex, type GeexOverrides, configGeex, geex, provideGeex };
package/dist/index.js CHANGED
@@ -30,6 +30,7 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
30
30
  // src/index.ts
31
31
  var index_exports = {};
32
32
  __export(index_exports, {
33
+ Geex: () => Geex,
33
34
  configGeex: () => configGeex,
34
35
  geex: () => geex,
35
36
  provideGeex: () => provideGeex
@@ -169,6 +170,7 @@ function createUiModule(injector) {
169
170
 
170
171
  // src/geex.ts
171
172
  var geex;
173
+ var Geex = new import_core2.InjectionToken("Geex");
172
174
  function configGeex(injector, overrides) {
173
175
  (0, import_core2.runInInjectionContext)(injector, () => {
174
176
  const modules = {
@@ -195,11 +197,12 @@ function provideGeex(injector, overrides) {
195
197
  configGeex(injector, overrides);
196
198
  return [
197
199
  { provide: GEEX_CONFIG, useValue: { injector, overrides } },
198
- { provide: geex, useExisting: geex }
200
+ { provide: Geex, useExisting: geex }
199
201
  ];
200
202
  }
201
203
  // Annotate the CommonJS export names for ESM import in node:
202
204
  0 && (module.exports = {
205
+ Geex,
203
206
  configGeex,
204
207
  geex,
205
208
  provideGeex
package/dist/index.mjs CHANGED
@@ -1,7 +1,7 @@
1
1
  import "./chunk-EBO3CZXG.mjs";
2
2
 
3
3
  // src/geex.ts
4
- import { runInInjectionContext as runInInjectionContext2 } from "@angular/core";
4
+ import { InjectionToken, runInInjectionContext as runInInjectionContext2 } from "@angular/core";
5
5
 
6
6
  // src/modules.ts
7
7
  import { Apollo } from "apollo-angular";
@@ -133,6 +133,7 @@ function createUiModule(injector) {
133
133
 
134
134
  // src/geex.ts
135
135
  var geex;
136
+ var Geex = new InjectionToken("Geex");
136
137
  function configGeex(injector, overrides) {
137
138
  runInInjectionContext2(injector, () => {
138
139
  const modules = {
@@ -151,18 +152,19 @@ function configGeex(injector, overrides) {
151
152
  }
152
153
 
153
154
  // src/tokens.ts
154
- import { InjectionToken } from "@angular/core";
155
- var GEEX_CONFIG = new InjectionToken("GEEX_CONFIG");
155
+ import { InjectionToken as InjectionToken2 } from "@angular/core";
156
+ var GEEX_CONFIG = new InjectionToken2("GEEX_CONFIG");
156
157
 
157
158
  // src/provide-geex.ts
158
159
  function provideGeex(injector, overrides) {
159
160
  configGeex(injector, overrides);
160
161
  return [
161
162
  { provide: GEEX_CONFIG, useValue: { injector, overrides } },
162
- { provide: geex, useExisting: geex }
163
+ { provide: Geex, useExisting: geex }
163
164
  ];
164
165
  }
165
166
  export {
167
+ Geex,
166
168
  configGeex,
167
169
  geex,
168
170
  provideGeex
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@geexcode/geex-angular",
3
- "version": "0.0.1",
3
+ "version": "0.0.2",
4
4
  "description": "Angular adapter for Geex core.",
5
5
  "module": "dist/index.js",
6
6
  "main": "dist/index.cjs",