stimulus-library 0.7.4 → 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.
Files changed (51) hide show
  1. package/CHANGELOG.md +7 -0
  2. package/README.md +1 -1
  3. package/dist/mixins/create_mixin.d.ts +1 -1
  4. package/dist/mixins/create_mixin.d.ts.map +1 -1
  5. package/dist/mixins/install_class_methods.d.ts +1 -1
  6. package/dist/mixins/install_class_methods.d.ts.map +1 -1
  7. package/dist/mixins/use_click_outside.d.ts +1 -1
  8. package/dist/mixins/use_click_outside.d.ts.map +1 -1
  9. package/dist/mixins/use_event_bus.d.ts +1 -1
  10. package/dist/mixins/use_event_bus.d.ts.map +1 -1
  11. package/dist/mixins/use_event_listener.d.ts +1 -1
  12. package/dist/mixins/use_event_listener.d.ts.map +1 -1
  13. package/dist/mixins/use_fullscreen.d.ts +1 -1
  14. package/dist/mixins/use_fullscreen.d.ts.map +1 -1
  15. package/dist/mixins/use_geolocation.d.ts +1 -1
  16. package/dist/mixins/use_geolocation.d.ts.map +1 -1
  17. package/dist/mixins/use_hover.d.ts +1 -1
  18. package/dist/mixins/use_hover.d.ts.map +1 -1
  19. package/dist/mixins/use_injected_html.d.ts +1 -1
  20. package/dist/mixins/use_injected_html.d.ts.map +1 -1
  21. package/dist/mixins/use_intersection.d.ts +1 -1
  22. package/dist/mixins/use_intersection.d.ts.map +1 -1
  23. package/dist/mixins/use_interval.d.ts +1 -1
  24. package/dist/mixins/use_interval.d.ts.map +1 -1
  25. package/dist/mixins/use_localstorage.d.ts +1 -1
  26. package/dist/mixins/use_localstorage.d.ts.map +1 -1
  27. package/dist/mixins/use_mutation_observer.d.ts +1 -1
  28. package/dist/mixins/use_mutation_observer.d.ts.map +1 -1
  29. package/dist/mixins/use_temporary_content.d.ts +1 -1
  30. package/dist/mixins/use_temporary_content.d.ts.map +1 -1
  31. package/dist/mixins/use_timeout.d.ts +1 -1
  32. package/dist/mixins/use_timeout.d.ts.map +1 -1
  33. package/dist/mixins/use_trix_modifiers.d.ts +1 -1
  34. package/dist/mixins/use_trix_modifiers.d.ts.map +1 -1
  35. package/dist/stimulus-library.cjs.js +1 -1
  36. package/dist/stimulus-library.cjs.js.map +1 -1
  37. package/dist/stimulus-library.es.js +340 -1
  38. package/dist/stimulus-library.es.js.map +1 -1
  39. package/dist/stimulus-library.umd.js +1 -1
  40. package/dist/stimulus-library.umd.js.map +1 -1
  41. package/dist/utilities/base_controller.d.ts +1 -1
  42. package/dist/utilities/base_controller.d.ts.map +1 -1
  43. package/dist/utilities/events.d.ts +1 -1
  44. package/dist/utilities/events.d.ts.map +1 -1
  45. package/dist/utilities/logging.d.ts +1 -1
  46. package/dist/utilities/logging.d.ts.map +1 -1
  47. package/dist/utilities/stimulus.d.ts +1 -1
  48. package/dist/utilities/stimulus.d.ts.map +1 -1
  49. package/package.json +7 -10
  50. package/dist/mixins/use_resize.d.ts +0 -5
  51. package/dist/mixins/use_resize.d.ts.map +0 -1
