@symbiote-native/splash-screen 1.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.
Files changed (22) hide show
  1. package/build/angular/index.js +2 -2
  2. package/build/angular/services/{hide-animation.service.d.ts → hide-animation.service/index.d.ts} +1 -1
  3. package/build/angular/services/{hide-animation.service.js → hide-animation.service/index.js} +1 -1
  4. package/build/core/hide-animation-controller.js +1 -1
  5. package/build/core/index.js +4 -4
  6. package/build/react/hooks/{use-hide-animation.d.ts → use-hide-animation/index.d.ts} +1 -1
  7. package/build/react/hooks/{use-hide-animation.js → use-hide-animation/index.js} +1 -1
  8. package/build/react/index.js +2 -2
  9. package/build/vue/composables/{use-hide-animation.d.ts → use-hide-animation/index.d.ts} +1 -1
  10. package/build/vue/composables/{use-hide-animation.js → use-hide-animation/index.js} +1 -1
  11. package/build/vue/index.js +2 -2
  12. package/build-ngc/angular/services/{hide-animation.service.d.ts → hide-animation.service/index.d.ts} +1 -1
  13. package/build-ngc/angular/services/{hide-animation.service.js → hide-animation.service/index.js} +2 -2
  14. package/build-ngc/angular/services/hide-animation.service/index.js.map +1 -0
  15. package/package.json +13 -11
  16. package/src/angular/services/{hide-animation.service.test.ts → hide-animation.service/hide-animation.service.test.ts} +2 -2
  17. package/src/angular/services/{hide-animation.service.ts → hide-animation.service/index.ts} +1 -1
  18. package/src/react/hooks/{use-hide-animation.ts → use-hide-animation/index.ts} +1 -1
  19. package/src/react/hooks/{use-hide-animation.test.tsx → use-hide-animation/use-hide-animation.test.tsx} +2 -2
  20. package/src/vue/composables/{use-hide-animation.ts → use-hide-animation/index.ts} +1 -1
  21. package/src/vue/composables/{use-hide-animation.test.ts → use-hide-animation/use-hide-animation.test.ts} +2 -2
  22. package/build-ngc/angular/services/hide-animation.service.js.map +0 -1
@@ -1,5 +1,5 @@
1
1
  // hide()/isVisible() carry zero framework dependency — re-exported verbatim from core, same as
2
2
  // every other adapter. HideAnimationService is the Angular-only lifecycle half; the state
3
3
  // machine, style computation, and native-constants read all live in core, shared with React/Vue.
4
- export { hide, isVisible } from '../core';
5
- export { HideAnimationService } from './services/hide-animation.service';
4
+ export { hide, isVisible } from '../core/index.js';
5
+ export { HideAnimationService } from './services/hide-animation.service/index.js';
@@ -1,5 +1,5 @@
1
1
  import { type Signal } from '@angular/core';
