@lynx-js/config-rsbuild-plugin 0.2.0 → 0.2.2
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 +14 -0
- package/dist/index.d.ts +2 -4
- package/dist/index.js +15 -1
- package/package.json +8 -7
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# @lynx-js/config-rsbuild-plugin
|
|
2
2
|
|
|
3
|
+
## 0.2.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Use a real exported config key (`alignMouseEventWithW3C`) in the usage ([#3385](https://github.com/lynx-family/lynx-stack/pull/3385))
|
|
8
|
+
examples, and drop the hard-coded link to the development-version config
|
|
9
|
+
reference.
|
|
10
|
+
|
|
11
|
+
## 0.2.1
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- Upgrade `@lynx-js/type-config` to `4.1.3`, which adds `enableEventHandleRefactor` and `alignMouseEventWithW3C` to the supported Lynx config keys. ([#3253](https://github.com/lynx-family/lynx-stack/pull/3253))
|
|
16
|
+
|
|
3
17
|
## 0.2.0
|
|
4
18
|
|
|
5
19
|
### Minor Changes
|
package/dist/index.d.ts
CHANGED
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
* export default defineConfig({
|
|
12
12
|
* plugins: [
|
|
13
13
|
* pluginLynxConfig({
|
|
14
|
-
*
|
|
14
|
+
* alignMouseEventWithW3C: true,
|
|
15
15
|
* }),
|
|
16
16
|
* ],
|
|
17
17
|
* })
|
|
@@ -25,8 +25,6 @@ import type { RsbuildPlugin } from '@lynx-js/rspeedy';
|
|
|
25
25
|
/**
|
|
26
26
|
* A configuration interface for Lynx Config defined by `@lynx-js/type-config`.
|
|
27
27
|
*
|
|
28
|
-
* See all available options in {@link https://lynxjs.org/next/api/lynx-config/config-reference.html}.
|
|
29
|
-
*
|
|
30
28
|
* @public
|
|
31
29
|
*/
|
|
32
30
|
export declare interface Config extends Config_2, CompilerOptions {
|
|
@@ -83,7 +81,7 @@ export declare interface Options {
|
|
|
83
81
|
* export default defineConfig({
|
|
84
82
|
* plugins: [
|
|
85
83
|
* pluginLynxConfig({
|
|
86
|
-
*
|
|
84
|
+
* alignMouseEventWithW3C: true,
|
|
87
85
|
* }),
|
|
88
86
|
* ],
|
|
89
87
|
* })
|
package/dist/index.js
CHANGED
|
@@ -535,8 +535,9 @@ const typiaPathToStandardSchemaPath = (path)=>{
|
|
|
535
535
|
const picocolors = __webpack_require__("../../../node_modules/.pnpm/picocolors@1.1.1/node_modules/picocolors/picocolors.js");
|
|
536
536
|
var picocolors_default = /*#__PURE__*/ __webpack_require__.n(picocolors);
|
|
537
537
|
const validateConfig = (()=>{
|
|
538
|
-
const _io0 = (input, _exceptionable = true)=>(void 0 === input.disableLongpressAfterScroll || "boolean" == typeof input.disableLongpressAfterScroll) && (void 0 === input.enableA11y || "boolean" == typeof input.enableA11y) && (void 0 === input.enableAccessibilityElement || "boolean" == typeof input.enableAccessibilityElement) && (void 0 === input.enableCSSInheritance || "boolean" == typeof input.enableCSSInheritance) && (void 0 === input.enableCSSInlineVariables || "boolean" == typeof input.enableCSSInlineVariables) && (void 0 === input.enableCSSRule || "boolean" == typeof input.enableCSSRule) && (void 0 === input.enableEndGestureAtLastFingerUp || "boolean" == typeof input.enableEndGestureAtLastFingerUp) && (void 0 === input.enableEventThrough || "boolean" == typeof input.enableEventThrough) && (void 0 === input.enableFetchAPIStandardStreaming || "boolean" == typeof input.enableFetchAPIStandardStreaming) && (void 0 === input.enableFixedNew || "boolean" == typeof input.enableFixedNew) && (void 0 === input.enableFlexBasisZeroPercent || "boolean" == typeof input.enableFlexBasisZeroPercent) && (void 0 === input.enableGridPlacementShorthands || "boolean" == typeof input.enableGridPlacementShorthands) && (void 0 === input.enableJsBindingApiThrowException || "boolean" == typeof input.enableJsBindingApiThrowException) && (void 0 === input.enableListNewArchitecture || "boolean" == typeof input.enableListNewArchitecture) && (void 0 === input.enableMultiTouch || "boolean" == typeof input.enableMultiTouch) && (void 0 === input.enableNativeList || "boolean" == typeof input.enableNativeList) && (void 0 === input.enableNewGesture || "boolean" == typeof input.enableNewGesture) && (void 0 === input.enableNewIntersectionObserver || "boolean" == typeof input.enableNewIntersectionObserver) && (void 0 === input.enableNewTransformOrigin || "boolean" == typeof input.enableNewTransformOrigin) && (void 0 === input.enableParseIntFlex || "boolean" == typeof input.enableParseIntFlex) && (void 0 === input.enableReloadLifecycle || "boolean" == typeof input.enableReloadLifecycle) && (void 0 === input.enableSimultaneousTap || "boolean" == typeof input.enableSimultaneousTap) && (void 0 === input.enableTextOverflow || "boolean" == typeof input.enableTextOverflow) && (void 0 === input.enableTransformedTouchPosition || "boolean" == typeof input.enableTransformedTouchPosition) && (void 0 === input.fontScaleEffectiveOnlyOnSp || "boolean" == typeof input.fontScaleEffectiveOnlyOnSp) && (void 0 === input.includeFontPadding || "boolean" == typeof input.includeFontPadding) && (void 0 === input.keyboardCallbackPassRelativeHeight || "boolean" == typeof input.keyboardCallbackPassRelativeHeight) && (void 0 === input.longPressDuration || "number" == typeof input.longPressDuration) && (void 0 === input.removeDescendantSelectorScope || "boolean" == typeof input.removeDescendantSelectorScope) && (void 0 === input.tapSlop || "string" == typeof input.tapSlop) && (void 0 === input.unifyVWVHBehavior || "boolean" == typeof input.unifyVWVHBehavior) && (0 === Object.keys(input).length || Object.keys(input).every((key)=>{
|
|
538
|
+
const _io0 = (input, _exceptionable = true)=>(void 0 === input.alignMouseEventWithW3C || "boolean" == typeof input.alignMouseEventWithW3C) && (void 0 === input.disableLongpressAfterScroll || "boolean" == typeof input.disableLongpressAfterScroll) && (void 0 === input.enableA11y || "boolean" == typeof input.enableA11y) && (void 0 === input.enableAccessibilityElement || "boolean" == typeof input.enableAccessibilityElement) && (void 0 === input.enableCSSInheritance || "boolean" == typeof input.enableCSSInheritance) && (void 0 === input.enableCSSInlineVariables || "boolean" == typeof input.enableCSSInlineVariables) && (void 0 === input.enableCSSRule || "boolean" == typeof input.enableCSSRule) && (void 0 === input.enableEndGestureAtLastFingerUp || "boolean" == typeof input.enableEndGestureAtLastFingerUp) && (void 0 === input.enableEventHandleRefactor || "boolean" == typeof input.enableEventHandleRefactor) && (void 0 === input.enableEventThrough || "boolean" == typeof input.enableEventThrough) && (void 0 === input.enableFetchAPIStandardStreaming || "boolean" == typeof input.enableFetchAPIStandardStreaming) && (void 0 === input.enableFixedNew || "boolean" == typeof input.enableFixedNew) && (void 0 === input.enableFlexBasisZeroPercent || "boolean" == typeof input.enableFlexBasisZeroPercent) && (void 0 === input.enableGridPlacementShorthands || "boolean" == typeof input.enableGridPlacementShorthands) && (void 0 === input.enableJsBindingApiThrowException || "boolean" == typeof input.enableJsBindingApiThrowException) && (void 0 === input.enableListNewArchitecture || "boolean" == typeof input.enableListNewArchitecture) && (void 0 === input.enableMultiTouch || "boolean" == typeof input.enableMultiTouch) && (void 0 === input.enableNativeList || "boolean" == typeof input.enableNativeList) && (void 0 === input.enableNewGesture || "boolean" == typeof input.enableNewGesture) && (void 0 === input.enableNewIntersectionObserver || "boolean" == typeof input.enableNewIntersectionObserver) && (void 0 === input.enableNewTransformOrigin || "boolean" == typeof input.enableNewTransformOrigin) && (void 0 === input.enableParseIntFlex || "boolean" == typeof input.enableParseIntFlex) && (void 0 === input.enableReloadLifecycle || "boolean" == typeof input.enableReloadLifecycle) && (void 0 === input.enableSimultaneousTap || "boolean" == typeof input.enableSimultaneousTap) && (void 0 === input.enableTextOverflow || "boolean" == typeof input.enableTextOverflow) && (void 0 === input.enableTransformedTouchPosition || "boolean" == typeof input.enableTransformedTouchPosition) && (void 0 === input.fontScaleEffectiveOnlyOnSp || "boolean" == typeof input.fontScaleEffectiveOnlyOnSp) && (void 0 === input.includeFontPadding || "boolean" == typeof input.includeFontPadding) && (void 0 === input.keyboardCallbackPassRelativeHeight || "boolean" == typeof input.keyboardCallbackPassRelativeHeight) && (void 0 === input.longPressDuration || "number" == typeof input.longPressDuration) && (void 0 === input.removeDescendantSelectorScope || "boolean" == typeof input.removeDescendantSelectorScope) && (void 0 === input.tapSlop || "string" == typeof input.tapSlop) && (void 0 === input.unifyVWVHBehavior || "boolean" == typeof input.unifyVWVHBehavior) && (0 === Object.keys(input).length || Object.keys(input).every((key)=>{
|
|
539
539
|
if ([
|
|
540
|
+
"alignMouseEventWithW3C",
|
|
540
541
|
"disableLongpressAfterScroll",
|
|
541
542
|
"enableA11y",
|
|
542
543
|
"enableAccessibilityElement",
|
|
@@ -544,6 +545,7 @@ const validateConfig = (()=>{
|
|
|
544
545
|
"enableCSSInlineVariables",
|
|
545
546
|
"enableCSSRule",
|
|
546
547
|
"enableEndGestureAtLastFingerUp",
|
|
548
|
+
"enableEventHandleRefactor",
|
|
547
549
|
"enableEventThrough",
|
|
548
550
|
"enableFetchAPIStandardStreaming",
|
|
549
551
|
"enableFixedNew",
|
|
@@ -574,6 +576,11 @@ const validateConfig = (()=>{
|
|
|
574
576
|
return false;
|
|
575
577
|
}));
|
|
576
578
|
const _vo0 = (input, _path, _exceptionable = true)=>[
|
|
579
|
+
void 0 === input.alignMouseEventWithW3C || "boolean" == typeof input.alignMouseEventWithW3C || _report(_exceptionable, {
|
|
580
|
+
path: _path + ".alignMouseEventWithW3C",
|
|
581
|
+
expected: "(boolean | undefined)",
|
|
582
|
+
value: input.alignMouseEventWithW3C
|
|
583
|
+
}),
|
|
577
584
|
void 0 === input.disableLongpressAfterScroll || "boolean" == typeof input.disableLongpressAfterScroll || _report(_exceptionable, {
|
|
578
585
|
path: _path + ".disableLongpressAfterScroll",
|
|
579
586
|
expected: "(boolean | undefined)",
|
|
@@ -609,6 +616,11 @@ const validateConfig = (()=>{
|
|
|
609
616
|
expected: "(boolean | undefined)",
|
|
610
617
|
value: input.enableEndGestureAtLastFingerUp
|
|
611
618
|
}),
|
|
619
|
+
void 0 === input.enableEventHandleRefactor || "boolean" == typeof input.enableEventHandleRefactor || _report(_exceptionable, {
|
|
620
|
+
path: _path + ".enableEventHandleRefactor",
|
|
621
|
+
expected: "(boolean | undefined)",
|
|
622
|
+
value: input.enableEventHandleRefactor
|
|
623
|
+
}),
|
|
612
624
|
void 0 === input.enableEventThrough || "boolean" == typeof input.enableEventThrough || _report(_exceptionable, {
|
|
613
625
|
path: _path + ".enableEventThrough",
|
|
614
626
|
expected: "(boolean | undefined)",
|
|
@@ -731,6 +743,7 @@ const validateConfig = (()=>{
|
|
|
731
743
|
}),
|
|
732
744
|
0 === Object.keys(input).length || false === _exceptionable || Object.keys(input).map((key)=>{
|
|
733
745
|
if ([
|
|
746
|
+
"alignMouseEventWithW3C",
|
|
734
747
|
"disableLongpressAfterScroll",
|
|
735
748
|
"enableA11y",
|
|
736
749
|
"enableAccessibilityElement",
|
|
@@ -738,6 +751,7 @@ const validateConfig = (()=>{
|
|
|
738
751
|
"enableCSSInlineVariables",
|
|
739
752
|
"enableCSSRule",
|
|
740
753
|
"enableEndGestureAtLastFingerUp",
|
|
754
|
+
"enableEventHandleRefactor",
|
|
741
755
|
"enableEventThrough",
|
|
742
756
|
"enableFetchAPIStandardStreaming",
|
|
743
757
|
"enableFixedNew",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lynx-js/config-rsbuild-plugin",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.2",
|
|
4
4
|
"description": "An rsbuild plugin for config Lynx Config defined by @lynx-js/type-config.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"rsbuild",
|
|
@@ -32,11 +32,12 @@
|
|
|
32
32
|
"README.md"
|
|
33
33
|
],
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"@lynx-js/type-config": "4.1.
|
|
35
|
+
"@lynx-js/type-config": "4.1.3"
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|
|
38
|
+
"@microsoft/api-extractor": "7.58.12",
|
|
38
39
|
"@rsbuild/core": "2.1.7",
|
|
39
|
-
"@rspack/core": "2.1.
|
|
40
|
+
"@rspack/core": "2.1.7",
|
|
40
41
|
"@rstest/core": "0.11.3",
|
|
41
42
|
"@types/object.pick": "^1.3.4",
|
|
42
43
|
"expect-type": "^1.2.1",
|
|
@@ -45,8 +46,8 @@
|
|
|
45
46
|
"terminal-link": "^5.0.0",
|
|
46
47
|
"typia": "12.1.1",
|
|
47
48
|
"typia-rspack-plugin": "3.0.1",
|
|
48
|
-
"@lynx-js/rspeedy": "0.16.
|
|
49
|
-
"@lynx-js/template-webpack-plugin": "0.
|
|
49
|
+
"@lynx-js/rspeedy": "0.16.3",
|
|
50
|
+
"@lynx-js/template-webpack-plugin": "0.15.0",
|
|
50
51
|
"@lynx-js/test-tools": "0.0.0"
|
|
51
52
|
},
|
|
52
53
|
"peerDependencies": {
|
|
@@ -56,9 +57,9 @@
|
|
|
56
57
|
"node": ">=18"
|
|
57
58
|
},
|
|
58
59
|
"scripts": {
|
|
59
|
-
"api-extractor": "api-extractor
|
|
60
|
+
"api-extractor": "node scripts/api-extractor.mjs",
|
|
60
61
|
"build": "rslib build",
|
|
61
62
|
"test": "rstest",
|
|
62
|
-
"test:type": "
|
|
63
|
+
"test:type": "tsc6 --noEmit"
|
|
63
64
|
}
|
|
64
65
|
}
|