@tarojs/runtime 4.0.13-alpha.0 → 4.0.13

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 (72) hide show
  1. package/dist/bom/URL.d.ts +3 -6
  2. package/dist/bom/URLSearchParams.d.ts +1 -2
  3. package/dist/bom/document.d.ts +2 -3
  4. package/dist/bom/getComputedStyle.d.ts +4 -5
  5. package/dist/bom/history.d.ts +5 -7
  6. package/dist/bom/location.d.ts +3 -5
  7. package/dist/bom/navigator.d.ts +1 -2
  8. package/dist/bom/raf.d.ts +2 -2
  9. package/dist/bom/window.d.ts +8 -9
  10. package/dist/constants/index.d.ts +52 -53
  11. package/dist/current.d.ts +5 -5
  12. package/dist/dom/anchor-element.d.ts +2 -3
  13. package/dist/dom/class-list.d.ts +2 -3
  14. package/dist/dom/document.d.ts +6 -10
  15. package/dist/dom/element.d.ts +6 -7
  16. package/dist/dom/event-source.d.ts +3 -3
  17. package/dist/dom/event-target.d.ts +2 -3
  18. package/dist/dom/event.d.ts +5 -6
  19. package/dist/dom/form.d.ts +3 -4
  20. package/dist/dom/node.d.ts +8 -39
  21. package/dist/{node_types-9ac5b4dd.d.ts → dom/node_types.d.ts} +1 -2
  22. package/dist/dom/root.d.ts +3 -4
  23. package/dist/dom/style.d.ts +2 -3
  24. package/dist/dom/style_properties.js +1 -0
  25. package/dist/dom/style_properties.js.map +1 -1
  26. package/dist/dom/svg.d.ts +2 -3
  27. package/dist/dom/text.d.ts +3 -4
  28. package/dist/dom/transfer.d.ts +2 -3
  29. package/dist/dom/tree.d.ts +3 -3
  30. package/dist/dom-external/element.d.ts +3 -4
  31. package/dist/dom-external/inner-html/html.d.ts +2 -3
  32. package/dist/dom-external/inner-html/parser.d.ts +7 -7
  33. package/dist/dom-external/inner-html/scaner.d.ts +3 -3
  34. package/dist/dom-external/inner-html/style.d.ts +3 -3
  35. package/dist/dom-external/inner-html/tags.d.ts +5 -6
  36. package/dist/dom-external/inner-html/utils.d.ts +1 -2
  37. package/dist/dom-external/mutation-observer/implements.d.ts +6 -25
  38. package/dist/dom-external/mutation-observer/index.d.ts +6 -5
  39. package/dist/{record-32b054d8.d.ts → dom-external/mutation-observer/record.d.ts} +3 -4
  40. package/dist/dom-external/node.d.ts +5 -6
  41. package/dist/dsl/common.d.ts +14 -15
  42. package/dist/{instance-530729bd.d.ts → dsl/instance.d.ts} +13 -14
  43. package/dist/emitter/emitter.d.ts +2 -2
  44. package/dist/env.d.ts +2 -2
  45. package/dist/hydrate.d.ts +4 -5
  46. package/dist/index.cjs.js +5 -4
  47. package/dist/index.cjs.js.map +1 -1
  48. package/dist/index.d.ts +33 -32
  49. package/dist/interface/element.d.ts +4 -0
  50. package/dist/interface/event-target.d.ts +11 -0
  51. package/dist/interface/event.d.ts +15 -0
  52. package/dist/interface/hydrate.d.ts +29 -0
  53. package/dist/interface/index.d.ts +7 -0
  54. package/dist/interface/node.d.ts +7 -0
  55. package/dist/{options-530729bd.d.ts → interface/options.d.ts} +4 -5
  56. package/dist/interface/utils.d.ts +2 -0
  57. package/dist/next-tick.d.ts +2 -3
  58. package/dist/options.d.ts +2 -3
  59. package/dist/perf.d.ts +2 -2
  60. package/dist/polyfill/array.d.ts +2 -3
  61. package/dist/polyfill/intersection-observer.d.ts +1 -2
  62. package/dist/polyfill/object.d.ts +3 -4
  63. package/dist/runtime.esm.js +1 -0
  64. package/dist/runtime.esm.js.map +1 -1
  65. package/dist/utils/cache.d.ts +1 -2
  66. package/dist/utils/index.d.ts +17 -18
  67. package/dist/utils/lodash.d.ts +2 -3
  68. package/dist/utils/router.d.ts +7 -8
  69. package/package.json +4 -4
  70. package/dist/index-26658829.d.ts +0 -23
  71. package/dist/index.cjs.d.ts +0 -813
  72. package/dist/runtime.esm.d.ts +0 -813