2
- import { type IHideAnimationConfig, type IHideAnimationResult } from '../../core';
2
+ import { type IHideAnimationConfig, type IHideAnimationResult } from '../../../core';
3
3
  export declare class HideAnimationService {
4
4
  private readonly injector;
5
5
  connect(getConfig: () => IHideAnimationConfig): Signal<IHideAnimationResult>;
@@ -33,7 +33,7 @@ var __runInitializers = (this && this.__runInitializers) || function (thisArg, i
33
33
  return useValue ? value : void 0;
34
34
  };
35
35
  import { computed, effect, inject, Injectable, Injector } from '@angular/core';
36
- import { computeHideAnimationStyles, getHideAnimationConstants, HideAnimationController, } from '../../core';
36
+ import { computeHideAnimationStyles, getHideAnimationConstants, HideAnimationController, } from '../../../core/index.js';
37
37
  // Angular twin of React's `useHideAnimation` hook and Vue's `useHideAnimation` composable.
38
38
  // Angular has no per-instance hook — state and lifecycle live in DI instead, so `connect()`
39
39
  // stands in for the hook's role: call it ONCE (typically from a component's field initializer,
@@ -1,4 +1,4 @@
1
- import { hide } from './hide';
1
+ import { hide } from './hide.js';
2
2
  // Faithful port of react-native-bootsplash's useHideAnimation readiness gate (its
3
3
  // src/index.ts): hide() fires exactly once, after layout + both images (if requested) +
4
4
  // the caller all report ready, then the caller's own fade-out `animate()` runs. logoReady/
@@ -1,4 +1,4 @@
1
- export { hide, isVisible } from './hide';
2
- export { HideAnimationController } from './hide-animation-controller';
3
- export { computeHideAnimationStyles } from './compute-hide-animation-styles';
4
- export { getHideAnimationConstants } from './native-module';
1
+ export { hide, isVisible } from './hide.js';
2
+ export { HideAnimationController } from './hide-animation-controller.js';
3
+ export { computeHideAnimationStyles } from './compute-hide-animation-styles.js';
4
+ export { getHideAnimationConstants } from './native-module.js';
@@ -1,2 +1,2 @@
1
- import { type IHideAnimationConfig, type IHideAnimationResult } from '../../core';
1
+ import { type IHideAnimationConfig, type IHideAnimationResult } from '../../../core';
2
2
  export declare function useHideAnimation(config: IHideAnimationConfig): IHideAnimationResult;
@@ -14,7 +14,7 @@
14
14
  // Reproducing the fine-grained list isn't worth it for a splash screen shown for a couple of
15
15
  // renders at boot; computing plainly is honest about the actual cost and simpler to read.
16
16
  import { useEffect, useRef, useState } from 'react';
17
- import { computeHideAnimationStyles, getHideAnimationConstants, HideAnimationController, } from '../../core';
17
+ import { computeHideAnimationStyles, getHideAnimationConstants, HideAnimationController, } from '../../../core/index.js';
18
18
  export function useHideAnimation(config) {
19
19
  const controllerRef = useRef(null);
20
20
  if (controllerRef.current == null) {
@@ -3,5 +3,5 @@
3
3
  // HideAnimationController + computeHideAnimationStyles with React's own lifecycle
4
4
  // (hooks/use-hide-animation.ts) — mirrors the lifecycle-bucket naming convention of
5
5
  // adapters/react/src/hooks (never `composables`, that's Vue's term).
6
- export { hide, isVisible } from '../core';
7
- export { useHideAnimation } from './hooks/use-hide-animation';
6
+ export { hide, isVisible } from '../core/index.js';
7
+ export { useHideAnimation } from './hooks/use-hide-animation/index.js';
@@ -1,3 +1,3 @@
1
1
  import { type ComputedRef } from '@vue/runtime-core';
2
- import { type IHideAnimationConfig, type IHideAnimationResult } from '../../core';
2
+ import { type IHideAnimationConfig, type IHideAnimationResult } from '../../../core';
3
3
  export declare function useHideAnimation(getConfig: () => IHideAnimationConfig): ComputedRef<IHideAnimationResult>;
@@ -10,7 +10,7 @@
10
10
  // add an unnecessary reactive Proxy — same identity discipline as
11
11
  // `use-color-scheme.ts`'s subscription handle.
12
12
  import { computed, watchEffect } from '@vue/runtime-core';
13
- import { computeHideAnimationStyles, getHideAnimationConstants, HideAnimationController, } from '../../core';
13
+ import { computeHideAnimationStyles, getHideAnimationConstants, HideAnimationController, } from '../../../core/index.js';
14
14
  export function useHideAnimation(getConfig) {
15
15
  const controller = new HideAnimationController(getConfig());
16
16
  const constants = getHideAnimationConstants();
@@ -3,5 +3,5 @@
3
3
  // wraps HideAnimationController + computeHideAnimationStyles with Vue's own reactivity
4
4
  // (composables/use-hide-animation.ts) — mirrors the lifecycle-bucket naming convention
5
5
  // of adapters/vue/src/composables (never `hooks/`, that's React's term).
6
- export { hide, isVisible } from '../core';
7
- export { useHideAnimation } from './composables/use-hide-animation';
6
+ export { hide, isVisible } from '../core/index.js';
7
+ export { useHideAnimation } from './composables/use-hide-animation/index.js';
@@ -1,5 +1,5 @@
1
1
  import { type Signal } from '@angular/core';
2
- import { type IHideAnimationConfig, type IHideAnimationResult } from '../../core';
2
+ import { type IHideAnimationConfig, type IHideAnimationResult } from '../../../core';
3
3
  import * as i0 from "@angular/core";
4
4
  export declare class HideAnimationService {
5
5
  private readonly injector;
@@ -1,5 +1,5 @@
1
1
  import { computed, effect, inject, Injectable, Injector } from '@angular/core';
2
- import { computeHideAnimationStyles, getHideAnimationConstants, HideAnimationController, } from '../../core';
2
+ import { computeHideAnimationStyles, getHideAnimationConstants, HideAnimationController, } from '../../../core';
3
3
  import * as i0 from "@angular/core";
4
4
  // Angular twin of React's `useHideAnimation` hook and Vue's `useHideAnimation` composable.
5
5
  // Angular has no per-instance hook — state and lifecycle live in DI instead, so `connect()`
@@ -29,4 +29,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.5", ngImpor
29
29
  type: Injectable,
30
30
  args: [{ providedIn: 'root' }]
31
31
  }] });
32
- //# sourceMappingURL=hide-animation.service.js.map
32
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/angular/services/hide-animation.service/index.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,eAAe,CAAC;;AAEvB,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"}
package/package.json CHANGED
@@ -1,7 +1,8 @@
1
1
  {
2
2
  "name": "@symbiote-native/splash-screen",
3
- "version": "1.0.0",
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",
@@ -59,20 +60,20 @@
59
60
  }
60
61
  },
