@khanacademy/wonder-blocks-theming 3.0.1 → 3.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/CHANGELOG.md CHANGED
@@ -1,113 +1,128 @@
1
1
  # @khanacademy/wonder-blocks-theming
2
2
 
3
+ ## 3.1.1
4
+
5
+ ### Patch Changes
6
+
7
+ - ee8d95a: Rollback rollup version from v4 to v2 to prevent an issue with CJS builds in unit tests
8
+
9
+ ## 3.1.0
10
+
11
+ ### Minor Changes
12
+
13
+ - f03298f: Tooling:
14
+
15
+ - Switching to `pnpm`.
16
+ - Upgrading `rollup` to v4 and `@babel/runtime` to match the current webapp version.
17
+
3
18
  ## 3.0.1
4
19
 
5
20
  ### Patch Changes
6
21
 
7
- - 11a0f5c6: No functional changes. Adding prepublishOnly script.
22
+ - 11a0f5c6: No functional changes. Adding prepublishOnly script.
8
23
 
9
24
  ## 3.0.0
10
25
 
11
26
  ### Major Changes
12
27
 
13
- - e6abdd17: Upgrade to React 18
28
+ - e6abdd17: Upgrade to React 18
14
29
 
15
30
  ## 2.0.4
16
31
 
17
32
  ### Patch Changes
18
33
 
19
- - 02a1b298: Make sure we don't package tsconfig and tsbuildinfo files
34
+ - 02a1b298: Make sure we don't package tsconfig and tsbuildinfo files
20
35
 
21
36
  ## 2.0.3
22
37
 
23
38
  ### Patch Changes
24
39
 
25
- - 559e82d5: Update to build tooling, generating smaller output
40
+ - 559e82d5: Update to build tooling, generating smaller output
26
41
 
27
42
  ## 2.0.2
28
43
 
29
44
  ### Patch Changes
30
45
 
31
- - 874081aa: Remove wonder-blocks-color dependency in favor of wonder-blocks-tokens
46
+ - 874081aa: Remove wonder-blocks-color dependency in favor of wonder-blocks-tokens
32
47
 
33
48
  ## 2.0.1
34
49
 
35
50
  ### Patch Changes
36
51
 
37
- - e83f8991: Add "dark" to the list of supported themes
52
+ - e83f8991: Add "dark" to the list of supported themes
38
53
 
39
54
  ## 2.0.0
40
55
 
41
56
  ### Major Changes
42
57
 
43
- - 7cd7f6cc: Move tokens export to wb-tokens
58
+ - 7cd7f6cc: Move tokens export to wb-tokens
44
59
 
45
60
  ### Patch Changes
46
61
 
47
- - 60aba5b8: Update internal spacing references (from wb-spacing to wb-tokens)
62
+ - 60aba5b8: Update internal spacing references (from wb-spacing to wb-tokens)
48
63
 
49
64
  ## 1.3.0
50
65
 
51
66
  ### Minor Changes
52
67
 
53
- - 80592e75: Added more colors to Pill, small pills are now 24px tall with 14px font size. Tokens (theming) now include pill colors.
68
+ - 80592e75: Added more colors to Pill, small pills are now 24px tall with 14px font size. Tokens (theming) now include pill colors.
54
69
 
55
70
  ## 1.2.1
56
71
 
57
72
  ### Patch Changes
58
73
 
59
- - edcfbe14: fix font.family.sans value
74
+ - edcfbe14: fix font.family.sans value
60
75
 
61
76
  ## 1.2.0
62
77
 
63
78
  ### Minor Changes
64
79
 
65
- - 3f854fe8: Export supported themes list, change WB components to use these new exports
80
+ - 3f854fe8: Export supported themes list, change WB components to use these new exports
66
81
 
67
82
  ## 1.1.1
68
83
 
69
84
  ### Patch Changes
70
85
 
71
- - Updated dependencies [48d3c7e9]
72
- - @khanacademy/wonder-blocks-color@3.0.0
86
+ - Updated dependencies [48d3c7e9]
87
+ - @khanacademy/wonder-blocks-color@3.0.0
73
88
 
74
89
  ## 1.1.0
75
90
 
76
91
  ### Minor Changes
77
92
 
78
- - 5725703a: Add new color tokens (more faded values)
79
- - fc6cec0b: Add theming to Switch and new color tokens for theming
93
+ - 5725703a: Add new color tokens (more faded values)
94
+ - fc6cec0b: Add theming to Switch and new color tokens for theming
80
95
 
81
96
  ## 1.0.0
82
97
 
83
98
  ### Major Changes
84
99
 
85
- - bad46d23: First public release of theming package
100
+ - bad46d23: First public release of theming package
86
101
 
87
102
  ## 0.3.0
