creevey 0.8.0-beta.0 → 0.9.0-beta.1

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 (225) hide show
  1. package/CHANGELOG.md +5 -9
  2. package/lib/cjs/client/web/main.js +6 -6
  3. package/lib/types/cli.d.ts +1 -1
  4. package/lib/types/client/addon/Manager.d.ts +37 -37
  5. package/lib/types/client/addon/components/Addon.d.ts +8 -8
  6. package/lib/types/client/addon/components/Icons.d.ts +7 -7
  7. package/lib/types/client/addon/components/Panel.d.ts +9 -9
  8. package/lib/types/client/addon/components/TestSelect.d.ts +9 -9
  9. package/lib/types/client/addon/components/Tools.d.ts +6 -6
  10. package/lib/types/client/addon/decorator.d.ts +1 -1
  11. package/lib/types/client/addon/preset.d.ts +24 -22
  12. package/lib/types/client/addon/readyForCapture.d.ts +6 -0
  13. package/lib/types/client/addon/register.d.ts +3 -3
  14. package/lib/types/client/addon/utils.d.ts +2 -2
  15. package/lib/types/client/addon/withCreevey.d.ts +24 -13
  16. package/lib/types/client/shared/components/ImagesView/BlendView.d.ts +3 -3
  17. package/lib/types/client/shared/components/ImagesView/ImagesView.d.ts +25 -25
  18. package/lib/types/client/shared/components/ImagesView/SideBySideView.d.ts +3 -3
  19. package/lib/types/client/shared/components/ImagesView/SlideView.d.ts +3 -3
  20. package/lib/types/client/shared/components/ImagesView/SwapView.d.ts +3 -3
  21. package/lib/types/client/shared/components/ImagesView/index.d.ts +5 -5
  22. package/lib/types/client/shared/components/PageFooter/PageFooter.d.ts +9 -9
  23. package/lib/types/client/shared/components/PageFooter/Paging.d.ts +8 -8
  24. package/lib/types/client/shared/components/PageHeader/ImagePreview.d.ts +12 -12
  25. package/lib/types/client/shared/components/PageHeader/PageHeader.d.ts +17 -17
  26. package/lib/types/client/shared/components/ResultsPage.d.ts +18 -18
  27. package/lib/types/client/shared/creeveyClientApi.d.ts +9 -9
  28. package/lib/types/client/shared/helpers.d.ts +46 -46
  29. package/lib/types/client/shared/viewMode.d.ts +4 -4
  30. package/lib/types/client/web/CreeveyApp.d.ts +12 -12
  31. package/lib/types/client/web/CreeveyContext.d.ts +11 -11
  32. package/lib/types/client/web/CreeveyLoader.d.ts +3 -3
  33. package/lib/types/client/web/CreeveyView/SideBar/Checkbox.d.ts +19 -19
  34. package/lib/types/client/web/CreeveyView/SideBar/Search.d.ts +6 -6
  35. package/lib/types/client/web/CreeveyView/SideBar/SideBar.d.ts +14 -14
  36. package/lib/types/client/web/CreeveyView/SideBar/SideBarHeader.d.ts +13 -13
  37. package/lib/types/client/web/CreeveyView/SideBar/SuiteLink.d.ts +33 -33
  38. package/lib/types/client/web/CreeveyView/SideBar/TestLink.d.ts +8 -8
  39. package/lib/types/client/web/CreeveyView/SideBar/TestStatusIcon.d.ts +10 -10
  40. package/lib/types/client/web/CreeveyView/SideBar/TestsStatus.d.ts +9 -9
  41. package/lib/types/client/web/CreeveyView/SideBar/Toggle.d.ts +6 -6
  42. package/lib/types/client/web/CreeveyView/SideBar/index.d.ts +1 -1
  43. package/lib/types/client/web/KeyboardEventsContext.d.ts +13 -13
  44. package/lib/types/client/web/index.d.ts +4 -4
  45. package/lib/types/creevey.d.ts +1 -1
  46. package/lib/types/index.d.ts +4 -2
  47. package/lib/types/server/config.d.ts +4 -4
  48. package/lib/types/server/docker.d.ts +7 -7
  49. package/lib/types/server/extract.d.ts +2 -2
  50. package/lib/types/server/index.d.ts +2 -2
  51. package/lib/types/server/loaders/babel/creevey-plugin.d.ts +1 -1
  52. package/lib/types/server/loaders/babel/helpers.d.ts +19 -19
  53. package/lib/types/server/loaders/babel/register.d.ts +5 -5
  54. package/lib/types/server/loaders/hooks/mdx.d.ts +1 -1
  55. package/lib/types/server/loaders/hooks/svelte.d.ts +1 -1
  56. package/lib/types/server/loaders/webpack/compile.d.ts +2 -2
  57. package/lib/types/server/loaders/webpack/creevey-loader.d.ts +2 -2
  58. package/lib/types/server/loaders/webpack/dummy-hmr.d.ts +10 -10
  59. package/lib/types/server/loaders/webpack/mdx-loader.d.ts +6 -6
  60. package/lib/types/server/loaders/webpack/start.d.ts +1 -1
  61. package/lib/types/server/logger.d.ts +6 -6
  62. package/lib/types/server/master/api.d.ts +7 -7
  63. package/lib/types/server/master/index.d.ts +3 -3
  64. package/lib/types/server/master/master.d.ts +7 -6
  65. package/lib/types/server/master/pool.d.ts +31 -30
  66. package/lib/types/server/master/runner.d.ts +26 -26
  67. package/lib/types/server/master/server.d.ts +2 -2
  68. package/lib/types/server/messages.d.ts +27 -18
  69. package/lib/types/server/selenium/browser.d.ts +17 -14
  70. package/lib/types/server/selenium/index.d.ts +2 -2
  71. package/lib/types/server/selenium/selenoid.d.ts +3 -3
  72. package/lib/types/server/stories.d.ts +8 -8
  73. package/lib/types/server/storybook/entry.d.ts +18 -18
  74. package/lib/types/server/storybook/helpers.d.ts +24 -24
  75. package/lib/types/server/storybook/providers/browser.d.ts +4 -0
  76. package/lib/types/server/storybook/providers/hybrid.d.ts +4 -0
  77. package/lib/types/server/storybook/providers/nodejs.d.ts +9 -0
  78. package/lib/types/server/testsFiles/parser.d.ts +12 -0
  79. package/lib/types/server/testsFiles/register.d.ts +2 -0
  80. package/lib/types/server/update.d.ts +2 -2
  81. package/lib/types/server/utils.d.ts +20 -19
  82. package/lib/types/server/worker/chai-image.d.ts +6 -6
  83. package/lib/types/server/worker/helpers.d.ts +8 -7
  84. package/lib/types/server/worker/index.d.ts +1 -1
  85. package/lib/types/server/worker/reporter.d.ts +8 -8
  86. package/lib/types/server/worker/worker.d.ts +4 -4
  87. package/lib/types/shared.d.ts +16 -4
  88. package/lib/types/types.d.ts +489 -459
  89. package/package.json +16 -7
  90. package/storybook-static/stories.json +21 -0
  91. package/types/mocha.d.ts +1 -0
  92. package/lib/cjs/cli.js +0 -5
  93. package/lib/cjs/client/addon/Manager.js +0 -413
  94. package/lib/cjs/client/addon/components/Addon.js +0 -76
  95. package/lib/cjs/client/addon/components/Icons.js +0 -42
  96. package/lib/cjs/client/addon/components/Panel.js +0 -68
  97. package/lib/cjs/client/addon/components/TestSelect.js +0 -63
  98. package/lib/cjs/client/addon/components/Tools.js +0 -114
  99. package/lib/cjs/client/addon/decorator.js +0 -11
  100. package/lib/cjs/client/addon/preset.js +0 -80
  101. package/lib/cjs/client/addon/register.js +0 -96
  102. package/lib/cjs/client/addon/utils.js +0 -38
  103. package/lib/cjs/client/addon/withCreevey.js +0 -284
  104. package/lib/cjs/client/shared/components/ImagesView/BlendView.js +0 -85
  105. package/lib/cjs/client/shared/components/ImagesView/ImagesView.js +0 -88
  106. package/lib/cjs/client/shared/components/ImagesView/SideBySideView.js +0 -176
  107. package/lib/cjs/client/shared/components/ImagesView/SlideView.js +0 -178
  108. package/lib/cjs/client/shared/components/ImagesView/SwapView.js +0 -110
  109. package/lib/cjs/client/shared/components/ImagesView/index.js +0 -45
  110. package/lib/cjs/client/shared/components/PageFooter/PageFooter.js +0 -46
  111. package/lib/cjs/client/shared/components/PageFooter/Paging.js +0 -98
  112. package/lib/cjs/client/shared/components/PageHeader/ImagePreview.js +0 -78
  113. package/lib/cjs/client/shared/components/PageHeader/PageHeader.js +0 -144
  114. package/lib/cjs/client/shared/components/ResultsPage.js +0 -173
  115. package/lib/cjs/client/shared/creeveyClientApi.js +0 -103
  116. package/lib/cjs/client/shared/helpers.js +0 -482
  117. package/lib/cjs/client/shared/viewMode.js +0 -17
  118. package/lib/cjs/client/web/index.html +0 -19
  119. package/lib/cjs/creevey.js +0 -71
  120. package/lib/cjs/index.js +0 -44
  121. package/lib/cjs/server/config.js +0 -92
  122. package/lib/cjs/server/docker.js +0 -150
  123. package/lib/cjs/server/extract.js +0 -43
  124. package/lib/cjs/server/index.js +0 -85
  125. package/lib/cjs/server/loaders/babel/creevey-plugin.js +0 -88
  126. package/lib/cjs/server/loaders/babel/helpers.js +0 -479
  127. package/lib/cjs/server/loaders/babel/register.js +0 -126
  128. package/lib/cjs/server/loaders/hooks/mdx.js +0 -30
  129. package/lib/cjs/server/loaders/hooks/svelte.js +0 -65
  130. package/lib/cjs/server/loaders/webpack/compile.js +0 -286
  131. package/lib/cjs/server/loaders/webpack/creevey-loader.js +0 -174
  132. package/lib/cjs/server/loaders/webpack/dummy-hmr.js +0 -44
  133. package/lib/cjs/server/loaders/webpack/mdx-loader.js +0 -72
  134. package/lib/cjs/server/loaders/webpack/start.js +0 -41
  135. package/lib/cjs/server/logger.js +0 -47
  136. package/lib/cjs/server/master/api.js +0 -71
  137. package/lib/cjs/server/master/index.js +0 -152
  138. package/lib/cjs/server/master/master.js +0 -56
  139. package/lib/cjs/server/master/pool.js +0 -206
  140. package/lib/cjs/server/master/runner.js +0 -294
  141. package/lib/cjs/server/master/server.js +0 -57
  142. package/lib/cjs/server/messages.js +0 -154
  143. package/lib/cjs/server/selenium/browser.js +0 -582
  144. package/lib/cjs/server/selenium/index.js +0 -31
  145. package/lib/cjs/server/selenium/selenoid.js +0 -174
  146. package/lib/cjs/server/stories.js +0 -167
  147. package/lib/cjs/server/storybook/entry.js +0 -68
  148. package/lib/cjs/server/storybook/helpers.js +0 -165
  149. package/lib/cjs/server/storybook/nodejs-provider.js +0 -220
  150. package/lib/cjs/server/update.js +0 -83
  151. package/lib/cjs/server/utils.js +0 -178
  152. package/lib/cjs/server/worker/chai-image.js +0 -142
  153. package/lib/cjs/server/worker/helpers.js +0 -73
  154. package/lib/cjs/server/worker/index.js +0 -15
  155. package/lib/cjs/server/worker/reporter.js +0 -120
  156. package/lib/cjs/server/worker/worker.js +0 -266
  157. package/lib/cjs/shared.js +0 -35
  158. package/lib/cjs/types.js +0 -69
  159. package/lib/esm/cli.js +0 -4
  160. package/lib/esm/client/addon/Manager.js +0 -397
  161. package/lib/esm/client/addon/components/Addon.js +0 -58
  162. package/lib/esm/client/addon/components/Icons.js +0 -27
  163. package/lib/esm/client/addon/components/Panel.js +0 -49
  164. package/lib/esm/client/addon/components/TestSelect.js +0 -49
  165. package/lib/esm/client/addon/components/Tools.js +0 -91
  166. package/lib/esm/client/addon/decorator.js +0 -2
  167. package/lib/esm/client/addon/preset.js +0 -55
  168. package/lib/esm/client/addon/register.js +0 -75
  169. package/lib/esm/client/addon/utils.js +0 -31
  170. package/lib/esm/client/addon/withCreevey.js +0 -270
  171. package/lib/esm/client/shared/components/ImagesView/BlendView.js +0 -64
  172. package/lib/esm/client/shared/components/ImagesView/ImagesView.js +0 -65
  173. package/lib/esm/client/shared/components/ImagesView/SideBySideView.js +0 -152
  174. package/lib/esm/client/shared/components/ImagesView/SlideView.js +0 -154
  175. package/lib/esm/client/shared/components/ImagesView/SwapView.js +0 -89
  176. package/lib/esm/client/shared/components/ImagesView/index.js +0 -5
  177. package/lib/esm/client/shared/components/PageFooter/PageFooter.js +0 -32
  178. package/lib/esm/client/shared/components/PageFooter/Paging.js +0 -84
  179. package/lib/esm/client/shared/components/PageHeader/ImagePreview.js +0 -64
  180. package/lib/esm/client/shared/components/PageHeader/PageHeader.js +0 -120
  181. package/lib/esm/client/shared/components/ResultsPage.js +0 -143
  182. package/lib/esm/client/shared/creeveyClientApi.js +0 -94
  183. package/lib/esm/client/shared/helpers.js +0 -424
  184. package/lib/esm/client/shared/viewMode.js +0 -6
  185. package/lib/esm/creevey.js +0 -56
  186. package/lib/esm/index.js +0 -4
  187. package/lib/esm/server/config.js +0 -71
  188. package/lib/esm/server/docker.js +0 -123
  189. package/lib/esm/server/extract.js +0 -30
  190. package/lib/esm/server/index.js +0 -65
  191. package/lib/esm/server/loaders/babel/creevey-plugin.js +0 -74
  192. package/lib/esm/server/loaders/babel/helpers.js +0 -462
  193. package/lib/esm/server/loaders/babel/register.js +0 -105
  194. package/lib/esm/server/loaders/hooks/mdx.js +0 -15
  195. package/lib/esm/server/loaders/hooks/svelte.js +0 -49
  196. package/lib/esm/server/loaders/webpack/compile.js +0 -263
  197. package/lib/esm/server/loaders/webpack/creevey-loader.js +0 -153
  198. package/lib/esm/server/loaders/webpack/dummy-hmr.js +0 -36
  199. package/lib/esm/server/loaders/webpack/mdx-loader.js +0 -58
  200. package/lib/esm/server/loaders/webpack/start.js +0 -27
  201. package/lib/esm/server/logger.js +0 -20
  202. package/lib/esm/server/master/api.js +0 -60
  203. package/lib/esm/server/master/index.js +0 -131
  204. package/lib/esm/server/master/master.js +0 -37
  205. package/lib/esm/server/master/pool.js +0 -187
  206. package/lib/esm/server/master/runner.js +0 -272
  207. package/lib/esm/server/master/server.js +0 -37
  208. package/lib/esm/server/messages.js +0 -128
  209. package/lib/esm/server/selenium/browser.js +0 -554
  210. package/lib/esm/server/selenium/index.js +0 -2
  211. package/lib/esm/server/selenium/selenoid.js +0 -151
  212. package/lib/esm/server/stories.js +0 -147
  213. package/lib/esm/server/storybook/entry.js +0 -44
  214. package/lib/esm/server/storybook/helpers.js +0 -106
  215. package/lib/esm/server/storybook/nodejs-provider.js +0 -200
  216. package/lib/esm/server/update.js +0 -65
  217. package/lib/esm/server/utils.js +0 -141
  218. package/lib/esm/server/worker/chai-image.js +0 -130
  219. package/lib/esm/server/worker/helpers.js +0 -64
  220. package/lib/esm/server/worker/index.js +0 -1
  221. package/lib/esm/server/worker/reporter.js +0 -98
  222. package/lib/esm/server/worker/worker.js +0 -236
  223. package/lib/esm/shared.js +0 -22
  224. package/lib/esm/types.js +0 -40
  225. package/lib/types/server/storybook/nodejs-provider.d.ts +0 -5
