@overlastic/vanilla 0.5.1 → 0.7.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/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  <p align="center">
2
2
  <a href="https://overlastic.vercel.app/" target="blank">
3
- <img src="https://github.com/hairyf/overlastic/raw/master/docs/public/circle.svg" width="120" alt="Nest Logo" />
3
+ <img src="https://github.com/hairyf/overlastic/raw/master/docs/public/logo.svg" width="120" alt="Nest Logo" />
4
4
  </a>
5
5
  </p>
6
6
 
@@ -26,4 +26,4 @@ $ npm install --save @overlastic/vanilla
26
26
 
27
27
  ## Quick Start
28
28
 
29
- [Overview & Tutorial](https://overlastic.vercel.app/en/vanilla/)
29
+ [Overview & Tutorial](https://overlastic.vercel.app/vanilla/)
package/dist/index.cjs CHANGED
@@ -22,7 +22,7 @@ var src_exports = {};
22
22
  __export(src_exports, {
23
23
  defineOverlay: () => defineOverlay,
24
24
  renderOverlay: () => renderOverlay,
25
- useOverlayDefine: () => useOverlayDefine
25
+ useExtendOverlay: () => useExtendOverlay
26
26
  });
27
27
  module.exports = __toCommonJS(src_exports);
28
28
 
@@ -83,7 +83,7 @@ var defineOverlay = constructor.define;
83
83
  var renderOverlay = constructor.render;
84
84
 
85
85
  // src/composable/define.ts
86
- function useOverlayDefine(options) {
86
+ function useExtendOverlay(options) {
87
87
  const trigger = context.trigger;
88
88
  if (!trigger)
89
89
  throw new Error("Please execute in the overlays constructor");
@@ -94,5 +94,5 @@ function useOverlayDefine(options) {
94
94
  0 && (module.exports = {
95
95
  defineOverlay,
96
96
  renderOverlay,
97
- useOverlayDefine
97
+ useExtendOverlay
98
98
  });
package/dist/index.d.cts CHANGED
@@ -13,13 +13,13 @@ interface Context<T = void> {
13
13
  resolve: Deferred<T>['resolve'];
14
14
  reject: Deferred<T>['reject'];
15
15
  deferred: Deferred<T>;
16
- vanish: Function;
16
+ vanish: () => void;
17
17
  }
18
18
 
19
- interface OverlayDefineOptions {
19
+ interface ExtendOverlayOptions {
20
20
  /** animation duration to avoid premature destruction of components */
21
21
  duration?: number;
22
22
  }
23
- declare function useOverlayDefine(options?: OverlayDefineOptions): Context<void>;
23
+ declare function useExtendOverlay(options?: ExtendOverlayOptions): Context<void>;
24
24
 
25
- export { type Context, type OverlayDefineOptions, defineOverlay, renderOverlay, useOverlayDefine };
25
+ export { type Context, type ExtendOverlayOptions, defineOverlay, renderOverlay, useExtendOverlay };
package/dist/index.d.ts CHANGED
@@ -13,13 +13,13 @@ interface Context<T = void> {
13
13
  resolve: Deferred<T>['resolve'];
14
14
  reject: Deferred<T>['reject'];
15
15
  deferred: Deferred<T>;
16
- vanish: Function;
16
+ vanish: () => void;
17
17
  }
18
18
 
19
- interface OverlayDefineOptions {
19
+ interface ExtendOverlayOptions {
20
20
  /** animation duration to avoid premature destruction of components */
21
21
  duration?: number;
22
22
  }
23
- declare function useOverlayDefine(options?: OverlayDefineOptions): Context<void>;
23
+ declare function useExtendOverlay(options?: ExtendOverlayOptions): Context<void>;
24
24
 
25
- export { type Context, type OverlayDefineOptions, defineOverlay, renderOverlay, useOverlayDefine };
25
+ export { type Context, type ExtendOverlayOptions, defineOverlay, renderOverlay, useExtendOverlay };
@@ -23,7 +23,7 @@ var OverlaysVanilla = (() => {
23
23
  __export(src_exports, {
24
24
  defineOverlay: () => defineOverlay,
25
25
  renderOverlay: () => renderOverlay,
26
- useOverlayDefine: () => useOverlayDefine
26
+ useExtendOverlay: () => useExtendOverlay
27
27
  });
28
28
 
29
29
  // ../@core/src/define/global.ts
@@ -187,7 +187,7 @@ var OverlaysVanilla = (() => {
187
187
  var renderOverlay = constructor.render;
188
188
 
189
189
  // src/composable/define.ts
190
- function useOverlayDefine(options) {
190
+ function useExtendOverlay(options) {
191
191
  const trigger = context2.trigger;
192
192
  if (!trigger)
193
193
  throw new Error("Please execute in the overlays constructor");
package/dist/index.js CHANGED
@@ -55,7 +55,7 @@ var defineOverlay = constructor.define;
55
55
  var renderOverlay = constructor.render;
56
56
 
57
57
  // src/composable/define.ts
58
- function useOverlayDefine(options) {
58
+ function useExtendOverlay(options) {
59
59
  const trigger = context.trigger;
60
60
  if (!trigger)
61
61
  throw new Error("Please execute in the overlays constructor");
@@ -65,5 +65,5 @@ function useOverlayDefine(options) {
65
65
  export {
66
66
  defineOverlay,
67
67
  renderOverlay,
68
- useOverlayDefine
68
+ useExtendOverlay
69
69
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@overlastic/vanilla",
3
3
  "type": "module",
4
- "version": "0.5.1",
4
+ "version": "0.7.0",
5
5
  "license": "MIT",
6
6
  "homepage": "https://github.com/hairyf/overlastic#readme",
7
7
  "repository": {
@@ -25,7 +25,7 @@
25
25
  "dist"
26
26
  ],
27
27
  "dependencies": {
28
- "@overlastic/core": "^0.5.1"
28
+ "@overlastic/core": "^0.7.0"
29
29
  },
30
30
  "scripts": {
31
31
  "build": "tsup src/index.ts",