@lynx-js/template-webpack-plugin-canary 0.6.4-canary-20250305-7aa77d96 → 0.6.4-canary-20250306-ea82ef63
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 +13 -3
- package/lib/LynxTemplatePlugin.d.ts +6 -0
- package/lib/LynxTemplatePlugin.js +3 -1
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,14 +1,24 @@
|
|
|
1
1
|
# @lynx-js/template-webpack-plugin
|
|
2
2
|
|
|
3
|
-
## 0.6.4-canary-
|
|
3
|
+
## 0.6.4-canary-20250306030933-ea82ef63e367c6bb87e4205b6014cc5e1f6896a2
|
|
4
4
|
|
|
5
5
|
### Patch Changes
|
|
6
6
|
|
|
7
7
|
- Support NPM provenance. ([#30](https://github.com/lynx-family/lynx-stack/pull/30))
|
|
8
8
|
|
|
9
|
+
- Add `defaultOverflowVisible` option to `LynxTemplatePlugin`. ([#78](https://github.com/lynx-family/lynx-stack/pull/78))
|
|
10
|
+
|
|
11
|
+
```js
|
|
12
|
+
import { LynxTemplatePlugin } from "@lynx-js/template-webpack-plugin";
|
|
13
|
+
|
|
14
|
+
new LynxTemplatePlugin({
|
|
15
|
+
defaultOverflowVisible: false,
|
|
16
|
+
});
|
|
17
|
+
```
|
|
18
|
+
|
|
9
19
|
- Updated dependencies [[`c617453`](https://github.com/lynx-family/lynx-stack/commit/c617453aea967aba702967deb2916b5c883f03bb)]:
|
|
10
|
-
- @lynx-js/webpack-runtime-globals@0.0.5-canary-
|
|
11
|
-
- @lynx-js/css-serializer@0.1.2-canary-
|
|
20
|
+
- @lynx-js/webpack-runtime-globals@0.0.5-canary-20250306030933-ea82ef63e367c6bb87e4205b6014cc5e1f6896a2
|
|
21
|
+
- @lynx-js/css-serializer@0.1.2-canary-20250306030933-ea82ef63e367c6bb87e4205b6014cc5e1f6896a2
|
|
12
22
|
|
|
13
23
|
## 0.6.3
|
|
14
24
|
|
|
@@ -212,6 +212,12 @@ export interface LynxTemplatePluginOptions {
|
|
|
212
212
|
* {@inheritdoc @lynx-js/react-rsbuild-plugin#PluginReactLynxOptions.targetSdkVersion}
|
|
213
213
|
*/
|
|
214
214
|
targetSdkVersion: string;
|
|
215
|
+
/**
|
|
216
|
+
* When enabled, the default overflow CSS property for views and components will be `'visible'`. Otherwise, it will be `'hidden'`.
|
|
217
|
+
*
|
|
218
|
+
* @defaultValue `true`
|
|
219
|
+
*/
|
|
220
|
+
defaultOverflowVisible?: boolean;
|
|
215
221
|
/**
|
|
216
222
|
* `encodeBinary` is used to specify the binary of the template encoder.
|
|
217
223
|
*
|
|
@@ -86,6 +86,7 @@ export class LynxTemplatePlugin {
|
|
|
86
86
|
enableRemoveCSSScope: false,
|
|
87
87
|
pipelineSchedulerConfig: 0x00010000,
|
|
88
88
|
targetSdkVersion: '3.2',
|
|
89
|
+
defaultOverflowVisible: true,
|
|
89
90
|
removeDescendantSelectorScope: false,
|
|
90
91
|
dsl: 'react_nodiff',
|
|
91
92
|
encodeBinary: 'napi',
|
|
@@ -259,7 +260,7 @@ class LynxTemplatePluginImpl {
|
|
|
259
260
|
}
|
|
260
261
|
async #encodeByAssetsInformation(compilation, assetsInfoByGroups, entryNames, filenameTemplate, intermediate, isAsync) {
|
|
261
262
|
const compiler = compilation.compiler;
|
|
262
|
-
const { customCSSInheritanceList, debugInfoOutside, defaultDisplayLinear, enableICU, enableA11y, enableAccessibilityElement, enableCSSInheritance, enableCSSInvalidation, enableCSSSelector, enableNewGesture, enableParallelElement, enableRemoveCSSScope, pipelineSchedulerConfig, removeDescendantSelectorScope, targetSdkVersion, dsl, cssPlugins, } = this.#options;
|
|
263
|
+
const { customCSSInheritanceList, debugInfoOutside, defaultDisplayLinear, enableICU, enableA11y, enableAccessibilityElement, enableCSSInheritance, enableCSSInvalidation, enableCSSSelector, enableNewGesture, enableParallelElement, enableRemoveCSSScope, pipelineSchedulerConfig, removeDescendantSelectorScope, targetSdkVersion, defaultOverflowVisible, dsl, cssPlugins, } = this.#options;
|
|
263
264
|
const isDev = process.env['NODE_ENV'] === 'development'
|
|
264
265
|
|| compiler.options.mode === 'development';
|
|
265
266
|
const css = cssChunksToMap(assetsInfoByGroups.css
|
|
@@ -281,6 +282,7 @@ class LynxTemplatePluginImpl {
|
|
|
281
282
|
enableParallelElement,
|
|
282
283
|
enableRemoveCSSScope,
|
|
283
284
|
targetSdkVersion,
|
|
285
|
+
defaultOverflowVisible,
|
|
284
286
|
},
|
|
285
287
|
sourceContent: {
|
|
286
288
|
dsl,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lynx-js/template-webpack-plugin-canary",
|
|
3
|
-
"version": "0.6.4-canary-
|
|
3
|
+
"version": "0.6.4-canary-20250306-ea82ef63",
|
|
4
4
|
"description": "Simplifies creation of Lynx template files to serve your webpack bundles",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"webpack",
|
|
@@ -32,9 +32,9 @@
|
|
|
32
32
|
"README.md"
|
|
33
33
|
],
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"@lynx-js/css-serializer": "npm:@lynx-js/css-serializer-canary@0.1.2-canary-
|
|
35
|
+
"@lynx-js/css-serializer": "npm:@lynx-js/css-serializer-canary@0.1.2-canary-20250306-ea82ef63",
|
|
36
36
|
"@lynx-js/tasm": "0.0.5",
|
|
37
|
-
"@lynx-js/webpack-runtime-globals": "npm:@lynx-js/webpack-runtime-globals-canary@0.0.5-canary-
|
|
37
|
+
"@lynx-js/webpack-runtime-globals": "npm:@lynx-js/webpack-runtime-globals-canary@0.0.5-canary-20250306-ea82ef63",
|
|
38
38
|
"@rspack/lite-tapable": "1.0.1",
|
|
39
39
|
"css-tree": "^3.1.0",
|
|
40
40
|
"object.groupby": "^1.0.3"
|