From 72eb135eea09c45e25d4241d0e3a48040cd6268c Mon Sep 17 00:00:00 2001 From: snyk-bot Date: Wed, 1 Jul 2020 21:05:47 +0000 Subject: [PATCH 1/3] fix: upgrade react-table from 7.1.0 to 7.2.0 Snyk has created this PR to upgrade react-table from 7.1.0 to 7.2.0. See this package in NPM: https://www.npmjs.com/package/react-table See this project in Snyk: https://app.snyk.io/org/reapit/project/fb568965-bd93-4bc6-9a64-9b23b0c87308?utm_source=github&utm_medium=upgrade-pr --- packages/elements/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/elements/package.json b/packages/elements/package.json index f73729a6d7..82905d8017 100644 --- a/packages/elements/package.json +++ b/packages/elements/package.json @@ -60,7 +60,7 @@ "react-google-maps-loader": "4.2.5", "react-icons": "^3.7.0", "react-image-crop": "8.6.4", - "react-table": "7.1.0", + "react-table": "7.2.0", "react-transition-group": "^4.4.0", "styled-components": "^4.4.1", "snyk": "^1.338.0" From a43745445da8e9c6dc34ba50372ee6298e9f44c6 Mon Sep 17 00:00:00 2001 From: Duong Pham Date: Thu, 2 Jul 2020 14:24:44 +0700 Subject: [PATCH 2/3] chore: update snapshot --- .../__tests__/__snapshots__/index.tsx.snap | 1502 ++++++++++++++++- yarn.lock | 8 +- 2 files changed, 1439 insertions(+), 71 deletions(-) diff --git a/packages/elements/src/components/Table/__tests__/__snapshots__/index.tsx.snap b/packages/elements/src/components/Table/__tests__/__snapshots__/index.tsx.snap index c692a7cb3d..1309b0a705 100644 --- a/packages/elements/src/components/Table/__tests__/__snapshots__/index.tsx.snap +++ b/packages/elements/src/components/Table/__tests__/__snapshots__/index.tsx.snap @@ -1265,6 +1265,234 @@ exports[`Table should match a snapshot when LOADING false 1`] = ` }, ] } + initialRows={ + Array [ + Object { + "allCells": Array [ + Object { + "column": Object { + "Cell": [Function], + "Footer": [Function], + "Header": "First Name", + "accessor": [Function], + "canResize": true, + "depth": 0, + "getFooterProps": [Function], + "getHeaderProps": [Function], + "getToggleHiddenProps": [Function], + "id": "firstName", + "isVisible": true, + "maxWidth": 9007199254740991, + "minWidth": 0, + "parent": undefined, + "render": [Function], + "sortDescFirst": false, + "sortType": "alphanumeric", + "toggleHidden": [Function], + "totalFlexWidth": 150, + "totalLeft": 0, + "totalMaxWidth": 9007199254740991, + "totalMinWidth": 0, + "totalVisibleHeaderCount": 1, + "totalWidth": 150, + "width": 150, + }, + "getCellProps": [Function], + "render": [Function], + "row": [Circular], + "value": "a", + }, + Object { + "column": Object { + "Cell": [Function], + "Footer": [Function], + "Header": "Middle Name", + "accessor": [Function], + "canResize": true, + "depth": 0, + "getFooterProps": [Function], + "getHeaderProps": [Function], + "getToggleHiddenProps": [Function], + "id": "middleName", + "isVisible": true, + "maxWidth": 9007199254740991, + "minWidth": 0, + "parent": undefined, + "render": [Function], + "sortDescFirst": false, + "sortType": "alphanumeric", + "toggleHidden": [Function], + "totalFlexWidth": 150, + "totalLeft": 150, + "totalMaxWidth": 9007199254740991, + "totalMinWidth": 0, + "totalVisibleHeaderCount": 1, + "totalWidth": 150, + "width": 150, + }, + "getCellProps": [Function], + "render": [Function], + "row": [Circular], + "value": "b", + }, + Object { + "column": Object { + "Cell": [Function], + "Footer": [Function], + "Header": "Last Name", + "accessor": [Function], + "canResize": true, + "depth": 0, + "getFooterProps": [Function], + "getHeaderProps": [Function], + "getToggleHiddenProps": [Function], + "id": "lastName", + "isVisible": true, + "maxWidth": 9007199254740991, + "minWidth": 0, + "parent": undefined, + "render": [Function], + "sortDescFirst": false, + "sortType": "alphanumeric", + "toggleHidden": [Function], + "totalFlexWidth": 150, + "totalLeft": 300, + "totalMaxWidth": 9007199254740991, + "totalMinWidth": 0, + "totalVisibleHeaderCount": 1, + "totalWidth": 150, + "width": 150, + }, + "getCellProps": [Function], + "render": [Function], + "row": [Circular], + "value": "c", + }, + ], + "canExpand": false, + "cells": Array [ + Object { + "column": Object { + "Cell": [Function], + "Footer": [Function], + "Header": "First Name", + "accessor": [Function], + "canResize": true, + "depth": 0, + "getFooterProps": [Function], + "getHeaderProps": [Function], + "getToggleHiddenProps": [Function], + "id": "firstName", + "isVisible": true, + "maxWidth": 9007199254740991, + "minWidth": 0, + "parent": undefined, + "render": [Function], + "sortDescFirst": false, + "sortType": "alphanumeric", + "toggleHidden": [Function], + "totalFlexWidth": 150, + "totalLeft": 0, + "totalMaxWidth": 9007199254740991, + "totalMinWidth": 0, + "totalVisibleHeaderCount": 1, + "totalWidth": 150, + "width": 150, + }, + "getCellProps": [Function], + "render": [Function], + "row": [Circular], + "value": "a", + }, + Object { + "column": Object { + "Cell": [Function], + "Footer": [Function], + "Header": "Middle Name", + "accessor": [Function], + "canResize": true, + "depth": 0, + "getFooterProps": [Function], + "getHeaderProps": [Function], + "getToggleHiddenProps": [Function], + "id": "middleName", + "isVisible": true, + "maxWidth": 9007199254740991, + "minWidth": 0, + "parent": undefined, + "render": [Function], + "sortDescFirst": false, + "sortType": "alphanumeric", + "toggleHidden": [Function], + "totalFlexWidth": 150, + "totalLeft": 150, + "totalMaxWidth": 9007199254740991, + "totalMinWidth": 0, + "totalVisibleHeaderCount": 1, + "totalWidth": 150, + "width": 150, + }, + "getCellProps": [Function], + "render": [Function], + "row": [Circular], + "value": "b", + }, + Object { + "column": Object { + "Cell": [Function], + "Footer": [Function], + "Header": "Last Name", + "accessor": [Function], + "canResize": true, + "depth": 0, + "getFooterProps": [Function], + "getHeaderProps": [Function], + "getToggleHiddenProps": [Function], + "id": "lastName", + "isVisible": true, + "maxWidth": 9007199254740991, + "minWidth": 0, + "parent": undefined, + "render": [Function], + "sortDescFirst": false, + "sortType": "alphanumeric", + "toggleHidden": [Function], + "totalFlexWidth": 150, + "totalLeft": 300, + "totalMaxWidth": 9007199254740991, + "totalMinWidth": 0, + "totalVisibleHeaderCount": 1, + "totalWidth": 150, + "width": 150, + }, + "getCellProps": [Function], + "render": [Function], + "row": [Circular], + "value": "c", + }, + ], + "depth": 0, + "getRowProps": [Function], + "getToggleRowExpandedProps": [Function], + "id": "0", + "index": 0, + "isExpanded": undefined, + "original": Object { + "firstName": "a", + "lastName": "c", + "middleName": "b", + }, + "originalSubRows": Array [], + "subRows": Array [], + "toggleRowExpanded": [Function], + "values": Object { + "firstName": "a", + "lastName": "c", + "middleName": "b", + }, + }, + ] + } initialState={Object {}} isAllRowsExpanded={false} plugins={ @@ -3514,15 +3742,7 @@ exports[`Table should match a snapshot when LOADING false 1`] = ` }, ] } - initialState={Object {}} - isAllRowsExpanded={false} - plugins={ - Array [ - [Function], - [Function], - ] - } - preExpandedRows={ + initialRows={ Array [ Object { "allCells": Array [ @@ -3750,26 +3970,262 @@ exports[`Table should match a snapshot when LOADING false 1`] = ` }, ] } - prepareRow={[Function]} - row={ - Object { - "allCells": Array [ - Object { - "column": Object { - "Cell": [Function], - "Footer": [Function], - "Header": "First Name", - "accessor": [Function], - "canResize": true, - "depth": 0, - "getFooterProps": [Function], - "getHeaderProps": [Function], - "getToggleHiddenProps": [Function], - "id": "firstName", - "isVisible": true, - "maxWidth": 9007199254740991, - "minWidth": 0, - "parent": undefined, + initialState={Object {}} + isAllRowsExpanded={false} + plugins={ + Array [ + [Function], + [Function], + ] + } + preExpandedRows={ + Array [ + Object { + "allCells": Array [ + Object { + "column": Object { + "Cell": [Function], + "Footer": [Function], + "Header": "First Name", + "accessor": [Function], + "canResize": true, + "depth": 0, + "getFooterProps": [Function], + "getHeaderProps": [Function], + "getToggleHiddenProps": [Function], + "id": "firstName", + "isVisible": true, + "maxWidth": 9007199254740991, + "minWidth": 0, + "parent": undefined, + "render": [Function], + "sortDescFirst": false, + "sortType": "alphanumeric", + "toggleHidden": [Function], + "totalFlexWidth": 150, + "totalLeft": 0, + "totalMaxWidth": 9007199254740991, + "totalMinWidth": 0, + "totalVisibleHeaderCount": 1, + "totalWidth": 150, + "width": 150, + }, + "getCellProps": [Function], + "render": [Function], + "row": [Circular], + "value": "a", + }, + Object { + "column": Object { + "Cell": [Function], + "Footer": [Function], + "Header": "Middle Name", + "accessor": [Function], + "canResize": true, + "depth": 0, + "getFooterProps": [Function], + "getHeaderProps": [Function], + "getToggleHiddenProps": [Function], + "id": "middleName", + "isVisible": true, + "maxWidth": 9007199254740991, + "minWidth": 0, + "parent": undefined, + "render": [Function], + "sortDescFirst": false, + "sortType": "alphanumeric", + "toggleHidden": [Function], + "totalFlexWidth": 150, + "totalLeft": 150, + "totalMaxWidth": 9007199254740991, + "totalMinWidth": 0, + "totalVisibleHeaderCount": 1, + "totalWidth": 150, + "width": 150, + }, + "getCellProps": [Function], + "render": [Function], + "row": [Circular], + "value": "b", + }, + Object { + "column": Object { + "Cell": [Function], + "Footer": [Function], + "Header": "Last Name", + "accessor": [Function], + "canResize": true, + "depth": 0, + "getFooterProps": [Function], + "getHeaderProps": [Function], + "getToggleHiddenProps": [Function], + "id": "lastName", + "isVisible": true, + "maxWidth": 9007199254740991, + "minWidth": 0, + "parent": undefined, + "render": [Function], + "sortDescFirst": false, + "sortType": "alphanumeric", + "toggleHidden": [Function], + "totalFlexWidth": 150, + "totalLeft": 300, + "totalMaxWidth": 9007199254740991, + "totalMinWidth": 0, + "totalVisibleHeaderCount": 1, + "totalWidth": 150, + "width": 150, + }, + "getCellProps": [Function], + "render": [Function], + "row": [Circular], + "value": "c", + }, + ], + "canExpand": false, + "cells": Array [ + Object { + "column": Object { + "Cell": [Function], + "Footer": [Function], + "Header": "First Name", + "accessor": [Function], + "canResize": true, + "depth": 0, + "getFooterProps": [Function], + "getHeaderProps": [Function], + "getToggleHiddenProps": [Function], + "id": "firstName", + "isVisible": true, + "maxWidth": 9007199254740991, + "minWidth": 0, + "parent": undefined, + "render": [Function], + "sortDescFirst": false, + "sortType": "alphanumeric", + "toggleHidden": [Function], + "totalFlexWidth": 150, + "totalLeft": 0, + "totalMaxWidth": 9007199254740991, + "totalMinWidth": 0, + "totalVisibleHeaderCount": 1, + "totalWidth": 150, + "width": 150, + }, + "getCellProps": [Function], + "render": [Function], + "row": [Circular], + "value": "a", + }, + Object { + "column": Object { + "Cell": [Function], + "Footer": [Function], + "Header": "Middle Name", + "accessor": [Function], + "canResize": true, + "depth": 0, + "getFooterProps": [Function], + "getHeaderProps": [Function], + "getToggleHiddenProps": [Function], + "id": "middleName", + "isVisible": true, + "maxWidth": 9007199254740991, + "minWidth": 0, + "parent": undefined, + "render": [Function], + "sortDescFirst": false, + "sortType": "alphanumeric", + "toggleHidden": [Function], + "totalFlexWidth": 150, + "totalLeft": 150, + "totalMaxWidth": 9007199254740991, + "totalMinWidth": 0, + "totalVisibleHeaderCount": 1, + "totalWidth": 150, + "width": 150, + }, + "getCellProps": [Function], + "render": [Function], + "row": [Circular], + "value": "b", + }, + Object { + "column": Object { + "Cell": [Function], + "Footer": [Function], + "Header": "Last Name", + "accessor": [Function], + "canResize": true, + "depth": 0, + "getFooterProps": [Function], + "getHeaderProps": [Function], + "getToggleHiddenProps": [Function], + "id": "lastName", + "isVisible": true, + "maxWidth": 9007199254740991, + "minWidth": 0, + "parent": undefined, + "render": [Function], + "sortDescFirst": false, + "sortType": "alphanumeric", + "toggleHidden": [Function], + "totalFlexWidth": 150, + "totalLeft": 300, + "totalMaxWidth": 9007199254740991, + "totalMinWidth": 0, + "totalVisibleHeaderCount": 1, + "totalWidth": 150, + "width": 150, + }, + "getCellProps": [Function], + "render": [Function], + "row": [Circular], + "value": "c", + }, + ], + "depth": 0, + "getRowProps": [Function], + "getToggleRowExpandedProps": [Function], + "id": "0", + "index": 0, + "isExpanded": undefined, + "original": Object { + "firstName": "a", + "lastName": "c", + "middleName": "b", + }, + "originalSubRows": Array [], + "subRows": Array [], + "toggleRowExpanded": [Function], + "values": Object { + "firstName": "a", + "lastName": "c", + "middleName": "b", + }, + }, + ] + } + prepareRow={[Function]} + row={ + Object { + "allCells": Array [ + Object { + "column": Object { + "Cell": [Function], + "Footer": [Function], + "Header": "First Name", + "accessor": [Function], + "canResize": true, + "depth": 0, + "getFooterProps": [Function], + "getHeaderProps": [Function], + "getToggleHiddenProps": [Function], + "id": "firstName", + "isVisible": true, + "maxWidth": 9007199254740991, + "minWidth": 0, + "parent": undefined, "render": [Function], "sortDescFirst": false, "sortType": "alphanumeric", @@ -5741,25 +6197,253 @@ exports[`Table should match a snapshot when LOADING false 1`] = ` "accessor": [Function], "canResize": true, "depth": 0, - "getFooterProps": [Function], - "getHeaderProps": [Function], - "getToggleHiddenProps": [Function], - "id": "lastName", - "isVisible": true, - "maxWidth": 9007199254740991, - "minWidth": 0, - "parent": undefined, - "render": [Function], - "sortDescFirst": false, - "sortType": "alphanumeric", - "toggleHidden": [Function], - "totalFlexWidth": 150, - "totalLeft": 300, - "totalMaxWidth": 9007199254740991, - "totalMinWidth": 0, - "totalVisibleHeaderCount": 1, - "totalWidth": 150, - "width": 150, + "getFooterProps": [Function], + "getHeaderProps": [Function], + "getToggleHiddenProps": [Function], + "id": "lastName", + "isVisible": true, + "maxWidth": 9007199254740991, + "minWidth": 0, + "parent": undefined, + "render": [Function], + "sortDescFirst": false, + "sortType": "alphanumeric", + "toggleHidden": [Function], + "totalFlexWidth": 150, + "totalLeft": 300, + "totalMaxWidth": 9007199254740991, + "totalMinWidth": 0, + "totalVisibleHeaderCount": 1, + "totalWidth": 150, + "width": 150, + }, + ] + } + initialRows={ + Array [ + Object { + "allCells": Array [ + Object { + "column": Object { + "Cell": [Function], + "Footer": [Function], + "Header": "First Name", + "accessor": [Function], + "canResize": true, + "depth": 0, + "getFooterProps": [Function], + "getHeaderProps": [Function], + "getToggleHiddenProps": [Function], + "id": "firstName", + "isVisible": true, + "maxWidth": 9007199254740991, + "minWidth": 0, + "parent": undefined, + "render": [Function], + "sortDescFirst": false, + "sortType": "alphanumeric", + "toggleHidden": [Function], + "totalFlexWidth": 150, + "totalLeft": 0, + "totalMaxWidth": 9007199254740991, + "totalMinWidth": 0, + "totalVisibleHeaderCount": 1, + "totalWidth": 150, + "width": 150, + }, + "getCellProps": [Function], + "render": [Function], + "row": [Circular], + "value": "a", + }, + Object { + "column": Object { + "Cell": [Function], + "Footer": [Function], + "Header": "Middle Name", + "accessor": [Function], + "canResize": true, + "depth": 0, + "getFooterProps": [Function], + "getHeaderProps": [Function], + "getToggleHiddenProps": [Function], + "id": "middleName", + "isVisible": true, + "maxWidth": 9007199254740991, + "minWidth": 0, + "parent": undefined, + "render": [Function], + "sortDescFirst": false, + "sortType": "alphanumeric", + "toggleHidden": [Function], + "totalFlexWidth": 150, + "totalLeft": 150, + "totalMaxWidth": 9007199254740991, + "totalMinWidth": 0, + "totalVisibleHeaderCount": 1, + "totalWidth": 150, + "width": 150, + }, + "getCellProps": [Function], + "render": [Function], + "row": [Circular], + "value": "b", + }, + Object { + "column": Object { + "Cell": [Function], + "Footer": [Function], + "Header": "Last Name", + "accessor": [Function], + "canResize": true, + "depth": 0, + "getFooterProps": [Function], + "getHeaderProps": [Function], + "getToggleHiddenProps": [Function], + "id": "lastName", + "isVisible": true, + "maxWidth": 9007199254740991, + "minWidth": 0, + "parent": undefined, + "render": [Function], + "sortDescFirst": false, + "sortType": "alphanumeric", + "toggleHidden": [Function], + "totalFlexWidth": 150, + "totalLeft": 300, + "totalMaxWidth": 9007199254740991, + "totalMinWidth": 0, + "totalVisibleHeaderCount": 1, + "totalWidth": 150, + "width": 150, + }, + "getCellProps": [Function], + "render": [Function], + "row": [Circular], + "value": "c", + }, + ], + "canExpand": false, + "cells": Array [ + Object { + "column": Object { + "Cell": [Function], + "Footer": [Function], + "Header": "First Name", + "accessor": [Function], + "canResize": true, + "depth": 0, + "getFooterProps": [Function], + "getHeaderProps": [Function], + "getToggleHiddenProps": [Function], + "id": "firstName", + "isVisible": true, + "maxWidth": 9007199254740991, + "minWidth": 0, + "parent": undefined, + "render": [Function], + "sortDescFirst": false, + "sortType": "alphanumeric", + "toggleHidden": [Function], + "totalFlexWidth": 150, + "totalLeft": 0, + "totalMaxWidth": 9007199254740991, + "totalMinWidth": 0, + "totalVisibleHeaderCount": 1, + "totalWidth": 150, + "width": 150, + }, + "getCellProps": [Function], + "render": [Function], + "row": [Circular], + "value": "a", + }, + Object { + "column": Object { + "Cell": [Function], + "Footer": [Function], + "Header": "Middle Name", + "accessor": [Function], + "canResize": true, + "depth": 0, + "getFooterProps": [Function], + "getHeaderProps": [Function], + "getToggleHiddenProps": [Function], + "id": "middleName", + "isVisible": true, + "maxWidth": 9007199254740991, + "minWidth": 0, + "parent": undefined, + "render": [Function], + "sortDescFirst": false, + "sortType": "alphanumeric", + "toggleHidden": [Function], + "totalFlexWidth": 150, + "totalLeft": 150, + "totalMaxWidth": 9007199254740991, + "totalMinWidth": 0, + "totalVisibleHeaderCount": 1, + "totalWidth": 150, + "width": 150, + }, + "getCellProps": [Function], + "render": [Function], + "row": [Circular], + "value": "b", + }, + Object { + "column": Object { + "Cell": [Function], + "Footer": [Function], + "Header": "Last Name", + "accessor": [Function], + "canResize": true, + "depth": 0, + "getFooterProps": [Function], + "getHeaderProps": [Function], + "getToggleHiddenProps": [Function], + "id": "lastName", + "isVisible": true, + "maxWidth": 9007199254740991, + "minWidth": 0, + "parent": undefined, + "render": [Function], + "sortDescFirst": false, + "sortType": "alphanumeric", + "toggleHidden": [Function], + "totalFlexWidth": 150, + "totalLeft": 300, + "totalMaxWidth": 9007199254740991, + "totalMinWidth": 0, + "totalVisibleHeaderCount": 1, + "totalWidth": 150, + "width": 150, + }, + "getCellProps": [Function], + "render": [Function], + "row": [Circular], + "value": "c", + }, + ], + "depth": 0, + "getRowProps": [Function], + "getToggleRowExpandedProps": [Function], + "id": "0", + "index": 0, + "isExpanded": undefined, + "original": Object { + "firstName": "a", + "lastName": "c", + "middleName": "b", + }, + "originalSubRows": Array [], + "subRows": Array [], + "toggleRowExpanded": [Function], + "values": Object { + "firstName": "a", + "lastName": "c", + "middleName": "b", + }, }, ] } @@ -8089,25 +8773,253 @@ exports[`Table should match a snapshot when table is scrollable 1`] = ` "accessor": [Function], "canResize": true, "depth": 0, - "getFooterProps": [Function], - "getHeaderProps": [Function], - "getToggleHiddenProps": [Function], - "id": "lastName", - "isVisible": true, - "maxWidth": 9007199254740991, - "minWidth": 0, - "parent": undefined, - "render": [Function], - "sortDescFirst": false, - "sortType": "alphanumeric", - "toggleHidden": [Function], - "totalFlexWidth": 150, - "totalLeft": 300, - "totalMaxWidth": 9007199254740991, - "totalMinWidth": 0, - "totalVisibleHeaderCount": 1, - "totalWidth": 150, - "width": 150, + "getFooterProps": [Function], + "getHeaderProps": [Function], + "getToggleHiddenProps": [Function], + "id": "lastName", + "isVisible": true, + "maxWidth": 9007199254740991, + "minWidth": 0, + "parent": undefined, + "render": [Function], + "sortDescFirst": false, + "sortType": "alphanumeric", + "toggleHidden": [Function], + "totalFlexWidth": 150, + "totalLeft": 300, + "totalMaxWidth": 9007199254740991, + "totalMinWidth": 0, + "totalVisibleHeaderCount": 1, + "totalWidth": 150, + "width": 150, + }, + ] + } + initialRows={ + Array [ + Object { + "allCells": Array [ + Object { + "column": Object { + "Cell": [Function], + "Footer": [Function], + "Header": "First Name", + "accessor": [Function], + "canResize": true, + "depth": 0, + "getFooterProps": [Function], + "getHeaderProps": [Function], + "getToggleHiddenProps": [Function], + "id": "firstName", + "isVisible": true, + "maxWidth": 9007199254740991, + "minWidth": 0, + "parent": undefined, + "render": [Function], + "sortDescFirst": false, + "sortType": "alphanumeric", + "toggleHidden": [Function], + "totalFlexWidth": 150, + "totalLeft": 0, + "totalMaxWidth": 9007199254740991, + "totalMinWidth": 0, + "totalVisibleHeaderCount": 1, + "totalWidth": 150, + "width": 150, + }, + "getCellProps": [Function], + "render": [Function], + "row": [Circular], + "value": "a", + }, + Object { + "column": Object { + "Cell": [Function], + "Footer": [Function], + "Header": "Middle Name", + "accessor": [Function], + "canResize": true, + "depth": 0, + "getFooterProps": [Function], + "getHeaderProps": [Function], + "getToggleHiddenProps": [Function], + "id": "middleName", + "isVisible": true, + "maxWidth": 9007199254740991, + "minWidth": 0, + "parent": undefined, + "render": [Function], + "sortDescFirst": false, + "sortType": "alphanumeric", + "toggleHidden": [Function], + "totalFlexWidth": 150, + "totalLeft": 150, + "totalMaxWidth": 9007199254740991, + "totalMinWidth": 0, + "totalVisibleHeaderCount": 1, + "totalWidth": 150, + "width": 150, + }, + "getCellProps": [Function], + "render": [Function], + "row": [Circular], + "value": "b", + }, + Object { + "column": Object { + "Cell": [Function], + "Footer": [Function], + "Header": "Last Name", + "accessor": [Function], + "canResize": true, + "depth": 0, + "getFooterProps": [Function], + "getHeaderProps": [Function], + "getToggleHiddenProps": [Function], + "id": "lastName", + "isVisible": true, + "maxWidth": 9007199254740991, + "minWidth": 0, + "parent": undefined, + "render": [Function], + "sortDescFirst": false, + "sortType": "alphanumeric", + "toggleHidden": [Function], + "totalFlexWidth": 150, + "totalLeft": 300, + "totalMaxWidth": 9007199254740991, + "totalMinWidth": 0, + "totalVisibleHeaderCount": 1, + "totalWidth": 150, + "width": 150, + }, + "getCellProps": [Function], + "render": [Function], + "row": [Circular], + "value": "c", + }, + ], + "canExpand": false, + "cells": Array [ + Object { + "column": Object { + "Cell": [Function], + "Footer": [Function], + "Header": "First Name", + "accessor": [Function], + "canResize": true, + "depth": 0, + "getFooterProps": [Function], + "getHeaderProps": [Function], + "getToggleHiddenProps": [Function], + "id": "firstName", + "isVisible": true, + "maxWidth": 9007199254740991, + "minWidth": 0, + "parent": undefined, + "render": [Function], + "sortDescFirst": false, + "sortType": "alphanumeric", + "toggleHidden": [Function], + "totalFlexWidth": 150, + "totalLeft": 0, + "totalMaxWidth": 9007199254740991, + "totalMinWidth": 0, + "totalVisibleHeaderCount": 1, + "totalWidth": 150, + "width": 150, + }, + "getCellProps": [Function], + "render": [Function], + "row": [Circular], + "value": "a", + }, + Object { + "column": Object { + "Cell": [Function], + "Footer": [Function], + "Header": "Middle Name", + "accessor": [Function], + "canResize": true, + "depth": 0, + "getFooterProps": [Function], + "getHeaderProps": [Function], + "getToggleHiddenProps": [Function], + "id": "middleName", + "isVisible": true, + "maxWidth": 9007199254740991, + "minWidth": 0, + "parent": undefined, + "render": [Function], + "sortDescFirst": false, + "sortType": "alphanumeric", + "toggleHidden": [Function], + "totalFlexWidth": 150, + "totalLeft": 150, + "totalMaxWidth": 9007199254740991, + "totalMinWidth": 0, + "totalVisibleHeaderCount": 1, + "totalWidth": 150, + "width": 150, + }, + "getCellProps": [Function], + "render": [Function], + "row": [Circular], + "value": "b", + }, + Object { + "column": Object { + "Cell": [Function], + "Footer": [Function], + "Header": "Last Name", + "accessor": [Function], + "canResize": true, + "depth": 0, + "getFooterProps": [Function], + "getHeaderProps": [Function], + "getToggleHiddenProps": [Function], + "id": "lastName", + "isVisible": true, + "maxWidth": 9007199254740991, + "minWidth": 0, + "parent": undefined, + "render": [Function], + "sortDescFirst": false, + "sortType": "alphanumeric", + "toggleHidden": [Function], + "totalFlexWidth": 150, + "totalLeft": 300, + "totalMaxWidth": 9007199254740991, + "totalMinWidth": 0, + "totalVisibleHeaderCount": 1, + "totalWidth": 150, + "width": 150, + }, + "getCellProps": [Function], + "render": [Function], + "row": [Circular], + "value": "c", + }, + ], + "depth": 0, + "getRowProps": [Function], + "getToggleRowExpandedProps": [Function], + "id": "0", + "index": 0, + "isExpanded": undefined, + "original": Object { + "firstName": "a", + "lastName": "c", + "middleName": "b", + }, + "originalSubRows": Array [], + "subRows": Array [], + "toggleRowExpanded": [Function], + "values": Object { + "firstName": "a", + "lastName": "c", + "middleName": "b", + }, }, ] } @@ -10360,6 +11272,234 @@ exports[`Table should match a snapshot when table is scrollable 1`] = ` }, ] } + initialRows={ + Array [ + Object { + "allCells": Array [ + Object { + "column": Object { + "Cell": [Function], + "Footer": [Function], + "Header": "First Name", + "accessor": [Function], + "canResize": true, + "depth": 0, + "getFooterProps": [Function], + "getHeaderProps": [Function], + "getToggleHiddenProps": [Function], + "id": "firstName", + "isVisible": true, + "maxWidth": 9007199254740991, + "minWidth": 0, + "parent": undefined, + "render": [Function], + "sortDescFirst": false, + "sortType": "alphanumeric", + "toggleHidden": [Function], + "totalFlexWidth": 150, + "totalLeft": 0, + "totalMaxWidth": 9007199254740991, + "totalMinWidth": 0, + "totalVisibleHeaderCount": 1, + "totalWidth": 150, + "width": 150, + }, + "getCellProps": [Function], + "render": [Function], + "row": [Circular], + "value": "a", + }, + Object { + "column": Object { + "Cell": [Function], + "Footer": [Function], + "Header": "Middle Name", + "accessor": [Function], + "canResize": true, + "depth": 0, + "getFooterProps": [Function], + "getHeaderProps": [Function], + "getToggleHiddenProps": [Function], + "id": "middleName", + "isVisible": true, + "maxWidth": 9007199254740991, + "minWidth": 0, + "parent": undefined, + "render": [Function], + "sortDescFirst": false, + "sortType": "alphanumeric", + "toggleHidden": [Function], + "totalFlexWidth": 150, + "totalLeft": 150, + "totalMaxWidth": 9007199254740991, + "totalMinWidth": 0, + "totalVisibleHeaderCount": 1, + "totalWidth": 150, + "width": 150, + }, + "getCellProps": [Function], + "render": [Function], + "row": [Circular], + "value": "b", + }, + Object { + "column": Object { + "Cell": [Function], + "Footer": [Function], + "Header": "Last Name", + "accessor": [Function], + "canResize": true, + "depth": 0, + "getFooterProps": [Function], + "getHeaderProps": [Function], + "getToggleHiddenProps": [Function], + "id": "lastName", + "isVisible": true, + "maxWidth": 9007199254740991, + "minWidth": 0, + "parent": undefined, + "render": [Function], + "sortDescFirst": false, + "sortType": "alphanumeric", + "toggleHidden": [Function], + "totalFlexWidth": 150, + "totalLeft": 300, + "totalMaxWidth": 9007199254740991, + "totalMinWidth": 0, + "totalVisibleHeaderCount": 1, + "totalWidth": 150, + "width": 150, + }, + "getCellProps": [Function], + "render": [Function], + "row": [Circular], + "value": "c", + }, + ], + "canExpand": false, + "cells": Array [ + Object { + "column": Object { + "Cell": [Function], + "Footer": [Function], + "Header": "First Name", + "accessor": [Function], + "canResize": true, + "depth": 0, + "getFooterProps": [Function], + "getHeaderProps": [Function], + "getToggleHiddenProps": [Function], + "id": "firstName", + "isVisible": true, + "maxWidth": 9007199254740991, + "minWidth": 0, + "parent": undefined, + "render": [Function], + "sortDescFirst": false, + "sortType": "alphanumeric", + "toggleHidden": [Function], + "totalFlexWidth": 150, + "totalLeft": 0, + "totalMaxWidth": 9007199254740991, + "totalMinWidth": 0, + "totalVisibleHeaderCount": 1, + "totalWidth": 150, + "width": 150, + }, + "getCellProps": [Function], + "render": [Function], + "row": [Circular], + "value": "a", + }, + Object { + "column": Object { + "Cell": [Function], + "Footer": [Function], + "Header": "Middle Name", + "accessor": [Function], + "canResize": true, + "depth": 0, + "getFooterProps": [Function], + "getHeaderProps": [Function], + "getToggleHiddenProps": [Function], + "id": "middleName", + "isVisible": true, + "maxWidth": 9007199254740991, + "minWidth": 0, + "parent": undefined, + "render": [Function], + "sortDescFirst": false, + "sortType": "alphanumeric", + "toggleHidden": [Function], + "totalFlexWidth": 150, + "totalLeft": 150, + "totalMaxWidth": 9007199254740991, + "totalMinWidth": 0, + "totalVisibleHeaderCount": 1, + "totalWidth": 150, + "width": 150, + }, + "getCellProps": [Function], + "render": [Function], + "row": [Circular], + "value": "b", + }, + Object { + "column": Object { + "Cell": [Function], + "Footer": [Function], + "Header": "Last Name", + "accessor": [Function], + "canResize": true, + "depth": 0, + "getFooterProps": [Function], + "getHeaderProps": [Function], + "getToggleHiddenProps": [Function], + "id": "lastName", + "isVisible": true, + "maxWidth": 9007199254740991, + "minWidth": 0, + "parent": undefined, + "render": [Function], + "sortDescFirst": false, + "sortType": "alphanumeric", + "toggleHidden": [Function], + "totalFlexWidth": 150, + "totalLeft": 300, + "totalMaxWidth": 9007199254740991, + "totalMinWidth": 0, + "totalVisibleHeaderCount": 1, + "totalWidth": 150, + "width": 150, + }, + "getCellProps": [Function], + "render": [Function], + "row": [Circular], + "value": "c", + }, + ], + "depth": 0, + "getRowProps": [Function], + "getToggleRowExpandedProps": [Function], + "id": "0", + "index": 0, + "isExpanded": undefined, + "original": Object { + "firstName": "a", + "lastName": "c", + "middleName": "b", + }, + "originalSubRows": Array [], + "subRows": Array [], + "toggleRowExpanded": [Function], + "values": Object { + "firstName": "a", + "lastName": "c", + "middleName": "b", + }, + }, + ] + } initialState={Object {}} isAllRowsExpanded={false} plugins={ @@ -12609,6 +13749,234 @@ exports[`Table should match a snapshot when table is scrollable 1`] = ` }, ] } + initialRows={ + Array [ + Object { + "allCells": Array [ + Object { + "column": Object { + "Cell": [Function], + "Footer": [Function], + "Header": "First Name", + "accessor": [Function], + "canResize": true, + "depth": 0, + "getFooterProps": [Function], + "getHeaderProps": [Function], + "getToggleHiddenProps": [Function], + "id": "firstName", + "isVisible": true, + "maxWidth": 9007199254740991, + "minWidth": 0, + "parent": undefined, + "render": [Function], + "sortDescFirst": false, + "sortType": "alphanumeric", + "toggleHidden": [Function], + "totalFlexWidth": 150, + "totalLeft": 0, + "totalMaxWidth": 9007199254740991, + "totalMinWidth": 0, + "totalVisibleHeaderCount": 1, + "totalWidth": 150, + "width": 150, + }, + "getCellProps": [Function], + "render": [Function], + "row": [Circular], + "value": "a", + }, + Object { + "column": Object { + "Cell": [Function], + "Footer": [Function], + "Header": "Middle Name", + "accessor": [Function], + "canResize": true, + "depth": 0, + "getFooterProps": [Function], + "getHeaderProps": [Function], + "getToggleHiddenProps": [Function], + "id": "middleName", + "isVisible": true, + "maxWidth": 9007199254740991, + "minWidth": 0, + "parent": undefined, + "render": [Function], + "sortDescFirst": false, + "sortType": "alphanumeric", + "toggleHidden": [Function], + "totalFlexWidth": 150, + "totalLeft": 150, + "totalMaxWidth": 9007199254740991, + "totalMinWidth": 0, + "totalVisibleHeaderCount": 1, + "totalWidth": 150, + "width": 150, + }, + "getCellProps": [Function], + "render": [Function], + "row": [Circular], + "value": "b", + }, + Object { + "column": Object { + "Cell": [Function], + "Footer": [Function], + "Header": "Last Name", + "accessor": [Function], + "canResize": true, + "depth": 0, + "getFooterProps": [Function], + "getHeaderProps": [Function], + "getToggleHiddenProps": [Function], + "id": "lastName", + "isVisible": true, + "maxWidth": 9007199254740991, + "minWidth": 0, + "parent": undefined, + "render": [Function], + "sortDescFirst": false, + "sortType": "alphanumeric", + "toggleHidden": [Function], + "totalFlexWidth": 150, + "totalLeft": 300, + "totalMaxWidth": 9007199254740991, + "totalMinWidth": 0, + "totalVisibleHeaderCount": 1, + "totalWidth": 150, + "width": 150, + }, + "getCellProps": [Function], + "render": [Function], + "row": [Circular], + "value": "c", + }, + ], + "canExpand": false, + "cells": Array [ + Object { + "column": Object { + "Cell": [Function], + "Footer": [Function], + "Header": "First Name", + "accessor": [Function], + "canResize": true, + "depth": 0, + "getFooterProps": [Function], + "getHeaderProps": [Function], + "getToggleHiddenProps": [Function], + "id": "firstName", + "isVisible": true, + "maxWidth": 9007199254740991, + "minWidth": 0, + "parent": undefined, + "render": [Function], + "sortDescFirst": false, + "sortType": "alphanumeric", + "toggleHidden": [Function], + "totalFlexWidth": 150, + "totalLeft": 0, + "totalMaxWidth": 9007199254740991, + "totalMinWidth": 0, + "totalVisibleHeaderCount": 1, + "totalWidth": 150, + "width": 150, + }, + "getCellProps": [Function], + "render": [Function], + "row": [Circular], + "value": "a", + }, + Object { + "column": Object { + "Cell": [Function], + "Footer": [Function], + "Header": "Middle Name", + "accessor": [Function], + "canResize": true, + "depth": 0, + "getFooterProps": [Function], + "getHeaderProps": [Function], + "getToggleHiddenProps": [Function], + "id": "middleName", + "isVisible": true, + "maxWidth": 9007199254740991, + "minWidth": 0, + "parent": undefined, + "render": [Function], + "sortDescFirst": false, + "sortType": "alphanumeric", + "toggleHidden": [Function], + "totalFlexWidth": 150, + "totalLeft": 150, + "totalMaxWidth": 9007199254740991, + "totalMinWidth": 0, + "totalVisibleHeaderCount": 1, + "totalWidth": 150, + "width": 150, + }, + "getCellProps": [Function], + "render": [Function], + "row": [Circular], + "value": "b", + }, + Object { + "column": Object { + "Cell": [Function], + "Footer": [Function], + "Header": "Last Name", + "accessor": [Function], + "canResize": true, + "depth": 0, + "getFooterProps": [Function], + "getHeaderProps": [Function], + "getToggleHiddenProps": [Function], + "id": "lastName", + "isVisible": true, + "maxWidth": 9007199254740991, + "minWidth": 0, + "parent": undefined, + "render": [Function], + "sortDescFirst": false, + "sortType": "alphanumeric", + "toggleHidden": [Function], + "totalFlexWidth": 150, + "totalLeft": 300, + "totalMaxWidth": 9007199254740991, + "totalMinWidth": 0, + "totalVisibleHeaderCount": 1, + "totalWidth": 150, + "width": 150, + }, + "getCellProps": [Function], + "render": [Function], + "row": [Circular], + "value": "c", + }, + ], + "depth": 0, + "getRowProps": [Function], + "getToggleRowExpandedProps": [Function], + "id": "0", + "index": 0, + "isExpanded": undefined, + "original": Object { + "firstName": "a", + "lastName": "c", + "middleName": "b", + }, + "originalSubRows": Array [], + "subRows": Array [], + "toggleRowExpanded": [Function], + "values": Object { + "firstName": "a", + "lastName": "c", + "middleName": "b", + }, + }, + ] + } initialState={Object {}} isAllRowsExpanded={false} plugins={ diff --git a/yarn.lock b/yarn.lock index adba6a68c6..e3e4313927 100644 --- a/yarn.lock +++ b/yarn.lock @@ -23805,10 +23805,10 @@ react-syntax-highlighter@^12.2.1: prismjs "^1.8.4" refractor "^2.4.1" -react-table@7.1.0: - version "7.1.0" - resolved "https://registry.yarnpkg.com/react-table/-/react-table-7.1.0.tgz#c975cd67e917c54190b6c9df29f085285b0c3f4e" - integrity sha512-AZpgW0Xpo6Z7jxXZIBovzCGoYVkuBwATsJh7X4+JXwq9JtDaorOmxWC9gKx5Hui4d+n+I99enyyJS+LRtKydxA== +react-table@7.2.0: + version "7.2.0" + resolved "https://registry.yarnpkg.com/react-table/-/react-table-7.2.0.tgz#a2d8a84efa610be541103b3c714cacbb15df9d1a" + integrity sha512-hcBwPimjwOKQZoaeoQnUYyQNCg3NhjA1xAhKmuxam03sKsxE5NfI4GZ1qJcBQ8CJVj78e1o/lOKCh1AGuPmcnQ== dependencies: "@scarf/scarf" "^1.0.4" From e813b93779e9c5b1f04cd31f38082094f7a6fa9f Mon Sep 17 00:00:00 2001 From: undefined Date: Thu, 2 Jul 2020 19:26:25 +0700 Subject: [PATCH 3/3] chore: update snapshot for marketplace --- .../__snapshots__/admin-apps.test.tsx.snap | 1 + .../developer-app-content.test.tsx.snap | 756 +++++++++++++++++- .../__snapshots__/subscriptions.test.tsx.snap | 1 + 3 files changed, 743 insertions(+), 15 deletions(-) diff --git a/packages/marketplace/src/components/pages/admin-apps/__tests__/__snapshots__/admin-apps.test.tsx.snap b/packages/marketplace/src/components/pages/admin-apps/__tests__/__snapshots__/admin-apps.test.tsx.snap index 23567d7b49..f9403563c1 100644 --- a/packages/marketplace/src/components/pages/admin-apps/__tests__/__snapshots__/admin-apps.test.tsx.snap +++ b/packages/marketplace/src/components/pages/admin-apps/__tests__/__snapshots__/admin-apps.test.tsx.snap @@ -2619,6 +2619,7 @@ exports[`admin-apps AdminApprovals should match a snapshot 1`] = ` }, ] } + initialRows={Array []} initialState={Object {}} isAllRowsExpanded={false} plugins={ diff --git a/packages/marketplace/src/components/pages/app-detail/developer/__tests__/__snapshots__/developer-app-content.test.tsx.snap b/packages/marketplace/src/components/pages/app-detail/developer/__tests__/__snapshots__/developer-app-content.test.tsx.snap index 2f92d28273..4feb812424 100644 --- a/packages/marketplace/src/components/pages/app-detail/developer/__tests__/__snapshots__/developer-app-content.test.tsx.snap +++ b/packages/marketplace/src/components/pages/app-detail/developer/__tests__/__snapshots__/developer-app-content.test.tsx.snap @@ -1704,6 +1704,248 @@ exports[`AppContent AppContent - should match snapshoot 1`] = ` }, ] } + initialRows={ + Array [ + Object { + "allCells": Array [ + Object { + "column": Object { + "Cell": [Function], + "Footer": [Function], + "Header": "Client", + "accessor": [Function], + "canResize": true, + "depth": 0, + "getFooterProps": [Function], + "getHeaderProps": [Function], + "getToggleHiddenProps": [Function], + "id": "client", + "isVisible": true, + "maxWidth": 9007199254740991, + "minWidth": 0, + "parent": undefined, + "render": [Function], + "sortDescFirst": false, + "sortType": "alphanumeric", + "toggleHidden": [Function], + "totalFlexWidth": 150, + "totalLeft": 0, + "totalMaxWidth": 9007199254740991, + "totalMinWidth": 0, + "totalVisibleHeaderCount": 1, + "totalWidth": 150, + "width": 150, + }, + "getCellProps": [Function], + "render": [Function], + "row": [Circular], + "value": "DXX", + }, + Object { + "column": Object { + "Cell": [Function], + "Footer": [Function], + "Header": "Date Installed", + "accessor": [Function], + "canResize": true, + "depth": 0, + "getFooterProps": [Function], + "getHeaderProps": [Function], + "getToggleHiddenProps": [Function], + "id": "Date Installed", + "isVisible": true, + "maxWidth": 9007199254740991, + "minWidth": 0, + "parent": undefined, + "render": [Function], + "sortDescFirst": false, + "sortType": "alphanumeric", + "toggleHidden": [Function], + "totalFlexWidth": 150, + "totalLeft": 150, + "totalMaxWidth": 9007199254740991, + "totalMinWidth": 0, + "totalVisibleHeaderCount": 1, + "totalWidth": 150, + "width": 150, + }, + "getCellProps": [Function], + "render": [Function], + "row": [Circular], + "value": "03 Dec 2019", + }, + Object { + "column": Object { + "Cell": [Function], + "Footer": [Function], + "Header": "Uninstall", + "accessor": undefined, + "canResize": true, + "depth": 0, + "getFooterProps": [Function], + "getHeaderProps": [Function], + "getToggleHiddenProps": [Function], + "id": "Uninstall", + "isVisible": true, + "maxWidth": 9007199254740991, + "minWidth": 0, + "parent": undefined, + "render": [Function], + "sortDescFirst": false, + "sortType": "alphanumeric", + "toggleHidden": [Function], + "totalFlexWidth": 150, + "totalLeft": 300, + "totalMaxWidth": 9007199254740991, + "totalMinWidth": 0, + "totalVisibleHeaderCount": 1, + "totalWidth": 150, + "width": 150, + }, + "getCellProps": [Function], + "render": [Function], + "row": [Circular], + "value": undefined, + }, + ], + "canExpand": false, + "cells": Array [ + Object { + "column": Object { + "Cell": [Function], + "Footer": [Function], + "Header": "Client", + "accessor": [Function], + "canResize": true, + "depth": 0, + "getFooterProps": [Function], + "getHeaderProps": [Function], + "getToggleHiddenProps": [Function], + "id": "client", + "isVisible": true, + "maxWidth": 9007199254740991, + "minWidth": 0, + "parent": undefined, + "render": [Function], + "sortDescFirst": false, + "sortType": "alphanumeric", + "toggleHidden": [Function], + "totalFlexWidth": 150, + "totalLeft": 0, + "totalMaxWidth": 9007199254740991, + "totalMinWidth": 0, + "totalVisibleHeaderCount": 1, + "totalWidth": 150, + "width": 150, + }, + "getCellProps": [Function], + "render": [Function], + "row": [Circular], + "value": "DXX", + }, + Object { + "column": Object { + "Cell": [Function], + "Footer": [Function], + "Header": "Date Installed", + "accessor": [Function], + "canResize": true, + "depth": 0, + "getFooterProps": [Function], + "getHeaderProps": [Function], + "getToggleHiddenProps": [Function], + "id": "Date Installed", + "isVisible": true, + "maxWidth": 9007199254740991, + "minWidth": 0, + "parent": undefined, + "render": [Function], + "sortDescFirst": false, + "sortType": "alphanumeric", + "toggleHidden": [Function], + "totalFlexWidth": 150, + "totalLeft": 150, + "totalMaxWidth": 9007199254740991, + "totalMinWidth": 0, + "totalVisibleHeaderCount": 1, + "totalWidth": 150, + "width": 150, + }, + "getCellProps": [Function], + "render": [Function], + "row": [Circular], + "value": "03 Dec 2019", + }, + Object { + "column": Object { + "Cell": [Function], + "Footer": [Function], + "Header": "Uninstall", + "accessor": undefined, + "canResize": true, + "depth": 0, + "getFooterProps": [Function], + "getHeaderProps": [Function], + "getToggleHiddenProps": [Function], + "id": "Uninstall", + "isVisible": true, + "maxWidth": 9007199254740991, + "minWidth": 0, + "parent": undefined, + "render": [Function], + "sortDescFirst": false, + "sortType": "alphanumeric", + "toggleHidden": [Function], + "totalFlexWidth": 150, + "totalLeft": 300, + "totalMaxWidth": 9007199254740991, + "totalMinWidth": 0, + "totalVisibleHeaderCount": 1, + "totalWidth": 150, + "width": 150, + }, + "getCellProps": [Function], + "render": [Function], + "row": [Circular], + "value": undefined, + }, + ], + "depth": 0, + "getRowProps": [Function], + "getToggleRowExpandedProps": [Function], + "id": "0", + "index": 0, + "isExpanded": undefined, + "original": Object { + "appId": "062a376c-f5a3-46a0-a64b-e4bc6e5af2c1", + "client": "DXX", + "created": "2019-12-03T05:33:20", + "id": "b3c2f644-3241-4298-b320-b0398ff492f9", + "links": Array [ + Object { + "action": "GET", + "href": "http://dev.platformmarketplace.reapit.net/installations/b3c2f644-3241-4298-b320-b0398ff492f9", + "rel": "self", + }, + Object { + "action": "GET", + "href": "http://dev.platformmarketplace.reapit.net/apps/062a376c-f5a3-46a0-a64b-e4bc6e5af2c1", + "rel": "app", + }, + ], + "status": "Active", + }, + "originalSubRows": Array [], + "subRows": Array [], + "toggleRowExpanded": [Function], + "values": Object { + "Date Installed": "03 Dec 2019", + "Uninstall": undefined, + "client": "DXX", + }, + }, + ] + } initialState={Object {}} isAllRowsExpanded={false} plugins={ @@ -4067,15 +4309,7 @@ exports[`AppContent AppContent - should match snapshoot 1`] = ` }, ] } - initialState={Object {}} - isAllRowsExpanded={false} - plugins={ - Array [ - [Function], - [Function], - ] - } - preExpandedRows={ + initialRows={ Array [ Object { "allCells": Array [ @@ -4317,12 +4551,262 @@ exports[`AppContent AppContent - should match snapshoot 1`] = ` }, ] } - prepareRow={[Function]} - row={ - Object { - "allCells": Array [ - Object { - "column": Object { + initialState={Object {}} + isAllRowsExpanded={false} + plugins={ + Array [ + [Function], + [Function], + ] + } + preExpandedRows={ + Array [ + Object { + "allCells": Array [ + Object { + "column": Object { + "Cell": [Function], + "Footer": [Function], + "Header": "Client", + "accessor": [Function], + "canResize": true, + "depth": 0, + "getFooterProps": [Function], + "getHeaderProps": [Function], + "getToggleHiddenProps": [Function], + "id": "client", + "isVisible": true, + "maxWidth": 9007199254740991, + "minWidth": 0, + "parent": undefined, + "render": [Function], + "sortDescFirst": false, + "sortType": "alphanumeric", + "toggleHidden": [Function], + "totalFlexWidth": 150, + "totalLeft": 0, + "totalMaxWidth": 9007199254740991, + "totalMinWidth": 0, + "totalVisibleHeaderCount": 1, + "totalWidth": 150, + "width": 150, + }, + "getCellProps": [Function], + "render": [Function], + "row": [Circular], + "value": "DXX", + }, + Object { + "column": Object { + "Cell": [Function], + "Footer": [Function], + "Header": "Date Installed", + "accessor": [Function], + "canResize": true, + "depth": 0, + "getFooterProps": [Function], + "getHeaderProps": [Function], + "getToggleHiddenProps": [Function], + "id": "Date Installed", + "isVisible": true, + "maxWidth": 9007199254740991, + "minWidth": 0, + "parent": undefined, + "render": [Function], + "sortDescFirst": false, + "sortType": "alphanumeric", + "toggleHidden": [Function], + "totalFlexWidth": 150, + "totalLeft": 150, + "totalMaxWidth": 9007199254740991, + "totalMinWidth": 0, + "totalVisibleHeaderCount": 1, + "totalWidth": 150, + "width": 150, + }, + "getCellProps": [Function], + "render": [Function], + "row": [Circular], + "value": "03 Dec 2019", + }, + Object { + "column": Object { + "Cell": [Function], + "Footer": [Function], + "Header": "Uninstall", + "accessor": undefined, + "canResize": true, + "depth": 0, + "getFooterProps": [Function], + "getHeaderProps": [Function], + "getToggleHiddenProps": [Function], + "id": "Uninstall", + "isVisible": true, + "maxWidth": 9007199254740991, + "minWidth": 0, + "parent": undefined, + "render": [Function], + "sortDescFirst": false, + "sortType": "alphanumeric", + "toggleHidden": [Function], + "totalFlexWidth": 150, + "totalLeft": 300, + "totalMaxWidth": 9007199254740991, + "totalMinWidth": 0, + "totalVisibleHeaderCount": 1, + "totalWidth": 150, + "width": 150, + }, + "getCellProps": [Function], + "render": [Function], + "row": [Circular], + "value": undefined, + }, + ], + "canExpand": false, + "cells": Array [ + Object { + "column": Object { + "Cell": [Function], + "Footer": [Function], + "Header": "Client", + "accessor": [Function], + "canResize": true, + "depth": 0, + "getFooterProps": [Function], + "getHeaderProps": [Function], + "getToggleHiddenProps": [Function], + "id": "client", + "isVisible": true, + "maxWidth": 9007199254740991, + "minWidth": 0, + "parent": undefined, + "render": [Function], + "sortDescFirst": false, + "sortType": "alphanumeric", + "toggleHidden": [Function], + "totalFlexWidth": 150, + "totalLeft": 0, + "totalMaxWidth": 9007199254740991, + "totalMinWidth": 0, + "totalVisibleHeaderCount": 1, + "totalWidth": 150, + "width": 150, + }, + "getCellProps": [Function], + "render": [Function], + "row": [Circular], + "value": "DXX", + }, + Object { + "column": Object { + "Cell": [Function], + "Footer": [Function], + "Header": "Date Installed", + "accessor": [Function], + "canResize": true, + "depth": 0, + "getFooterProps": [Function], + "getHeaderProps": [Function], + "getToggleHiddenProps": [Function], + "id": "Date Installed", + "isVisible": true, + "maxWidth": 9007199254740991, + "minWidth": 0, + "parent": undefined, + "render": [Function], + "sortDescFirst": false, + "sortType": "alphanumeric", + "toggleHidden": [Function], + "totalFlexWidth": 150, + "totalLeft": 150, + "totalMaxWidth": 9007199254740991, + "totalMinWidth": 0, + "totalVisibleHeaderCount": 1, + "totalWidth": 150, + "width": 150, + }, + "getCellProps": [Function], + "render": [Function], + "row": [Circular], + "value": "03 Dec 2019", + }, + Object { + "column": Object { + "Cell": [Function], + "Footer": [Function], + "Header": "Uninstall", + "accessor": undefined, + "canResize": true, + "depth": 0, + "getFooterProps": [Function], + "getHeaderProps": [Function], + "getToggleHiddenProps": [Function], + "id": "Uninstall", + "isVisible": true, + "maxWidth": 9007199254740991, + "minWidth": 0, + "parent": undefined, + "render": [Function], + "sortDescFirst": false, + "sortType": "alphanumeric", + "toggleHidden": [Function], + "totalFlexWidth": 150, + "totalLeft": 300, + "totalMaxWidth": 9007199254740991, + "totalMinWidth": 0, + "totalVisibleHeaderCount": 1, + "totalWidth": 150, + "width": 150, + }, + "getCellProps": [Function], + "render": [Function], + "row": [Circular], + "value": undefined, + }, + ], + "depth": 0, + "getRowProps": [Function], + "getToggleRowExpandedProps": [Function], + "id": "0", + "index": 0, + "isExpanded": undefined, + "original": Object { + "appId": "062a376c-f5a3-46a0-a64b-e4bc6e5af2c1", + "client": "DXX", + "created": "2019-12-03T05:33:20", + "id": "b3c2f644-3241-4298-b320-b0398ff492f9", + "links": Array [ + Object { + "action": "GET", + "href": "http://dev.platformmarketplace.reapit.net/installations/b3c2f644-3241-4298-b320-b0398ff492f9", + "rel": "self", + }, + Object { + "action": "GET", + "href": "http://dev.platformmarketplace.reapit.net/apps/062a376c-f5a3-46a0-a64b-e4bc6e5af2c1", + "rel": "app", + }, + ], + "status": "Active", + }, + "originalSubRows": Array [], + "subRows": Array [], + "toggleRowExpanded": [Function], + "values": Object { + "Date Installed": "03 Dec 2019", + "Uninstall": undefined, + "client": "DXX", + }, + }, + ] + } + prepareRow={[Function]} + row={ + Object { + "allCells": Array [ + Object { + "column": Object { "Cell": [Function], "Footer": [Function], "Header": "Client", @@ -6430,6 +6914,248 @@ exports[`AppContent AppContent - should match snapshoot 1`] = ` }, ] } + initialRows={ + Array [ + Object { + "allCells": Array [ + Object { + "column": Object { + "Cell": [Function], + "Footer": [Function], + "Header": "Client", + "accessor": [Function], + "canResize": true, + "depth": 0, + "getFooterProps": [Function], + "getHeaderProps": [Function], + "getToggleHiddenProps": [Function], + "id": "client", + "isVisible": true, + "maxWidth": 9007199254740991, + "minWidth": 0, + "parent": undefined, + "render": [Function], + "sortDescFirst": false, + "sortType": "alphanumeric", + "toggleHidden": [Function], + "totalFlexWidth": 150, + "totalLeft": 0, + "totalMaxWidth": 9007199254740991, + "totalMinWidth": 0, + "totalVisibleHeaderCount": 1, + "totalWidth": 150, + "width": 150, + }, + "getCellProps": [Function], + "render": [Function], + "row": [Circular], + "value": "DXX", + }, + Object { + "column": Object { + "Cell": [Function], + "Footer": [Function], + "Header": "Date Installed", + "accessor": [Function], + "canResize": true, + "depth": 0, + "getFooterProps": [Function], + "getHeaderProps": [Function], + "getToggleHiddenProps": [Function], + "id": "Date Installed", + "isVisible": true, + "maxWidth": 9007199254740991, + "minWidth": 0, + "parent": undefined, + "render": [Function], + "sortDescFirst": false, + "sortType": "alphanumeric", + "toggleHidden": [Function], + "totalFlexWidth": 150, + "totalLeft": 150, + "totalMaxWidth": 9007199254740991, + "totalMinWidth": 0, + "totalVisibleHeaderCount": 1, + "totalWidth": 150, + "width": 150, + }, + "getCellProps": [Function], + "render": [Function], + "row": [Circular], + "value": "03 Dec 2019", + }, + Object { + "column": Object { + "Cell": [Function], + "Footer": [Function], + "Header": "Uninstall", + "accessor": undefined, + "canResize": true, + "depth": 0, + "getFooterProps": [Function], + "getHeaderProps": [Function], + "getToggleHiddenProps": [Function], + "id": "Uninstall", + "isVisible": true, + "maxWidth": 9007199254740991, + "minWidth": 0, + "parent": undefined, + "render": [Function], + "sortDescFirst": false, + "sortType": "alphanumeric", + "toggleHidden": [Function], + "totalFlexWidth": 150, + "totalLeft": 300, + "totalMaxWidth": 9007199254740991, + "totalMinWidth": 0, + "totalVisibleHeaderCount": 1, + "totalWidth": 150, + "width": 150, + }, + "getCellProps": [Function], + "render": [Function], + "row": [Circular], + "value": undefined, + }, + ], + "canExpand": false, + "cells": Array [ + Object { + "column": Object { + "Cell": [Function], + "Footer": [Function], + "Header": "Client", + "accessor": [Function], + "canResize": true, + "depth": 0, + "getFooterProps": [Function], + "getHeaderProps": [Function], + "getToggleHiddenProps": [Function], + "id": "client", + "isVisible": true, + "maxWidth": 9007199254740991, + "minWidth": 0, + "parent": undefined, + "render": [Function], + "sortDescFirst": false, + "sortType": "alphanumeric", + "toggleHidden": [Function], + "totalFlexWidth": 150, + "totalLeft": 0, + "totalMaxWidth": 9007199254740991, + "totalMinWidth": 0, + "totalVisibleHeaderCount": 1, + "totalWidth": 150, + "width": 150, + }, + "getCellProps": [Function], + "render": [Function], + "row": [Circular], + "value": "DXX", + }, + Object { + "column": Object { + "Cell": [Function], + "Footer": [Function], + "Header": "Date Installed", + "accessor": [Function], + "canResize": true, + "depth": 0, + "getFooterProps": [Function], + "getHeaderProps": [Function], + "getToggleHiddenProps": [Function], + "id": "Date Installed", + "isVisible": true, + "maxWidth": 9007199254740991, + "minWidth": 0, + "parent": undefined, + "render": [Function], + "sortDescFirst": false, + "sortType": "alphanumeric", + "toggleHidden": [Function], + "totalFlexWidth": 150, + "totalLeft": 150, + "totalMaxWidth": 9007199254740991, + "totalMinWidth": 0, + "totalVisibleHeaderCount": 1, + "totalWidth": 150, + "width": 150, + }, + "getCellProps": [Function], + "render": [Function], + "row": [Circular], + "value": "03 Dec 2019", + }, + Object { + "column": Object { + "Cell": [Function], + "Footer": [Function], + "Header": "Uninstall", + "accessor": undefined, + "canResize": true, + "depth": 0, + "getFooterProps": [Function], + "getHeaderProps": [Function], + "getToggleHiddenProps": [Function], + "id": "Uninstall", + "isVisible": true, + "maxWidth": 9007199254740991, + "minWidth": 0, + "parent": undefined, + "render": [Function], + "sortDescFirst": false, + "sortType": "alphanumeric", + "toggleHidden": [Function], + "totalFlexWidth": 150, + "totalLeft": 300, + "totalMaxWidth": 9007199254740991, + "totalMinWidth": 0, + "totalVisibleHeaderCount": 1, + "totalWidth": 150, + "width": 150, + }, + "getCellProps": [Function], + "render": [Function], + "row": [Circular], + "value": undefined, + }, + ], + "depth": 0, + "getRowProps": [Function], + "getToggleRowExpandedProps": [Function], + "id": "0", + "index": 0, + "isExpanded": undefined, + "original": Object { + "appId": "062a376c-f5a3-46a0-a64b-e4bc6e5af2c1", + "client": "DXX", + "created": "2019-12-03T05:33:20", + "id": "b3c2f644-3241-4298-b320-b0398ff492f9", + "links": Array [ + Object { + "action": "GET", + "href": "http://dev.platformmarketplace.reapit.net/installations/b3c2f644-3241-4298-b320-b0398ff492f9", + "rel": "self", + }, + Object { + "action": "GET", + "href": "http://dev.platformmarketplace.reapit.net/apps/062a376c-f5a3-46a0-a64b-e4bc6e5af2c1", + "rel": "app", + }, + ], + "status": "Active", + }, + "originalSubRows": Array [], + "subRows": Array [], + "toggleRowExpanded": [Function], + "values": Object { + "Date Installed": "03 Dec 2019", + "Uninstall": undefined, + "client": "DXX", + }, + }, + ] + } initialState={Object {}} isAllRowsExpanded={false} plugins={ diff --git a/packages/marketplace/src/components/ui/developer-settings/billing/__tests__/__snapshots__/subscriptions.test.tsx.snap b/packages/marketplace/src/components/ui/developer-settings/billing/__tests__/__snapshots__/subscriptions.test.tsx.snap index 7bfb3469df..0425c4484b 100644 --- a/packages/marketplace/src/components/ui/developer-settings/billing/__tests__/__snapshots__/subscriptions.test.tsx.snap +++ b/packages/marketplace/src/components/ui/developer-settings/billing/__tests__/__snapshots__/subscriptions.test.tsx.snap @@ -1395,6 +1395,7 @@ exports[`Subcriptions should match snapshot 1`] = ` }, ] } + initialRows={Array []} initialState={Object {}} isAllRowsExpanded={false} plugins={