@tarojs/runtime 3.5.0-theta.0 → 3.5.1

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.
Files changed (57) hide show
  1. package/LICENSE +21 -0
  2. package/dist/bom/document.d.ts +2 -0
  3. package/dist/bom/getComputedStyle.d.ts +3 -0
  4. package/dist/bom/navigator.d.ts +1 -0
  5. package/dist/bom/raf.d.ts +5 -0
  6. package/dist/bom/window.d.ts +2 -0
  7. package/dist/constants/index.d.ts +47 -0
  8. package/dist/current.d.ts +19 -0
  9. package/dist/dom/class-list.d.ts +14 -0
  10. package/dist/dom/document.d.ts +20 -0
  11. package/dist/dom/element.d.ts +38 -0
  12. package/dist/dom/event-source.d.ts +7 -0
  13. package/dist/dom/event-target.d.ts +7 -0
  14. package/dist/dom/event.d.ts +22 -0
  15. package/dist/dom/form.d.ts +7 -0
  16. package/dist/dom/node.d.ts +75 -0
  17. package/dist/dom/node_types.d.ts +10 -0
  18. package/dist/dom/root.d.ts +15 -0
  19. package/dist/dom/style.d.ts +14 -0
  20. package/dist/dom/style_properties.d.ts +3 -0
  21. package/dist/dom/svg.d.ts +3 -0
  22. package/dist/dom/text.d.ts +14 -0
  23. package/dist/dom/tree.d.ts +4 -0
  24. package/dist/dom-external/element.d.ts +3 -0
  25. package/dist/dom-external/index.d.ts +1 -0
  26. package/dist/dom-external/inner-html/html.d.ts +2 -0
  27. package/dist/dom-external/inner-html/parser.d.ts +25 -0
  28. package/dist/dom-external/inner-html/scaner.d.ts +30 -0
  29. package/dist/dom-external/inner-html/style.d.ts +27 -0
  30. package/dist/dom-external/inner-html/tags.d.ts +8 -0
  31. package/dist/dom-external/inner-html/utils.d.ts +1 -0
  32. package/dist/dom-external/mutation-observer/implements.d.ts +52 -0
  33. package/dist/dom-external/mutation-observer/index.d.ts +13 -0
  34. package/dist/dom-external/mutation-observer/record.d.ts +24 -0
  35. package/dist/dom-external/node.d.ts +11 -0
  36. package/dist/dsl/common.d.ts +15 -0
  37. package/dist/dsl/instance.d.ts +85 -0
  38. package/dist/emitter/emitter.d.ts +4 -0
  39. package/dist/env.d.ts +7 -0
  40. package/dist/hydrate.d.ts +10 -0
  41. package/dist/index.d.ts +26 -0
  42. package/dist/interface/element.d.ts +4 -0
  43. package/dist/interface/event-target.d.ts +10 -0
  44. package/dist/interface/event.d.ts +15 -0
  45. package/dist/interface/hydrate.d.ts +30 -0
  46. package/dist/interface/index.d.ts +7 -0
  47. package/dist/interface/node.d.ts +7 -0
  48. package/dist/interface/options.d.ts +16 -0
  49. package/dist/interface/utils.d.ts +2 -0
  50. package/dist/next-tick.d.ts +2 -0
  51. package/dist/options.d.ts +2 -0
  52. package/dist/perf.d.ts +7 -0
  53. package/dist/runtime.esm.d.ts +28 -28
  54. package/dist/runtime.esm.js +109 -92
  55. package/dist/runtime.esm.js.map +1 -1
  56. package/dist/utils/index.d.ts +23 -0
  57. package/package.json +10 -10
@@ -0,0 +1,23 @@
1
+ import type { TaroElement } from '../dom/element';
2
+ import type { TaroNode } from '../dom/node';
3
+ import type { TaroText } from '../dom/text';
4
+ import { Func } from '../interface';
5
+ export declare const incrementId: () => () => string;
6
+ export declare function isElement(node: TaroNode): node is TaroElement;
7
+ export declare function isText(node: TaroNode): node is TaroText;
8
+ export declare function isComment(node: TaroNode): boolean;
9
+ export declare function isHasExtractProp(el: TaroElement): boolean;
10
+ /**
11
+ * 往上寻找组件树直到 root,寻找是否有祖先组件绑定了同类型的事件
12
+ * @param node 当前组件
13
+ * @param type 事件类型
14
+ */
15
+ export declare function isParentBinded(node: TaroElement | null, type: string): boolean;
16
+ export declare function shortcutAttr(key: string): string;
17
+ export declare const customWrapperCache: Map<string, Record<string, any>>;
18
+ interface Ctor {
19
+ new (...args: any[]): any;
20
+ }
21
+ export declare function extend(ctor: Ctor, methodName: string, options: Func | Record<string, any>): void;
22
+ export declare function getComponentsAlias(): any;
23
+ export {};
package/package.json CHANGED
@@ -1,19 +1,13 @@
1
1
  {
2
2
  "name": "@tarojs/runtime",
3
- "version": "3.5.0-theta.0",
3
+ "version": "3.5.1",
4
4
  "description": "taro runtime for mini apps.",
5
5
  "main": "dist/runtime.esm.js",
6
6
  "module": "dist/runtime.esm.js",
7
- "types": "./dist/runtime.esm.d.ts",
7
+ "types": "./dist/index.d.ts",
8
8
  "files": [
9
9
  "dist"
10
10
  ],
11
- "scripts": {
12
- "test": "jest",
13
- "test:ci": "jest -i --coverage false",
14
- "build": "rollup -c",
15
- "dev": "rollup -c -w"
16
- },
17
11
  "repository": {
18
12
  "type": "git",
19
13
  "url": "https://github.com/NervJS/taro/tree/master/packages/taro-runtime"
@@ -24,7 +18,13 @@
24
18
  "access": "public"
25
19
  },
26
20
  "dependencies": {
27
- "@tarojs/shared": "workspace:*",
21
+ "@tarojs/shared": "3.5.1",
28
22
  "lodash-es": "4.17.21"
23
+ },
24
+ "scripts": {
25
+ "build": "rimraf ./dist && tsc -emitDeclarationOnly && rollup -c",
26
+ "dev": "rollup -c -w",
27
+ "test": "jest",
28
+ "test:ci": "jest --ci -i --coverage false"
29
29
  }
30
- }
30
+ }