@@ -1 +1 @@
1
- {"version":3,"file":"style_properties.js","sources":["../../src/dom/style_properties.ts"],"sourcesContent":["/*\n *\n * https://www.w3.org/Style/CSS/all-properties.en.html\n */\n\nconst WEBKIT = 'webkit'\n\nconst styleProperties = [\n 'all',\n 'appearance',\n 'blockOverflow',\n 'blockSize',\n 'bottom',\n 'clear',\n 'contain',\n 'content',\n 'continue',\n 'cursor',\n 'direction',\n 'display',\n 'filter',\n 'float',\n 'gap',\n 'height',\n 'inset',\n 'isolation',\n 'left',\n 'letterSpacing',\n 'lightingColor',\n 'markerSide',\n 'mixBlendMode',\n 'opacity',\n 'order',\n 'position',\n 'quotes',\n 'resize',\n 'right',\n 'rowGap',\n 'tabSize',\n 'tableLayout',\n 'top',\n 'userSelect',\n 'verticalAlign',\n 'visibility',\n 'voiceFamily',\n 'volume',\n 'whiteSpace',\n 'widows',\n 'width',\n 'zIndex',\n 'pointerEvents',\n 'aspectRatio'\n\n /** 非常用 style */\n // 'azimuth',\n // 'backfaceVisibility',\n // 'baselineShift',\n // 'captionSide',\n // 'chains',\n // 'dominantBaseline',\n // 'elevation',\n // 'emptyCells',\n // 'forcedColorAdjust',\n // 'glyphOrientationVertical',\n // 'hangingPunctuation',\n // 'hyphenateCharacter',\n // 'hyphens',\n // 'imageOrientation',\n // 'imageResolution',\n // 'orphans',\n // 'playDuring',\n // 'pointerEvents',\n // 'regionFragment',\n // 'richness',\n // 'running',\n // 'scrollBehavior',\n // 'speechRate',\n // 'stress',\n // 'stringSet',\n // 'unicodeBidi',\n // 'willChange',\n // 'writingMode',\n]\n\n// 减少文件体积\nfunction combine (prefix: string, list: string[], excludeSelf?: boolean) {\n !excludeSelf && styleProperties.push(prefix)\n list.forEach(item => {\n styleProperties.push(prefix + item)\n if (prefix === WEBKIT) {\n styleProperties.push('Webkit' + item)\n }\n })\n}\n\nconst color = 'Color'\nconst style = 'Style'\nconst width = 'Width'\nconst image = 'Image'\nconst size = 'Size'\nconst color_style_width = [color, style, width]\nconst fitlength_fitwidth_image = ['FitLength', 'FitWidth', image]\nconst fitlength_fitwidth_image_radius = [...fitlength_fitwidth_image, 'Radius']\nconst color_style_width_fitlength_fitwidth_image = [...color_style_width, ...fitlength_fitwidth_image]\nconst endRadius_startRadius = ['EndRadius', 'StartRadius']\nconst bottom_left_right_top = ['Bottom', 'Left', 'Right', 'Top']\nconst end_start = ['End', 'Start']\nconst content_items_self = ['Content', 'Items', 'Self']\nconst blockSize_height_inlineSize_width = ['BlockSize', 'Height', 'InlineSize', width]\nconst after_before = ['After', 'Before']\n\ncombine('borderBlock', color_style_width)\ncombine('borderBlockEnd', color_style_width)\ncombine('borderBlockStart', color_style_width)\ncombine('outline', [...color_style_width, 'Offset'])\ncombine('border', [...color_style_width, 'Boundary', 'Break', 'Collapse', 'Radius', 'Spacing'])\ncombine('borderFit', ['Length', width])\ncombine('borderInline', color_style_width)\ncombine('borderInlineEnd', color_style_width)\ncombine('borderInlineStart', color_style_width)\ncombine('borderLeft', color_style_width_fitlength_fitwidth_image)\ncombine('borderRight', color_style_width_fitlength_fitwidth_image)\ncombine('borderTop', color_style_width_fitlength_fitwidth_image)\ncombine('borderBottom', color_style_width_fitlength_fitwidth_image)\ncombine('textDecoration', [color, style, 'Line'])\ncombine('textEmphasis', [color, style, 'Position'])\ncombine('scrollMargin', bottom_left_right_top)\ncombine('scrollPadding', bottom_left_right_top)\ncombine('padding', bottom_left_right_top)\ncombine('margin', [...bottom_left_right_top, 'Trim'])\ncombine('scrollMarginBlock', end_start)\ncombine('scrollMarginInline', end_start)\ncombine('scrollPaddingBlock', end_start)\ncombine('scrollPaddingInline', end_start)\ncombine('gridColumn', end_start)\ncombine('gridRow', end_start)\ncombine('insetBlock', end_start)\ncombine('insetInline', end_start)\ncombine('marginBlock', end_start)\ncombine('marginInline', end_start)\ncombine('paddingBlock', end_start)\ncombine('paddingInline', end_start)\ncombine('pause', after_before)\ncombine('cue', after_before)\ncombine('mask', ['Clip', 'Composite', image, 'Mode', 'Origin', 'Position', 'Repeat', size, 'Type'])\ncombine('borderImage', ['Outset', 'Repeat', 'Slice', 'Source', 'Transform', width])\ncombine('maskBorder', ['Mode', 'Outset', 'Repeat', 'Slice', 'Source', width])\ncombine('font', ['Family', 'FeatureSettings', 'Kerning', 'LanguageOverride', 'MaxSize', 'MinSize', 'OpticalSizing', 'Palette', size, 'SizeAdjust', 'Stretch', style, 'Weight', 'VariationSettings'])\ncombine('transform', ['Box', 'Origin', style])\ncombine('background', [color, image, 'Attachment', 'BlendMode', 'Clip', 'Origin', 'Position', 'Repeat', size])\ncombine('listStyle', [image, 'Position', 'Type'])\ncombine('scrollSnap', ['Align', 'Stop', 'Type'])\ncombine('grid', ['Area', 'AutoColumns', 'AutoFlow', 'AutoRows'])\ncombine('gridTemplate', ['Areas', 'Columns', 'Rows'])\ncombine('overflow', ['Block', 'Inline', 'Wrap', 'X', 'Y'])\ncombine('transition', ['Delay', 'Duration', 'Property', 'TimingFunction'])\ncombine('color', ['Adjust', 'InterpolationFilters', 'Scheme'])\ncombine('textAlign', ['All', 'Last'])\ncombine('page', ['BreakAfter', 'BreakBefore', 'BreakInside'])\ncombine('animation', ['Delay', 'Direction', 'Duration', 'FillMode', 'IterationCount', 'Name', 'PlayState', 'TimingFunction'])\ncombine('flex', ['Basis', 'Direction', 'Flow', 'Grow', 'Shrink', 'Wrap'])\ncombine('offset', [...after_before, ...end_start, 'Anchor', 'Distance', 'Path', 'Position', 'Rotate'])\ncombine('perspective', ['Origin'])\ncombine('clip', ['Path', 'Rule'])\ncombine('flow', ['From', 'Into'])\n\ncombine('align', ['Content', 'Items', 'Self'], true)\ncombine('alignment', ['Adjust', 'Baseline'], true)\ncombine('borderStart', endRadius_startRadius, true)\ncombine('borderEnd', endRadius_startRadius, true)\ncombine('borderCorner', ['Fit', image, 'ImageTransform'], true)\ncombine('borderTopLeft', fitlength_fitwidth_image_radius, true)\ncombine('borderTopRight', fitlength_fitwidth_image_radius, true)\ncombine('borderBottomLeft', fitlength_fitwidth_image_radius, true)\ncombine('borderBottomRight', fitlength_fitwidth_image_radius, true)\ncombine('column', ['s', 'Count', 'Fill', 'Gap', 'Rule', 'RuleColor', 'RuleStyle', 'RuleWidth', 'Span', width], true)\ncombine('break', [...after_before, 'Inside'], true)\ncombine('wrap', [...after_before, 'Flow', 'Inside', 'Through'], true)\ncombine('justify', content_items_self, true)\ncombine('place', content_items_self, true)\ncombine('max', [...blockSize_height_inlineSize_width, 'Lines'], true)\ncombine('min', blockSize_height_inlineSize_width, true)\ncombine('line', ['Break', 'Clamp', 'Grid', 'Height', 'Padding', 'Snap'], true)\ncombine('inline', ['BoxAlign', size, 'Sizing'], true)\ncombine('text', ['CombineUpright', 'GroupAlign', 'Height', 'Indent', 'Justify', 'Orientation', 'Overflow', 'Shadow', 'SpaceCollapse', 'SpaceTrim', 'Spacing', 'Transform', 'UnderlinePosition', 'Wrap'], true)\ncombine('shape', ['ImageThreshold', 'Inside', 'Margin', 'Outside'], true)\ncombine('word', ['Break', 'Spacing', 'Wrap'], true)\ncombine('object', ['Fit', 'Position'], true)\ncombine('box', ['DecorationBreak', 'Shadow', 'Sizing', 'Snap'], true)\n\ncombine(WEBKIT, ['LineClamp', 'BoxOrient', 'TextFillColor', 'TextStroke', 'TextStrokeColor', 'TextStrokeWidth'], true)\n\n/** 非常用 style */\n// combine('caret', [color, 'Shape'])\n// combine('counter', ['Increment', 'Reset', 'Set'], true)\n// combine('dropInitial', ['AfterAdjust', 'AfterAlign', 'BeforeAdjust', 'BeforeAlign', size, 'Value'], true)\n// combine('flood', [color, 'Opacity'], true)\n// combine('footnote', ['Display', 'Policy'], true)\n// combine('hyphenateLimit', ['Chars', 'Last', 'Lines', 'Zone'], true)\n// combine('initialLetters', ['Align', 'Wrap'])\n// combine('ruby', ['Align', 'Merge', 'Position'], true)\n// combine('lineStacking', ['Ruby', 'Shift', 'Strategy'])\n// combine('bookmark', ['Label', 'Level', 'State'], true)\n// combine('speak', ['Header', 'Numeral', 'Punctuation'])\n// combine('pitch', ['Range'])\n// combine('nav', ['Down', 'Left', 'Right', 'Up'], true)\n// combine('fontSynthesis', ['SmallCaps', style, 'Weight'])\n// combine('fontVariant', ['Alternates', 'Caps', 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AAE,WAAW,EAAE,mBAAmB,EAAE,MAAM,CAAC,EAAE,IAAI,CAAC;AAC9M,OAAO,CAAC,OAAO,EAAE,CAAC,gBAAgB,EAAE,QAAQ,EAAE,QAAQ,EAAE,SAAS,CAAC,EAAE,IAAI,CAAC;AACzE,OAAO,CAAC,MAAM,EAAE,CAAC,OAAO,EAAE,SAAS,EAAE,MAAM,CAAC,EAAE,IAAI,CAAC;AACnD,OAAO,CAAC,QAAQ,EAAE,CAAC,KAAK,EAAE,UAAU,CAAC,EAAE,IAAI,CAAC;AAC5C,OAAO,CAAC,KAAK,EAAE,CAAC,iBAAiB,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,CAAC,EAAE,IAAI,CAAC;AAErE,OAAO,CAAC,MAAM,EAAE,CAAC,WAAW,EAAE,WAAW,EAAE,eAAe,EAAE,YAAY,EAAE,iBAAiB,EAAE,iBAAiB,CAAC,EAAE,IAAI,CAAC;;;;"}
1
+ {"version":3,"file":"style_properties.js","sources":["../../src/dom/style_properties.ts"],"sourcesContent":["/*\n *\n * https://www.w3.org/Style/CSS/all-properties.en.html\n */\n\nconst WEBKIT = 'webkit'\n\nconst styleProperties = [\n 'all',\n 'appearance',\n 'backdropFilter',\n 'blockOverflow',\n 'blockSize',\n 'bottom',\n 'clear',\n 'contain',\n 'content',\n 'continue',\n 'cursor',\n 'direction',\n 'display',\n 'filter',\n 'float',\n 'gap',\n 'height',\n 'inset',\n 'isolation',\n 'left',\n 'letterSpacing',\n 'lightingColor',\n 'markerSide',\n 'mixBlendMode',\n 'opacity',\n 'order',\n 'position',\n 'quotes',\n 'resize',\n 'right',\n 'rowGap',\n 'tabSize',\n 'tableLayout',\n 'top',\n 'userSelect',\n 'verticalAlign',\n 'visibility',\n 'voiceFamily',\n 'volume',\n 'whiteSpace',\n 'widows',\n 'width',\n 'zIndex',\n 'pointerEvents',\n 'aspectRatio'\n\n /** 非常用 style */\n // 'azimuth',\n // 'backfaceVisibility',\n // 'baselineShift',\n // 'captionSide',\n // 'chains',\n // 'dominantBaseline',\n // 'elevation',\n // 'emptyCells',\n // 'forcedColorAdjust',\n // 'glyphOrientationVertical',\n // 'hangingPunctuation',\n // 'hyphenateCharacter',\n // 'hyphens',\n // 'imageOrientation',\n // 'imageResolution',\n // 'orphans',\n // 'playDuring',\n // 'pointerEvents',\n // 'regionFragment',\n // 'richness',\n // 'running',\n // 'scrollBehavior',\n // 'speechRate',\n // 'stress',\n // 'stringSet',\n // 'unicodeBidi',\n // 'willChange',\n // 'writingMode',\n]\n\n// 减少文件体积\nfunction combine (prefix: string, list: string[], excludeSelf?: boolean) {\n !excludeSelf && styleProperties.push(prefix)\n list.forEach(item => {\n styleProperties.push(prefix + item)\n if (prefix === WEBKIT) {\n styleProperties.push('Webkit' + item)\n }\n })\n}\n\nconst color = 'Color'\nconst style = 'Style'\nconst width = 'Width'\nconst image = 'Image'\nconst size = 'Size'\nconst color_style_width = [color, style, width]\nconst fitlength_fitwidth_image = ['FitLength', 'FitWidth', image]\nconst fitlength_fitwidth_image_radius = [...fitlength_fitwidth_image, 'Radius']\nconst color_style_width_fitlength_fitwidth_image = [...color_style_width, ...fitlength_fitwidth_image]\nconst endRadius_startRadius = ['EndRadius', 'StartRadius']\nconst bottom_left_right_top = ['Bottom', 'Left', 'Right', 'Top']\nconst end_start = ['End', 'Start']\nconst content_items_self = ['Content', 'Items', 'Self']\nconst blockSize_height_inlineSize_width = ['BlockSize', 'Height', 'InlineSize', width]\nconst after_before = ['After', 'Before']\n\ncombine('borderBlock', color_style_width)\ncombine('borderBlockEnd', color_style_width)\ncombine('borderBlockStart', color_style_width)\ncombine('outline', [...color_style_width, 'Offset'])\ncombine('border', [...color_style_width, 'Boundary', 'Break', 'Collapse', 'Radius', 'Spacing'])\ncombine('borderFit', ['Length', width])\ncombine('borderInline', color_style_width)\ncombine('borderInlineEnd', color_style_width)\ncombine('borderInlineStart', color_style_width)\ncombine('borderLeft', color_style_width_fitlength_fitwidth_image)\ncombine('borderRight', color_style_width_fitlength_fitwidth_image)\ncombine('borderTop', color_style_width_fitlength_fitwidth_image)\ncombine('borderBottom', color_style_width_fitlength_fitwidth_image)\ncombine('textDecoration', [color, style, 'Line'])\ncombine('textEmphasis', [color, style, 'Position'])\ncombine('scrollMargin', bottom_left_right_top)\ncombine('scrollPadding', bottom_left_right_top)\ncombine('padding', bottom_left_right_top)\ncombine('margin', [...bottom_left_right_top, 'Trim'])\ncombine('scrollMarginBlock', end_start)\ncombine('scrollMarginInline', end_start)\ncombine('scrollPaddingBlock', end_start)\ncombine('scrollPaddingInline', end_start)\ncombine('gridColumn', end_start)\ncombine('gridRow', end_start)\ncombine('insetBlock', end_start)\ncombine('insetInline', end_start)\ncombine('marginBlock', end_start)\ncombine('marginInline', end_start)\ncombine('paddingBlock', end_start)\ncombine('paddingInline', end_start)\ncombine('pause', after_before)\ncombine('cue', after_before)\ncombine('mask', ['Clip', 'Composite', image, 'Mode', 'Origin', 'Position', 'Repeat', size, 'Type'])\ncombine('borderImage', ['Outset', 'Repeat', 'Slice', 'Source', 'Transform', width])\ncombine('maskBorder', ['Mode', 'Outset', 'Repeat', 'Slice', 'Source', width])\ncombine('font', ['Family', 'FeatureSettings', 'Kerning', 'LanguageOverride', 'MaxSize', 'MinSize', 'OpticalSizing', 'Palette', size, 'SizeAdjust', 'Stretch', style, 'Weight', 'VariationSettings'])\ncombine('transform', ['Box', 'Origin', style])\ncombine('background', [color, image, 'Attachment', 'BlendMode', 'Clip', 'Origin', 'Position', 'Repeat', size])\ncombine('listStyle', [image, 'Position', 'Type'])\ncombine('scrollSnap', ['Align', 'Stop', 'Type'])\ncombine('grid', ['Area', 'AutoColumns', 'AutoFlow', 'AutoRows'])\ncombine('gridTemplate', ['Areas', 'Columns', 'Rows'])\ncombine('overflow', ['Block', 'Inline', 'Wrap', 'X', 'Y'])\ncombine('transition', ['Delay', 'Duration', 'Property', 'TimingFunction'])\ncombine('color', ['Adjust', 'InterpolationFilters', 'Scheme'])\ncombine('textAlign', ['All', 'Last'])\ncombine('page', ['BreakAfter', 'BreakBefore', 'BreakInside'])\ncombine('animation', ['Delay', 'Direction', 'Duration', 'FillMode', 'IterationCount', 'Name', 'PlayState', 'TimingFunction'])\ncombine('flex', ['Basis', 'Direction', 'Flow', 'Grow', 'Shrink', 'Wrap'])\ncombine('offset', [...after_before, ...end_start, 'Anchor', 'Distance', 'Path', 'Position', 'Rotate'])\ncombine('perspective', ['Origin'])\ncombine('clip', ['Path', 'Rule'])\ncombine('flow', ['From', 'Into'])\n\ncombine('align', ['Content', 'Items', 'Self'], true)\ncombine('alignment', ['Adjust', 'Baseline'], true)\ncombine('borderStart', endRadius_startRadius, true)\ncombine('borderEnd', endRadius_startRadius, true)\ncombine('borderCorner', ['Fit', image, 'ImageTransform'], true)\ncombine('borderTopLeft', fitlength_fitwidth_image_radius, true)\ncombine('borderTopRight', fitlength_fitwidth_image_radius, true)\ncombine('borderBottomLeft', fitlength_fitwidth_image_radius, true)\ncombine('borderBottomRight', fitlength_fitwidth_image_radius, true)\ncombine('column', ['s', 'Count', 'Fill', 'Gap', 'Rule', 'RuleColor', 'RuleStyle', 'RuleWidth', 'Span', width], true)\ncombine('break', [...after_before, 'Inside'], true)\ncombine('wrap', [...after_before, 'Flow', 'Inside', 'Through'], true)\ncombine('justify', content_items_self, true)\ncombine('place', content_items_self, true)\ncombine('max', [...blockSize_height_inlineSize_width, 'Lines'], true)\ncombine('min', blockSize_height_inlineSize_width, true)\ncombine('line', ['Break', 'Clamp', 'Grid', 'Height', 'Padding', 'Snap'], true)\ncombine('inline', ['BoxAlign', size, 'Sizing'], true)\ncombine('text', ['CombineUpright', 'GroupAlign', 'Height', 'Indent', 'Justify', 'Orientation', 'Overflow', 'Shadow', 'SpaceCollapse', 'SpaceTrim', 'Spacing', 'Transform', 'UnderlinePosition', 'Wrap'], true)\ncombine('shape', ['ImageThreshold', 'Inside', 'Margin', 'Outside'], true)\ncombine('word', ['Break', 'Spacing', 'Wrap'], true)\ncombine('object', ['Fit', 'Position'], true)\ncombine('box', ['DecorationBreak', 'Shadow', 'Sizing', 'Snap'], true)\n\ncombine(WEBKIT, ['LineClamp', 'BoxOrient', 'TextFillColor', 'TextStroke', 'TextStrokeColor', 'TextStrokeWidth'], true)\n\n/** 非常用 style */\n// combine('caret', [color, 'Shape'])\n// combine('counter', ['Increment', 'Reset', 'Set'], true)\n// combine('dropInitial', ['AfterAdjust', 'AfterAlign', 'BeforeAdjust', 'BeforeAlign', size, 'Value'], true)\n// combine('flood', [color, 'Opacity'], true)\n// combine('footnote', ['Display', 'Policy'], true)\n// combine('hyphenateLimit', ['Chars', 'Last', 'Lines', 'Zone'], true)\n// combine('initialLetters', ['Align', 'Wrap'])\n// combine('ruby', ['Align', 'Merge', 'Position'], true)\n// combine('lineStacking', ['Ruby', 'Shift', 'Strategy'])\n// combine('bookmark', ['Label', 'Level', 'State'], true)\n// combine('speak', ['Header', 'Numeral', 'Punctuation'])\n// combine('pitch', ['Range'])\n// combine('nav', ['Down', 'Left', 'Right', 'Up'], true)\n// combine('fontSynthesis', ['SmallCaps', style, 'Weight'])\n// combine('fontVariant', ['Alternates', 'Caps', 'EastAsian', 'Emoji', 'Ligatures', 'Numeric', 'Position'])\n\nexport { styleProperties }\n"],"names":[],"mappings":"AAAA;;;AAGG;AAEH,MAAM,MAAM,GAAG,QAAQ;AAEvB,MAAM,eAAe,GAAG;IACtB,KAAK;IACL,YAAY;IACZ,gBAAgB;IAChB,eAAe;IACf,WAAW;IACX,QAAQ;IACR,OAAO;IACP,SAAS;IACT,SAAS;IACT,UAAU;IACV,QAAQ;IACR,WAAW;IACX,SAAS;IACT,QAAQ;IACR,OAAO;IACP,KAAK;IACL,QAAQ;IACR,OAAO;IACP,WAAW;IACX,MAAM;IACN,eAAe;IACf,eAAe;IACf,YAAY;IACZ,cAAc;IACd,SAAS;IACT,OAAO;IACP,UAAU;IACV,QAAQ;IACR,QAAQ;IACR,OAAO;IACP,QAAQ;IACR,SAAS;IACT,aAAa;IACb,K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e,EAAE,YAAY,EAAE,iBAAiB,EAAE,iBAAiB,CAAC,EAAE,IAAI,CAAC;;;;"}
package/dist/dom/svg.d.ts CHANGED
@@ -1,4 +1,3 @@
1
- import { TaroElement } from "./element.js";
2
- declare class SVGElement extends TaroElement {
1
+ import { TaroElement } from './element';
2
+ export declare class SVGElement extends TaroElement {
3
3
  }
4
- export { SVGElement };
@@ -1,6 +1,6 @@
1
- import { TaroNode } from "./node.js";
2
- import { NodeType } from "../node_types-9ac5b4dd.js";
3
- declare class TaroText extends TaroNode {
1
+ import { TaroNode } from './node';
2
+ import { NodeType } from './node_types';
3
+ export declare class TaroText extends TaroNode {
4
4
  _value: string;
5
5
  nodeType: NodeType;
6
6
  nodeName: string;
@@ -12,4 +12,3 @@ declare class TaroText extends TaroNode {
12
12
  set data(text: string);
13
13
  get data(): string;
14
14
  }
15
- export { TaroText };
@@ -1,8 +1,7 @@
1
- import { TaroElement } from "./element.js";
2
- declare class TransferElement extends TaroElement {
1
+ import { TaroElement } from './element';
2
+ export declare class TransferElement extends TaroElement {
3
3
  dataName: string;
4
4
  isTransferElement: boolean;
5
5
  constructor(dataName: string);
6
6
  get _path(): string;
7
7
  }
8
- export { TransferElement };
@@ -1,4 +1,4 @@
1
- import { TaroElement } from "./element.js";
1
+ import type { TaroElement } from './element';
2
2
  type Filter = (element: TaroElement) => boolean;
3
- declare function treeToArray(root: TaroElement, predict?: Filter): TaroElement[];
4
- export { treeToArray };
3
+ export declare function treeToArray(root: TaroElement, predict?: Filter): TaroElement[];
4
+ export {};
@@ -1,4 +1,3 @@
1
- import { TaroElement } from "../dom/element.js";
2
- declare function getBoundingClientRectImpl(this: TaroElement): Promise<null>;
3
- declare function getTemplateContent(ctx: TaroElement): TaroElement | undefined;
4
- export { getBoundingClientRectImpl, getTemplateContent };
1
+ import type { TaroElement } from '../dom/element';
2
+ export declare function getBoundingClientRectImpl(this: TaroElement): Promise<null>;
3
+ export declare function getTemplateContent(ctx: TaroElement): TaroElement | undefined;
@@ -1,3 +1,2 @@
1
- import { TaroNode } from "../../dom/node.js";
2
- declare function setInnerHTML(element: TaroNode, html: string): void;
3
- export { setInnerHTML };
1
+ import type { TaroNode } from '../../dom/node';
2
+ export declare function setInnerHTML(element: TaroNode, html: string): void;
@@ -1,5 +1,5 @@
1
- import { TaroDocument } from "../../dom/document.js";
2
- import { TaroElement } from "../../dom/element.js";
1
+ import type { TaroDocument } from '../../dom/document';
2
+ import type { TaroElement } from '../../dom/element';
3
3
  interface Node {
4
4
  type: string;
5
5
  }
@@ -7,19 +7,19 @@ interface Comment extends Node {
7
7
  type: 'comment';
8
8
  content: string;
9
9
  }
10
- interface Text extends Node {
10
+ export interface Text extends Node {
11
11
  type: 'text';
12
12
  content: string;
13
13
  }
14
- interface Element extends Node {
14
+ export interface Element extends Node {
15
15
  type: 'element';
16
16
  tagName: string;
17
17
  children: ChildNode[];
18
18
  attributes: string[];
19
19
  }
20
- interface ParsedTaroElement extends TaroElement {
20
+ export interface ParsedTaroElement extends TaroElement {
21
21
  h5tagName?: string;
22
22
  }
23
23
  type ChildNode = Comment | Text | Element;
24
- declare function parser(html: string, document: TaroDocument): (import("../../index.js").TaroText | TaroElement)[];
25
- export { Text, Element, ParsedTaroElement, parser };
24
+ export declare function parser(html: string, document: TaroDocument): (import("../..").TaroText | TaroElement)[];
25
+ export {};
@@ -3,7 +3,7 @@ interface Position {
3
3
  column: number;
4
4
  line: number;
5
5
  }
6
- interface Token {
6
+ export interface Token {
7
7
  type: string;
8
8
  content?: string;
9
9
  position?: {
@@ -12,7 +12,7 @@ interface Token {
12
12
  };
13
13
  close?: boolean;
14
14
  }
15
- declare class Scaner {
15
+ export declare class Scaner {
16
16
  private tokens;
17
17
  private position;
18
18
  private html;
@@ -27,4 +27,4 @@ declare class Scaner {
27
27
  private scanAttrs;
28
28
  private scanSkipTag;
29
29
  }
30
- export { Token, Scaner };
30
+ export {};
@@ -1,4 +1,4 @@
1
- import { ParsedTaroElement } from "./parser.js";
1
+ import type { ParsedTaroElement } from './parser';
2
2
  interface ISelector {
3
3
  isChild: boolean;
4
4
  isGeneralSibling: boolean;
@@ -16,7 +16,7 @@ interface IStyle {
16
16
  content: string;
17
17
  selectorList: ISelector[];
18
18
  }
19
- declare class StyleTagParser {
19
+ export default class StyleTagParser {
20
20
  styles: IStyle[];
21
21
  extractStyle(src: string): string;
22
22
  stringToSelector(style: string): void;
@@ -24,4 +24,4 @@ declare class StyleTagParser {
24
24
  matchStyle(tagName: string, el: ParsedTaroElement, list: number[]): string;
25
25
  matchCurrent(tagName: string, el: ParsedTaroElement, selector: ISelector): boolean;
26
26
  }
27
- export { StyleTagParser as default };
27
+ export {};
@@ -1,9 +1,8 @@
1
- declare function makeMap(str: string, expectsLowerCase?: boolean): (key: string) => boolean;
2
- declare const specialMiniElements: {
1
+ export declare function makeMap(str: string, expectsLowerCase?: boolean): (key: string) => boolean;
2
+ export declare const specialMiniElements: {
3
3
  img: string;
4
4
  iframe: string;
5
5
  };
6
- declare const isMiniElements: (key: string) => boolean;
7
- declare const isInlineElements: (key: string) => boolean;
8
- declare const isBlockElements: (key: string) => boolean;
9
- export { makeMap, specialMiniElements, isMiniElements, isInlineElements, isBlockElements };
6
+ export declare const isMiniElements: (key: string) => boolean;
7
+ export declare const isInlineElements: (key: string) => boolean;
8
+ export declare const isBlockElements: (key: string) => boolean;
@@ -1,2 +1 @@
1
- declare function unquote(str: string): string;
2
- export { unquote };
1
+ export declare function unquote(str: string): string;
@@ -1,10 +1,10 @@
1
- import { TaroNode } from "../../dom/node.js";
2
- import { MutationRecord } from "../../record-32b054d8.js";
3
- type MutationCallback = (mutations: MutationRecord[]) => any;
1
+ import type { TaroNode } from '../../dom/node';
2
+ import type { MutationRecord } from './record';
3
+ export type MutationCallback = (mutations: MutationRecord[]) => any;
4
4
  /**
5
5
  * @see https://dom.spec.whatwg.org/#dictdef-mutationobserverinit
6
6
  */
7
- interface MutationObserverInit {
7
+ export interface MutationObserverInit {
8
8
  attributeFilter?: string[];
9
9
  attributeOldValue?: boolean;
10
10
  attributes?: boolean;
@@ -21,20 +21,12 @@ interface MutationObserverInit {
21
21
  * @see https://dom.spec.whatwg.org/#mutationobserver
22
22
  * @see https://developer.mozilla.org/en-US/docs/Web/API/MutationObserver
23
23
  */
24
- declare class MutationObserverImpl {
24
+ export declare class MutationObserverImpl {
25
25
  callback: MutationCallback;
26
26
  target: TaroNode | null;
27
27
  options: MutationObserverInit;
28
28
  records: MutationRecord[];
29
29
  constructor(callback: MutationCallback);
30
- /**
31
- * Configures the MutationObserver
32
- * to begin receiving notifications
33
- * through its callback function
34
- * when DOM changes matching the given options occur.
35
- *
36
- * Options matching is to be implemented.
37
- */
38
30
  /**
39
31
  * Configures the MutationObserver
40
32
  * to begin receiving notifications
@@ -44,22 +36,12 @@ declare class MutationObserverImpl {
44
36
  * Options matching is to be implemented.
45
37
  */
46
38
  observe(target: TaroNode, options?: MutationObserverInit): void;
47
- /**
48
- * Stop the MutationObserver instance
49
- * from receiving further notifications
50
- * until and unless observe() is called again.
51
- */
52
39
  /**
53
40
  * Stop the MutationObserver instance
54
41
  * from receiving further notifications
55
42
  * until and unless observe() is called again.
56
43
  */
57
44
  disconnect(): void;
58
- /**
59
- * Removes all pending notifications
60
- * from the MutationObserver's notification queue
61
- * and returns them in a new Array of MutationRecord objects.
62
- */
63
45
  /**
64
46
  * Removes all pending notifications
65
47
  * from the MutationObserver's notification queue
@@ -67,5 +49,4 @@ declare class MutationObserverImpl {
67
49
  */
68
50
  takeRecords(): MutationRecord[];
69
51
  }
70
- declare function recordMutation(record: MutationRecord): void;
71
- export { MutationCallback, MutationObserverInit, MutationObserverImpl, recordMutation };
52
+ export declare function recordMutation(record: MutationRecord): void;
@@ -1,7 +1,8 @@
1
- import { MutationObserverImpl, MutationCallback, MutationObserverInit } from "./implements.js";
2
- import { MutationRecord, MutationRecordType } from "../../record-32b054d8.js";
3
- import { TaroNode } from "../../dom/node.js";
4
- declare class MutationObserver {
1
+ import { MutationObserverImpl } from './implements';
2
+ import { MutationRecord, MutationRecordType } from './record';
3
+ import type { TaroNode } from '../../dom/node';
4
+ import type { MutationCallback, MutationObserverInit } from './implements';
5
+ export declare class MutationObserver {
5
6
  core: Pick<MutationObserverImpl, 'observe' | 'disconnect' | 'takeRecords'>;
6
7
  constructor(callback: MutationCallback);
7
8
  observe(...args: [TaroNode, MutationObserverInit?]): void;
@@ -9,4 +10,4 @@ declare class MutationObserver {
9
10
  takeRecords(): MutationRecord[];
10
11
  static record(record: MutationRecord): void;
11
12
  }
12
- export { MutationObserver, MutationRecordType };
13
+ export { MutationRecordType };
@@ -1,11 +1,11 @@
1
- import { TaroNode } from "./dom/node.js";
1
+ import type { TaroNode } from '../../dom/node';
2
2
  /**
3
3
  * A MutationRecord represents an individual DOM mutation.
4
4
  * It is the object that is passed to MutationObserver's callback.
5
5
  * @see https://dom.spec.whatwg.org/#interface-mutationrecord
6
6
  * @see https://developer.mozilla.org/en-US/docs/Web/API/MutationRecord
7
7
  */
8
- interface MutationRecord {
8
+ export interface MutationRecord {
9
9
  readonly target: TaroNode;
10
10
  readonly addedNodes?: TaroNode[];
11
11
  readonly removedNodes?: TaroNode[];
@@ -17,9 +17,8 @@ interface MutationRecord {
17
17
  readonly type: MutationRecordType;
18
18
  readonly value?: string | null;
19
19
  }
20
- declare const enum MutationRecordType {
20
+ export declare const enum MutationRecordType {
21
21
  ATTRIBUTES = "attributes",
22
22
  CHARACTER_DATA = "characterData",
23
23
  CHILD_LIST = "childList"
24
24
  }
25
- export { MutationRecord, MutationRecordType };
@@ -1,12 +1,11 @@
1
- import { TaroNode } from "../dom/node.js";
2
- type IPosition = 'beforebegin' | 'afterbegin' | 'beforeend' | 'afterend';
1
+ import type { TaroNode } from '../dom/node';
2
+ export type IPosition = 'beforebegin' | 'afterbegin' | 'beforeend' | 'afterend';
3
3
  /**
4
4
  * An implementation of `Element.insertAdjacentHTML()`
5
5
  * to support Vue 3 with a version of or greater than `vue@3.1.2`
6
6
  */
7
- declare function insertAdjacentHTML(this: TaroNode, position: IPosition, html: string): void;
8
- declare function cloneNode(this: TaroNode, isDeep?: boolean): any;
9
- declare function contains(this: TaroNode, node: TaroNode & {
7
+ export declare function insertAdjacentHTML(this: TaroNode, position: IPosition, html: string): void;
8
+ export declare function cloneNode(this: TaroNode, isDeep?: boolean): any;
9
+ export declare function contains(this: TaroNode, node: TaroNode & {
10
10
  id?: string;
11
11
  }): boolean;
12
- export { IPosition, insertAdjacentHTML, cloneNode, contains };
@@ -1,16 +1,15 @@
1
1
  /// <reference types="react" />
2
- import { PageConfig } from "../index-26658829.js";
3
- import { Instance, PageInstance, PageProps } from "../instance-530729bd.js";
4
- declare function injectPageInstance(inst: Instance<PageProps>, id: string): void;
5
- declare function getPageInstance(id: string): Instance | undefined;
6
- declare function removePageInstance(id: string): void;
7
- declare function safeExecute(path: string, lifecycle: string, ...args: unknown[]): any;
8
- declare function stringify(obj?: Record<string, unknown>): string;
9
- declare function getPath(id: string, options?: Record<string, unknown>): string;
10
- declare function getOnReadyEventKey(path: string): string;
11
- declare function getOnShowEventKey(path: string): string;
12
- declare function getOnHideEventKey(path: string): string;
13
- declare function createPageConfig(component: any, pageName?: string, data?: Record<string, unknown>, pageConfig?: PageConfig): PageInstance;
14
- declare function createComponentConfig(component: React.ComponentClass, componentName?: string, data?: Record<string, unknown>): any;
15
- declare function createRecursiveComponentConfig(componentName?: string): any;
16
- export { injectPageInstance, getPageInstance, removePageInstance, safeExecute, stringify, getPath, getOnReadyEventKey, getOnShowEventKey, getOnHideEventKey, createPageConfig, createComponentConfig, createRecursiveComponentConfig };
2
+ import type { PageConfig } from '../interface';
3
+ import type { Instance, PageInstance, PageProps } from './instance';
4
+ export declare function injectPageInstance(inst: Instance<PageProps>, id: string): void;
5
+ export declare function getPageInstance(id: string): Instance | undefined;
6
+ export declare function removePageInstance(id: string): void;
7
+ export declare function safeExecute(path: string, lifecycle: string, ...args: unknown[]): any;
8
+ export declare function stringify(obj?: Record<string, unknown>): string;
9
+ export declare function getPath(id: string, options?: Record<string, unknown>): string;
10
+ export declare function getOnReadyEventKey(path: string): string;
11
+ export declare function getOnShowEventKey(path: string): string;
12
+ export declare function getOnHideEventKey(path: string): string;
13
+ export declare function createPageConfig(component: any, pageName?: string, data?: Record<string, unknown>, pageConfig?: PageConfig): PageInstance;
14
+ export declare function createComponentConfig(component: React.ComponentClass, componentName?: string, data?: Record<string, unknown>): any;
15
+ export declare function createRecursiveComponentConfig(componentName?: string): any;
@@ -1,27 +1,26 @@
1
- /// <reference types="react" />
2
- import { Component as Vue3Component } from '@vue/runtime-core';
3
- import { Component, ComponentClass } from 'react';
4
- import { TaroElement } from "./dom/element.js";
5
- import { MpEvent, TFunc } from "./index-26658829.js";
6
- interface Instance<T = Record<string, any>> extends Component<T>, Show, PageInstance {
1
+ import type { Component as Vue3Component } from '@vue/runtime-core';
2
+ import type { Component, ComponentClass } from 'react';
3
+ import type { TaroElement } from '../dom/element';
4
+ import type { MpEvent, TFunc } from '../interface';
5
+ export interface Instance<T = Record<string, any>> extends Component<T>, Show, PageInstance {
7
6
  tid?: string;
8
7
  node?: TaroElement;
9
8
  $forceUpdate?(): void;
10
9
  $nextTick?(cb: () => void): void;
11
10
  $options: Instance;
12
11
  }
13
- interface PageProps {
12
+ export interface PageProps {
14
13
  tid?: string;
15
14
  }
16
- interface ReactPageComponent<T = PageProps> extends ComponentClass<T>, PageInstance {
15
+ export interface ReactPageComponent<T = PageProps> extends ComponentClass<T>, PageInstance {
17
16
  }
18
- interface ReactPageInstance<T = PageProps> extends Component<T>, PageInstance {
17
+ export interface ReactPageInstance<T = PageProps> extends Component<T>, PageInstance {
19
18
  componentDidShow?(): void;
20
19
  componentDidHide?(): void;
21
20
  }
22
- interface ReactAppInstance<T = AppInstance> extends Component<T>, AppInstance {
21
+ export interface ReactAppInstance<T = AppInstance> extends Component<T>, AppInstance {
23
22
  }
24
- interface PageLifeCycle extends Show {
23
+ export interface PageLifeCycle extends Show {
25
24
  eh?(event: MpEvent): void;
26
25
  onAddToFavorites?(): void;
27
26
  onLoad?(options: Record<string, unknown>, cb?: TFunc): void;
@@ -50,7 +49,7 @@ interface PageLifeCycle extends Show {
50
49
  onTitleClick?(): void;
51
50
  onUnload?(): void;
52
51
  }
53
- interface PageInstance extends PageLifeCycle {
52
+ export interface PageInstance extends PageLifeCycle {
54
53
  /** 页面的初始数据 */
55
54
  data?: Record<string, unknown>;
56
55
  /** 页面路径 */
@@ -68,7 +67,7 @@ interface Show {
68
67
  onShow?(): void;
69
68
  onHide?(): void;
70
69
  }
71
- interface AppInstance extends Show {
70
+ export interface AppInstance extends Show {
72
71
  componentDidShow?(options?: Record<string, unknown>): void;
73
72
  mount?(component: React.ComponentClass | Vue3Component, id: string, cb: (...args: any[]) => void): void;
74
73
  mount?(component: React.ComponentClass | Vue3Component, id: string, getCtx: (...args: any[]) => void, cb: (...args: any[]) => void): void;
@@ -82,4 +81,4 @@ interface AppInstance extends Show {
82
81
  taroGlobalData?: Record<any, any>;
83
82
  config?: Record<any, any>;
84
83
  }
85
- export { Instance, PageProps, ReactPageComponent, ReactPageInstance, ReactAppInstance, PageLifeCycle, PageInstance, AppInstance };
84
+ export {};
@@ -1,4 +1,4 @@
1
1
  import { Events } from '@tarojs/shared';
2
2
  declare const eventCenter: Events;
3
- type EventsType = typeof Events;
4
- export { EventsType, eventCenter, Events };
3
+ export type EventsType = typeof Events;
4
+ export { eventCenter, Events };
package/dist/env.d.ts CHANGED
@@ -1,7 +1,7 @@
1
- import { TaroDocument } from "./dom/document.js";
1
+ import type { TaroDocument } from './dom/document';
2
2
  interface Env {
3
3
  window: any;
4
4
  document: TaroDocument;
5
5
  }
6
6
  declare const env: Env;
7
- export { env as default };
7
+ export default env;
package/dist/hydrate.d.ts CHANGED
@@ -1,11 +1,10 @@
1
- import { TaroElement } from "./dom/element.js";
2
- import { TaroText } from "./dom/text.js";
3
- import { MiniData } from "./index-26658829.js";
1
+ import type { TaroElement } from './dom/element';
2
+ import type { TaroText } from './dom/text';
3
+ import type { MiniData } from './interface';
4
4
  /**
5
5
  * React also has a fancy function's name for this: `hydrate()`.
6
6
  * You may have been heard `hydrate` as a SSR-related function,
7
7
  * actually, `hydrate` basicly do the `render()` thing, but ignore some properties,
8
8
  * it's a vnode traverser and modifier: that's exactly what Taro's doing in here.
9
9
  */
10
- declare function hydrate(node: TaroElement | TaroText): MiniData;
11
- export { hydrate };
10
+ export declare function hydrate(node: TaroElement | TaroText): MiniData;
package/dist/index.cjs.js CHANGED
@@ -1764,6 +1764,7 @@ const WEBKIT = 'webkit';
1764
1764
  const styleProperties = [
1765
1765
  'all',
1766
1766
  'appearance',
1767
+ 'backdropFilter',
1767
1768
  'blockOverflow',
1768
1769
  'blockSize',
1769
1770
  'bottom',
@@ -5090,12 +5091,12 @@ if (process.env.SUPPORT_TARO_POLYFILL !== 'disabled' && process.env.TARO_PLATFOR
5090
5091
  }
5091
5092
 
5092
5093
  Object.defineProperty(exports, "Events", {
5093
- enumerable: true,
5094
- get: function () { return shared.Events; }
5094
+ enumerable: true,
5095
+ get: function () { return shared.Events; }
5095
5096
  });
5096
5097
  Object.defineProperty(exports, "hooks", {
5097
- enumerable: true,
5098
- get: function () { return shared.hooks; }
5098
+ enumerable: true,
5099
+ get: function () { return shared.hooks; }
5099
5100
  });
5100
5101
  exports.A = A;
5101
5102
  exports.APP = APP;