angular-three 1.5.0 → 1.6.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.
package/index.d.ts CHANGED
@@ -3,8 +3,8 @@ export * from './lib/di/before-render';
3
3
  export * from './lib/di/catalogue';
4
4
  export * from './lib/di/destroy';
5
5
  export * from './lib/di/ref';
6
+ export * from './lib/di/run-in-context';
6
7
  export * from './lib/directives/args';
7
- export * from './lib/directives/ref';
8
8
  export * from './lib/directives/repeat';
9
9
  export * from './lib/loader';
10
10
  export * from './lib/loop';
@@ -0,0 +1 @@
1
+ export declare function createRunInContext(): <TReturn>(cb: () => TReturn) => TReturn;
@@ -54,7 +54,6 @@ export declare class NgtRendererStore {
54
54
  getClosestParentWithCompound(node: NgtRendererNode): NgtRendererNode | null | undefined;
55
55
  getCreationState(): {
56
56
  injectedArgs: any[];
57
- injectedRef: import("angular-three").NgtInjectedRef<unknown> | null;
58
57
  store: NgtStore;
59
58
  };
60
59
  destroy(node: NgtRendererNode, parent?: NgtRendererNode): void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "angular-three",
3
- "version": "1.5.0",
3
+ "version": "1.6.0",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -6,5 +6,5 @@
6
6
  },
7
7
  "main": "./src/index.js",
8
8
  "types": "./src/index.d.ts",
9
- "version": "1.5.0"
9
+ "version": "1.6.0"
10
10
  }
@@ -1,31 +0,0 @@
1
- import { Directive, Input } from '@angular/core';
2
- import { NgtCommonDirective } from './common';
3
- import * as i0 from "@angular/core";
4
- export class NgtRef extends NgtCommonDirective {
5
- set ref(ref) {
6
- if (!ref || ref == null)
7
- return;
8
- this.injected = false;
9
- this.injectedRef = ref;
10
- this.createView();
11
- }
12
- get ref() {
13
- if (this.validate()) {
14
- this.injected = true;
15
- return this.injectedRef;
16
- }
17
- return null;
18
- }
19
- validate() {
20
- return !this.injected && !!this.injectedRef && !this.injectedRef.nativeElement;
21
- }
22
- }
23
- NgtRef.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: NgtRef, deps: null, target: i0.ɵɵFactoryTarget.Directive });
24
- NgtRef.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.1.3", type: NgtRef, isStandalone: true, selector: "[ref]", inputs: { ref: "ref" }, usesInheritance: true, ngImport: i0 });
25
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: NgtRef, decorators: [{
26
- type: Directive,
27
- args: [{ selector: '[ref]', standalone: true }]
28
- }], propDecorators: { ref: [{
29
- type: Input
30
- }] } });
31
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicmVmLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vbGlicy9hbmd1bGFyLXRocmVlL3NyYy9saWIvZGlyZWN0aXZlcy9yZWYudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLFNBQVMsRUFBRSxLQUFLLEVBQUUsTUFBTSxlQUFlLENBQUM7QUFFakQsT0FBTyxFQUFFLGtCQUFrQixFQUFFLE1BQU0sVUFBVSxDQUFDOztBQUc5QyxNQUFNLE9BQU8sTUFBVSxTQUFRLGtCQUFrQjtJQUc3QyxJQUFhLEdBQUcsQ0FBQyxHQUE2QjtRQUMxQyxJQUFJLENBQUMsR0FBRyxJQUFJLEdBQUcsSUFBSSxJQUFJO1lBQUUsT0FBTztRQUNoQyxJQUFJLENBQUMsUUFBUSxHQUFHLEtBQUssQ0FBQztRQUN0QixJQUFJLENBQUMsV0FBVyxHQUFHLEdBQUcsQ0FBQztRQUN2QixJQUFJLENBQUMsVUFBVSxFQUFFLENBQUM7SUFDdEIsQ0FBQztJQUVELElBQUksR0FBRztRQUNILElBQUksSUFBSSxDQUFDLFF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jdGVkID0gZmFsc2U7XG4gICAgICAgIHRoaXMuaW5qZWN0ZWRSZWYgPSByZWY7XG4gICAgICAgIHRoaXMuY3JlYXRlVmlldygpO1xuICAgIH1cblxuICAgIGdldCByZWYoKTogTmd0SW5qZWN0ZWRSZWY8VD4gfCBudWxsIHtcbiAgICAgICAgaWYgKHRoaXMudmFsaWRhdGUoKSkge1xuICAgICAgICAgICAgdGhpcy5pbmplY3RlZCA9IHRydWU7XG4gICAgICAgICAgICByZXR1cm4gdGhpcy5pbmplY3RlZFJlZiBhcyBOZ3RJbmplY3RlZFJlZjxUPjtcbiAgICAgICAgfVxuICAgICAgICByZXR1cm4gbnVsbDtcbiAgICB9XG5cbiAgICBvdmVycmlkZSB2YWxpZGF0ZSgpOiBib29sZWFuIHtcbiAgICAgICAgcmV0dXJuICF0aGlzLmluamVjdGVkICYmICEhdGhpcy5pbmplY3RlZFJlZiAmJiAhdGhpcy5pbmplY3RlZFJlZi5uYXRpdmVFbGVtZW50O1xuICAgIH1cbn1cbiJdfQ==
@@ -1,11 +0,0 @@
1
- import { NgtInjectedRef } from '../di/ref';
2
- import { NgtCommonDirective } from './common';
3
- import * as i0 from "@angular/core";
4
- export declare class NgtRef<T> extends NgtCommonDirective {
5
- private injectedRef?;
6
- set ref(ref: NgtInjectedRef<T> | null);
7
- get ref(): NgtInjectedRef<T> | null;
8
- validate(): boolean;
9
- static ɵfac: i0.ɵɵFactoryDeclaration<NgtRef<any>, never>;
10
- static ɵdir: i0.ɵɵDirectiveDeclaration<NgtRef<any>, "[ref]", never, { "ref": "ref"; }, {}, never, never, true, never>;
11
- }