@spscommerce/positioning 6.37.2 → 7.0.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.
@@ -24,7 +24,7 @@ export declare class PositioningService {
24
24
  * Returns the options currently beinng used for positioning the element,
25
25
  * if it is indeed being positioned by the service.
26
26
  */
27
- static getPositioningOptions(element: HTMLElement): PositioningOptions;
27
+ static getPositioningOptions(element: HTMLElement): PositioningOptions | null;
28
28
  /** PositioningService will start controlling the position of the given element. */
29
29
  static position(element: HTMLElement, options?: PositioningOptions): void;
30
30
  /** PositioningService will stop controlling the position of the given element. */
@@ -45,7 +45,7 @@ export declare class PositioningService {
45
45
  off(eventName: any, handler: any): void;
46
46
  once(eventName: any, handler: any): void;
47
47
  isPositioned(element: HTMLElement): boolean;
48
- getPositioningOptions(element: HTMLElement): PositioningOptions;
48
+ getPositioningOptions(element: HTMLElement): PositioningOptions | null;
49
49
  position(element: HTMLElement, options?: PositioningOptions): void;
50
50
  release(element: HTMLElement): void;
51
51
  releaseAll(): void;
package/package.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@spscommerce/positioning",
3
3
  "description": "Service for positioning dropdown/popup elements.",
4
- "version": "6.37.2",
4
+ "version": "7.0.0",
5
5
  "author": "SPS Commerce",
6
6
  "license": "UNLICENSED",
7
- "repository": "https://github.com/spscommerce/design-system/tree/main/packages/@spscommerce/positioning",
8
- "homepage": "https://github.com/spscommerce/design-system/tree/main/packages/@spscommerce/positioning#readme",
9
- "main": "./lib/index.cjs.js",
7
+ "repository": "https://github.com/spscommerce/woodland/tree/main/packages/@spscommerce/positioning",
8
+ "homepage": "https://github.com/spscommerce/woodland/tree/main/packages/@spscommerce/positioning#readme",
9
+ "main": "./lib/index.es.js",
10
10
  "module": "./lib/index.es.js",
11
11
  "types": "./lib/index.d.ts",
12
12
  "publishConfig": {
@@ -29,7 +29,6 @@
29
29
  "build:types": "tsc --emitDeclarationOnly --declaration --declarationDir lib",
30
30
  "watch": "vite build --watch",
31
31
  "clean": "git clean -fdX",
32
- "pub": "pnpm pack && node ../../scripts/publish-package.js"
33
- },
34
- "readme": "[//]: # \"START_AUTOGENERATED\"\n\n## [@spscommerce/positioning](https://github.com/spscommerce/design-system/tree/main/packages/@spscommerce/positioning#readme)\n\n![release: 1.1.0](https://img.shields.io/badge/release-1.1.0-blue.svg?style=flat-square)\n![build: passing](https://img.shields.io/badge/build-passing-green.svg?style=flat-square)\n![tests: failing](https://img.shields.io/badge/tests-failing-red.svg?style=flat-square)\n\nService for positioning dropdown/popup elements. \n \n ### Installation \n \n ```shell\nnpm install --save @spscommerce/positioning\n```\n\n#### Peer Dependencies\n\n<div class=\"row\">\n <div class=\"col-5\"> \n <table class=\"sps-table\">\n <thead class=\"sps-table__head\">\n <tr class=\"sps-table__row\">\n <th class=\"sps-table__header\">\n <span class=\"sps-table__header-cell-body\"> \n Package\n </span>\n </th>\n <th class=\"sps-table__header text-right\">\n <span class=\"sps-table__header-cell-body\"> \n Version\n </span>\n </th>\n </tr>\n </thead>\n <tbody class=\"sps-table__body\">\n <tr class=\"sps-table__row\"><td class=\"sps-table__cell\"><a href=\"https://github.com/spscommerce/design-system/tree/main/packages/@spscommerce/utils#readme\">@spscommerce/utils</a></td><td class=\"sps-table__cell text-right\">^1.1.0</td></tr>\n<tr class=\"sps-table__row\"><td class=\"sps-table__cell\"><a href=\"git://github.com/primus/eventemitter3.git\">eventemitter3</a></td><td class=\"sps-table__cell text-right\">^3.1.0</td></tr>\n<tr class=\"sps-table__row\"><td class=\"sps-table__cell\"><a href=\"git@github.com:w3c/IntersectionObserver.git\">intersection-observer</a></td><td class=\"sps-table__cell text-right\">^0.5.1</td></tr>\n </tbody>\n </table>\n </div>\n <div class=\"col-7\">\n &nbsp;\n </div>\n</div>\n\n[//]: # \"END_AUTOGENERATED\"\n"
32
+ "pub": "node ../../scripts/publish-package.js"
33
+ }
35
34
  }