Skip to content

Commit

Permalink
fix(*): kongponents alpha phase 14 [KHCP-11982] (#1420)
Browse files Browse the repository at this point in the history
* chore(deps): bump @kong/kongponents

* fix(kinput): update selectors

* chore(deps): bump @kong/kongponents

* chore(deps): bump @kong/kongponents
  • Loading branch information
portikM authored May 22, 2024
1 parent 739ba5d commit fd5a9d0
Show file tree
Hide file tree
Showing 32 changed files with 129 additions and 134 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"@digitalroute/cz-conventional-changelog-for-jira": "^8.0.1",
"@evilmartians/lefthook": "^1.6.10",
"@kong/design-tokens": "1.12.12",
"@kong/kongponents": "9.0.0-alpha.158",
"@kong/kongponents": "9.0.0-alpha.159",
"@rushstack/eslint-patch": "^1.7.2",
"@types/flat": "^5.0.5",
"@types/js-yaml": "^4.0.9",
Expand Down
4 changes: 2 additions & 2 deletions packages/analytics/analytics-chart/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,14 @@
},
"peerDependencies": {
"@kong-ui-public/i18n": "workspace:^",
"@kong/kongponents": "^9.0.0-alpha.158",
"@kong/kongponents": "^9.0.0-alpha.159",
"vue": ">= 3.3.13 < 4"
},
"devDependencies": {
"@kong-ui-public/i18n": "workspace:^",
"@kong-ui-public/sandbox-layout": "workspace:^",
"@kong/design-tokens": "1.12.12",
"@kong/kongponents": "9.0.0-alpha.158",
"@kong/kongponents": "9.0.0-alpha.159",
"@types/uuid": "^9.0.8",
"file-saver": "^2.0.5",
"lodash.mapkeys": "^4.6.0",
Expand Down
4 changes: 2 additions & 2 deletions packages/analytics/analytics-metric-provider/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -60,14 +60,14 @@
"@kong-ui-public/analytics-config-store": "workspace:^",
"@kong-ui-public/analytics-utilities": "workspace:^",
"@kong-ui-public/i18n": "workspace:^",
"@kong/kongponents": "^9.0.0-alpha.158"
"@kong/kongponents": "^9.0.0-alpha.159"
},
"devDependencies": {
"@kong-ui-public/analytics-config-store": "workspace:^",
"@kong-ui-public/analytics-utilities": "workspace:^",
"@kong-ui-public/i18n": "workspace:^",
"@kong/design-tokens": "1.12.12",
"@kong/kongponents": "9.0.0-alpha.158",
"@kong/kongponents": "9.0.0-alpha.159",
"pinia": ">= 2.1.7 < 3"
}
}
4 changes: 2 additions & 2 deletions packages/analytics/dashboard-renderer/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
"@kong-ui-public/i18n": "workspace:^",
"@kong-ui-public/sandbox-layout": "workspace:^",
"@kong/design-tokens": "1.12.12",
"@kong/kongponents": "9.0.0-alpha.158",
"@kong/kongponents": "9.0.0-alpha.159",
"json-schema-to-ts": "^3.0.1",
"pinia": ">= 2.1.7 < 3",
"swrv": "^1.0.4",
Expand Down Expand Up @@ -75,7 +75,7 @@
"@kong-ui-public/analytics-metric-provider": "workspace:^",
"@kong-ui-public/analytics-utilities": "workspace:^",
"@kong-ui-public/i18n": "workspace:^",
"@kong/kongponents": "^9.0.0-alpha.158",
"@kong/kongponents": "^9.0.0-alpha.159",
"swrv": "^1.0.4",
"vue": ">= 3.3.13 < 4"
},
Expand Down
4 changes: 2 additions & 2 deletions packages/analytics/metric-cards/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,12 +39,12 @@
"test:unit:open": "cross-env FORCE_COLOR=1 vitest --ui"
},
"peerDependencies": {
"@kong/kongponents": "^9.0.0-alpha.158",
"@kong/kongponents": "^9.0.0-alpha.159",
"vue": ">= 3.3.13 < 4"
},
"devDependencies": {
"@kong/design-tokens": "1.12.12",
"@kong/kongponents": "9.0.0-alpha.158",
"@kong/kongponents": "9.0.0-alpha.159",
"vue": "^3.4.26"
},
"dependencies": {
Expand Down
4 changes: 2 additions & 2 deletions packages/core/app-layout/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
"test:unit:open": "cross-env FORCE_COLOR=1 vitest --ui"
},
"peerDependencies": {
"@kong/kongponents": "^9.0.0-alpha.158",
"@kong/kongponents": "^9.0.0-alpha.159",
"vue": ">= 3.3.13 < 4",
"vue-router": "^4.3.2"
},
Expand All @@ -51,7 +51,7 @@
},
"devDependencies": {
"@kong/design-tokens": "1.12.12",
"@kong/kongponents": "9.0.0-alpha.158",
"@kong/kongponents": "9.0.0-alpha.159",
"@types/lodash.clonedeep": "^4.5.9",
"vue": "^3.4.26",
"vue-router": "^4.3.2"
Expand Down
4 changes: 2 additions & 2 deletions packages/core/documentation/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,13 +45,13 @@
},
"peerDependencies": {
"@kong-ui-public/i18n": "workspace:^",
"@kong/kongponents": "^9.0.0-alpha.158",
"@kong/kongponents": "^9.0.0-alpha.159",
"vue": "^3.4.26"
},
"devDependencies": {
"@kong-ui-public/i18n": "workspace:^",
"@kong/design-tokens": "1.12.12",
"@kong/kongponents": "9.0.0-alpha.158",
"@kong/kongponents": "9.0.0-alpha.159",
"axios": "^1.6.8",
"vue": ">= 3.3.13 < 4"
},
Expand Down
4 changes: 2 additions & 2 deletions packages/core/expressions/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
"devDependencies": {
"@kong/atc-router": "1.6.0-rc.1",
"@kong/design-tokens": "1.12.12",
"@kong/kongponents": "9.0.0-alpha.158",
"@kong/kongponents": "9.0.0-alpha.159",
"monaco-editor": "0.21.3",
"vite-plugin-monaco-editor": "^1.1.0",
"vite-plugin-top-level-await": "^1.4.1",
Expand All @@ -65,7 +65,7 @@
},
"peerDependencies": {
"@kong/atc-router": "^1.6.0-rc.1",
"@kong/kongponents": "^9.0.0-alpha.158",
"@kong/kongponents": "^9.0.0-alpha.159",
"monaco-editor": "0.21.3",
"vue": "^3.4.26"
},
Expand Down
4 changes: 2 additions & 2 deletions packages/core/forms/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,13 +56,13 @@
},
"peerDependencies": {
"@kong-ui-public/i18n": "workspace:^",
"@kong/kongponents": "^9.0.0-alpha.158",
"@kong/kongponents": "^9.0.0-alpha.159",
"vue": "^3.4.26"
},
"devDependencies": {
"@kong-ui-public/i18n": "workspace:^",
"@kong/design-tokens": "1.12.12",
"@kong/kongponents": "9.0.0-alpha.158",
"@kong/kongponents": "9.0.0-alpha.159",
"@types/lodash-es": "^4.17.12",
"pug": "^3.0.2"
},
Expand Down
4 changes: 2 additions & 2 deletions packages/core/misc-widgets/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,12 +40,12 @@
},
"peerDependencies": {
"@kong-ui-public/i18n": "workspace:^",
"@kong/kongponents": "^9.0.0-alpha.158",
"@kong/kongponents": "^9.0.0-alpha.159",
"vue": ">= 3.3.13 < 4"
},
"devDependencies": {
"@kong-ui-public/i18n": "workspace:^",
"@kong/kongponents": "9.0.0-alpha.158",
"@kong/kongponents": "9.0.0-alpha.159",
"vue": "^3.4.26"
},
"repository": {
Expand Down
4 changes: 2 additions & 2 deletions packages/core/sandbox-layout/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
},
"devDependencies": {
"@kong/design-tokens": "1.12.12",
"@kong/kongponents": "9.0.0-alpha.158",
"@kong/kongponents": "9.0.0-alpha.159",
"vue": "^3.4.26",
"vue-router": "^4.3.2"
},
Expand All @@ -62,7 +62,7 @@
"errorLimit": "200KB"
},
"peerDependencies": {
"@kong/kongponents": "^9.0.0-alpha.158",
"@kong/kongponents": "^9.0.0-alpha.159",
"vue": ">= 3.3.13 < 4"
},
"dependencies": {
Expand Down
4 changes: 2 additions & 2 deletions packages/entities/entities-certificates/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,15 +22,15 @@
},
"peerDependencies": {
"@kong-ui-public/i18n": "workspace:^",
"@kong/kongponents": "^9.0.0-alpha.158",
"@kong/kongponents": "^9.0.0-alpha.159",
"axios": "^1.6.8",
"vue": ">= 3.3.13 < 4",
"vue-router": "^4.3.2"
},
"devDependencies": {
"@kong-ui-public/i18n": "workspace:^",
"@kong/design-tokens": "1.12.12",
"@kong/kongponents": "9.0.0-alpha.158",
"@kong/kongponents": "9.0.0-alpha.159",
"axios": "^1.6.8",
"vue": "^3.4.26",
"vue-router": "^4.3.2"
Expand Down
4 changes: 2 additions & 2 deletions packages/entities/entities-consumer-credentials/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,15 +22,15 @@
},
"peerDependencies": {
"@kong-ui-public/i18n": "workspace:^",
"@kong/kongponents": "^9.0.0-alpha.158",
"@kong/kongponents": "^9.0.0-alpha.159",
"axios": "^1.6.8",
"vue": ">= 3.3.13 < 4",
"vue-router": "^4.3.2"
},
"devDependencies": {
"@kong-ui-public/i18n": "workspace:^",
"@kong/design-tokens": "1.12.12",
"@kong/kongponents": "9.0.0-alpha.158",
"@kong/kongponents": "9.0.0-alpha.159",
"axios": "^1.6.8",
"vue": "^3.4.26",
"vue-router": "^4.3.2"
Expand Down
4 changes: 2 additions & 2 deletions packages/entities/entities-consumer-groups/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,15 +22,15 @@
},
"peerDependencies": {
"@kong-ui-public/i18n": "workspace:^",
"@kong/kongponents": "^9.0.0-alpha.158",
"@kong/kongponents": "^9.0.0-alpha.159",
"axios": "^1.6.8",
"vue": ">= 3.3.13 < 4",
"vue-router": "^4.3.2"
},
"devDependencies": {
"@kong-ui-public/i18n": "workspace:^",
"@kong/design-tokens": "1.12.12",
"@kong/kongponents": "9.0.0-alpha.158",
"@kong/kongponents": "9.0.0-alpha.159",
"axios": "^1.6.8",
"vue": "^3.4.26",
"vue-router": "^4.3.2"
Expand Down
4 changes: 2 additions & 2 deletions packages/entities/entities-consumers/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,15 +22,15 @@
},
"peerDependencies": {
"@kong-ui-public/i18n": "workspace:^",
"@kong/kongponents": "^9.0.0-alpha.158",
"@kong/kongponents": "^9.0.0-alpha.159",
"axios": "^1.6.8",
"vue": ">= 3.3.13 < 4",
"vue-router": "^4.3.2"
},
"devDependencies": {
"@kong-ui-public/i18n": "workspace:^",
"@kong/design-tokens": "1.12.12",
"@kong/kongponents": "9.0.0-alpha.158",
"@kong/kongponents": "9.0.0-alpha.159",
"axios": "^1.6.8",
"vue": "^3.4.26",
"vue-router": "^4.3.2"
Expand Down
2 changes: 1 addition & 1 deletion packages/entities/entities-data-plane-nodes/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
"devDependencies": {
"@kong-ui-public/i18n": "workspace:^",
"@kong/design-tokens": "1.12.12",
"@kong/kongponents": "9.0.0-alpha.158",
"@kong/kongponents": "9.0.0-alpha.159",
"axios": "^1.6.8",
"vue": "^3.4.26",
"vue-router": "^4.3.2"
Expand Down
4 changes: 2 additions & 2 deletions packages/entities/entities-gateway-services/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,15 +22,15 @@
},
"peerDependencies": {
"@kong-ui-public/i18n": "workspace:^",
"@kong/kongponents": "^9.0.0-alpha.158",
"@kong/kongponents": "^9.0.0-alpha.159",
"axios": "^1.6.8",
"vue": ">= 3.3.13 < 4",
"vue-router": "^4.3.2"
},
"devDependencies": {
"@kong-ui-public/i18n": "workspace:^",
"@kong/design-tokens": "1.12.12",
"@kong/kongponents": "9.0.0-alpha.158",
"@kong/kongponents": "9.0.0-alpha.159",
"axios": "^1.6.8",
"vue": "^3.4.26",
"vue-router": "^4.3.2"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,14 @@ import { EntityBaseForm } from '@kong-ui-public/entities-shared'

const cancelRoute = { name: 'gateway-services-list' }

const baseConfigKonnect:KonnectGatewayServiceFormConfig = {
const baseConfigKonnect: KonnectGatewayServiceFormConfig = {
app: 'konnect',
controlPlaneId: '1234-abcd-ilove-dogs',
apiBaseUrl: '/us/kong-api',
cancelRoute,
}

const baseConfigKM:KongManagerGatewayServiceFormConfig = {
const baseConfigKM: KongManagerGatewayServiceFormConfig = {
app: 'kongManager',
workspace: 'default',
apiBaseUrl: '/kong-manager',
Expand Down Expand Up @@ -46,7 +46,7 @@ describe('<GatewayServiceForm />', { viewportHeight: 800, viewportWidth: 700 },
},
{
statusCode: status,
body: { },
body: {},
},
).as('validateService')

Expand Down Expand Up @@ -94,21 +94,21 @@ describe('<GatewayServiceForm />', { viewportHeight: 800, viewportWidth: 700 },
cy.get('.kong-ui-entities-gateway-service-form form').should('be.visible')

cy.getTestId('gateway-service-name-input').should('be.visible')
cy.getTestId('gateway-service-name-input').parents('.k-input-wrapper.input-error')
cy.getTestId('gateway-service-name-input').parents('.k-input.input-error')
.should('not.exist')

cy.getTestId('gateway-service-name-input').type('service')
cy.getTestId('gateway-service-name-input').parents('.k-input-wrapper.input-error')
cy.getTestId('gateway-service-name-input').parents('.k-input.input-error')
.should('not.exist')

cy.getTestId('gateway-service-name-input').clear()
cy.getTestId('gateway-service-name-input').type('service abc') // with a space
cy.getTestId('gateway-service-name-input').parents('.k-input-wrapper.input-error')
cy.getTestId('gateway-service-name-input').parents('.k-input.input-error')
.first().find('.help-text').should('be.visible')

cy.getTestId('gateway-service-name-input').clear()
cy.getTestId('gateway-service-name-input').type('Hello-ÆBČÐẼF-你好-妳好-こんにちは-안녕하세요-𑁦𑁧𑁨𑁩𑁪𑁫𑁬𑁭𑁮𑁯') // UTF-8
cy.getTestId('gateway-service-name-input').parents('.k-input-wrapper.input-error')
cy.getTestId('gateway-service-name-input').parents('.k-input.input-error')
.should('not.exist')
})

Expand Down Expand Up @@ -428,7 +428,7 @@ describe('<GatewayServiceForm />', { viewportHeight: 800, viewportWidth: 700 },
},
{
statusCode: status,
body: { },
body: {},
},
).as('validateService')

Expand Down Expand Up @@ -476,21 +476,21 @@ describe('<GatewayServiceForm />', { viewportHeight: 800, viewportWidth: 700 },
cy.get('.kong-ui-entities-gateway-service-form form').should('be.visible')

cy.getTestId('gateway-service-name-input').should('be.visible')
cy.getTestId('gateway-service-name-input').parents('.k-input-wrapper.input-error')
cy.getTestId('gateway-service-name-input').parents('.k-input.input-error')
.should('not.exist')

cy.getTestId('gateway-service-name-input').type('service')
cy.getTestId('gateway-service-name-input').parents('.k-input-wrapper.input-error')
cy.getTestId('gateway-service-name-input').parents('.k-input.input-error')
.should('not.exist')

cy.getTestId('gateway-service-name-input').clear()
cy.getTestId('gateway-service-name-input').type('service abc') // with a space
cy.getTestId('gateway-service-name-input').parents('.k-input-wrapper.input-error')
cy.getTestId('gateway-service-name-input').parents('.k-input.input-error')
.first().find('.help-text').should('be.visible')

cy.getTestId('gateway-service-name-input').clear()
cy.getTestId('gateway-service-name-input').type('Hello-ÆBČÐẼF-你好-妳好-こんにちは-안녕하세요-𑁦𑁧𑁨𑁩𑁪𑁫𑁬𑁭𑁮𑁯') // UTF-8
cy.getTestId('gateway-service-name-input').parents('.k-input-wrapper.input-error')
cy.getTestId('gateway-service-name-input').parents('.k-input.input-error')
.should('not.exist')
})

Expand Down
4 changes: 2 additions & 2 deletions packages/entities/entities-key-sets/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,14 @@
},
"peerDependencies": {
"@kong-ui-public/i18n": "workspace:^",
"@kong/kongponents": "^9.0.0-alpha.158",
"@kong/kongponents": "^9.0.0-alpha.159",
"axios": "^1.6.8",
"vue": ">= 3.3.13 < 4",
"vue-router": "^4.3.2"
},
"devDependencies": {
"@kong-ui-public/i18n": "workspace:^",
"@kong/kongponents": "9.0.0-alpha.158",
"@kong/kongponents": "9.0.0-alpha.159",
"axios": "^1.6.8",
"vue": "^3.4.26",
"vue-router": "^4.3.2"
Expand Down
4 changes: 2 additions & 2 deletions packages/entities/entities-keys/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,15 +22,15 @@
},
"peerDependencies": {
"@kong-ui-public/i18n": "workspace:^",
"@kong/kongponents": "^9.0.0-alpha.158",
"@kong/kongponents": "^9.0.0-alpha.159",
"axios": "^1.6.8",
"vue": ">= 3.3.13 < 4",
"vue-router": "^4.3.2"
},
"devDependencies": {
"@kong-ui-public/i18n": "workspace:^",
"@kong/design-tokens": "1.12.12",
"@kong/kongponents": "9.0.0-alpha.158",
"@kong/kongponents": "9.0.0-alpha.159",
"axios": "^1.6.8",
"vue": "^3.4.26",
"vue-router": "^4.3.2"
Expand Down
Loading

0 comments on commit fd5a9d0

Please sign in to comment.