stimulus-library 0.7.2 → 0.7.5
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/CHANGELOG.md +21 -0
- package/README.md +1 -1
- package/dist/controllers/equalize_controller.d.ts +16 -0
- package/dist/controllers/equalize_controller.d.ts.map +1 -0
- package/dist/controllers/index.d.ts +1 -0
- package/dist/controllers/index.d.ts.map +1 -1
- package/dist/controllers/signal/events.d.ts +1 -0
- package/dist/controllers/signal/events.d.ts.map +1 -1
- package/dist/mixins/create_mixin.d.ts +1 -1
- package/dist/mixins/create_mixin.d.ts.map +1 -1
- package/dist/mixins/install_class_methods.d.ts +1 -1
- package/dist/mixins/install_class_methods.d.ts.map +1 -1
- package/dist/mixins/use_click_outside.d.ts +1 -1
- package/dist/mixins/use_click_outside.d.ts.map +1 -1
- package/dist/mixins/use_event_bus.d.ts +1 -1
- package/dist/mixins/use_event_bus.d.ts.map +1 -1
- package/dist/mixins/use_event_listener.d.ts +1 -1
- package/dist/mixins/use_event_listener.d.ts.map +1 -1
- package/dist/mixins/use_fullscreen.d.ts +1 -1
- package/dist/mixins/use_fullscreen.d.ts.map +1 -1
- package/dist/mixins/use_geolocation.d.ts +1 -1
- package/dist/mixins/use_geolocation.d.ts.map +1 -1
- package/dist/mixins/use_hover.d.ts +1 -1
- package/dist/mixins/use_hover.d.ts.map +1 -1
- package/dist/mixins/use_injected_html.d.ts +1 -1
- package/dist/mixins/use_injected_html.d.ts.map +1 -1
- package/dist/mixins/use_intersection.d.ts +1 -1
- package/dist/mixins/use_intersection.d.ts.map +1 -1
- package/dist/mixins/use_interval.d.ts +1 -1
- package/dist/mixins/use_interval.d.ts.map +1 -1
- package/dist/mixins/use_localstorage.d.ts +1 -1
- package/dist/mixins/use_localstorage.d.ts.map +1 -1
- package/dist/mixins/use_mutation_observer.d.ts +1 -1
- package/dist/mixins/use_mutation_observer.d.ts.map +1 -1
- package/dist/mixins/use_temporary_content.d.ts +1 -1
- package/dist/mixins/use_temporary_content.d.ts.map +1 -1
- package/dist/mixins/use_timeout.d.ts +1 -1
- package/dist/mixins/use_timeout.d.ts.map +1 -1
- package/dist/mixins/use_trix_modifiers.d.ts +1 -1
- package/dist/mixins/use_trix_modifiers.d.ts.map +1 -1
- package/dist/stimulus-library.cjs.js +1 -1
- package/dist/stimulus-library.cjs.js.map +1 -1
- package/dist/stimulus-library.es.js +382 -4
- package/dist/stimulus-library.es.js.map +1 -1
- package/dist/stimulus-library.umd.js +1 -1
- package/dist/stimulus-library.umd.js.map +1 -1
- package/dist/utilities/base_controller.d.ts +1 -1
- package/dist/utilities/base_controller.d.ts.map +1 -1
- package/dist/utilities/events.d.ts +1 -1
- package/dist/utilities/events.d.ts.map +1 -1
- package/dist/utilities/logging.d.ts +1 -1
- package/dist/utilities/logging.d.ts.map +1 -1
- package/dist/utilities/stimulus.d.ts +1 -1
- package/dist/utilities/stimulus.d.ts.map +1 -1
- package/package.json +7 -10
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,27 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
|
|
4
4
|
|
|
5
|
+
### [0.7.5](https://github.com/Sub-Xaero/stimulus-library/compare/v0.7.4...v0.7.5) (2022-04-12)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Features
|
|
9
|
+
|
|
10
|
+
* For compatibility with multiple versions of Stimulus / @hotwired/stimulus npm packages, the runtime parts of stimulus necessary for the library to function are now bundled with the library instead of required as a peerDependency. Only incurs 2kb Gzipped. Will remove when @hotwired/stimulus has more market-share than stimulus, currently 50/50 ([50a97df](https://github.com/Sub-Xaero/stimulus-library/commit/50a97df7badc9ac4f91502e0cae6b61a2d8cc8c1))
|
|
11
|
+
|
|
12
|
+
### [0.7.4](https://github.com/Sub-Xaero/stimulus-library/compare/v0.7.3...v0.7.4) (2022-02-21)
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
### Features
|
|
16
|
+
|
|
17
|
+
* **New Controller:** EqualizeController - For equalizing the heights of all connected elements to the max observed size, and scaling them responsively to resize and device rotation events ([4ebcbee](https://github.com/Sub-Xaero/stimulus-library/commit/4ebcbee360a534376adc2df787ef5aef2ccb4468))
|
|
18
|
+
|
|
19
|
+
### [0.7.3](https://github.com/Sub-Xaero/stimulus-library/compare/v0.7.2...v0.7.3) (2022-02-16)
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
### Bug Fixes
|
|
23
|
+
|
|
24
|
+
* **SignalVisibilityController:** New hide/show events added in 0.7.2 should have included the nameValue. Now fixed. ([00dd27b](https://github.com/Sub-Xaero/stimulus-library/commit/00dd27b79a62032c286d16ddff9494c4585963e1))
|
|
25
|
+
|
|
5
26
|
### [0.7.2](https://github.com/Sub-Xaero/stimulus-library/compare/v0.7.1...v0.7.2) (2022-02-16)
|
|
6
27
|
|
|
7
28
|
|
package/README.md
CHANGED
|
@@ -30,7 +30,7 @@ Then, to get started, import and register the controllers you want to use.
|
|
|
30
30
|
*Please Note* as below, that when registering the name for the controller, you should use `kebab-case` and omit the `-controller` suffix.
|
|
31
31
|
|
|
32
32
|
```js
|
|
33
|
-
import { Application } from "stimulus";
|
|
33
|
+
import { Application } from "@hotwired/stimulus";
|
|
34
34
|
import { AutoSubmitFormController } from "stimulus-library";
|
|
35
35
|
|
|
36
36
|
const application = Application.start();
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { BaseController } from "../utilities/base_controller";
|
|
2
|
+
export declare class EqualizeController extends BaseController {
|
|
3
|
+
static targets: string[];
|
|
4
|
+
readonly watchTargets: HTMLElement[];
|
|
5
|
+
observer: ResizeObserver;
|
|
6
|
+
_unobserveIntersection: () => void;
|
|
7
|
+
initialize(): void;
|
|
8
|
+
connect(): void;
|
|
9
|
+
disconnect(): void;
|
|
10
|
+
watchTargetConnected(element: HTMLElement): void;
|
|
11
|
+
watchTargetDisconnected(element: HTMLElement): void;
|
|
12
|
+
appear(_entry: IntersectionObserverEntry): void;
|
|
13
|
+
_equalize(): void;
|
|
14
|
+
_unequalize(): void;
|
|
15
|
+
}
|
|
16
|
+
//# sourceMappingURL=equalize_controller.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"equalize_controller.d.ts","sourceRoot":"","sources":["../../src/controllers/equalize_controller.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,cAAc,EAAC,MAAM,8BAA8B,CAAC;AAI5D,qBAAa,kBAAmB,SAAQ,cAAc;IAEpD,MAAM,CAAC,OAAO,WAAa;IAE3B,SAAiB,YAAY,EAAE,WAAW,EAAE,CAAC;IACrC,QAAQ,EAAE,cAAc,CAAC;IACzB,sBAAsB,EAAE,MAAM,IAAI,CAAC;IAE3C,UAAU;IAKV,OAAO;IAOP,UAAU;IAIV,oBAAoB,CAAC,OAAO,EAAE,WAAW;IAKzC,uBAAuB,CAAC,OAAO,EAAE,WAAW;IAK5C,MAAM,CAAC,MAAM,EAAE,yBAAyB;IAKxC,SAAS;IAQT,WAAW;CAIZ"}
|
|
@@ -15,6 +15,7 @@ export * from './debug_controller';
|
|
|
15
15
|
export * from './disable_with_controller';
|
|
16
16
|
export * from './dismissable_controller';
|
|
17
17
|
export * from './element_save_controller';
|
|
18
|
+
export * from './equalize_controller';
|
|
18
19
|
export * from './empty_dom_controller';
|
|
19
20
|
export * from './prefetch_controller';
|
|
20
21
|
export * from './print_button_controller';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/controllers/index.ts"],"names":[],"mappings":"AACA,cAAc,QAAQ,CAAC;AACvB,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC;AACxB,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,WAAW,CAAC;AAC1B,cAAc,UAAU,CAAC;AAGzB,cAAc,yBAAyB,CAAC;AACxC,cAAc,wBAAwB,CAAC;AACvC,cAAc,wBAAwB,CAAC;AACvC,cAAc,sBAAsB,CAAC;AACrC,cAAc,iCAAiC,CAAC;AAChD,cAAc,oBAAoB,CAAC;AACnC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,0BAA0B,CAAC;AACzC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,wBAAwB,CAAC;AACvC,cAAc,uBAAuB,CAAC;AACtC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,gCAAgC,CAAC;AAC/C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,qBAAqB,CAAC;AACpC,cAAc,uBAAuB,CAAC;AACtC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,kCAAkC,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/controllers/index.ts"],"names":[],"mappings":"AACA,cAAc,QAAQ,CAAC;AACvB,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC;AACxB,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,WAAW,CAAC;AAC1B,cAAc,UAAU,CAAC;AAGzB,cAAc,yBAAyB,CAAC;AACxC,cAAc,wBAAwB,CAAC;AACvC,cAAc,wBAAwB,CAAC;AACvC,cAAc,sBAAsB,CAAC;AACrC,cAAc,iCAAiC,CAAC;AAChD,cAAc,oBAAoB,CAAC;AACnC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,0BAA0B,CAAC;AACzC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,uBAAuB,CAAC;AACtC,cAAc,wBAAwB,CAAC;AACvC,cAAc,uBAAuB,CAAC;AACtC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,gCAAgC,CAAC;AAC/C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,qBAAqB,CAAC;AACpC,cAAc,uBAAuB,CAAC;AACtC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,kCAAkC,CAAC"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export declare function signalEventName(name: string, type: string): string;
|
|
2
2
|
export declare function signalConnectEvent(name: string): string;
|
|
3
3
|
export declare function signalValueEvent(name: string): string;
|
|
4
|
+
export declare function signalVisibilityEvent(name: string, action: "hide" | "show"): string;
|
|
4
5
|
//# sourceMappingURL=events.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"events.d.ts","sourceRoot":"","sources":["../../../src/controllers/signal/events.ts"],"names":[],"mappings":"AAAA,wBAAgB,eAAe,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,MAAM,CAElE;AAED,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAEvD;AAED,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAErD"}
|
|
1
|
+
{"version":3,"file":"events.d.ts","sourceRoot":"","sources":["../../../src/controllers/signal/events.ts"],"names":[],"mappings":"AAAA,wBAAgB,eAAe,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,MAAM,CAElE;AAED,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAEvD;AAED,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAErD;AAED,wBAAgB,qBAAqB,CAAC,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM,CAEnF"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create_mixin.d.ts","sourceRoot":"","sources":["../../src/mixins/create_mixin.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,UAAU,EAAC,MAAM,
|
|
1
|
+
{"version":3,"file":"create_mixin.d.ts","sourceRoot":"","sources":["../../src/mixins/create_mixin.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,UAAU,EAAC,MAAM,oBAAoB,CAAC;AAE9C,wBAAgB,QAAQ,CAAC,UAAU,EAAE,UAAU,EAAE,KAAK,EAAE,MAAM,IAAI,EAAE,QAAQ,EAAE,MAAM,IAAI,cAavF"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"install_class_methods.d.ts","sourceRoot":"","sources":["../../src/mixins/install_class_methods.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,UAAU,EAAC,MAAM,
|
|
1
|
+
{"version":3,"file":"install_class_methods.d.ts","sourceRoot":"","sources":["../../src/mixins/install_class_methods.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,UAAU,EAAC,MAAM,oBAAoB,CAAC;AAI9C,qBAAa,sCAAuC,SAAQ,UAAU;IACpE,CAAC,KAAK,EAAE,MAAM,GAAG,GAAG,CAAA;CACrB;AAsBD,wBAAgB,mBAAmB,CAAC,UAAU,EAAE,sCAAsC,QAIrF"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use_click_outside.d.ts","sourceRoot":"","sources":["../../src/mixins/use_click_outside.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,UAAU,EAAC,MAAM,
|
|
1
|
+
{"version":3,"file":"use_click_outside.d.ts","sourceRoot":"","sources":["../../src/mixins/use_click_outside.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,UAAU,EAAC,MAAM,oBAAoB,CAAC;AAK9C,wBAAgB,eAAe,CAAC,UAAU,EAAE,UAAU,EAAE,OAAO,EAAE,WAAW,EAAE,QAAQ,EAAE,CAAC,KAAK,EAAE,KAAK,KAAK,IAAI;;EAiB7G"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use_event_bus.d.ts","sourceRoot":"","sources":["../../src/mixins/use_event_bus.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,UAAU,EAAC,MAAM,
|
|
1
|
+
{"version":3,"file":"use_event_bus.d.ts","sourceRoot":"","sources":["../../src/mixins/use_event_bus.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,UAAU,EAAC,MAAM,oBAAoB,CAAC;AAM9C,wBAAgB,WAAW,CAAC,UAAU,EAAE,UAAU,EAAE,gBAAgB,EAAE,MAAM,GAAG,MAAM,EAAE,EAAE,OAAO,EAAE,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,IAAI,EAAE,IAAI,CAAC,EAAE;IAAE,QAAQ,CAAC,EAAE,MAAM,CAAA;CAAE;;;EAgBvJ"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Controller } from "stimulus";
|
|
1
|
+
import { Controller } from "@hotwired/stimulus";
|
|
2
2
|
export declare function useEventListener(controller: Controller, element: Document | Window | HTMLElement, eventNameOrNames: string | string[], handler: (...args: any[]) => void, opts?: AddEventListenerOptions & {
|
|
3
3
|
debounce?: number;
|
|
4
4
|
}): {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use_event_listener.d.ts","sourceRoot":"","sources":["../../src/mixins/use_event_listener.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,UAAU,EAAC,MAAM,
|
|
1
|
+
{"version":3,"file":"use_event_listener.d.ts","sourceRoot":"","sources":["../../src/mixins/use_event_listener.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,UAAU,EAAC,MAAM,oBAAoB,CAAC;AAK9C,wBAAgB,gBAAgB,CAAC,UAAU,EAAE,UAAU,EAAE,OAAO,EAAE,QAAQ,GAAG,MAAM,GAAG,WAAW,EAAE,gBAAgB,EAAE,MAAM,GAAG,MAAM,EAAE,EAAE,OAAO,EAAE,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,IAAI,EAAE,IAAI,CAAC,EAAE,uBAAuB,GAAG;IAAE,QAAQ,CAAC,EAAE,MAAM,CAAA;CAAE;;;EAchO;AAED,wBAAgB,iBAAiB,CAAC,UAAU,EAAE,UAAU,EAAE,OAAO,EAAE,QAAQ,GAAG,MAAM,GAAG,WAAW,EAAE,gBAAgB,EAAE,MAAM,GAAG,MAAM,EAAE,EAAE,OAAO,EAAE,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,IAAI,EAAE,IAAI,CAAC,EAAE,uBAAuB,GAAG;IAAE,QAAQ,CAAC,EAAE,MAAM,CAAA;CAAE;;;EAEjO;AAED,wBAAgB,0BAA0B,CAAC,UAAU,EAAE,UAAU,EAAE,QAAQ,EAAE,KAAK,CAAC,QAAQ,GAAG,MAAM,GAAG,WAAW,CAAC,EAAE,gBAAgB,EAAE,MAAM,GAAG,MAAM,EAAE,EAAE,OAAO,EAAE,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,IAAI,EAAE,IAAI,CAAC,EAAE,uBAAuB,GAAG;IAAE,QAAQ,CAAC,EAAE,MAAM,CAAA;CAAE,kBAUlP;AAED,wBAAgB,2BAA2B,CAAC,UAAU,EAAE,UAAU,EAAE,QAAQ,EAAE,KAAK,CAAC,QAAQ,GAAG,MAAM,GAAG,WAAW,CAAC,EAAE,gBAAgB,EAAE,MAAM,GAAG,MAAM,EAAE,EAAE,OAAO,EAAE,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,IAAI,EAAE,IAAI,CAAC,EAAE,uBAAuB,GAAG;IAAE,QAAQ,CAAC,EAAE,MAAM,CAAA;CAAE,kBAEnP"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use_fullscreen.d.ts","sourceRoot":"","sources":["../../src/mixins/use_fullscreen.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,UAAU,EAAC,MAAM,
|
|
1
|
+
{"version":3,"file":"use_fullscreen.d.ts","sourceRoot":"","sources":["../../src/mixins/use_fullscreen.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,UAAU,EAAC,MAAM,oBAAoB,CAAC;AAG9C,wBAAgB,aAAa,CAAC,UAAU,EAAE,UAAU,EAAE,EAAE,CAAC,EAAE,OAAO;wBAKvC,OAAO;;;;;EA8BjC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use_geolocation.d.ts","sourceRoot":"","sources":["../../src/mixins/use_geolocation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,UAAU,EAAC,MAAM,
|
|
1
|
+
{"version":3,"file":"use_geolocation.d.ts","sourceRoot":"","sources":["../../src/mixins/use_geolocation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,UAAU,EAAC,MAAM,oBAAoB,CAAC;AAI9C,MAAM,WAAW,kBAAmB,SAAQ,OAAO,CAAC,eAAe,CAAC;CACnE;AAED,MAAM,WAAW,eAAe;IAC9B,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB,KAAK,EAAE,wBAAwB,GAAG,IAAI,CAAC;IACvC,MAAM,EAAE;QACN,QAAQ,EAAE,MAAM,CAAC;QACjB,QAAQ,EAAE,MAAM,CAAC;QACjB,SAAS,EAAE,MAAM,CAAC;QAClB,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;QACxB,gBAAgB,EAAE,MAAM,GAAG,IAAI,CAAC;QAChC,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;QACvB,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;KACtB,CAAC;IACF,QAAQ,EAAE,MAAM,IAAI,CAAC;CACtB;AAED,wBAAgB,cAAc,CAAC,UAAU,EAAE,UAAU,EAAE,OAAO,GAAE,kBAAuB,EAAE,MAAM,CAAC,EAAE,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,IAAI,EAAE,KAAK,CAAC,EAAE,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,IAAI,mBA0E3J"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Controller } from "stimulus";
|
|
1
|
+
import { Controller } from "@hotwired/stimulus";
|
|
2
2
|
export declare function useHover(controller: Controller, element: HTMLElement, enter?: ((event: Event) => void) | null, leave?: ((event: Event) => void) | null): {
|
|
3
3
|
teardown: () => void;
|
|
4
4
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use_hover.d.ts","sourceRoot":"","sources":["../../src/mixins/use_hover.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,UAAU,EAAC,MAAM,
|
|
1
|
+
{"version":3,"file":"use_hover.d.ts","sourceRoot":"","sources":["../../src/mixins/use_hover.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,UAAU,EAAC,MAAM,oBAAoB,CAAC;AAI9C,wBAAgB,QAAQ,CAAC,UAAU,EAAE,UAAU,EAAE,OAAO,EAAE,WAAW,EAAE,KAAK,CAAC,EAAE,CAAC,CAAC,KAAK,EAAE,KAAK,KAAK,IAAI,CAAC,GAAG,IAAI,EAAE,KAAK,CAAC,EAAE,CAAC,CAAC,KAAK,EAAE,KAAK,KAAK,IAAI,CAAC,GAAG,IAAI;;EA8BtJ"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Controller } from "stimulus";
|
|
1
|
+
import { Controller } from "@hotwired/stimulus";
|
|
2
2
|
export declare function useInjectedFragment(controller: Controller, targetElement: HTMLElement, insertPosition: InsertPosition, fragment: DocumentFragment, options?: {
|
|
3
3
|
cleanup?: boolean;
|
|
4
4
|
}): [ChildNode[], () => void];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use_injected_html.d.ts","sourceRoot":"","sources":["../../src/mixins/use_injected_html.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,UAAU,EAAC,MAAM,
|
|
1
|
+
{"version":3,"file":"use_injected_html.d.ts","sourceRoot":"","sources":["../../src/mixins/use_injected_html.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,UAAU,EAAC,MAAM,oBAAoB,CAAC;AAG9C,wBAAgB,mBAAmB,CAAC,UAAU,EAAE,UAAU,EAAE,aAAa,EAAE,WAAW,EAAE,cAAc,EAAE,cAAc,EAAE,QAAQ,EAAE,gBAAgB,EAAE,OAAO,GAAE;IAAE,OAAO,CAAC,EAAE,OAAO,CAAA;CAAO,GAAG,CAAC,SAAS,EAAE,EAAE,MAAM,IAAI,CAAC,CA4BlN;AAED,wBAAgB,eAAe,CAAC,UAAU,EAAE,UAAU,EAAE,aAAa,EAAE,WAAW,EAAE,cAAc,EAAE,cAAc,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,GAAE;IAAE,OAAO,CAAC,EAAE,OAAO,CAAA;CAAO,GAAG,CAAC,SAAS,EAAE,EAAE,MAAM,IAAI,CAAC,CAGhM;AAED,wBAAgB,kBAAkB,CAAC,UAAU,EAAE,UAAU,EAAE,aAAa,EAAE,WAAW,EAAE,cAAc,EAAE,cAAc,EAAE,OAAO,EAAE,WAAW,EAAE,OAAO,GAAE;IAAE,OAAO,CAAC,EAAE,OAAO,CAAA;CAAO,GAAG,CAAC,SAAS,EAAE,MAAM,IAAI,CAAC,CAKzM"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Controller } from "stimulus";
|
|
1
|
+
import { Controller } from "@hotwired/stimulus";
|
|
2
2
|
export declare function useIntersectionObserver(controller: Controller, handler: IntersectionObserverCallback, options?: IntersectionObserverInit): {
|
|
3
3
|
observer: IntersectionObserver;
|
|
4
4
|
teardown: () => void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use_intersection.d.ts","sourceRoot":"","sources":["../../src/mixins/use_intersection.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,UAAU,EAAC,MAAM,
|
|
1
|
+
{"version":3,"file":"use_intersection.d.ts","sourceRoot":"","sources":["../../src/mixins/use_intersection.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,UAAU,EAAC,MAAM,oBAAoB,CAAC;AAG9C,wBAAgB,uBAAuB,CAAC,UAAU,EAAE,UAAU,EAAE,OAAO,EAAE,4BAA4B,EAAE,OAAO,CAAC,EAAE,wBAAwB;;;uBAQ/G,WAAW;yBACT,WAAW;EAQtC;AAED,wBAAgB,eAAe,CAC7B,UAAU,EAAE,UAAU,EACtB,OAAO,EAAE,WAAW,EACpB,MAAM,CAAC,EAAE,IAAI,GAAG,CAAC,CAAC,KAAK,EAAE,yBAAyB,KAAK,IAAI,CAAC,EAC5D,SAAS,CAAC,EAAE,IAAI,GAAG,CAAC,CAAC,KAAK,EAAE,yBAAyB,KAAK,IAAI,CAAC,EAC/D,OAAO,CAAC,EAAE,wBAAwB;;;;;EA4BnC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use_interval.d.ts","sourceRoot":"","sources":["../../src/mixins/use_interval.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,UAAU,EAAC,MAAM,
|
|
1
|
+
{"version":3,"file":"use_interval.d.ts","sourceRoot":"","sources":["../../src/mixins/use_interval.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,UAAU,EAAC,MAAM,oBAAoB,CAAC;AAG9C,wBAAgB,WAAW,CAAC,UAAU,EAAE,UAAU,EAAE,OAAO,EAAE,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,IAAI,EAAE,QAAQ,EAAE,MAAM,cAatG"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use_localstorage.d.ts","sourceRoot":"","sources":["../../src/mixins/use_localstorage.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,UAAU,EAAC,MAAM,
|
|
1
|
+
{"version":3,"file":"use_localstorage.d.ts","sourceRoot":"","sources":["../../src/mixins/use_localstorage.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,UAAU,EAAC,MAAM,oBAAoB,CAAC;AAI9C,oBAAY,UAAU,CAAC,CAAC,IAAI;IAC1B,WAAW,CAAC,GAAG,EAAE,MAAM,GAAG,CAAC,CAAA;IAC3B,SAAS,CAAC,KAAK,EAAE,CAAC,GAAG,MAAM,CAAA;IAC3B,OAAO,CAAC,KAAK,EAAE,CAAC,GAAG,OAAO,CAAA;CAC3B,CAAA;AAED,MAAM,WAAW,iBAAiB,CAAC,CAAC;IAClC,IAAI,KAAK,IAAI,CAAC,CAAC;IAEf,IAAI,KAAK,CAAC,KAAK,EAAE,CAAC,EAAE;IAEpB,IAAI,IAAI,CAAC,CAAC;IAEV,KAAK,CAAC,KAAK,EAAE,CAAC,GAAG,IAAI,CAAC;IAEtB,KAAK,IAAI,IAAI,CAAC;IAEd,OAAO,IAAI,OAAO,CAAC;CACpB;AAED,eAAO,MAAM,kBAAkB,EAAE,MAAM,CAAC,SAAS,GAAG,QAAQ,GAAG,QAAQ,GAAG,KAAK,GAAG,QAAQ,GAAG,KAAK,GAAG,KAAK,EAAE,UAAU,CAAC,GAAG,CAAC,CAAC,GAAG;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG,UAAU,CAAC,GAAG,CAAC,CAAA;CA6C9J,CAAC;AAEF,wBAAgB,eAAe,CAAC,CAAC,EAAE,UAAU,EAAE,UAAU,EAAE,GAAG,EAAE,MAAM,EAAE,YAAY,EAAE,CAAC,EAAE,IAAI,GAAE;IAAE,aAAa,EAAE,OAAO,CAAA;CAA0B,GAAG,iBAAiB,CAAC,CAAC,CAAC,CA4EvK"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { Controller } from "stimulus";
|
|
1
|
+
import { Controller } from "@hotwired/stimulus";
|
|
2
2
|
export declare function useMutationObserver(controller: Controller, element: HTMLElement, handler: (entries: MutationRecord[]) => void, options: MutationObserverInit): () => void;
|
|
3
3
|
//# sourceMappingURL=use_mutation_observer.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use_mutation_observer.d.ts","sourceRoot":"","sources":["../../src/mixins/use_mutation_observer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,UAAU,EAAC,MAAM,
|
|
1
|
+
{"version":3,"file":"use_mutation_observer.d.ts","sourceRoot":"","sources":["../../src/mixins/use_mutation_observer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,UAAU,EAAC,MAAM,oBAAoB,CAAC;AAG9C,wBAAgB,mBAAmB,CAAC,UAAU,EAAE,UAAU,EAAE,OAAO,EAAE,WAAW,EAAE,OAAO,EAAE,CAAC,OAAO,EAAE,cAAc,EAAE,KAAK,IAAI,EAAE,OAAO,EAAE,oBAAoB,cAS5J"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Controller } from "stimulus";
|
|
1
|
+
import { Controller } from "@hotwired/stimulus";
|
|
2
2
|
export declare function useTemporaryContent(controller: Controller, target: HTMLElement, content: string, timeout?: number, teardownCallback?: () => void): {
|
|
3
3
|
teardown: () => void;
|
|
4
4
|
update(newContent: string): void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use_temporary_content.d.ts","sourceRoot":"","sources":["../../src/mixins/use_temporary_content.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,UAAU,EAAC,MAAM,
|
|
1
|
+
{"version":3,"file":"use_temporary_content.d.ts","sourceRoot":"","sources":["../../src/mixins/use_temporary_content.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,UAAU,EAAC,MAAM,oBAAoB,CAAC;AAK9C,wBAAgB,mBAAmB,CAAC,UAAU,EAAE,UAAU,EAAE,MAAM,EAAE,WAAW,EAAE,OAAO,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,MAAM,EAAE,gBAAgB,CAAC,EAAE,MAAM,IAAI;;uBAoC1H,MAAM;EAI5B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use_timeout.d.ts","sourceRoot":"","sources":["../../src/mixins/use_timeout.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,UAAU,EAAC,MAAM,
|
|
1
|
+
{"version":3,"file":"use_timeout.d.ts","sourceRoot":"","sources":["../../src/mixins/use_timeout.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,UAAU,EAAC,MAAM,oBAAoB,CAAC;AAI9C,wBAAgB,UAAU,CAAC,UAAU,EAAE,UAAU,EAAE,OAAO,EAAE,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,IAAI,EAAE,OAAO,EAAE,MAAM,cAqBpG"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use_trix_modifiers.d.ts","sourceRoot":"","sources":["../../src/mixins/use_trix_modifiers.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,UAAU,EAAC,MAAM,
|
|
1
|
+
{"version":3,"file":"use_trix_modifiers.d.ts","sourceRoot":"","sources":["../../src/mixins/use_trix_modifiers.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,UAAU,EAAC,MAAM,oBAAoB,CAAC;AAE9C,MAAM,WAAW,mBAAmB;IAClC,OAAO,EAAE,WAAW,CAAC;IACrB,MAAM,EAAE,WAAW,CAAA;CACpB;AAED,qBAAa,wBAAyB,SAAQ,UAAU;IAC9C,OAAO,CAAC,EAAE,CAAC,QAAQ,EAAE,mBAAmB,KAAK,IAAI,CAAC;IAClD,SAAS,CAAC,EAAE,CAAC,QAAQ,EAAE,mBAAmB,KAAK,IAAI,CAAC;CAC7D;AAED,wBAAgB,gBAAgB,CAAC,UAAU,EAAE,wBAAwB,QA2EpE"}
|