61
62
  "dependencies": {
62
- "react-native-bootsplash": "^7.3.2",
63
+ "react-native-bootsplash": "7.3.2",
63
64
  "react-native-is-edge-to-edge": "^1.3.1",
64
- "@symbiote-native/components": "0.2.4",
65
- "@symbiote-native/engine": "0.1.5"
65
+ "@symbiote-native/components": "0.2.6"
66
66
  },
67
67
  "peerDependencies": {
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.4.0",
74
- "@symbiote-native/react": "0.2.5",
75
- "@symbiote-native/vue": "0.3.5"
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,10 +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/angular": "0.4.0",
110
- "@symbiote-native/react": "0.2.5",
111
- "@symbiote-native/test-utils": "0.1.5",
112
- "@symbiote-native/vue": "0.3.5"
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"
113
115
  },
114
116
  "scripts": {
115
117
  "typecheck": "tsc --build",
@@ -11,8 +11,8 @@ import { flattenStyle } from '@symbiote-native/engine';
11
11
  import { installFabric } from '@symbiote-native/test-utils';
12
12
  import type { IImageSourceProp } from '@symbiote-native/components';
13
13
  import { hide as mockedHide } from 'react-native-bootsplash';
14
- import type { IHideAnimationResult } from '../../core';
15
- import { HideAnimationService } from './hide-animation.service';
14
+ import type { IHideAnimationResult } from '../../../core';
15
+ import { HideAnimationService } from './index';
16
16
 
17
17
  vi.mock('react-native-bootsplash', () => ({
18
18
  hide: vi.fn(() => Promise.resolve()),
@@ -5,7 +5,7 @@ import {
5
5
  HideAnimationController,
6
6
  type IHideAnimationConfig,
7
7
  type IHideAnimationResult,
8
- } from '../../core';
8
+ } from '../../../core';
9
9
 
10
10
  // Angular twin of React's `useHideAnimation` hook and Vue's `useHideAnimation` composable.
11
11
  // Angular has no per-instance hook — state and lifecycle live in DI instead, so `connect()`
@@ -21,7 +21,7 @@ import {
21
21
  type IHideAnimationConfig,
22
22
  type IHideAnimationConstants,
23
23
  type IHideAnimationResult,
24
- } from '../../core';
24
+ } from '../../../core';
25
25
 
26
26
  export function useHideAnimation(config: IHideAnimationConfig): IHideAnimationResult {
27
27
  const controllerRef = useRef<HideAnimationController | null>(null);
@@ -6,8 +6,8 @@ import { createElement, type ReactElement } from 'react';
6
6
  import { afterEach, beforeEach, describe, expect, it, vi } from 'vitest';
7
7
  import { mount, unmount, View } from '@symbiote-native/react';
8
8
  import { installFabric } from '@symbiote-native/test-utils';
9
- import { useHideAnimation } from './use-hide-animation';
10
- import type { IHideAnimationConfig, IHideAnimationResult, IManifest } from '../../core';
9
+ import { useHideAnimation } from './index';
10
+ import type { IHideAnimationConfig, IHideAnimationResult, IManifest } from '../../../core';
11
11
 
12
12
  vi.mock('react-native-bootsplash', () => ({
13
13
  hide: vi.fn(() => Promise.resolve()),
@@ -16,7 +16,7 @@ import {
16
16
  HideAnimationController,
17
17
  type IHideAnimationConfig,
18
18
  type IHideAnimationResult,
19
- } from '../../core';
19
+ } from '../../../core';
20
20
 
21
21
  export function useHideAnimation(
22
22
  getConfig: () => IHideAnimationConfig,
@@ -10,8 +10,8 @@ import { effectScope, nextTick, ref, type EffectScope, type Ref } from '@vue/run
10
10
  import { afterEach, beforeEach, describe, expect, it, vi } from 'vitest';
11
11
  import { hide } from 'react-native-bootsplash';
12
12
  import type { IStyleProp, IViewStyle } from '@symbiote-native/engine';
13
- import { useHideAnimation } from './use-hide-animation';
14
- import type { IHideAnimationConfig, IManifest } from '../../core';
13
+ import { useHideAnimation } from './index';
14
+ import type { IHideAnimationConfig, IManifest } from '../../../core';
15
15
 
16
16
  vi.mock('react-native-bootsplash', () => ({
17
17
  hide: vi.fn(() => Promise.resolve()),
@@ -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"}