@instructure/ui-pagination 8.38.2-snapshot-5 → 8.38.2-snapshot-7

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 CHANGED
@@ -3,7 +3,7 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
- ## [8.38.2-snapshot-5](https://github.com/instructure/instructure-ui/compare/v8.38.1...v8.38.2-snapshot-5) (2023-07-14)
6
+ ## [8.38.2-snapshot-7](https://github.com/instructure/instructure-ui/compare/v8.38.1...v8.38.2-snapshot-7) (2023-07-21)
7
7
 
8
8
  **Note:** Version bump only for package @instructure/ui-pagination
9
9
 
@@ -31,13 +31,8 @@ import { PaginationArrowButton } from './index';
31
31
  export const PaginationArrowButtonLocator = locator(
32
32
  // @ts-expect-error ts-migrate(2339) FIXME: Property 'selector' does not exist on type 'typeof... Remove this comment to see the full error message
33
33
  PaginationArrowButton.selector, {
34
- findTooltipContent: function () {
35
- return TooltipLocator.findContent(...arguments);
36
- },
37
- click: async function (element) {
38
- for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
39
- args[_key - 1] = arguments[_key];
40
- }
34
+ findTooltipContent: (...args) => TooltipLocator.findContent(...args),
35
+ click: async (element, ...args) => {
41
36
  return (await find(element, 'a,button,[role="button"]')).click(...args);
42
37
  }
43
38
  });
@@ -41,8 +41,8 @@ id: Pagination.Navigation
41
41
  @tsProps
42
42
  **/
