@khanacademy/wonder-blocks-theming 3.0.1 → 3.1.0

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,122 @@
1
1
  # @khanacademy/wonder-blocks-theming
2
2
 
3
+ ## 3.1.0
4
+
5
+ ### Minor Changes
6
+
7
+ - f03298f: Tooling:
8
+
9
+ - Switching to `pnpm`.
10
+ - Upgrading `rollup` to v4 and `@babel/runtime` to match the current webapp version.
11
+
3
12
  ## 3.0.1
4
13
 
5
14
  ### Patch Changes
6
15
 
7
- - 11a0f5c6: No functional changes. Adding prepublishOnly script.
16
+ - 11a0f5c6: No functional changes. Adding prepublishOnly script.
8
17
 
9
18
  ## 3.0.0
10
19
 
11
20
  ### Major Changes
12
21
 
13
- - e6abdd17: Upgrade to React 18
22
+ - e6abdd17: Upgrade to React 18
14
23
 
15
24
  ## 2.0.4
16
25
 
17
26
  ### Patch Changes
18
27
 
19
- - 02a1b298: Make sure we don't package tsconfig and tsbuildinfo files
28
+ - 02a1b298: Make sure we don't package tsconfig and tsbuildinfo files
20
29
 
21
30
  ## 2.0.3
22
31
 
23
32
  ### Patch Changes
24
33
 
25
- - 559e82d5: Update to build tooling, generating smaller output
34
+ - 559e82d5: Update to build tooling, generating smaller output
26
35
 
27
36
  ## 2.0.2
28
37
 
29
38
  ### Patch Changes
30
39
 
31
- - 874081aa: Remove wonder-blocks-color dependency in favor of wonder-blocks-tokens
40
+ - 874081aa: Remove wonder-blocks-color dependency in favor of wonder-blocks-tokens
32
41
 
33
42
  ## 2.0.1
34
43
 
35
44
  ### Patch Changes
36
45
 
37
- - e83f8991: Add "dark" to the list of supported themes
46
+ - e83f8991: Add "dark" to the list of supported themes
38
47
 
39
48
  ## 2.0.0
40
49
 
41
50
  ### Major Changes
42
51
 
43
- - 7cd7f6cc: Move tokens export to wb-tokens
52
+ - 7cd7f6cc: Move tokens export to wb-tokens
44
53
 
45
54
  ### Patch Changes
46
55
 
47
- - 60aba5b8: Update internal spacing references (from wb-spacing to wb-tokens)
56
+ - 60aba5b8: Update internal spacing references (from wb-spacing to wb-tokens)
48
57
 
49
58
  ## 1.3.0
50
59
 
51
60
  ### Minor Changes
52
61
 
53
- - 80592e75: Added more colors to Pill, small pills are now 24px tall with 14px font size. Tokens (theming) now include pill colors.
62
+ - 80592e75: Added more colors to Pill, small pills are now 24px tall with 14px font size. Tokens (theming) now include pill colors.
54
63
 
55
64
  ## 1.2.1
56
65
 
57
66
  ### Patch Changes
58
67
 
59
- - edcfbe14: fix font.family.sans value
68
+ - edcfbe14: fix font.family.sans value
60
69
 
61
70
  ## 1.2.0
62
71
 
63
72
  ### Minor Changes
64
73
 
65
- - 3f854fe8: Export supported themes list, change WB components to use these new exports
74
+ - 3f854fe8: Export supported themes list, change WB components to use these new exports
66
75
 
67
76
  ## 1.1.1
68
77
 
69
78
  ### Patch Changes
70
79
 
71
- - Updated dependencies [48d3c7e9]
72
- - @khanacademy/wonder-blocks-color@3.0.0
80
+ - Updated dependencies [48d3c7e9]
81
+ - @khanacademy/wonder-blocks-color@3.0.0
73
82
 
74
83
  ## 1.1.0
75
84
 
76
85
  ### Minor Changes
77
86
 
78
- - 5725703a: Add new color tokens (more faded values)
79
- - fc6cec0b: Add theming to Switch and new color tokens for theming
87
+ - 5725703a: Add new color tokens (more faded values)
88
+ - fc6cec0b: Add theming to Switch and new color tokens for theming
80
89
 
81
90
  ## 1.0.0
82
91
 
83
92
  ### Major Changes
84
93
 
85
- - bad46d23: First public release of theming package
94
+ - bad46d23: First public release of theming package
86
95
 
87
96
  ## 0.3.0
88
97
 
89
98
  ### Minor Changes
90
99
 
91
- - b2634f7c: Add `themeName` return value to `useScopedTheme` to allow getting the name of the theme in use.
100
+ - b2634f7c: Add `themeName` return value to `useScopedTheme` to allow getting the name of the theme in use.
92
101
 
93
102
  ## 0.2.0
94
103
 
95
104
  ### Minor Changes
96
105
 
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
106
+ - 758eb872: Add useScopedTheme hook
107
+ - 0f983e19: Add useStyles hook
108
+ - 014cd622: Add mergeTheme utility to extend themes
109
+ - 016801b7: Add ThemeSwitcherContext util
110
+ - 183ab2b8: Add global tokens
111
+ - 014cd622: Add createThemeContext
112
+ - abf48091: Add withScopedTheme HOC
104
113
 
105
114
  ## 0.1.0
106
115
 
107
116
  ### Minor Changes
108
117
 
109
- - 9f3752d4: Add theming package
118
+ - 9f3752d4: Add theming package
110
119
 
111
120
  ### Patch Changes
112
121
 
113
- - 9f3752d4: Change package settings
122
+ - 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
@@ -1,12 +1,9 @@
1
1
  'use strict';
2
2
 
3
- Object.defineProperty(exports, '__esModule', { value: true });
4
-
5
3
  var React = require('react');
6
4
  var aphrodite = require('aphrodite');
7
5
 
8
- function _interopNamespace(e) {
9
- if (e && e.__esModule) return e;
6
+ function _interopNamespaceDefault(e) {
10
7
  var n = Object.create(null);
11
8
  if (e) {
12
9
  Object.keys(e).forEach(function (k) {
@@ -19,25 +16,20 @@ function _interopNamespace(e) {
19
16
  }
20
17
  });
21
18
  }
22
- n["default"] = e;
19
+ n.default = e;
23
20
  return Object.freeze(n);
24
21
  }
25
22
 
26
- var React__namespace = /*#__PURE__*/_interopNamespace(React);
23
+ var React__namespace = /*#__PURE__*/_interopNamespaceDefault(React);
27
24
 
28
25
  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
- }
26
+ return _extends = Object.assign ? Object.assign.bind() : function (n) {
27
+ for (var e = 1; e < arguments.length; e++) {
28
+ var t = arguments[e];
29
+ for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]);
37
30
  }
38
- return target;
39
- };
40
- return _extends.apply(this, arguments);
31
+ return n;
32
+ }, _extends.apply(null, arguments);
41
33
  }
42
34
 
43
35
  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.0",
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.0"
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
  }