@symbiote-native/splash-screen 2.0.0 → 3.0.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/package.json
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@symbiote-native/splash-screen",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "3.0.0",
|
|
4
4
|
"description": "Third-party splash-screen native module wrapped for SymbioteNative — one framework-agnostic core, built once and reachable from the React, Vue, and Angular adapters.",
|
|
5
|
+
"license": "MIT",
|
|
5
6
|
"repository": {
|
|
6
7
|
"type": "git",
|
|
7
8
|
"url": "git+https://github.com/OneEyed1366/symbiote-native.git",
|
|
@@ -61,18 +62,18 @@
|
|
|
61
62
|
"dependencies": {
|
|
62
63
|
"react-native-bootsplash": "7.3.2",
|
|
63
64
|
"react-native-is-edge-to-edge": "^1.3.1",
|
|
64
|
-
"@symbiote-native/components": "0.2.
|
|
65
|
+
"@symbiote-native/components": "0.2.6"
|
|
65
66
|
},
|
|
66
67
|
"peerDependencies": {
|
|
67
|
-
"@symbiote-native/engine": ">=0.1.
|
|
68
|
+
"@symbiote-native/engine": ">=0.1.7",
|
|
68
69
|
"@angular/core": ">=20",
|
|
69
70
|
"@vue/runtime-core": "^3.5.13",
|
|
70
71
|
"react": ">=19.0.0",
|
|
71
72
|
"react-native": ">=0.86",
|
|
72
73
|
"vue": ">=3.5.0",
|
|
73
|
-
"@symbiote-native/angular": "0.
|
|
74
|
-
"@symbiote-native/
|
|
75
|
-
"@symbiote-native/
|
|
74
|
+
"@symbiote-native/angular": "0.6.0",
|
|
75
|
+
"@symbiote-native/vue": "0.3.7",
|
|
76
|
+
"@symbiote-native/react": "0.2.7"
|
|
76
77
|
},
|
|
77
78
|
"peerDependenciesMeta": {
|
|
78
79
|
"@symbiote-native/angular": {
|
|
@@ -106,11 +107,11 @@
|
|
|
106
107
|
"@vue/runtime-core": "^3.5.13",
|
|
107
108
|
"react": "19.2.3",
|
|
108
109
|
"typescript": "~6.0.0",
|
|
109
|
-
"@symbiote-native/
|
|
110
|
-
"@symbiote-native/
|
|
111
|
-
"@symbiote-native/engine": "0.1.
|
|
112
|
-
"@symbiote-native/
|
|
113
|
-
"@symbiote-native/
|
|
110
|
+
"@symbiote-native/angular": "0.6.0",
|
|
111
|
+
"@symbiote-native/react": "0.2.7",
|
|
112
|
+
"@symbiote-native/engine": "0.1.7",
|
|
113
|
+
"@symbiote-native/test-utils": "0.1.6",
|
|
114
|
+
"@symbiote-native/vue": "0.3.7"
|
|
114
115
|
},
|
|
115
116
|
"scripts": {
|
|
116
117
|
"typecheck": "tsc --build",
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { type Signal } from '@angular/core';
|
|
2
|
-
import { type IHideAnimationConfig, type IHideAnimationResult } from '../../core';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
export declare class HideAnimationService {
|
|
5
|
-
private readonly injector;
|
|
6
|
-
connect(getConfig: () => IHideAnimationConfig): Signal<IHideAnimationResult>;
|
|
7
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<HideAnimationService, never>;
|
|
8
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<HideAnimationService>;
|
|
9
|
-
}
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import { computed, effect, inject, Injectable, Injector } from '@angular/core';
|
|
2
|
-
import { computeHideAnimationStyles, getHideAnimationConstants, HideAnimationController, } from '../../core';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
// Angular twin of React's `useHideAnimation` hook and Vue's `useHideAnimation` composable.
|
|
5
|
-
// Angular has no per-instance hook — state and lifecycle live in DI instead, so `connect()`
|
|
6
|
-
// stands in for the hook's role: call it ONCE (typically from a component's field initializer,
|
|
7
|
-
// inside an injection context) with a GETTER, so it can keep reading the caller's own signals —
|
|
8
|
-
// the same reason Vue's composable also takes a getter rather than a value: there is no
|
|
9
|
-
// re-render/re-setup cycle here to hang a fresh read off of.
|
|
10
|
-
//
|
|
11
|
-
// readonly hideAnimation = inject(HideAnimationService).connect(() => this.config());
|
|
12
|
-
// // template: [style]="hideAnimation().container.style", (layout)="..." etc.
|
|
13
|
-
export class HideAnimationService {
|
|
14
|
-
// Captured in the constructor (itself always run inside an injection context by Angular's
|
|
15
|
-
// own DI) so `connect()` can create an `effect()` even when called from plain field-initializer
|
|
16
|
-
// code that is not, on its own, an active injection context — mirrors create-tunnel.ts's
|
|
17
|
-
// `TunnelOut`, which passes its own captured `Injector` to `effect()` for the same reason.
|
|
18
|
-
injector = inject(Injector);
|
|
19
|
-
connect(getConfig) {
|
|
20
|
-
const controller = new HideAnimationController(getConfig());
|
|
21
|
-
const constants = getHideAnimationConstants();
|
|
22
|
-
effect(() => controller.updateConfig(getConfig()), { injector: this.injector });
|
|
23
|
-
return computed(() => computeHideAnimationStyles(getConfig(), constants, controller));
|
|
24
|
-
}
|
|
25
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: HideAnimationService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
26
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: HideAnimationService, providedIn: 'root' });
|
|
27
|
-
}
|
|
28
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: HideAnimationService, decorators: [{
|
|
29
|
-
type: Injectable,
|
|
30
|
-
args: [{ providedIn: 'root' }]
|
|
31
|
-
}] });
|
|
32
|
-
//# sourceMappingURL=hide-animation.service.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"hide-animation.service.js","sourceRoot":"","sources":["../../../src/angular/services/hide-animation.service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAE,MAAM,EAAE,UAAU,EAAE,QAAQ,EAAe,MAAM,eAAe,CAAC;AAC5F,OAAO,EACL,0BAA0B,EAC1B,yBAAyB,EACzB,uBAAuB,GAGxB,MAAM,YAAY,CAAC;;AAEpB,2FAA2F;AAC3F,4FAA4F;AAC5F,+FAA+F;AAC/F,gGAAgG;AAChG,wFAAwF;AACxF,6DAA6D;AAC7D,EAAE;AACF,wFAAwF;AACxF,gFAAgF;AAEhF,MAAM,OAAO,oBAAoB;IAC/B,0FAA0F;IAC1F,gGAAgG;IAChG,yFAAyF;IACzF,2FAA2F;IAC1E,QAAQ,GAAG,MAAM,CAAC,QAAQ,CAAC,CAAC;IAE7C,OAAO,CAAC,SAAqC;QAC3C,MAAM,UAAU,GAAG,IAAI,uBAAuB,CAAC,SAAS,EAAE,CAAC,CAAC;QAC5D,MAAM,SAAS,GAAG,yBAAyB,EAAE,CAAC;QAE9C,MAAM,CAAC,GAAG,EAAE,CAAC,UAAU,CAAC,YAAY,CAAC,SAAS,EAAE,CAAC,EAAE,EAAE,QAAQ,EAAE,IAAI,CAAC,QAAQ,EAAE,CAAC,CAAC;QAEhF,OAAO,QAAQ,CAAC,GAAG,EAAE,CAAC,0BAA0B,CAAC,SAAS,EAAE,EAAE,SAAS,EAAE,UAAU,CAAC,CAAC,CAAC;IACxF,CAAC;uGAdU,oBAAoB;2GAApB,oBAAoB,cADP,MAAM;;2FACnB,oBAAoB;kBADhC,UAAU;mBAAC,EAAE,UAAU,EAAE,MAAM,EAAE"}
|