@sarasanalytics-com/design-system 0.0.106 → 0.0.108

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.
@@ -0,0 +1,7 @@
1
+ export interface TextAnimationConfig {
2
+ words: string[];
3
+ prefix?: string;
4
+ animationDelay?: number;
5
+ animationDuration?: number;
6
+ showFirstWordImmediately?: boolean;
7
+ }
@@ -1,16 +1,13 @@
1
- import { OnInit, OnDestroy } from '@angular/core';
1
+ import { OnInit, OnDestroy, OnChanges, SimpleChanges } from '@angular/core';
2
+ import { TextAnimationConfig } from '../../interfaces/typography-animation-interface';
2
3
  import * as i0 from "@angular/core";
3
- export interface TextAnimationConfig {
4
- words: string[];
5
- prefix?: string;
6
- animationDelay?: number;
7
- animationDuration?: number;
8
- }
9
- export declare class TypographyAnimationComponent implements OnInit, OnDestroy {
4
+ export declare class TypographyAnimationComponent implements OnInit, OnDestroy, OnChanges {
10
5
  config: TextAnimationConfig;
11
6
  currentWordIndex: import("@angular/core").WritableSignal<number>;
7
+ animationState: import("@angular/core").WritableSignal<"initializing" | "running">;
12
8
  private intervalId;
13
9
  ngOnInit(): void;
10
+ ngOnChanges(changes: SimpleChanges): void;
14
11
  ngOnDestroy(): void;
15
12
  private startAnimation;
16
13
  static ɵfac: i0.ɵɵFactoryDeclaration<TypographyAnimationComponent, never>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sarasanalytics-com/design-system",
3
- "version": "0.0.106",
3
+ "version": "0.0.108",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^17.2.0",
6
6
  "@angular/core": "^17.2.0"
package/public-api.d.ts CHANGED
@@ -63,3 +63,4 @@ export * from './interfaces/select-interface';
63
63
  export * from './interfaces/status-dot.interface';
64
64
  export * from './interfaces/tab-interface';
65
65
  export * from './interfaces/toast-interface';
66
+ export * from './interfaces/typography-animation-interface';