package/package.json CHANGED
@@ -13,7 +13,7 @@
13
13
  "addon",
14
14
  "test"
15
15
  ],
16
- "version": "0.8.0-beta.0",
16
+ "version": "0.9.0-beta.1",
17
17
  "bin": {
18
18
  "creevey": "./lib/cjs/cli.js"
19
19
  },
@@ -46,6 +46,7 @@
46
46
  "creevey": "node --require ./scripts/babel-register -- src/cli",
47
47
  "creevey:github": "yarn creevey --config .creevey/github.config.ts",
48
48
  "creevey:gitlab": "yarn creevey --config .creevey/gitlab.config.ts",
49
+ "creevey:hybrid": "yarn creevey --config .creevey/hybrid.config.ts",
49
50
  "fix": "run-s fix:*",
50
51
  "fix:eslint": "eslint --fix ./",
51
52
  "fix:prettier": "prettier --write .",
@@ -53,8 +54,8 @@
53
54
  "build": "run-p --continue-on-error build:*",
54
55
  "build:types": "tsc --emitDeclarationOnly -p scripts/tsconfig.prod.json",
55
56
  "build:creevey": "run-p \"build:creevey:* --extensions .ts,.tsx --ignore src/client/web\"",
56
- "build:creevey:cjs": "cross-env BABEL_MODE=cjs \"babel src --out-dir lib/cjs\"",
57
- "build:creevey:esm": "cross-env BABEL_MODE=esm \"babel src --out-dir lib/esm\"",
57
+ "build:creevey:cjs": "cross-env BABEL_MODE=cjs babel src --out-dir lib/cjs",
58
+ "build:creevey:esm": "cross-env BABEL_MODE=esm babel src --out-dir lib/esm",
58
59
  "build:client": "webpack --mode production",
