@opentrons/components 0.1.0-beta.6 → 0.1.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opentrons/components",
3
- "version": "0.1.0-beta.6",
3
+ "version": "0.1.1",
4
4
  "description": "React components library for Opentrons' projects",
5
5
  "source": "src/index.ts",
6
6
  "types": "lib/index.d.ts",
@@ -19,11 +19,12 @@
19
19
  "homepage": "https://github.com/Opentrons/opentrons#readme",
20
20
  "peerDependencies": {
21
21
  "react": "18.2.0",
22
+ "react-dom": "18.2.0",
22
23
  "react-router-dom": "5.3.4",
23
24
  "@types/react-router-dom": "5.3.3"
24
25
  },
25
26
  "dependencies": {
26
- "@opentrons/shared-data": "0.1.0-beta.6",
27
+ "@opentrons/shared-data": "0.1.1",
27
28
  "@popperjs/core": "2.1.1",
28
29
  "@react-spring/types": "9.6.1",
29
30
  "@react-spring/web": "9.6.1",
package/webpack.config.js CHANGED
@@ -1,21 +1,38 @@
1
1
  'use strict'
2
2
 
3
3
  const path = require('path')
4
- const webpackMerge = require('webpack-merge')
5
- const { baseConfig, rules } = require('@opentrons/webpack-config')
4
+ const { rules } = require('@opentrons/webpack-config')
6
5
 
7
- const ENTRY_INDEX = path.join(__dirname, 'src/manifest.ts')
6
+ const ENTRY_INDEX = path.join(__dirname, 'src/barrel.ts')
8
7
  const OUTPUT_PATH = path.join(__dirname, 'lib')
9
8
 
10
- module.exports = async () =>
11
- webpackMerge(baseConfig, {
12
- entry: { index: ENTRY_INDEX },
13
- output: {
14
- path: OUTPUT_PATH,
15
- filename: 'opentrons-components.js',
16
- library: '@opentrons/components',
17
- libraryTarget: 'umd',
9
+ module.exports = {
10
+ target: 'web',
11
+ entry: { index: ENTRY_INDEX },
12
+ output: {
13
+ path: OUTPUT_PATH,
14
+ filename: 'opentrons-components.js',
15
+ library: '@opentrons/components',
16
+ libraryTarget: 'umd',
17
+ globalObject: 'this',
18
+ },
19
+ mode: 'production',
20
+ module: { rules: [rules.js] },
21
+ resolve: {
22
+ extensions: ['.wasm', '.mjs', '.js', '.ts', '.tsx', '.json'],
23
+ },
24
+ externals: {
25
+ react: {
26
+ root: 'React',
27
+ commonjs2: 'react',
28
+ commonjs: 'react',
29
+ amd: 'react',
18
30
  },
19
- plugins: [],
20
- module: { rules: [rules.js] },
21
- })
31
+ 'react-dom': {
32
+ root: 'ReactDOM',
33
+ commonjs2: 'react-dom',
34
+ commonjs: 'react-dom',
35
+ amd: 'react-dom',
36
+ },
37
+ },
38
+ }
@@ -1 +0,0 @@
1
- .styles__overflow__1yBCe{overflow:visible}
@@ -1,2 +0,0 @@
1
- (window.webpackJsonp_opentrons_components=window.webpackJsonp_opentrons_components||[]).push([[1],{133:function(o,n,e){o.exports={overflow:"styles__overflow__1yBCe"}}}]);
2
- //# sourceMappingURL=1.opentrons-components.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["webpack://@opentrons/components/./src/hardware-sim/Pipette/styles.css"],"names":["module","exports"],"mappings":"uHACAA,EAAOC,QAAU,CAAC,SAAW","file":"1.opentrons-components.js","sourcesContent":["// extracted by mini-css-extract-plugin\nmodule.exports = {\"overflow\":\"styles__overflow__1yBCe\"};"],"sourceRoot":""}
@@ -1,53 +0,0 @@
1
- /*!
2
- * isobject <https://github.com/jonschlinkert/isobject>
3
- *
4
- * Copyright (c) 2014-2017, Jon Schlinkert.
5
- * Released under the MIT License.
6
- */
7
-
8
- /*!
9
- Copyright (c) 2016 Jed Watson.
10
- Licensed under the MIT License (MIT), see
11
- http://jedwatson.github.io/classnames
12
- */
13
-
14
- /**
15
- * @license React
16
- * react-dom.production.min.js
17
- *
18
- * Copyright (c) Facebook, Inc. and its affiliates.
19
- *
20
- * This source code is licensed under the MIT license found in the
21
- * LICENSE file in the root directory of this source tree.
22
- */
23
-
24
- /**
25
- * @license React
26
- * react.production.min.js
27
- *
28
- * Copyright (c) Facebook, Inc. and its affiliates.
29
- *
30
- * This source code is licensed under the MIT license found in the
31
- * LICENSE file in the root directory of this source tree.
32
- */
33
-
34
- /**
35
- * @license React
36
- * scheduler.production.min.js
37
- *
38
- * Copyright (c) Facebook, Inc. and its affiliates.
39
- *
40
- * This source code is licensed under the MIT license found in the
41
- * LICENSE file in the root directory of this source tree.
42
- */
43
-
44
- /** @license React v16.13.1
45
- * react-is.production.min.js
46
- *
47
- * Copyright (c) Facebook, Inc. and its affiliates.
48
- *
49
- * This source code is licensed under the MIT license found in the
50
- * LICENSE file in the root directory of this source tree.
51
- */
52
-
53
- /** @license URI.js v4.4.1 (c) 2011 Gary Court. License: http://github.com/garycourt/uri-js */