43
43
  let PaginationArrowButton = (_dec = testable(), _dec(_class = (_class2 = class PaginationArrowButton extends Component {
44
- constructor() {
45
- super(...arguments);
44
+ constructor(...args) {
45
+ super(...args);
46
46
  this.ref = null;
47
47
  this.handleRef = el => {
48
48
  this.ref = el;
@@ -35,8 +35,8 @@ id: Pagination.Page
35
35
  ---
36
36
  **/
37
37
  let PaginationButton = (_dec = testable(), _dec(_class = (_class2 = class PaginationButton extends Component {
38
- constructor() {
39
- super(...arguments);
38
+ constructor(...args) {
39
+ super(...args);
40
40
  this.ref = null;
41
41
  this.handleRef = el => {
42
42
  this.ref = el;
@@ -31,16 +31,8 @@ const PaginationButtonLocator = locator(Pagination.Page.selector);
31
31
 
32
32
  // @ts-expect-error ts-migrate(2339) FIXME: Property 'selector' does not exist on type 'typeof... Remove this comment to see the full error message
33
33
  export const PaginationLocator = locator(Pagination.selector, {
34
- findAllPageButtons: async function () {
35
- return PaginationButtonLocator.findAll(...arguments);
36
- },
37
- findPageButton: async function () {
38
- return PaginationButtonLocator.find(...arguments);
39
- },
40
- findArrowButton: async function () {
41
- return PaginationArrowButtonLocator.find(...arguments);
42
- },
43
- findPageInput: async function () {
44
- return PaginationPageInputLocator.find(...arguments);
45
- }
34
+ findAllPageButtons: async (...args) => PaginationButtonLocator.findAll(...args),
35
+ findPageButton: async (...args) => PaginationButtonLocator.find(...args),
36
+ findArrowButton: async (...args) => PaginationArrowButtonLocator.find(...args),
37
+ findPageInput: async (...args) => PaginationPageInputLocator.find(...args)
46
38
  });
@@ -31,10 +31,6 @@ import { PaginationPageInput } from './index';
31
31
  export const PaginationPageInputLocator = locator(
32
32
  // @ts-expect-error ts-migrate(2339) FIXME: Property 'selector' does not exist on type 'typeof... Remove this comment to see the full error message
33
33
  PaginationPageInput.selector, {
34
- findInput: function () {
35
- return NumberInputLocator.findInput(...arguments);
36
- },
37
- findNumberInputArrows: function () {
38
- return NumberInputLocator.findArrowButtons(...arguments);
39
- }
34
+ findInput: (...args) => NumberInputLocator.findInput(...args),
35
+ findNumberInputArrows: (...args) => NumberInputLocator.findArrowButtons(...args)
40
36
  });
@@ -38,13 +38,8 @@ var _index = require("./index");
38
38
  const PaginationArrowButtonLocator = (0, _locator.locator)(
39
39
  // @ts-expect-error ts-migrate(2339) FIXME: Property 'selector' does not exist on type 'typeof... Remove this comment to see the full error message
40
40
  _index.PaginationArrowButton.selector, {
41
- findTooltipContent: function () {
42
- return _TooltipLocator.TooltipLocator.findContent(...arguments);
43
- },
44
- click: async function (element) {
45
- for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
46
- args[_key - 1] = arguments[_key];
47
- }
41
+ findTooltipContent: (...args) => _TooltipLocator.TooltipLocator.findContent(...args),
42
+ click: async (element, ...args) => {
48
43
  return (await (0, _uiTestQueries.find)(element, 'a,button,[role="button"]')).click(...args);
49
44
  }
50
45
  });
@@ -50,8 +50,8 @@ id: Pagination.Navigation
50
50
  @tsProps
51
51
  **/
52
52
  let PaginationArrowButton = (_dec = (0, _testable.testable)(), _dec(_class = (_class2 = class PaginationArrowButton extends _react.Component {
53
- constructor() {
54
- super(...arguments);
53
+ constructor(...args) {
54
+ super(...args);
55
55
  this.ref = null;
56
56
  this.handleRef = el => {
57
57
  this.ref = el;
@@ -41,8 +41,8 @@ id: Pagination.Page
41
41
  ---
42
42
  **/
43
43
  let PaginationButton = (_dec = (0, _testable.testable)(), _dec(_class = (_class2 = class PaginationButton extends _react.Component {
44
- constructor() {
45
- super(...arguments);
44
+ constructor(...args) {
45
+ super(...args);
46
46
  this.ref = null;
47
47
  this.handleRef = el => {
48
48
  this.ref = el;
@@ -37,17 +37,9 @@ const PaginationButtonLocator = (0, _locator.locator)(_index.Pagination.Page.sel
37
37
 
38
38
  // @ts-expect-error ts-migrate(2339) FIXME: Property 'selector' does not exist on type 'typeof... Remove this comment to see the full error message
39
39
  const PaginationLocator = (0, _locator.locator)(_index.Pagination.selector, {
40
- findAllPageButtons: async function () {
41
- return PaginationButtonLocator.findAll(...arguments);
42
- },
43
- findPageButton: async function () {
44
- return PaginationButtonLocator.find(...arguments);
45
- },
46
- findArrowButton: async function () {
47
- return _PaginationArrowButtonLocator.PaginationArrowButtonLocator.find(...arguments);
48
- },
49
- findPageInput: async function () {
50
- return _PaginationPageInputLocator.PaginationPageInputLocator.find(...arguments);
51
- }
40
+ findAllPageButtons: async (...args) => PaginationButtonLocator.findAll(...args),
41
+ findPageButton: async (...args) => PaginationButtonLocator.find(...args),
42
+ findArrowButton: async (...args) => _PaginationArrowButtonLocator.PaginationArrowButtonLocator.find(...args),
43
+ findPageInput: async (...args) => _PaginationPageInputLocator.PaginationPageInputLocator.find(...args)
52
44
  });
53
45
  exports.PaginationLocator = PaginationLocator;
@@ -37,11 +37,7 @@ var _index = require("./index");
37
37
  const PaginationPageInputLocator = (0, _locator.locator)(
38
38
  // @ts-expect-error ts-migrate(2339) FIXME: Property 'selector' does not exist on type 'typeof... Remove this comment to see the full error message
39
39
  _index.PaginationPageInput.selector, {
40
- findInput: function () {
41
- return _NumberInputLocator.NumberInputLocator.findInput(...arguments);
42
- },
43
- findNumberInputArrows: function () {
44
- return _NumberInputLocator.NumberInputLocator.findArrowButtons(...arguments);
45
- }
40
+ findInput: (...args) => _NumberInputLocator.NumberInputLocator.findInput(...args),
41
+ findNumberInputArrows: (...args) => _NumberInputLocator.NumberInputLocator.findArrowButtons(...args)
46
42
  });
47
43
  exports.PaginationPageInputLocator = PaginationPageInputLocator;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@instructure/ui-pagination",
3
- "version": "8.38.2-snapshot-5",
3
+ "version": "8.38.2-snapshot-7",
4
4
  "description": "A UI component library made by Instructure Inc.",
5
5
  "author": "Instructure, Inc. Engineering and Product Design",
6
6
  "module": "./es/index.js",
@@ -23,29 +23,29 @@
23
23
  },
24
24
  "license": "MIT",
25
25
  "devDependencies": {
26
- "@instructure/ui-babel-preset": "8.38.2-snapshot-5",
27
- "@instructure/ui-test-locator": "8.38.2-snapshot-5",
28
- "@instructure/ui-test-queries": "8.38.2-snapshot-5",
29
- "@instructure/ui-test-utils": "8.38.2-snapshot-5"
26
+ "@instructure/ui-babel-preset": "8.38.2-snapshot-7",
27
+ "@instructure/ui-test-locator": "8.38.2-snapshot-7",
28
+ "@instructure/ui-test-queries": "8.38.2-snapshot-7",
29
+ "@instructure/ui-test-utils": "8.38.2-snapshot-7"
30
30
  },
31
31
  "dependencies": {
32
- "@babel/runtime": "^7.22.5",
33
- "@instructure/emotion": "8.38.2-snapshot-5",
34
- "@instructure/shared-types": "8.38.2-snapshot-5",
35
- "@instructure/ui-a11y-content": "8.38.2-snapshot-5",
36
- "@instructure/ui-a11y-utils": "8.38.2-snapshot-5",
37
- "@instructure/ui-buttons": "8.38.2-snapshot-5",
38
- "@instructure/ui-dom-utils": "8.38.2-snapshot-5",
39
- "@instructure/ui-icons": "8.38.2-snapshot-5",
40
- "@instructure/ui-number-input": "8.38.2-snapshot-5",
41
- "@instructure/ui-portal": "8.38.2-snapshot-5",
42
- "@instructure/ui-prop-types": "8.38.2-snapshot-5",
43
- "@instructure/ui-react-utils": "8.38.2-snapshot-5",
44
- "@instructure/ui-testable": "8.38.2-snapshot-5",
45
- "@instructure/ui-tooltip": "8.38.2-snapshot-5",
46
- "@instructure/ui-utils": "8.38.2-snapshot-5",
47
- "@instructure/ui-view": "8.38.2-snapshot-5",
48
- "@instructure/uid": "8.38.2-snapshot-5",
32
+ "@babel/runtime": "^7.22.6",
33
+ "@instructure/emotion": "8.38.2-snapshot-7",
34
+ "@instructure/shared-types": "8.38.2-snapshot-7",
35
+ "@instructure/ui-a11y-content": "8.38.2-snapshot-7",
36
+ "@instructure/ui-a11y-utils": "8.38.2-snapshot-7",
37
+ "@instructure/ui-buttons": "8.38.2-snapshot-7",
38
+ "@instructure/ui-dom-utils": "8.38.2-snapshot-7",
39
+ "@instructure/ui-icons": "8.38.2-snapshot-7",
40
+ "@instructure/ui-number-input": "8.38.2-snapshot-7",
41
+ "@instructure/ui-portal": "8.38.2-snapshot-7",
42
+ "@instructure/ui-prop-types": "8.38.2-snapshot-7",
43
+ "@instructure/ui-react-utils": "8.38.2-snapshot-7",
44
+ "@instructure/ui-testable": "8.38.2-snapshot-7",
45
+ "@instructure/ui-tooltip": "8.38.2-snapshot-7",
46
+ "@instructure/ui-utils": "8.38.2-snapshot-7",
47
+ "@instructure/ui-view": "8.38.2-snapshot-7",
48
+ "@instructure/uid": "8.38.2-snapshot-7",
49
49
  "keycode": "^2.2.1",
50
50
  "prop-types": "^15.8.1"
51
51
  },