@@ -1,4 +1,4 @@
1
- import { Context, Controller } from "stimulus";
1
+ import { Context, Controller } from "@hotwired/stimulus";
2
2
  export declare class BaseController extends Controller {
3
3
  constructor(context: Context);
4
4
  get el(): HTMLElement;
@@ -1 +1 @@
1
- {"version":3,"file":"base_controller.d.ts","sourceRoot":"","sources":["../../src/utilities/base_controller.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,OAAO,EAAE,UAAU,EAAC,MAAM,UAAU,CAAC;AAI7C,qBAAa,cAAe,SAAQ,UAAU;gBAEhC,OAAO,EAAE,OAAO;IAgC5B,IAAI,EAAE,IAAI,WAAW,CAEpB;IAED,IAAI,cAAc,IAAI,OAAO,CAE5B;IAED,IAAI,mBAAmB,IAAI,OAAO,CAEjC;IAED,IAAI,SAAS,IAAI,MAAM,GAAG,IAAI,CAE7B;IAED,SAAS,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI;IAKtC,aAAa,CAAC,OAAO,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,EAAE,OAAO,GAAE,eAAoB;CAIrF"}
1
+ {"version":3,"file":"base_controller.d.ts","sourceRoot":"","sources":["../../src/utilities/base_controller.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,OAAO,EAAE,UAAU,EAAC,MAAM,oBAAoB,CAAC;AAIvD,qBAAa,cAAe,SAAQ,UAAU;gBAEhC,OAAO,EAAE,OAAO;IAgC5B,IAAI,EAAE,IAAI,WAAW,CAEpB;IAED,IAAI,cAAc,IAAI,OAAO,CAE5B;IAED,IAAI,mBAAmB,IAAI,OAAO,CAEjC;IAED,IAAI,SAAS,IAAI,MAAM,GAAG,IAAI,CAE7B;IAED,SAAS,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI;IAKtC,aAAa,CAAC,OAAO,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,EAAE,OAAO,GAAE,eAAoB;CAIrF"}
@@ -1,3 +1,3 @@
1
- import { Controller } from "stimulus";
1
+ import { Controller } from "@hotwired/stimulus";
2
2
  export declare function dispatchEvent(controller: Controller, element: HTMLElement, eventName: string, options?: CustomEventInit): void;
3
3
  //# sourceMappingURL=events.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"events.d.ts","sourceRoot":"","sources":["../../src/utilities/events.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,UAAU,EAAC,MAAM,UAAU,CAAC;AAGpC,wBAAgB,aAAa,CAAC,UAAU,EAAE,UAAU,EAAE,OAAO,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,EAAE,OAAO,GAAE,eAAoB,QAQ3H"}
1
+ {"version":3,"file":"events.d.ts","sourceRoot":"","sources":["../../src/utilities/events.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,UAAU,EAAC,MAAM,oBAAoB,CAAC;AAG9C,wBAAgB,aAAa,CAAC,UAAU,EAAE,UAAU,EAAE,OAAO,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,EAAE,OAAO,GAAE,eAAoB,QAQ3H"}
@@ -1,4 +1,4 @@
1
- import { Controller } from "stimulus";
1
+ import { Controller } from "@hotwired/stimulus";
2
2
  export declare function logProperty(prop: string): boolean;
3
3
  export declare function log(controller: Controller, functionName: string, args?: {}): void;
4
4
  export declare function warn(controller: Controller, warning: string, args?: {}): void;
@@ -1 +1 @@
1
- {"version":3,"file":"logging.d.ts","sourceRoot":"","sources":["../../src/utilities/logging.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,UAAU,EAAC,MAAM,UAAU,CAAC;AAEpC,wBAAgB,WAAW,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAwCjD;AAGD,wBAAgB,GAAG,CAAC,UAAU,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,EAAE,IAAI,GAAE,EAAO,GAAG,IAAI,CAYrF;AAED,wBAAgB,IAAI,CAAC,UAAU,EAAE,UAAU,EAAE,OAAO,EAAE,MAAM,EAAE,IAAI,GAAE,EAAO,GAAG,IAAI,CAYjF;AAED,wBAAgB,QAAQ,CAAC,UAAU,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,EAAE,KAAK,EAAE,WAAW,EAAE,OAAO,EAAE,WAAW,QAgB3G"}
1
+ {"version":3,"file":"logging.d.ts","sourceRoot":"","sources":["../../src/utilities/logging.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,UAAU,EAAC,MAAM,oBAAoB,CAAC;AAE9C,wBAAgB,WAAW,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAwCjD;AAGD,wBAAgB,GAAG,CAAC,UAAU,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,EAAE,IAAI,GAAE,EAAO,GAAG,IAAI,CAYrF;AAED,wBAAgB,IAAI,CAAC,UAAU,EAAE,UAAU,EAAE,OAAO,EAAE,MAAM,EAAE,IAAI,GAAE,EAAO,GAAG,IAAI,CAYjF;AAED,wBAAgB,QAAQ,CAAC,UAAU,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,EAAE,KAAK,EAAE,WAAW,EAAE,OAAO,EAAE,WAAW,QAgB3G"}
@@ -1,3 +1,3 @@
1
- import { Controller } from "stimulus";
1
+ import { Controller } from "@hotwired/stimulus";
2
2
  export declare function controllerMethod<C extends Controller>(controller: C, methodName: string): (...args: any[]) => any;
3
3
  //# sourceMappingURL=stimulus.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"stimulus.d.ts","sourceRoot":"","sources":["../../src/utilities/stimulus.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,UAAU,EAAC,MAAM,UAAU,CAAC;AAEpC,wBAAgB,gBAAgB,CAAC,CAAC,SAAS,UAAU,EAAE,UAAU,EAAE,CAAC,EAAE,UAAU,EAAE,MAAM,GAAG,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,GAAG,CAUjH"}
1
+ {"version":3,"file":"stimulus.d.ts","sourceRoot":"","sources":["../../src/utilities/stimulus.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,UAAU,EAAC,MAAM,oBAAoB,CAAC;AAE9C,wBAAgB,gBAAgB,CAAC,CAAC,SAAS,UAAU,EAAE,UAAU,EAAE,CAAC,EAAE,UAAU,EAAE,MAAM,GAAG,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,GAAG,CAUjH"}
package/package.json CHANGED
@@ -9,7 +9,7 @@
9
9
  "ruby on rails",
10
10
  "ruby-on-rails"
11
11
  ],
12
- "version": "0.7.4",
12
+ "version": "0.7.5",
13
13
  "license": "MIT",
14
14
  "author": {
15
15
  "name": "Sub-Xaero",
@@ -43,23 +43,20 @@
43
43
  "test:treeshake": "agadoo dist stimulus-library.js"
44
44
  },
45
45
  "dependencies": {
46
- "date-fns": "^2.28.0",
47
- "dialog-polyfill": "^0.5.6",
48
- "lodash-es": "^4.17.21",
49
- "mitt": "^3.0.0",
50
- "smoothscroll-polyfill": "^0.4.4"
51
- },
52
- "peerDependencies": {
53
- "stimulus": "^3.0.0 || ^2.0.0"
46
+ "mitt": "^3.0.0"
54
47
  },
55
48
  "devDependencies": {
56
49
  "@types/lodash-es": "^4.17.6",
57
50
  "@types/smoothscroll-polyfill": "^0.3.1",
51
+ "@hotwired/stimulus": "^3.0.1",
58
52
  "agadoo": "^2.0.0",
53
+ "date-fns": "^2.28.0",
54
+ "dialog-polyfill": "^0.5.6",
55
+ "lodash-es": "^4.17.21",
59
56
  "cypress": "^9.4.1",
60
57
  "rimraf": "^3.0.2",
58
+ "smoothscroll-polyfill": "^0.4.4",
61
59
  "standard-version": "^9.3.2",
62
- "stimulus": "^3.0.1",
63
60
  "typescript": "^4.5.5",
64
61
  "vite": "^2.7.13"
65
62
  }
@@ -1,5 +0,0 @@
1
- import { Controller } from "stimulus";
2
- export declare function useResize(controller: Controller, element: HTMLElement, resize: (event: Event) => void): {
3
- teardown: () => void;
4
- };
5
- //# sourceMappingURL=use_resize.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"use_resize.d.ts","sourceRoot":"","sources":["../../src/mixins/use_resize.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,UAAU,EAAC,MAAM,UAAU,CAAC;AAIpC,wBAAgB,SAAS,CAAC,UAAU,EAAE,UAAU,EAAE,OAAO,EAAE,WAAW,EAAE,MAAM,EAAE,CAAC,KAAK,EAAE,KAAK,KAAK,IAAI;;EAwBrG"}