59
60
  "postbuild": "run-p copy:*",
60
61
  "copy:index": "cpx scripts/dist/types/* lib/types/",
@@ -62,7 +63,6 @@
62
63
  "version": "conventional-changelog -p angular -i CHANGELOG.md -s && git add CHANGELOG.md",
63
64
  "build-storybook": "build-storybook",
64
65
  "chromatic": "npx chromatic --project-token t3010eknrh",
65
- "prepublishOnly": "yarn build",
66
66
  "prepare": "husky install"
67
67
  },
68
68
  "engines": {
@@ -75,27 +75,33 @@
75
75
  "@babel/parser": "^7.15.3",
76
76
  "@babel/plugin-transform-runtime": "^7.15.0",
77
77
  "@babel/preset-env": "^7.15.0",
78
+ "@babel/preset-typescript": "^7.15.0",
78
79
  "@babel/register": "^7.15.3",
79
80
  "@babel/runtime-corejs3": "^7.15.3",
80
81
  "@babel/traverse": "^7.15.0",
81
82
  "@babel/types": "^7.15.0",
83
+ "@koa/cors": "^3.2.0",
82
84
  "@octokit/core": "^3.3.1",
83
85
  "@storybook/components": "^6.4.19",
84
- "@storybook/csf": "^0.0.1",
86
+ "@storybook/csf": "0.0.2--canary.87bc651.0",
87
+ "@storybook/testing-library": "^0.0.9",
85
88
  "@storybook/theming": "^6.4.19",
86
89
  "@types/chai": "^4.2.15",
87
90
  "@types/selenium-webdriver": "^4.0.12",
88
91
  "airbnb-js-shims": "^2.2.1",
92
+ "babel-plugin-tsconfig-paths": "^1.0.3",
89
93
  "chai": "^4.3.4",
90
94
  "chalk": "^4.1.2",
91
95
  "chokidar": "^3.5.1",
92
96
  "core-js": "^3.16.3",
93
97
  "dockerode": "^3.2.1",
94
- "event-source-polyfill": "^1.0.25",
98
+ "event-source-polyfill": "1.0.25",
95
99
  "find-cache-dir": "^3.3.1",
100
+ "get-tsconfig": "^4.2.0",
96
101
  "global-jsdom": "8.3.0",
97
102
  "jsdom": "^16.5.2",
98
103
  "koa": "^2.13.1",
104
+ "koa-bodyparser": "^4.3.0",
99
105
  "koa-mount": "^4.0.0",
100
106
  "koa-static": "^5.0.0",
101
107
  "loader-utils": "^2.0.0",
@@ -117,6 +123,7 @@
117
123
  "schema-utils": "^3.0.0",
118
124
  "selenium-webdriver": "^4.0.0-beta.3",
119
125
  "shelljs": "^0.8.4",
126
+ "ts-node": "^10.9.1",
120
127
  "tsconfig-paths": "^3.11.0",
121
128
  "webpack-node-externals": "^3.0.0",
122
129
  "ws": "^7.4.6"
@@ -126,7 +133,6 @@
126
133
  "@babel/core": "^7.15.0",
127
134
  "@babel/plugin-proposal-class-properties": "^7.13.0",
128
135
  "@babel/preset-react": "^7.13.13",
129
- "@babel/preset-typescript": "^7.15.0",
130
136
  "@mdx-js/mdx": "^1.6.22",
131
137
  "@storybook/addon-essentials": "^6.4.19",
132
138
  "@storybook/addon-postcss": "^2.0.0",
@@ -140,6 +146,7 @@
140
146
  "@storybook/core-common": "^6.4.19",
141
147
  "@storybook/core-events": "^6.4.19",
142
148
  "@storybook/core-server": "^6.4.19",
149
+ "@storybook/preview-web": "^6.4.19",
143
150
  "@storybook/react": "^6.4.19",
144
151
  "@types/babel__code-frame": "^7.0.2",
145
152
  "@types/babel__generator": "^7.6.2",
@@ -147,8 +154,10 @@
147
154
  "@types/dockerode": "^3.2.3",
148
155
  "@types/find-cache-dir": "^3.2.0",
149
156
  "@types/koa": "^2.13.1",
157
+ "@types/koa-bodyparser": "^4.3.7",
150
158
  "@types/koa-mount": "^4.0.1",
151
159
  "@types/koa-static": "^4.0.1",
160
+ "@types/koa__cors": "^3.1.1",
152
161
  "@types/loader-utils": "^2.0.2",
153
162
  "@types/lodash": "^4.14.172",
154
163
  "@types/micromatch": "^4.0.1",
@@ -0,0 +1,21 @@
1
+ {
2
+ "v": 2,
3
+ "globals": {},
4
+ "globalParameters": {},
5
+ "kindParameters": {
6
+ "BlendView": {}
7
+ },
8
+ "stories": {
9
+ "blendview--100-x-100-vs-100-x-100": {
10
+ "id": "blendview--100-x-100-vs-100-x-100",
11
+ "name": "100 X 100 Vs 100 X 100",
12
+ "kind": "BlendView",
13
+ "story": "100 X 100 Vs 100 X 100",
14
+ "parameters": {
15
+ "fileName": "/Users/pogadaev.e/code/creevey/stories/BlendView.stories.tsx",
16
+ "framework": "react",
17
+ "__id": "blendview--100-x-100-vs-100-x-100"
18
+ }
19
+ }
20
+ }
21
+ }
package/types/mocha.d.ts CHANGED
@@ -11,6 +11,7 @@ declare namespace Mocha {
11
11
  readonly captureElement?: import('selenium-webdriver').WebElementPromise;
12
12
  browserName: string;
13
13
  testScope: string[];
14
+ screenshots: { imageName?: string; screenshot: string }[];
14
15
  }
15
16
 
16
17
  interface Test {
package/lib/cjs/cli.js DELETED
@@ -1,5 +0,0 @@
1
- #!/usr/bin/env node
2
- // eslint-disable-next-line node/shebang
3
- "use strict";
4
-
5
- require('./creevey');
@@ -1,413 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.CreeveyManager = void 0;
7
-
8
- var _coreEvents = require("@storybook/core-events");
9
-
10
- var _shared = require("../../shared");
11
-
12
- var _types = require("../../types");
13
-
14
- var _creeveyClientApi = require("../shared/creeveyClientApi");
15
-
16
- var _helpers = require("../shared/helpers");
17
-
18
- var _register = require("./register");
19
-
20
- var _utils = require("./utils");
21
-
22
- function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
23
-
24
- function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
25
-
26
- function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
27
-
28
- function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
29
-
30
- function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
31
-
32
- function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
33
-
34
- function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
35
-
36
- function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
37
-
38
- function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
39
-
40
- function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
41
-
42
- function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }
43
-
44
- function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; }
45
-
46
- function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
47
-
48
- function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
49
-
50
- function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
51
-
52
- function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
53
-
54
- var CreeveyManager = /*#__PURE__*/function () {
55
- function CreeveyManager(storybookApi) {
56
- var _this = this;
57
-
58
- _classCallCheck(this, CreeveyManager);
59
-
60
- _defineProperty(this, "storyId", '');
61
-
62
- _defineProperty(this, "activeBrowser", '');
63
-
64
- _defineProperty(this, "selectedTestId", '');
65
-
66
- _defineProperty(this, "status", {
67
- isRunning: false,
68
- tests: {},
69
- browsers: []
70
- });
71
-
72
- _defineProperty(this, "creeveyApi", null);
73
-
74
- _defineProperty(this, "stories", {});
75
-
76
- _defineProperty(this, "updateStatusListeners", []);
77
-
78
- _defineProperty(this, "changeTestListeners", []);
79
-
80
- _defineProperty(this, "initAll", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee() {
81
- return regeneratorRuntime.wrap(function _callee$(_context) {
82
- while (1) {
83
- switch (_context.prev = _context.next) {
84
- case 0:
85
- _this.storybookApi.on(_coreEvents.STORY_RENDERED, _this.onStoryRendered);
86
-
87
- _this.storybookApi.on(_coreEvents.SET_STORIES, _this.onSetStories);
88
-
89
- _context.next = 4;
90
- return (0, _creeveyClientApi.initCreeveyClientApi)();
91
-
92
- case 4:
93
- _this.creeveyApi = _context.sent;
94
-
95
- _this.creeveyApi.onUpdate(_this.handleCreeveyUpdate);
96
-
97
- _context.next = 8;
98
- return _this.creeveyApi.status;
99
-
100
- case 8:
101
- _this.status = _context.sent;
102
-
103
- case 9:
104
- case "end":
105
- return _context.stop();
106
- }
107
- }
108
- }, _callee);
109
- })));
110
-
111
- _defineProperty(this, "handleCreeveyUpdate", function (update) {
112
- var tests = update.tests,
113
- _update$removedTests = update.removedTests,
114
- removedTests = _update$removedTests === void 0 ? [] : _update$removedTests,
115
- isRunning = update.isRunning;
116
-
117
- if ((0, _types.isDefined)(isRunning)) {
118
- _this.status.isRunning = isRunning;
119
- }
120
-
121
- if ((0, _types.isDefined)(tests)) {
122
- var prevTests = _this.status.tests;
123
- var prevStories = _this.stories || {};
124
- Object.values(tests).filter(_types.isDefined).forEach(function (update) {
125
- var _test$results;
126
-
127
- var id = update.id,
128
- skip = update.skip,
129
- status = update.status,
130
- results = update.results,
131
- approved = update.approved,
132
- storyId = update.storyId;
133
- var test = prevTests[id];
134
-
135
- if (!test) {
136
- return prevTests[id] = update;
137
- }
138
-
139
- if ((0, _types.isDefined)(skip)) test.skip = skip;
140
-
141
- if ((0, _types.isDefined)(status)) {
142
- test.status = status;
143
-
144
- if ((0, _types.isDefined)(storyId) && (0, _types.isDefined)(prevStories[storyId])) {
145
- var story = prevStories[storyId];
146
-
147
- var storyStatus = _this.getStoryTests(storyId);
148
-
149
- var oldStatus = storyStatus.map(function (x) {
150
- return x.id === id ? status : x.status;
151
- }).reduce(function (oldStatus, newStatus) {
152
- return (0, _helpers.calcStatus)(oldStatus, newStatus);
153
- }, undefined);
154
- story.name = _this.addStatusToStoryName(story.name, (0, _helpers.calcStatus)(oldStatus, status), skip || false);
155
- }
156
- }
157
-
158
- if ((0, _types.isDefined)(results)) test.results ? (_test$results = test.results).push.apply(_test$results, _toConsumableArray(results)) : test.results = results;
159
-
160
- if ((0, _types.isDefined)(approved)) {
161
- Object.entries(approved).forEach(function (_ref2) {
162
- var _ref3 = _slicedToArray(_ref2, 2),
163
- image = _ref3[0],
164
- retry = _ref3[1];
165
-
166
- return retry !== undefined && test && ((test.approved = (test === null || test === void 0 ? void 0 : test.approved) || {})[image] = retry);
167
- });
168
- }
169
- });
170
- removedTests.forEach(function (_ref4) {
171
- var id = _ref4.id;
172
- return delete prevTests[id];
173
- });
174
- _this.status.tests = prevTests;
175
- _this.stories = prevStories;
176
-
177
- _this.setPanelsTitle();
178
-
179
- void _this.storybookApi.setStories(_this.stories);
180
- }
181
-
182
- _this.updateStatusListeners.forEach(function (x) {
183
- return x(update);
184
- });
185
- });
186
-
187
- _defineProperty(this, "getCurrentTest", function () {
188
- return _this.status.tests[_this.selectedTestId];
189
- });
190
-
191
- _defineProperty(this, "onStoryRendered", function (storyId) {
192
- if (_this.storyId === '') void _this.addStatusesToSideBar();
193
-
194
- if (_this.storyId !== storyId) {
195
- var _this$getTestsByStory, _this$getTestsByStory2;
196
-
197
- _this.storyId = storyId;
198
- _this.selectedTestId = (_this$getTestsByStory = (_this$getTestsByStory2 = _this.getTestsByStoryIdAndBrowser(_this.activeBrowser)[0]) === null || _this$getTestsByStory2 === void 0 ? void 0 : _this$getTestsByStory2.id) !== null && _this$getTestsByStory !== void 0 ? _this$getTestsByStory : '';
199
-
200
- _this.setPanelsTitle();
201
-
202
- _this.changeTestListeners.forEach(function (x) {
203
- return x(_this.selectedTestId);
204
- });
205
- }
206
- });
207
-
208
- _defineProperty(this, "onStart", function () {
209
- var _this$creeveyApi;
210
-
211
- (_this$creeveyApi = _this.creeveyApi) === null || _this$creeveyApi === void 0 ? void 0 : _this$creeveyApi.start([_this.selectedTestId]);
212
- });
213
-
214
- _defineProperty(this, "onStop", function () {
215
- var _this$creeveyApi2;
216
-
217
- (_this$creeveyApi2 = _this.creeveyApi) === null || _this$creeveyApi2 === void 0 ? void 0 : _this$creeveyApi2.stop();
218
- });
219
-
220
- _defineProperty(this, "onImageApprove", function (id, retry, image) {
221
- var _this$creeveyApi3;
222
-
223
- return (_this$creeveyApi3 = _this.creeveyApi) === null || _this$creeveyApi3 === void 0 ? void 0 : _this$creeveyApi3.approve(id, retry, image);
224
- });
225
-
226
- _defineProperty(this, "onStartAllStoryTests", function () {
227
- var _this$creeveyApi4;
228
-
229
- var ids = Object.values(_this.status.tests).filter(_types.isDefined).filter(function (x) {
230
- return x.storyId === _this.storyId;
231
- }).map(function (x) {
232
- return x.id;
233
- });
234
- (_this$creeveyApi4 = _this.creeveyApi) === null || _this$creeveyApi4 === void 0 ? void 0 : _this$creeveyApi4.start(ids);
235
- });
236
-
237
- _defineProperty(this, "onStartAllTests", function () {
238
- var _this$creeveyApi5;
239
-
240
- var ids = Object.values(_this.status.tests).filter(_types.isDefined).map(function (x) {
241
- return x.id;
242
- });
243
- (_this$creeveyApi5 = _this.creeveyApi) === null || _this$creeveyApi5 === void 0 ? void 0 : _this$creeveyApi5.start(ids);
244
- });
245
-
246
- _defineProperty(this, "onSetStories", function (data) {
247
- // TODO: Send PR to storybook to fix this
248
- var stories = data.v ? (0, _shared.denormalizeStoryParameters)(data) : data.stories;
249
- _this.stories = stories;
250
- });
251
-
252
- _defineProperty(this, "setActiveBrowser", function (browser) {
253
- var _this$getTestsByStory3, _this$getTestsByStory4;
254
-
255
- _this.activeBrowser = browser;
256
- _this.selectedTestId = (_this$getTestsByStory3 = (_this$getTestsByStory4 = _this.getTestsByStoryIdAndBrowser(_this.activeBrowser)[0]) === null || _this$getTestsByStory4 === void 0 ? void 0 : _this$getTestsByStory4.id) !== null && _this$getTestsByStory3 !== void 0 ? _this$getTestsByStory3 : '';
257
-
258
- _this.changeTestListeners.forEach(function (x) {
259
- return x(_this.selectedTestId);
260
- });
261
- });
262
-
263
- _defineProperty(this, "setSelectedTestId", function (testId) {
264
- _this.selectedTestId = testId;
265
-
266
- _this.changeTestListeners.forEach(function (x) {
267
- return x(_this.selectedTestId);
268
- });
269
- });
270
-
271
- _defineProperty(this, "getStoryTests", function (storyId) {
272
- if (!_this.status || !_this.status.tests) return [];
273
- return Object.values(_this.status.tests).filter(function (result) {
274
- return (result === null || result === void 0 ? void 0 : result.storyId) === storyId;
275
- }).filter(_types.isDefined);
276
- });
277
-
278
- _defineProperty(this, "getBrowsers", function () {
279
- return _this.status.browsers;
280
- });
281
-
282
- _defineProperty(this, "getTestsByStoryIdAndBrowser", function (browser) {
283
- return Object.values(_this.status.tests).filter(function (x) {
284
- return (x === null || x === void 0 ? void 0 : x.browser) === browser && x.storyId === _this.storyId;
285
- }).filter(_types.isDefined);
286
- });
287
-
288
- _defineProperty(this, "getTabTitle", function (browser) {
289
- var tests = _this.getTestsByStoryIdAndBrowser(browser);
290
-
291
- var browserStatus = tests.map(function (x) {
292
- return x && x.status;
293
- }).reduce(function (oldStatus, newStatus) {
294
- return (0, _helpers.calcStatus)(oldStatus, newStatus);
295
- }, undefined);
296
- var browserSkip = tests.length > 0 ? tests.every(function (x) {
297
- return x && x.skip;
298
- }) : false;
299
- var emojiStatus = (0, _utils.getEmojiByTestStatus)(browserStatus, browserSkip);
300
- return "".concat(emojiStatus ? "".concat(emojiStatus, " ") : '', "Creevey/").concat(browser);
301
- });
302
-
303
- _defineProperty(this, "setPanelsTitle", function () {
304
- var _this$storybookApi;
305
-
306
- var panels = (_this$storybookApi = _this.storybookApi) === null || _this$storybookApi === void 0 ? void 0 : _this$storybookApi.getPanels();
307
- if (!panels) return;
308
- var firstPanelBrowser = _this.activeBrowser;
309
-
310
- for (var p in panels) {
311
- var _panel$id;
312
-
313
- var panel = panels[p];
314
-
315
- if (((_panel$id = panel.id) === null || _panel$id === void 0 ? void 0 : _panel$id.indexOf(_register.ADDON_ID)) === 0 && panel.paramKey) {
316
- panel.title = _this.getTabTitle(panel.paramKey);
317
- if (!firstPanelBrowser) firstPanelBrowser = panel.paramKey;
318
- }
319
- }
320
-
321
- _this.storybookApi.setSelectedPanel("".concat(_register.ADDON_ID, "/panel/").concat(firstPanelBrowser));
322
- });
323
-
324
- this.storybookApi = storybookApi;
325
- }
326
-
327
- _createClass(CreeveyManager, [{
328
- key: "onUpdateStatus",
329
- value: function onUpdateStatus(listener) {
330
- var _this2 = this;
331
-
332
- this.updateStatusListeners.push(listener);
333
- return function () {
334
- return void (_this2.updateStatusListeners = _this2.updateStatusListeners.filter(function (x) {
335
- return x != listener;
336
- }));
337
- };
338
- }
339
- }, {
340
- key: "onChangeTest",
341
- value: function onChangeTest(listener) {
342
- var _this3 = this;
343
-
344
- this.changeTestListeners.push(listener);
345
- return function () {
346
- return void (_this3.changeTestListeners = _this3.changeTestListeners.filter(function (x) {
347
- return x != listener;
348
- }));
349
- };
350
- }
351
- }, {
352
- key: "addStatusesToSideBar",
353
- value: function () {
354
- var _addStatusesToSideBar = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee2() {
355
- var _this4 = this;
356
-
357
- var stories;
358
- return regeneratorRuntime.wrap(function _callee2$(_context2) {
359
- while (1) {
360
- switch (_context2.prev = _context2.next) {
361
- case 0:
362
- if (Object.keys(this.stories).length) {
363
- _context2.next = 2;
364
- break;
365
- }
366
-
367
- return _context2.abrupt("return");
368
-
369
- case 2:
370
- stories = this.stories;
371
- Object.keys(this.stories).forEach(function (storyId) {
372
- var storyStatus = _this4.getStoryTests(storyId);
373
-
374
- var status = storyStatus.map(function (x) {
375
- return x.status;
376
- }).reduce(function (oldStatus, newStatus) {
377
- return (0, _helpers.calcStatus)(oldStatus, newStatus);
378
- }, undefined);
379
- var skip = storyStatus.length > 0 ? storyStatus.every(function (x) {
380
- return x.skip;
381
- }) : false;
382
- _this4.stories[storyId].name = _this4.addStatusToStoryName(stories[storyId].name, status, skip);
383
- });
384
- _context2.next = 6;
385
- return this.storybookApi.setStories(this.stories);
386
-
387
- case 6:
388
- case "end":
389
- return _context2.stop();
390
- }
391
- }
392
- }, _callee2, this);
393
- }));
394
-
395
- function addStatusesToSideBar() {
396
- return _addStatusesToSideBar.apply(this, arguments);
397
- }
398
-
399
- return addStatusesToSideBar;
400
- }()
401
- }, {
402
- key: "addStatusToStoryName",
403
- value: function addStatusToStoryName(name, status, skip) {
404
- name = name.replace(/^(❌|✔|🟡|🕗|⏸) /, '');
405
- var emojiStatus = (0, _utils.getEmojiByTestStatus)(status, skip);
406
- return "".concat(emojiStatus ? "".concat(emojiStatus, " ") : '', " ").concat(name);
407
- }
408
- }]);
409
-
410
- return CreeveyManager;
411
- }();
412
-
413
- exports.CreeveyManager = CreeveyManager;
@@ -1,76 +0,0 @@
1
- "use strict";
2
-
3
- function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
4
-
5
- Object.defineProperty(exports, "__esModule", {
6
- value: true
7
- });
8
- exports.Addon = void 0;
9
-
10
- var _components = require("@storybook/components");
11
-
12
- var _react = _interopRequireWildcard(require("react"));
13
-
14
- var _Panel = require("./Panel");
15
-
16
- function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
17
-
18
- function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
19
-
20
- function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
21
-
22
- function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
23
-
24
- function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
25
-
26
- function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
27
-
28
- function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
29
-
30
- function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
31
-
32
- var Addon = function Addon(_ref) {
33
- var active = _ref.active,
34
- browser = _ref.browser,
35
- manager = _ref.manager;
36
-
37
- var _useState = (0, _react.useState)([]),
38
- _useState2 = _slicedToArray(_useState, 2),
39
- tests = _useState2[0],
40
- setTests = _useState2[1];
41
-
42
- var _useState3 = (0, _react.useState)(manager.selectedTestId),
43
- _useState4 = _slicedToArray(_useState3, 2),
44
- selectedTestId = _useState4[0],
45
- setSelectedTestId = _useState4[1];
46
-
47
- (0, _react.useEffect)(function () {
48
- if (active) {
49
- manager.setActiveBrowser(browser);
50
- var browserTests = manager.getTestsByStoryIdAndBrowser(manager.activeBrowser);
51
- setTests(browserTests);
52
- }
53
- }, [active, browser, manager]);
54
- (0, _react.useEffect)(function () {
55
- var unsubscribe = manager.onChangeTest(function (testId) {
56
- setSelectedTestId(testId);
57
- var status = manager.getTestsByStoryIdAndBrowser(manager.activeBrowser);
58
- setTests(status);
59
- });
60
- return unsubscribe;
61
- }, [manager]);
62
- (0, _react.useEffect)(function () {
63
- var unsubscribe = manager.onUpdateStatus(function () {
64
- setTests(manager.getTestsByStoryIdAndBrowser(manager.activeBrowser));
65
- });
66
- return unsubscribe;
67
- }, [manager, browser]);
68
- return active ? tests.length ? /*#__PURE__*/_react.default.createElement(_Panel.Panel, {
69
- tests: tests,
70
- selectedTestId: selectedTestId,
71
- onChangeTest: manager.setSelectedTestId,
72
- onImageApprove: manager.onImageApprove
73
- }) : /*#__PURE__*/_react.default.createElement(_components.Placeholder, null, "No test results") : null;
74
- };
75
-
76
- exports.Addon = Addon;
@@ -1,42 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.ForwardIcon = exports.NextIcon = void 0;
7
-
8
- var _react = _interopRequireDefault(require("react"));
9
-
10
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
11
-
12
- var NextIcon = function NextIcon(_ref) {
13
- var width = _ref.width,
14
- height = _ref.height;
15
- return /*#__PURE__*/_react.default.createElement("svg", {
16
- version: "1.1",
17
- width: width,
18
- height: height,
19
- viewBox: "0 0 306 306"
20
- }, /*#__PURE__*/_react.default.createElement("path", {
21
- d: "M0,306l216.75-153L0,0V306z M255,0v306h51V0H255z",
22
- fill: "currentColor"
23
- }));
24
- };
25
-
26
- exports.NextIcon = NextIcon;
27
-
28
- var ForwardIcon = function ForwardIcon(_ref2) {
29
- var width = _ref2.width,
30
- height = _ref2.height;
31
- return /*#__PURE__*/_react.default.createElement("svg", {
32
- version: "1.1",
33
- width: width,
34
- height: height,
35
- viewBox: "0 0 512 512"
36
- }, /*#__PURE__*/_react.default.createElement("path", {
37
- fill: "currentColor",
38
- d: "M460.9,246.8l-209-164.2c-7.8-6.1-19.2-0.6-19.2,9.2v328.4c0,9.8,11.4,15.3,19.2,9.2l209-164.2c5.1-4,6-11.4,2-16.5 C462.4,248,461.7,247.3,460.9,246.8L460.9,246.8z M228.2,246.8L19.2,82.5C11.4,76.4,0,82,0,91.8v328.4c0,9.8,11.4,15.3,19.2,9.2 l209-164.2c3-2.3,4.5-5.8,4.5-9.2C232.7,252.6,231.2,249.1,228.2,246.8z M507.3,64h-37.2c-2.5,0-4.7,2-4.7,4.4v375.3 c0,2.4,2.1,4.4,4.7,4.4h37.2c2.5,0,4.7-2,4.7-4.4V68.4C512,66,509.9,64,507.3,64z"
39
- }));
40
- };
41
-
42
- exports.ForwardIcon = ForwardIcon;