@modern-js/plugin-tailwindcss 0.0.0-next-20221201140559 → 0.0.0-next-20221202032240
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 +36 -36
- package/dist/js/modern/cli.js +1 -3
- package/dist/js/modern/design-token/cli/index.js +1 -3
- package/dist/js/modern/design-token/runtime/plugin.js +1 -3
- package/dist/js/node/cli.js +1 -3
- package/dist/js/node/design-token/cli/index.js +1 -3
- package/dist/js/node/design-token/runtime/plugin.js +1 -3
- package/dist/types/types.d.ts +2 -2
- package/package.json +10 -10
package/CHANGELOG.md
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
# @modern-js/plugin-tailwindcss
|
|
2
2
|
|
|
3
|
-
## 0.0.0-next-
|
|
3
|
+
## 0.0.0-next-20221202032240
|
|
4
4
|
|
|
5
5
|
### Major Changes
|
|
6
6
|
|
|
7
|
-
-
|
|
7
|
+
- dda38c9c3e: chore: v2
|
|
8
8
|
|
|
9
9
|
### Minor Changes
|
|
10
10
|
|
|
11
|
-
-
|
|
11
|
+
- 92f0eade39: feat:
|
|
12
12
|
|
|
13
13
|
1. add style config and add new hook
|
|
14
14
|
2. add dts alias logic
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
4. 添加日志逻辑
|
|
25
25
|
5. 添加 skipDeps 配置
|
|
26
26
|
|
|
27
|
-
-
|
|
27
|
+
- 92f0eade39: feat:
|
|
28
28
|
|
|
29
29
|
1. core: 增加 test 函数
|
|
30
30
|
2. module plugins: 增加 `babel`, `mainField`, `target` 插件
|
|
@@ -40,39 +40,39 @@
|
|
|
40
40
|
|
|
41
41
|
### Patch Changes
|
|
42
42
|
|
|
43
|
-
-
|
|
43
|
+
- d6546ad916: add buildConfig style in module-tools-v2 and remove tools
|
|
44
44
|
在 module-tools-v2 里新增 buildConfig style 并删除 tools
|
|
45
|
-
- Updated dependencies [
|
|
46
|
-
- Updated dependencies [
|
|
47
|
-
- Updated dependencies [
|
|
48
|
-
- Updated dependencies [
|
|
49
|
-
- Updated dependencies [
|
|
50
|
-
- Updated dependencies [
|
|
51
|
-
- Updated dependencies [
|
|
52
|
-
- Updated dependencies [
|
|
53
|
-
- Updated dependencies [
|
|
54
|
-
- Updated dependencies [
|
|
55
|
-
- Updated dependencies [
|
|
56
|
-
- Updated dependencies [
|
|
57
|
-
- Updated dependencies [
|
|
58
|
-
- Updated dependencies [
|
|
59
|
-
- Updated dependencies [
|
|
60
|
-
- Updated dependencies [
|
|
61
|
-
- Updated dependencies [
|
|
62
|
-
- Updated dependencies [
|
|
63
|
-
- Updated dependencies [
|
|
64
|
-
- Updated dependencies [
|
|
65
|
-
- Updated dependencies [
|
|
66
|
-
- Updated dependencies [
|
|
67
|
-
- Updated dependencies [
|
|
68
|
-
- Updated dependencies [
|
|
69
|
-
- Updated dependencies [
|
|
70
|
-
- Updated dependencies [
|
|
71
|
-
- Updated dependencies [
|
|
72
|
-
- Updated dependencies [
|
|
73
|
-
- Updated dependencies [
|
|
74
|
-
- @modern-js/runtime@0.0.0-next-
|
|
75
|
-
- @modern-js/utils@0.0.0-next-
|
|
45
|
+
- Updated dependencies [2344eb26ed]
|
|
46
|
+
- Updated dependencies [a11fcf8b50]
|
|
47
|
+
- Updated dependencies [b18fa8f3ed]
|
|
48
|
+
- Updated dependencies [c9e800d39a]
|
|
49
|
+
- Updated dependencies [3e57f2bd58]
|
|
50
|
+
- Updated dependencies [fbf5eed5aa]
|
|
51
|
+
- Updated dependencies [a2509bfbdb]
|
|
52
|
+
- Updated dependencies [e4357f1856]
|
|
53
|
+
- Updated dependencies [4369648ae2]
|
|
54
|
+
- Updated dependencies [92f0eade39]
|
|
55
|
+
- Updated dependencies [92c0994468]
|
|
56
|
+
- Updated dependencies [edd1cfb1af]
|
|
57
|
+
- Updated dependencies [cc971eabfc]
|
|
58
|
+
- Updated dependencies [5b9049f2e9]
|
|
59
|
+
- Updated dependencies [6bda14ed71]
|
|
60
|
+
- Updated dependencies [92004d1906]
|
|
61
|
+
- Updated dependencies [b8bbe036c7]
|
|
62
|
+
- Updated dependencies [40ed5874c6]
|
|
63
|
+
- Updated dependencies [60d5378632]
|
|
64
|
+
- Updated dependencies [d5a31df781]
|
|
65
|
+
- Updated dependencies [dda38c9c3e]
|
|
66
|
+
- Updated dependencies [8b8e1bb571]
|
|
67
|
+
- Updated dependencies [3bbea92b2a]
|
|
68
|
+
- Updated dependencies [b710adb843]
|
|
69
|
+
- Updated dependencies [18aaf42249]
|
|
70
|
+
- Updated dependencies [fcace5b5b9]
|
|
71
|
+
- Updated dependencies [abf3421a75]
|
|
72
|
+
- Updated dependencies [543be9558e]
|
|
73
|
+
- Updated dependencies [14b712da84]
|
|
74
|
+
- @modern-js/runtime@0.0.0-next-20221202032240
|
|
75
|
+
- @modern-js/utils@0.0.0-next-20221202032240
|
|
76
76
|
|
|
77
77
|
## 2.0.0-beta.2
|
|
78
78
|
|
package/dist/js/modern/cli.js
CHANGED
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
2
2
|
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
3
|
-
function _defineProperty(obj, key, value) {
|
|
4
|
-
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return typeof key === "symbol" ? key : String(key); }
|
|
5
|
-
function _toPrimitive(input, hint) { if (typeof input !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (typeof res !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
3
|
+
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; }
|
|
6
4
|
import path from 'path';
|
|
7
5
|
import { PLUGIN_SCHEMAS, fs, CONFIG_CACHE_DIR, globby, nanoid, slash } from '@modern-js/utils';
|
|
8
6
|
import DesignTokenPlugin from "./design-token/cli";
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
2
2
|
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
3
|
-
function _defineProperty(obj, key, value) {
|
|
4
|
-
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return typeof key === "symbol" ? key : String(key); }
|
|
5
|
-
function _toPrimitive(input, hint) { if (typeof input !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (typeof res !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
3
|
+
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; }
|
|
6
4
|
import { lazyImport, PLUGIN_SCHEMAS, createRuntimeExportsUtils } from '@modern-js/utils';
|
|
7
5
|
export default (({
|
|
8
6
|
pluginName
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
2
2
|
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
3
|
-
function _defineProperty(obj, key, value) {
|
|
4
|
-
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return typeof key === "symbol" ? key : String(key); }
|
|
5
|
-
function _toPrimitive(input, hint) { if (typeof input !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (typeof res !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
3
|
+
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; }
|
|
6
4
|
import hoistNonReactStatics from 'hoist-non-react-statics';
|
|
7
5
|
import React, { useContext } from 'react';
|
|
8
6
|
import { jsx as _jsx } from "react/jsx-runtime";
|
package/dist/js/node/cli.js
CHANGED
|
@@ -12,9 +12,7 @@ var _utils2 = require("./utils");
|
|
|
12
12
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
13
13
|
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
14
14
|
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
15
|
-
function _defineProperty(obj, key, value) {
|
|
16
|
-
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return typeof key === "symbol" ? key : String(key); }
|
|
17
|
-
function _toPrimitive(input, hint) { if (typeof input !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (typeof res !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
15
|
+
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; }
|
|
18
16
|
const supportCssInJsLibrary = 'styled-components';
|
|
19
17
|
const getRandomTwConfigFileName = internalDirectory => {
|
|
20
18
|
return (0, _utils.slash)(_path.default.join(internalDirectory, `tailwind.config.${Date.now()}.${(0, _utils.nanoid)()}.js`));
|
|
@@ -7,9 +7,7 @@ exports.default = void 0;
|
|
|
7
7
|
var _utils = require("@modern-js/utils");
|
|
8
8
|
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
9
9
|
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
10
|
-
function _defineProperty(obj, key, value) {
|
|
11
|
-
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return typeof key === "symbol" ? key : String(key); }
|
|
12
|
-
function _toPrimitive(input, hint) { if (typeof input !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (typeof res !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
10
|
+
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; }
|
|
13
11
|
var _default = ({
|
|
14
12
|
pluginName
|
|
15
13
|
} = {
|
|
@@ -12,9 +12,7 @@ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj &&
|
|
|
12
12
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
13
13
|
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
14
14
|
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
15
|
-
function _defineProperty(obj, key, value) {
|
|
16
|
-
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return typeof key === "symbol" ? key : String(key); }
|
|
17
|
-
function _toPrimitive(input, hint) { if (typeof input !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (typeof res !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
15
|
+
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; }
|
|
18
16
|
const DesignTokenContext = /*#__PURE__*/_react.default.createContext({});
|
|
19
17
|
exports.DesignTokenContext = DesignTokenContext;
|
|
20
18
|
const useDesignTokens = () => (0, _react.useContext)(DesignTokenContext);
|
package/dist/types/types.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export type DesignSystem = Record<string, any> & {
|
|
1
|
+
export declare type DesignSystem = Record<string, any> & {
|
|
2
2
|
supportStyledComponents?: boolean;
|
|
3
3
|
};
|
|
4
|
-
export type Tailwind = Record<string, any> | ((options: Record<string, any>) => Record<string, any> | void);
|
|
4
|
+
export declare type Tailwind = Record<string, any> | ((options: Record<string, any>) => Record<string, any> | void);
|
package/package.json
CHANGED
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
"modern",
|
|
12
12
|
"modern.js"
|
|
13
13
|
],
|
|
14
|
-
"version": "0.0.0-next-
|
|
14
|
+
"version": "0.0.0-next-20221202032240",
|
|
15
15
|
"jsnext:source": "./src/index.ts",
|
|
16
16
|
"types": "./dist/types/index.d.ts",
|
|
17
17
|
"main": "./dist/js/node/index.js",
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
"dependencies": {
|
|
46
46
|
"@babel/runtime": "^7.18.0",
|
|
47
47
|
"hoist-non-react-statics": "^3.3.2",
|
|
48
|
-
"@modern-js/utils": "0.0.0-next-
|
|
48
|
+
"@modern-js/utils": "0.0.0-next-20221202032240"
|
|
49
49
|
},
|
|
50
50
|
"devDependencies": {
|
|
51
51
|
"@types/jest": "^27",
|
|
@@ -56,17 +56,17 @@
|
|
|
56
56
|
"jest": "^27",
|
|
57
57
|
"react": "^18",
|
|
58
58
|
"postcss": "^8.4.14",
|
|
59
|
-
"@modern-js/core": "0.0.0-next-
|
|
60
|
-
"@modern-js/module-tools-v2": "0.0.0-next-
|
|
61
|
-
"@modern-js/runtime": "0.0.0-next-
|
|
62
|
-
"@modern-js/types": "0.0.0-next-
|
|
63
|
-
"@
|
|
64
|
-
"@
|
|
65
|
-
"@scripts/jest-config": "0.0.0-next-
|
|
59
|
+
"@modern-js/core": "0.0.0-next-20221202032240",
|
|
60
|
+
"@modern-js/module-tools-v2": "0.0.0-next-20221202032240",
|
|
61
|
+
"@modern-js/runtime": "0.0.0-next-20221202032240",
|
|
62
|
+
"@modern-js/types": "0.0.0-next-20221202032240",
|
|
63
|
+
"@scripts/build": "0.0.0-next-20221202032240",
|
|
64
|
+
"@modern-js/app-tools": "0.0.0-next-20221202032240",
|
|
65
|
+
"@scripts/jest-config": "0.0.0-next-20221202032240"
|
|
66
66
|
},
|
|
67
67
|
"peerDependencies": {
|
|
68
68
|
"tailwindcss": "^2.0.4",
|
|
69
|
-
"@modern-js/runtime": "0.0.0-next-
|
|
69
|
+
"@modern-js/runtime": "^0.0.0-next-20221202032240"
|
|
70
70
|
},
|
|
71
71
|
"peerDependenciesMeta": {
|
|
72
72
|
"@modern-js/runtime": {
|