@ngneat/helipopper 4.1.1 → 5.0.1

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 (54) hide show
  1. package/README.md +2 -1
  2. package/esm2020/lib/defaults.mjs +25 -0
  3. package/esm2020/lib/tippy.directive.mjs +345 -0
  4. package/esm2020/lib/tippy.module.mjs +28 -0
  5. package/esm2020/lib/tippy.service.mjs +73 -0
  6. package/esm2020/lib/tippy.types.mjs +12 -0
  7. package/{esm2015/lib/utils.js → esm2020/lib/utils.mjs} +3 -2
  8. package/{esm2015/ngneat-helipopper.js → esm2020/ngneat-helipopper.mjs} +1 -1
  9. package/{esm2015/public-api.js → esm2020/public-api.mjs} +0 -0
  10. package/fesm2015/{ngneat-helipopper.js → ngneat-helipopper.mjs} +115 -66
  11. package/fesm2015/ngneat-helipopper.mjs.map +1 -0
  12. package/fesm2020/ngneat-helipopper.mjs +562 -0
  13. package/fesm2020/ngneat-helipopper.mjs.map +1 -0
  14. package/lib/tippy.directive.d.ts +3 -0
  15. package/lib/tippy.module.d.ts +5 -0
  16. package/lib/tippy.service.d.ts +3 -0
  17. package/lib/tippy.types.d.ts +5 -2
  18. package/ngneat-helipopper.d.ts +1 -1
  19. package/package.json +23 -11
  20. package/bundles/ngneat-helipopper.umd.js +0 -897
  21. package/bundles/ngneat-helipopper.umd.js.map +0 -1
  22. package/esm2015/lib/defaults.js +0 -19
  23. package/esm2015/lib/tippy.directive.js +0 -308
  24. package/esm2015/lib/tippy.module.js +0 -23
  25. package/esm2015/lib/tippy.service.js +0 -60
  26. package/esm2015/lib/tippy.types.js +0 -12
  27. package/fesm2015/ngneat-helipopper.js.map +0 -1
  28. package/ngneat-helipopper.metadata.json +0 -1
  29. package/schematics/collection.json +0 -12
  30. package/schematics/ng-add/index.js +0 -73
  31. package/schematics/ng-add/index.js.map +0 -1
  32. package/schematics/ng-add/index.ts +0 -79
  33. package/schematics/ng-add/schema.js +0 -3
  34. package/schematics/ng-add/schema.js.map +0 -1
  35. package/schematics/ng-add/schema.json +0 -18
  36. package/schematics/ng-add/schema.ts +0 -10
  37. package/schematics/schematics.consts.js +0 -5
  38. package/schematics/schematics.consts.js.map +0 -1
  39. package/schematics/schematics.consts.ts +0 -1
  40. package/schematics/utils/ast-utils.js +0 -500
  41. package/schematics/utils/ast-utils.js.map +0 -1
  42. package/schematics/utils/ast-utils.ts +0 -596
  43. package/schematics/utils/change.js +0 -127
  44. package/schematics/utils/change.js.map +0 -1
  45. package/schematics/utils/change.ts +0 -162
  46. package/schematics/utils/find-module.js +0 -113
  47. package/schematics/utils/find-module.js.map +0 -1
  48. package/schematics/utils/find-module.ts +0 -125
  49. package/schematics/utils/package.js +0 -22
  50. package/schematics/utils/package.js.map +0 -1
  51. package/schematics/utils/package.ts +0 -22
  52. package/schematics/utils/projects.js +0 -31
  53. package/schematics/utils/projects.js.map +0 -1
  54. package/schematics/utils/projects.ts +0 -31
@@ -2,10 +2,13 @@ import { Injector } from '@angular/core';
2
2
  import { ViewService } from '@ngneat/overview';
3
3
  import { Content } from '@ngneat/overview';
4
4
  import { CreateOptions, TippyConfig, TippyInstance } from './tippy.types';
5
+ import * as i0 from "@angular/core";
5
6
  export declare class TippyService {
6
7
  private globalConfig;
7
8
  private view;
8
9
  private injector;
9
10
  constructor(globalConfig: TippyConfig, view: ViewService, injector: Injector);
10
11
  create(host: Element, content: Content, options?: Partial<CreateOptions>): TippyInstance;
12
+ static ɵfac: i0.ɵɵFactoryDeclaration<TippyService, never>;
13
+ static ɵprov: i0.ɵɵInjectableDeclaration<TippyService>;
11
14
  }
