@tarojs/binding 4.0.1 → 4.0.3-alpah.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/LICENSE CHANGED
@@ -154,15 +154,8 @@ See `/LICENSE` for details of the license.
154
154
 
155
155
  ==================
156
156
 
157
- MIT (stencil-vue2-output-target):
158
- The following files embed [stencil-vue2-output-target](https://github.com/diondree/stencil-vue2-output-target) MIT:
159
- `/packages/taro-components-library-vue2/src/vue-component-lib/utils.ts`
160
- See `/LICENSE` for details of the license.
161
-
162
- ==================
163
-
164
157
  MIT (weui):
165
- The following files embed [stencil-vue2-output-target](https://github.com/Tencent/weui) MIT:
158
+ The following files embed [weui](https://github.com/Tencent/weui) MIT:
166
159
  `/packages/taro-components/src/components/*.scss`
167
160
  See `/LICENSE.txt` for details of the license.
168
161
 
@@ -172,3 +165,10 @@ Apache-2.0 (intersection-observer):
172
165
  The following files embed [intersection-observer](https://github.com/GoogleChromeLabs/intersection-observer) Apache-2.0:
173
166
  `/packages/taro-api/src/polyfill/intersection-observer.ts`
174
167
  See `/LICENSE.txt` for details of the license.
168
+
169
+ ==================
170
+
171
+ MIT (babel-plugin-jsx-dom-expressions):
172
+ The following files embed [babel-plugin-jsx-dom-expressions](https://github.com/ryansolid/dom-expressions/blob/main/packages/babel-plugin-jsx-dom-expressions) MIT:
173
+ `/packages/babel-plugin-transform-solid-jsx/src/*`
174
+ See `/LICENSE` for details of the license.
package/binding.d.ts CHANGED
@@ -27,6 +27,9 @@ export interface CreateOptions {
27
27
  pageName?: string
28
28
  compiler?: CompilerType
29
29
  setPageName?: string
30
+ subPkg?: string
31
+ pageDir?: string
32
+ setSubPkgPageName?: string
30
33
  changeExt?: boolean
31
34
  isCustomTemplate?: boolean
32
35
  pluginType?: string
@@ -48,8 +51,9 @@ export const enum CSSType {
48
51
  export const enum FrameworkType {
49
52
  React = 'React',
50
53
  Preact = 'Preact',
51
- Vue = 'Vue',
52
- Vue3 = 'Vue3'
54
+ Vue3 = 'Vue3',
55
+ Solid = 'Solid',
56
+ None = 'None'
53
57
  }
54
58
 
55
59
  export const enum NpmType {
@@ -76,6 +80,8 @@ export interface Page {
76
80
  customTemplatePath?: string
77
81
  basePageFiles: Array<string>
78
82
  period: PeriodType
83
+ subPkg?: string
84
+ pageDir?: string
79
85
  }
80
86
 
81
87
  export const enum PeriodType {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tarojs/binding",
3
- "version": "4.0.1",
3
+ "version": "4.0.3-alpah.2",
4
4
  "description": "Node binding for taro",
5
5
  "main": "binding.js",
6
6
  "typings": "binding.d.ts",
@@ -43,10 +43,10 @@
43
43
  },
44
44
  "homepage": "https://github.com/NervJS/taro#readme",
45
45
  "optionalDependencies": {
46
- "@tarojs/binding-darwin-arm64": "4.0.1",
47
- "@tarojs/binding-darwin-x64": "4.0.1",
48
- "@tarojs/binding-linux-x64-gnu": "4.0.1",
49
- "@tarojs/binding-win32-x64-msvc": "4.0.1"
46
+ "@tarojs/binding-darwin-arm64": "4.0.3-alpah.2",
47
+ "@tarojs/binding-darwin-x64": "4.0.3-alpah.2",
48
+ "@tarojs/binding-win32-x64-msvc": "4.0.3-alpah.2",
49
+ "@tarojs/binding-linux-x64-gnu": "4.0.3-alpah.2"
50
50
  },
51
51
  "scripts": {
52
52
  "artifacts": "napi artifacts --npm-dir ../../npm --cwd ./",
package/src/lib.rs CHANGED
@@ -62,6 +62,8 @@ pub async fn create_page(
62
62
  conf.custom_template_path,
63
63
  conf.base_page_files,
64
64
  conf.period,
65
+ conf.sub_pkg,
66
+ conf.page_dir,
65
67
  );
66
68
  let mut thread_safe_functions = HashMap::new();
67
69
  for (key, callback) in handlers {