88
103
 
89
104
  ### Minor Changes
90
105
 
91
- - b2634f7c: Add `themeName` return value to `useScopedTheme` to allow getting the name of the theme in use.
106
+ - b2634f7c: Add `themeName` return value to `useScopedTheme` to allow getting the name of the theme in use.
92
107
 
93
108
  ## 0.2.0
94
109
 
95
110
  ### Minor Changes
96
111
 
97
- - 758eb872: Add useScopedTheme hook
98
- - 0f983e19: Add useStyles hook
99
- - 014cd622: Add mergeTheme utility to extend themes
100
- - 016801b7: Add ThemeSwitcherContext util
101
- - 183ab2b8: Add global tokens
102
- - 014cd622: Add createThemeContext
103
- - abf48091: Add withScopedTheme HOC
112
+ - 758eb872: Add useScopedTheme hook
113
+ - 0f983e19: Add useStyles hook
114
+ - 014cd622: Add mergeTheme utility to extend themes
115
+ - 016801b7: Add ThemeSwitcherContext util
116
+ - 183ab2b8: Add global tokens
117
+ - 014cd622: Add createThemeContext
118
+ - abf48091: Add withScopedTheme HOC
104
119
 
105
120
  ## 0.1.0
106
121
 
107
122
  ### Minor Changes
108
123
 
109
- - 9f3752d4: Add theming package
124
+ - 9f3752d4: Add theming package
110
125
 
111
126
  ### Patch Changes
112
127
 
113
- - 9f3752d4: Change package settings
128
+ - 9f3752d4: Change package settings
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2018 Khan Academy
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/dist/es/index.js CHANGED
@@ -2,18 +2,13 @@ import * as React from 'react';
2
2
  import { StyleSheet } from 'aphrodite';
3
3
 
4
4
  function _extends() {
5
- _extends = Object.assign ? Object.assign.bind() : function (target) {
6
- for (var i = 1; i < arguments.length; i++) {
7
- var source = arguments[i];
8
- for (var key in source) {
9
- if (Object.prototype.hasOwnProperty.call(source, key)) {
10
- target[key] = source[key];
11
- }
12
- }
5
+ return _extends = Object.assign ? Object.assign.bind() : function (n) {
6
+ for (var e = 1; e < arguments.length; e++) {
7
+ var t = arguments[e];
8
+ for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]);
13
9
  }
14
- return target;
15
- };
16
- return _extends.apply(this, arguments);
10
+ return n;
11
+ }, _extends.apply(null, arguments);
17
12
  }
18
13
 
19
14
  function mergeTheme(source, target) {
package/dist/index.js CHANGED
@@ -26,18 +26,13 @@ function _interopNamespace(e) {
26
26
  var React__namespace = /*#__PURE__*/_interopNamespace(React);
27
27
 
28
28
  function _extends() {
29
- _extends = Object.assign ? Object.assign.bind() : function (target) {
30
- for (var i = 1; i < arguments.length; i++) {
31
- var source = arguments[i];
32
- for (var key in source) {
33
- if (Object.prototype.hasOwnProperty.call(source, key)) {
34
- target[key] = source[key];
35
- }
36
- }
29
+ return _extends = Object.assign ? Object.assign.bind() : function (n) {
30
+ for (var e = 1; e < arguments.length; e++) {
31
+ var t = arguments[e];
32
+ for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]);
37
33
  }
38
- return target;
39
- };
40
- return _extends.apply(this, arguments);
34
+ return n;
35
+ }, _extends.apply(null, arguments);
41
36
  }
42
37
 
43
38
  function mergeTheme(source, target) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@khanacademy/wonder-blocks-theming",
3
- "version": "3.0.1",
3
+ "version": "3.1.1",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -8,10 +8,6 @@
8
8
  "main": "dist/index.js",
9
9
  "module": "dist/es/index.js",
10
10
  "types": "dist/index.d.ts",
11
- "scripts": {
12
- "test": "echo \"Error: no test specified\" && exit 1",
13
- "prepublishOnly": "../../utils/publish/package-pre-publish-check.sh"
14
- },
15
11
  "dependencies": {},
16
12
  "peerDependencies": {
17
13
  "aphrodite": "^1.2.5",
@@ -19,8 +15,11 @@
19
15
  "react-dom": "18.2.0"
20
16
  },
21
17
  "devDependencies": {
22
- "@khanacademy/wb-dev-build-settings": "^2.0.0"
18
+ "@khanacademy/wb-dev-build-settings": "2.1.1"
23
19
  },
24
20
  "author": "",
25
- "license": "MIT"
21
+ "license": "MIT",
22
+ "scripts": {
23
+ "test": "echo \"Error: no test specified\" && exit 1"
24
+ }
26
25
  }