@@ -4,6 +4,7 @@ import { ViewOptions } from '@ngneat/overview';
4
4
  export interface CreateOptions extends Partial<TippyProps>, ViewOptions {
5
5
  variation: string;
6
6
  className: string | string[];
7
+ data: any;
7
8
  }
8
9
  export declare type NgChanges<Component extends object, Props = ExcludeFunctions<Component>> = {
9
10
  [Key in keyof Props]: {
@@ -18,8 +19,10 @@ declare type MarkFunctionPropertyNames<Component> = {
18
19
  }[keyof Component];
19
20
  declare type ExcludeFunctions<T extends object> = Pick<T, MarkFunctionPropertyNames<T>>;
20
21
  export declare const TIPPY_CONFIG: InjectionToken<Partial<TippyConfig>>;
21
- export declare const TIPPY_REF: InjectionToken<unknown>;
22
- export declare type TippyInstance = Instance;
22
+ export declare const TIPPY_REF: InjectionToken<TippyInstance>;
23
+ export interface TippyInstance extends Instance {
24
+ data?: any;
25
+ }
23
26
  export declare type TippyProps = Props;
24
27
  export interface TippyConfig extends TippyProps {
25
28
  variations: Record<string, Partial<TippyProps>>;
@@ -1,5 +1,5 @@
1
1
  /**
2
2
  * Generated bundle index. Do not edit.
3
3
  */
4
+ /// <amd-module name="@ngneat/helipopper" />
4
5
  export * from './public-api';
5
- export { TippyConfig as ɵa } from './lib/tippy.types';
package/package.json CHANGED
@@ -1,14 +1,14 @@
1
1
  {
2
2
  "name": "@ngneat/helipopper",
3
- "version": "4.1.1",
3
+ "version": "5.0.1",
4
4
  "description": "A Powerful Tooltip and Popover for Angular Applications",
5
- "schematics": "./schematics/collection.json",
6
5
  "dependencies": {
7
- "tippy.js": "^6.2.3",
8
- "tslib": "^2.0.0"
6
+ "tippy.js": "6.3.7",
7
+ "tslib": "2.3.1"
9
8
  },
10
9
  "peerDependencies": {
11
- "@ngneat/overview": "*"
10
+ "@angular/core": ">=13.0.0",
11
+ "@ngneat/overview": ">=3.0.0"
12
12
  },
13
13
  "keywords": [
14
14
  "angular",
@@ -32,12 +32,24 @@
32
32
  "type": "git",
33
33
  "url": "https://github.com/ngneat/helipopper"
34
34
  },
35
- "main": "bundles/ngneat-helipopper.umd.js",
36
- "module": "fesm2015/ngneat-helipopper.js",
37
- "es2015": "fesm2015/ngneat-helipopper.js",
38
- "esm2015": "esm2015/ngneat-helipopper.js",
39
- "fesm2015": "fesm2015/ngneat-helipopper.js",
35
+ "module": "fesm2015/ngneat-helipopper.mjs",
36
+ "es2020": "fesm2020/ngneat-helipopper.mjs",
37
+ "esm2020": "esm2020/ngneat-helipopper.mjs",
38
+ "fesm2020": "fesm2020/ngneat-helipopper.mjs",
39
+ "fesm2015": "fesm2015/ngneat-helipopper.mjs",
40
40
  "typings": "ngneat-helipopper.d.ts",
41
- "metadata": "ngneat-helipopper.metadata.json",
41
+ "exports": {
42
+ "./package.json": {
43
+ "default": "./package.json"
44
+ },
45
+ ".": {
46
+ "types": "./ngneat-helipopper.d.ts",
47
+ "esm2020": "./esm2020/ngneat-helipopper.mjs",
48
+ "es2020": "./fesm2020/ngneat-helipopper.mjs",
49
+ "es2015": "./fesm2015/ngneat-helipopper.mjs",
50
+ "node": "./fesm2015/ngneat-helipopper.mjs",
51
+ "default": "./fesm2020/ngneat-helipopper.mjs"
52
+ }
53
+ },
42
54
  "sideEffects": false
43
55
  }