@redhat-cloud-services/frontend-components-advisor-components 1.0.22 → 2.0.2

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 (92) hide show
  1. package/RebootRequired/RebootRequired.d.ts +1 -1
  2. package/RebootRequired/RebootRequired.js +1 -1
  3. package/RebootRequired/RebootRequired.js.map +1 -1
  4. package/RebootRequired/index.js.map +1 -1
  5. package/ReportDetails/ReportDetails.js +1 -1
  6. package/ReportDetails/ReportDetails.js.map +1 -1
  7. package/ReportDetails/ReportDetails.scss +6 -6
  8. package/ReportDetails/index.js.map +1 -1
  9. package/RuleDescription/RuleDescription.js +1 -1
  10. package/RuleDescription/RuleDescription.js.map +1 -1
  11. package/RuleDescription/index.js.map +1 -1
  12. package/RuleDetails/RuleDetails.d.ts +1 -16
  13. package/RuleDetails/RuleDetails.js +2 -2
  14. package/RuleDetails/RuleDetails.js.map +1 -1
  15. package/RuleDetails/RuleDetailsMessages.d.ts +16 -0
  16. package/RuleDetails/RuleDetailsMessages.js +3 -0
  17. package/RuleDetails/RuleDetailsMessages.js.map +1 -0
  18. package/RuleDetails/index.js.map +1 -1
  19. package/RuleRating/RuleRating.d.ts +1 -1
  20. package/RuleRating/RuleRating.js +1 -1
  21. package/RuleRating/RuleRating.js.map +1 -1
  22. package/RuleRating/index.js.map +1 -1
  23. package/TemplateProcessor/TemplateProcessor.js +1 -1
  24. package/TemplateProcessor/TemplateProcessor.js.map +1 -1
  25. package/TemplateProcessor/index.js.map +1 -1
  26. package/ViewAffectedLink/ViewAffectedLink.d.ts +1 -1
  27. package/ViewAffectedLink/ViewAffectedLink.js.map +1 -1
  28. package/ViewAffectedLink/index.js.map +1 -1
  29. package/common.d.ts +0 -1
  30. package/common.js.map +1 -1
  31. package/constants.js.map +1 -1
  32. package/esm/RebootRequired/RebootRequired.d.ts +9 -0
  33. package/esm/RebootRequired/RebootRequired.js +3 -4
  34. package/esm/RebootRequired/RebootRequired.js.map +1 -1
  35. package/esm/RebootRequired/index.d.ts +2 -0
  36. package/esm/RebootRequired/index.js.map +1 -1
  37. package/esm/ReportDetails/ReportDetails.d.ts +20 -0
  38. package/esm/ReportDetails/ReportDetails.js +3 -9
  39. package/esm/ReportDetails/ReportDetails.js.map +1 -1
  40. package/esm/ReportDetails/ReportDetails.scss +6 -6
  41. package/esm/ReportDetails/index.d.ts +2 -0
  42. package/esm/ReportDetails/index.js.map +1 -1
  43. package/esm/RuleDescription/RuleDescription.d.ts +10 -0
  44. package/esm/RuleDescription/RuleDescription.js +1 -1
  45. package/esm/RuleDescription/RuleDescription.js.map +1 -1
  46. package/esm/RuleDescription/index.d.ts +2 -0
  47. package/esm/RuleDescription/index.js.map +1 -1
  48. package/esm/RuleDetails/RuleDetails.d.ts +20 -0
  49. package/esm/RuleDetails/RuleDetails.js +4 -7
  50. package/esm/RuleDetails/RuleDetails.js.map +1 -1
  51. package/esm/RuleDetails/RuleDetailsMessages.d.ts +16 -0
  52. package/esm/RuleDetails/RuleDetailsMessages.js +2 -0
  53. package/esm/RuleDetails/RuleDetailsMessages.js.map +1 -0
  54. package/esm/RuleDetails/index.d.ts +2 -0
  55. package/esm/RuleDetails/index.js.map +1 -1
  56. package/esm/RuleRating/RuleRating.d.ts +13 -0
  57. package/esm/RuleRating/RuleRating.js +3 -7
  58. package/esm/RuleRating/RuleRating.js.map +1 -1
  59. package/esm/RuleRating/index.d.ts +2 -0
  60. package/esm/RuleRating/index.js.map +1 -1
  61. package/esm/TemplateProcessor/TemplateProcessor.d.ts +8 -0
  62. package/esm/TemplateProcessor/TemplateProcessor.js +1 -1
  63. package/esm/TemplateProcessor/TemplateProcessor.js.map +1 -1
  64. package/esm/TemplateProcessor/index.d.ts +2 -0
  65. package/esm/TemplateProcessor/index.js.map +1 -1
  66. package/esm/ViewAffectedLink/ViewAffectedLink.d.ts +14 -0
  67. package/esm/ViewAffectedLink/ViewAffectedLink.js.map +1 -1
  68. package/esm/ViewAffectedLink/index.d.ts +2 -0
  69. package/esm/ViewAffectedLink/index.js.map +1 -1
  70. package/esm/common.d.ts +7 -0
  71. package/esm/common.js.map +1 -1
  72. package/esm/constants.d.ts +26 -0
  73. package/esm/constants.js.map +1 -1
  74. package/esm/index.d.ts +7 -0
  75. package/esm/index.js.map +1 -1
  76. package/esm/types.d.ts +68 -0
  77. package/esm/types.js.map +1 -1
  78. package/index.js.map +1 -1
  79. package/package.json +45 -56
  80. package/types.d.ts +1 -1
  81. package/types.js.map +1 -1
  82. package/README.md +0 -36
  83. package/cypress/cypress.webpack.config.js +0 -91
  84. package/cypress/fixtures/messages.json +0 -16
  85. package/cypress/fixtures/report.json +0 -39
  86. package/cypress/fixtures/rule.json +0 -18
  87. package/cypress/overrideChrome.js +0 -5
  88. package/cypress/plugins/index.js +0 -39
  89. package/cypress/support/commands.js +0 -25
  90. package/cypress/support/component-index.html +0 -12
  91. package/cypress/support/component.js +0 -46
  92. package/cypress.config.js +0 -34
