@ngxs/store
Advanced tools
Comparing version 18.0.0-dev.master-89fe322 to 18.0.0-dev.master-8dae6f0
@@ -1,2 +0,2 @@ | ||
import { OnDestroy, Signal } from '@angular/core'; | ||
import { OnDestroy } from '@angular/core'; | ||
import { ɵPlainObject } from './symbols'; | ||
@@ -10,3 +10,2 @@ import { ɵOrderedBehaviorSubject } from './custom-rxjs-subjects'; | ||
export declare class ɵStateStream extends ɵOrderedBehaviorSubject<ɵPlainObject> implements OnDestroy { | ||
readonly state: Signal<ɵPlainObject>; | ||
constructor(); | ||
@@ -13,0 +12,0 @@ ngOnDestroy(): void; |
{ | ||
"name": "@ngxs/store", | ||
"version": "18.0.0-dev.master-89fe322", | ||
"version": "18.0.0-dev.master-8dae6f0", | ||
"license": "MIT", | ||
@@ -23,2 +23,8 @@ "sideEffects": false, | ||
}, | ||
"./experimental": { | ||
"types": "./experimental/index.d.ts", | ||
"esm2022": "./esm2022/experimental/ngxs-store-experimental.mjs", | ||
"esm": "./esm2022/experimental/ngxs-store-experimental.mjs", | ||
"default": "./fesm2022/ngxs-store-experimental.mjs" | ||
}, | ||
"./internals": { | ||
@@ -25,0 +31,0 @@ "types": "./internals/index.d.ts", |
@@ -14,6 +14,6 @@ "use strict"; | ||
const schematics_1 = require("@angular-devkit/schematics"); | ||
const rules_1 = require("../utils/ng-utils/standalone/rules"); | ||
const util_1 = require("../utils/ng-utils/standalone/util"); | ||
const rules_1 = require("@schematics/angular/utility/standalone/rules"); | ||
const util_1 = require("@schematics/angular/utility/standalone/util"); | ||
const ast_utils_1 = require("@schematics/angular/utility/ast-utils"); | ||
const app_config_1 = require("../utils/ng-utils/standalone/app_config"); | ||
const app_config_1 = require("@schematics/angular/utility/standalone/app_config"); | ||
const lib_config_1 = require("../utils/common/lib.config"); | ||
@@ -20,0 +20,0 @@ function addDeclarationToStandaloneApp(options) { |
@@ -17,6 +17,6 @@ "use strict"; | ||
const lib_config_1 = require("../utils/common/lib.config"); | ||
const project_1 = require("../utils/ng-utils/project"); | ||
const ng_ast_utils_1 = require("../utils/ng-utils/ng-ast-utils"); | ||
const project_1 = require("../utils/project"); | ||
const add_declaration_1 = require("./add-declaration"); | ||
const project_2 = require("../utils/project"); | ||
const ng_ast_utils_1 = require("@schematics/angular/utility/ng-ast-utils"); | ||
const versions = require('./../utils/versions.json'); | ||
@@ -23,0 +23,0 @@ function ngAdd(options) { |
@@ -6,4 +6,4 @@ "use strict"; | ||
const generate_utils_1 = require("../utils/generate-utils"); | ||
const ng_ast_utils_1 = require("../utils/ng-utils/ng-ast-utils"); | ||
const project_1 = require("../utils/ng-utils/project"); | ||
const ng_ast_utils_1 = require("@schematics/angular/utility/ng-ast-utils"); | ||
const project_1 = require("../utils/project"); | ||
const normalize_options_1 = require("../utils/normalize-options"); | ||
@@ -10,0 +10,0 @@ function starterKit(options) { |
@@ -8,4 +8,4 @@ "use strict"; | ||
const generate_utils_1 = require("../utils/generate-utils"); | ||
const ng_ast_utils_1 = require("../utils/ng-utils/ng-ast-utils"); | ||
const project_1 = require("../utils/ng-utils/project"); | ||
const ng_ast_utils_1 = require("@schematics/angular/utility/ng-ast-utils"); | ||
const project_1 = require("../utils/project"); | ||
const normalize_options_1 = require("../utils/normalize-options"); | ||
@@ -12,0 +12,0 @@ function state(options) { |
@@ -8,4 +8,4 @@ "use strict"; | ||
const generate_utils_1 = require("../utils/generate-utils"); | ||
const ng_ast_utils_1 = require("../utils/ng-utils/ng-ast-utils"); | ||
const project_1 = require("../utils/ng-utils/project"); | ||
const ng_ast_utils_1 = require("@schematics/angular/utility/ng-ast-utils"); | ||
const project_1 = require("../utils/project"); | ||
const normalize_options_1 = require("../utils/normalize-options"); | ||
@@ -12,0 +12,0 @@ function store(options) { |
@@ -20,1 +20,2 @@ import { TargetDefinition } from '@schematics/angular/utility/workspace'; | ||
export declare function isLib(host: Tree, project?: string): boolean; | ||
export declare function getProjectMainFile(host: Tree, project?: string): string | null; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.isLib = exports.getProjectData = exports.getProject = void 0; | ||
exports.getProjectMainFile = exports.isLib = exports.getProjectData = exports.getProject = void 0; | ||
const config_1 = require("./config"); | ||
const schematics_1 = require("@angular-devkit/schematics"); | ||
const path_1 = require("path"); | ||
@@ -46,2 +47,23 @@ function getProject(host, project) { | ||
exports.isLib = isLib; | ||
function getProjectMainFile(host, project) { | ||
const resolvedProject = getProject(host, project); | ||
if (!resolvedProject) { | ||
if (!project) { | ||
throw new schematics_1.SchematicsException(`Could not determine the project name. Make sure to provide the "project" option manually.`); | ||
} | ||
throw new schematics_1.SchematicsException(`Project "${project}" does not exist.`); | ||
} | ||
if (isLib(host, project)) { | ||
return null; | ||
} | ||
const projectOptions = resolvedProject.architect['build'].options; | ||
if (projectOptions === null || projectOptions === void 0 ? void 0 : projectOptions.main) { | ||
return projectOptions.main; | ||
} | ||
else if (projectOptions === null || projectOptions === void 0 ? void 0 : projectOptions.browser) { | ||
return projectOptions.browser; | ||
} | ||
throw new schematics_1.SchematicsException('No `main` or `browser` files have been found.'); | ||
} | ||
exports.getProjectMainFile = getProjectMainFile; | ||
//# sourceMappingURL=project.js.map |
@@ -43,2 +43,3 @@ import { Signal } from '@angular/core'; | ||
selectSignal<T>(selector: TypedSelector<T>): Signal<T>; | ||
private selectFromStateStream; | ||
/** | ||
@@ -45,0 +46,0 @@ * Allow the user to subscribe to the root of the state |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
1019692
289
8968