@@ -1,5 +0,0 @@
1
- export default () => ({
2
- updateDocumentTitle: () => undefined,
3
- isBeta: () => false,
4
- isProd: () => true,
5
- });
@@ -1,39 +0,0 @@
1
- /// <reference types="cypress" />
2
- // ***********************************************************
3
- // This example plugins/index.js can be used to load plugins
4
- //
5
- // You can change the location of this file or turn off loading
6
- // the plugins file with the 'pluginsFile' configuration option.
7
- //
8
- // You can read more here:
9
- // https://on.cypress.io/plugins-guide
10
- // ***********************************************************
11
-
12
- // This function is called when a project is opened or re-opened (e.g. due to
13
- // the project's config changing)
14
-
15
- const {
16
- initPlugin
17
- } = require('@frsource/cypress-plugin-visual-regression-diff/plugins');
18
-
19
- /**
20
- * @type {Cypress.PluginConfig}
21
- */
22
- // eslint-disable-next-line no-unused-vars
23
- module.exports = (on, config) => {
24
- // `on` is used to hook into various events Cypress emits
25
- // `config` is the resolved Cypress config
26
-
27
- initPlugin(on, config);
28
-
29
- if (config.testingType === 'component') {
30
- const { startDevServer } = require('@cypress/webpack-dev-server')
31
-
32
- // Your project's Webpack configuration
33
- const webpackConfig = require('../cypress.webpack.config.js')
34
-
35
- on('dev-server:start', (options) =>
36
- startDevServer({ options, webpackConfig })
37
- )
38
- }
39
- }
@@ -1,25 +0,0 @@
1
- // ***********************************************
2
- // This example commands.js shows you how to
3
- // create various custom commands and overwrite
4
- // existing commands.
5
- //
6
- // For more comprehensive examples of custom
7
- // commands please read more here:
8
- // https://on.cypress.io/custom-commands
9
- // ***********************************************
10
- //
11
- //
12
- // -- This is a parent command --
13
- // Cypress.Commands.add('login', (email, password) => { ... })
14
- //
15
- //
16
- // -- This is a child command --
17
- // Cypress.Commands.add('drag', { prevSubject: 'element'}, (subject, options) => { ... })
18
- //
19
- //
20
- // -- This is a dual command --
21
- // Cypress.Commands.add('dismiss', { prevSubject: 'optional'}, (subject, options) => { ... })
22
- //
23
- //
24
- // -- This will overwrite an existing command --
25
- // Cypress.Commands.overwrite('visit', (originalFn, url, options) => { ... })
@@ -1,12 +0,0 @@
1
- <!DOCTYPE html>
2
- <html>
3
- <head>
4
- <meta charset="utf-8">
5
- <meta http-equiv="X-UA-Compatible" content="IE=edge">
6
- <meta name="viewport" content="width=device-width,initial-scale=1.0">
7
- <title>Components App</title>
8
- </head>
9
- <body>
10
- <div data-cy-root></div>
11
- </body>
12
- </html>
@@ -1,46 +0,0 @@
1
- /* eslint-disable @typescript-eslint/no-namespace */
2
- /* eslint-disable @typescript-eslint/no-var-requires */
3
- /* eslint-disable prettier/prettier */
4
- // ***********************************************************
5
- // This example support/component.ts is processed and
6
- // loaded automatically before your test files.
7
- //
8
- // This is a great place to put global configuration and
9
- // behavior that modifies Cypress.
10
- //
11
- // You can change the location of this file or turn off
12
- // automatically serving support files with the
13
- // 'supportFile' configuration option.
14
- //
15
- // You can read more here:
16
- // https://on.cypress.io/configuration
17
- // ***********************************************************
18
-
19
- // Import commands.js using ES2015 syntax:
20
- import './commands'
21
- import '@patternfly/patternfly/patternfly.css';
22
- import '@patternfly/patternfly/patternfly-addons.css';
23
-
24
- // Alternatively you can use CommonJS syntax:
25
- // require('./commands')
26
-
27
- import { mount } from 'cypress/react'
28
- const { addMatchImageSnapshotCommand, } = require('@simonsmith/cypress-image-snapshot/command');
29
-
30
- // configure the matcher to be less precise to adjust between the headless and normal browser rendering differences
31
- addMatchImageSnapshotCommand({
32
- failureThreshold: 0.03, // threshold for entire image
33
- failureThresholdType: 'percent', // percent of image or number of pixels
34
- customDiffConfig: { threshold: 0.1 }, // threshold for each pixel
35
- capture: 'viewport', // capture viewport in screenshot
36
- });
37
-
38
- // Augment the Cypress namespace to include type definitions for
39
- // your custom command.
40
- // Alternatively, can be defined in cypress/support/component.d.ts
41
- // with a <reference path="./component" /> at the top of your spec.
42
-
43
- Cypress.Commands.add('mount', mount)
44
-
45
- // Example use:
46
- // cy.mount(<MyComponent />)
package/cypress.config.js DELETED
@@ -1,34 +0,0 @@
1
- const { defineConfig } = require('cypress')
2
- const { addMatchImageSnapshotPlugin } = require('@simonsmith/cypress-image-snapshot/plugin');
3
-
4
- /** @type {import('cypress').defineConfig} */
5
- module.exports = defineConfig({
6
- component: {
7
- specPattern: "src/**/*.spec.ct.{js,ts,jsx,tsx}",
8
- viewportHeight: 660,
9
- viewportWidth: 1000,
10
- video: false,
11
- devServer: {
12
- framework: 'react',
13
- bundler: 'webpack',
14
- webpackConfig: require('./cypress/cypress.webpack.config')
15
- },
16
- setupNodeEvents(on, config) {
17
- addMatchImageSnapshotPlugin(on, config);
18
- on('before:browser:launch', (browser, launchOptions) => {
19
- if (browser.name === 'chrome' && browser.isHeadless) {
20
- launchOptions.args.push('--window-size=1280,720');
21
-
22
- // force screen to be non-retina
23
- launchOptions.args.push('--force-device-scale-factor=1');
24
- }
25
-
26
- if (browser.name === 'electron' && browser.isHeadless) {
27
- // fullPage screenshot size is 1280x720
28
- launchOptions.preferences.width = 1280;
29
- launchOptions.preferences.height = 720;
30
- }
31
- });
32
- },
33
- }
34
- })