@tarojs/react 3.5.0-canary.1 → 3.5.0

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/dist/index.js CHANGED
@@ -2,10 +2,10 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
+ var shared = require('@tarojs/shared');
6
+ var runtime = require('@tarojs/runtime');
5
7
  var Reconciler = require('react-reconciler');
6
8
  var scheduler = require('scheduler');
7
- var runtime = require('@tarojs/runtime');
8
- var shared = require('@tarojs/shared');
9
9
 
10
10
  function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
11
11
 
@@ -18,315 +18,328 @@ function _interopNamespace(e) {
18
18
  var d = Object.getOwnPropertyDescriptor(e, k);
19
19
  Object.defineProperty(n, k, d.get ? d : {
20
20
  enumerable: true,
21
- get: function () {
22
- return e[k];
23
- }
21
+ get: function () { return e[k]; }
24
22
  });
25
23
  }
26
24
  });
27
25
  }
28
- n['default'] = e;
26
+ n["default"] = e;
29
27
  return Object.freeze(n);
30
28
  }
31
29
 
32
30
  var Reconciler__default = /*#__PURE__*/_interopDefaultLegacy(Reconciler);
33
31
  var scheduler__namespace = /*#__PURE__*/_interopNamespace(scheduler);
34
32
 
35
- function isEventName(s) {
36
- return s[0] === 'o' && s[1] === 'n';
37
- }
38
- var IS_NON_DIMENSIONAL = /acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord/i;
39
- function updateProps(dom, oldProps, newProps) {
40
- var i;
41
- for (i in oldProps) {
42
- if (!(i in newProps)) {
43
- setProperty(dom, i, null, oldProps[i]);
44
- }
45
- }
46
- var isFormElement = dom instanceof runtime.FormElement;
47
- for (i in newProps) {
48
- if (oldProps[i] !== newProps[i] || (isFormElement && i === 'value')) {
49
- setProperty(dom, i, newProps[i], oldProps[i]);
50
- }
51
- }
52
- }
53
- // function eventProxy (e: CommonEvent) {
54
- // const el = document.getElementById(e.currentTarget.id)
55
- // const handlers = el!.__handlers[e.type]
56
- // handlers[0](e)
57
- // }
58
- function setEvent(dom, name, value, oldValue) {
59
- var isCapture = name.endsWith('Capture');
60
- var eventName = name.toLowerCase().slice(2);
61
- if (isCapture) {
62
- eventName = eventName.slice(0, -7);
63
- }
64
- var compName = shared.capitalize(shared.toCamelCase(dom.tagName.toLowerCase()));
65
- if (eventName === 'click' && compName in shared.internalComponents) {
66
- eventName = 'tap';
67
- }
68
- if (shared.isFunction(value)) {
69
- if (!oldValue) {
70
- dom.addEventListener(eventName, value, isCapture);
71
- }
72
- if (eventName === 'regionchange') {
73
- dom.__handlers.begin[0] = value;
74
- dom.__handlers.end[0] = value;
75
- }
76
- else {
77
- dom.__handlers[eventName][0] = value;
78
- }
79
- }
80
- else {
81
- dom.removeEventListener(eventName, oldValue);
82
- }
83
- }
84
- function setStyle(style, key, value) {
85
- if (key[0] === '-') {
86
- style.setProperty(key, value.toString());
87
- }
88
- style[key] =
89
- shared.isNumber(value) && IS_NON_DIMENSIONAL.test(key) === false
90
- ? value + 'px'
91
- : value == null
92
- ? ''
93
- : value;
94
- }
95
- function setProperty(dom, name, value, oldValue) {
96
- var _a, _b, _c, _d;
97
- name = name === 'className' ? 'class' : name;
98
- if (name === 'key' ||
99
- name === 'children' ||
100
- name === 'ref') ;
101
- else if (name === 'style') {
102
- var style = dom.style;
103
- if (shared.isString(value)) {
104
- style.cssText = value;
105
- }
106
- else {
107
- if (shared.isString(oldValue)) {
108
- style.cssText = '';
109
- oldValue = null;
110
- }
111
- if (shared.isObject(oldValue)) {
112
- for (var i in oldValue) {
113
- if (!(value && i in value)) {
114
- setStyle(style, i, '');
115
- }
116
- }
117
- }
118
- if (shared.isObject(value)) {
119
- for (var i$1 in value) {
120
- if (!oldValue || value[i$1] !== oldValue[i$1]) {
121
- setStyle(style, i$1, value[i$1]);
122
- }
123
- }
124
- }
125
- }
126
- }
127
- else if (isEventName(name)) {
128
- setEvent(dom, name, value, oldValue);
129
- }
130
- else if (name === 'dangerouslySetInnerHTML') {
131
- var newHtml = (_b = (_a = value) === null || _a === void 0 ? void 0 : _a.__html) !== null && _b !== void 0 ? _b : '';
132
- var oldHtml = (_d = (_c = oldValue) === null || _c === void 0 ? void 0 : _c.__html) !== null && _d !== void 0 ? _d : '';
133
- if (newHtml || oldHtml) {
134
- if (oldHtml !== newHtml) {
135
- dom.innerHTML = newHtml;
136
- }
137
- }
138
- }
139
- else if (!shared.isFunction(value)) {
140
- if (value == null) {
141
- dom.removeAttribute(name);
142
- }
143
- else {
144
- dom.setAttribute(name, value);
145
- }
146
- }
33
+ function isEventName(s) {
34
+ return s[0] === 'o' && s[1] === 'n';
35
+ }
36
+ var IS_NON_DIMENSIONAL = /acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord/i;
37
+ function updateProps(dom, oldProps, newProps) {
38
+ var i;
39
+ for (i in oldProps) {
40
+ if (!(i in newProps)) {
41
+ setProperty(dom, i, null, oldProps[i]);
42
+ }
43
+ }
44
+ var isFormElement = dom instanceof runtime.FormElement;
45
+ for (i in newProps) {
46
+ if (oldProps[i] !== newProps[i] || (isFormElement && i === 'value')) {
47
+ setProperty(dom, i, newProps[i], oldProps[i]);
48
+ }
49
+ }
50
+ }
51
+ // function eventProxy (e: CommonEvent) {
52
+ // const el = document.getElementById(e.currentTarget.id)
53
+ // const handlers = el!.__handlers[e.type]
54
+ // handlers[0](e)
55
+ // }
56
+ function setEvent(dom, name, value, oldValue) {
57
+ var isCapture = name.endsWith('Capture');
58
+ var eventName = name.toLowerCase().slice(2);
59
+ if (isCapture) {
60
+ eventName = eventName.slice(0, -7);
61
+ }
62
+ var compName = shared.capitalize(shared.toCamelCase(dom.tagName.toLowerCase()));
63
+ if (eventName === 'click' && compName in shared.internalComponents) {
64
+ eventName = 'tap';
65
+ }
66
+ if (shared.isFunction(value)) {
67
+ if (oldValue) {
68
+ dom.removeEventListener(eventName, oldValue, false);
69
+ dom.addEventListener(eventName, value, { isCapture: isCapture, sideEffect: false });
70
+ }
71
+ else {
72
+ dom.addEventListener(eventName, value, isCapture);
73
+ }
74
+ }
75
+ else {
76
+ dom.removeEventListener(eventName, oldValue);
77
+ }
78
+ }
79
+ function setStyle(style, key, value) {
80
+ if (key[0] === '-') {
81
+ style.setProperty(key, value.toString());
82
+ }
83
+ style[key] =
84
+ shared.isNumber(value) && IS_NON_DIMENSIONAL.test(key) === false
85
+ ? value + 'px'
86
+ : value == null
87
+ ? ''
88
+ : value;
89
+ }
90
+ function setProperty(dom, name, value, oldValue) {
91
+ var _a, _b;
92
+ name = name === 'className' ? 'class' : name;
93
+ if (name === 'key' ||
94
+ name === 'children' ||
95
+ name === 'ref') ;
96
+ else if (name === 'style') {
97
+ var style = dom.style;
98
+ if (shared.isString(value)) {
99
+ style.cssText = value;
100
+ }
101
+ else {
102
+ if (shared.isString(oldValue)) {
103
+ style.cssText = '';
104
+ oldValue = null;
105
+ }
106
+ if (shared.isObject(oldValue)) {
107
+ for (var i in oldValue) {
108
+ if (!(value && i in value)) {
109
+ setStyle(style, i, '');
110
+ }
111
+ }
112
+ }
113
+ if (shared.isObject(value)) {
114
+ for (var i$1 in value) {
115
+ if (!oldValue || value[i$1] !== oldValue[i$1]) {
116
+ setStyle(style, i$1, value[i$1]);
117
+ }
118
+ }
119
+ }
120
+ }
121
+ }
122
+ else if (isEventName(name)) {
123
+ setEvent(dom, name, value, oldValue);
124
+ }
125
+ else if (name === 'dangerouslySetInnerHTML') {
126
+ var newHtml = (_a = value === null || value === void 0 ? void 0 : value.__html) !== null && _a !== void 0 ? _a : '';
127
+ var oldHtml = (_b = oldValue === null || oldValue === void 0 ? void 0 : oldValue.__html) !== null && _b !== void 0 ? _b : '';
128
+ if (newHtml || oldHtml) {
129
+ if (oldHtml !== newHtml) {
130
+ dom.innerHTML = newHtml;
131
+ }
132
+ }
133
+ }
134
+ else if (!shared.isFunction(value)) {
135
+ if (value == null) {
136
+ dom.removeAttribute(name);
137
+ }
138
+ else {
139
+ dom.setAttribute(name, value);
140
+ }
141
+ }
147
142
  }
148
143
 
149
- /* eslint-disable @typescript-eslint/indent */
150
- var now = scheduler__namespace.unstable_now;
151
- function returnFalse() {
152
- return false;
153
- }
154
- var hostConfig = {
155
- createInstance: function createInstance(type) {
156
- return runtime.document.createElement(type);
157
- },
158
- createTextInstance: function createTextInstance(text) {
159
- return runtime.document.createTextNode(text);
160
- },
161
- getPublicInstance: function getPublicInstance(inst) {
162
- return inst;
163
- },
164
- getRootHostContext: function getRootHostContext() {
165
- return {};
166
- },
167
- getChildHostContext: function getChildHostContext() {
168
- return {};
169
- },
170
- appendChild: function appendChild(parent, child) {
171
- parent.appendChild(child);
172
- },
173
- appendInitialChild: function appendInitialChild(parent, child) {
174
- parent.appendChild(child);
175
- },
176
- appendChildToContainer: function appendChildToContainer(parent, child) {
177
- parent.appendChild(child);
178
- },
179
- removeChild: function removeChild(parent, child) {
180
- parent.removeChild(child);
181
- },
182
- removeChildFromContainer: function removeChildFromContainer(parent, child) {
183
- parent.removeChild(child);
184
- },
185
- insertBefore: function insertBefore(parent, child, refChild) {
186
- parent.insertBefore(child, refChild);
187
- },
188
- insertInContainerBefore: function insertInContainerBefore(parent, child, refChild) {
189
- parent.insertBefore(child, refChild);
190
- },
191
- commitTextUpdate: function commitTextUpdate(textInst, _, newText) {
192
- textInst.nodeValue = newText;
193
- },
194
- finalizeInitialChildren: function finalizeInitialChildren(dom, _, props) {
195
- updateProps(dom, {}, props);
196
- return false;
197
- },
198
- prepareUpdate: function prepareUpdate() {
199
- return shared.EMPTY_ARR;
200
- },
201
- commitUpdate: function commitUpdate(dom, _payload, _type, oldProps, newProps) {
202
- updateProps(dom, oldProps, newProps);
203
- },
204
- hideInstance: function hideInstance(instance) {
205
- var style = instance.style;
206
- style.setProperty('display', 'none');
207
- },
208
- unhideInstance: function unhideInstance(instance, props) {
209
- var styleProp = props.style;
210
- var display = (styleProp === null || styleProp === void 0 ? void 0 : styleProp.hasOwnProperty('display')) ? styleProp.display : null;
211
- display = display == null || shared.isBoolean(display) || display === '' ? '' : ('' + display).trim();
212
- // eslint-disable-next-line dot-notation
213
- instance.style['display'] = display;
214
- },
215
- clearContainer: function clearContainer(element) {
216
- if (element.childNodes.length > 0) {
217
- element.textContent = '';
218
- }
219
- },
220
- queueMicrotask: !shared.isUndefined(Promise)
221
- ? function (callback) { return Promise.resolve(null)
222
- .then(callback)
223
- .catch(function (error) {
224
- setTimeout(function () {
225
- throw error;
226
- });
227
- }); }
228
- : setTimeout,
229
- shouldSetTextContent: returnFalse,
144
+ /* eslint-disable @typescript-eslint/indent */
145
+ var now = scheduler__namespace.unstable_now;
146
+ function returnFalse() {
147
+ return false;
148
+ }
149
+ var hostConfig = {
150
+ createInstance: function createInstance(type) {
151
+ return runtime.document.createElement(type);
152
+ },
153
+ createTextInstance: function createTextInstance(text) {
154
+ return runtime.document.createTextNode(text);
155
+ },
156
+ getPublicInstance: function getPublicInstance(inst) {
157
+ return inst;
158
+ },
159
+ getRootHostContext: function getRootHostContext() {
160
+ return {};
161
+ },
162
+ getChildHostContext: function getChildHostContext() {
163
+ return {};
164
+ },
165
+ getCurrentEventPriority: function getCurrentEventPriority() {
166
+ // 因 @types/react-reconciler 未更新,ts会报错,这里直接返回16
167
+ return 16; // import { DefaultEventPriority } from 'react-reconciler/constants'
168
+ },
169
+ detachDeletedInstance: function detachDeletedInstance() {
170
+ // noop
171
+ },
172
+ appendChild: function appendChild(parent, child) {
173
+ parent.appendChild(child);
174
+ },
175
+ appendInitialChild: function appendInitialChild(parent, child) {
176
+ parent.appendChild(child);
177
+ },
178
+ appendChildToContainer: function appendChildToContainer(parent, child) {
179
+ parent.appendChild(child);
180
+ },
181
+ removeChild: function removeChild(parent, child) {
182
+ parent.removeChild(child);
183
+ },
184
+ removeChildFromContainer: function removeChildFromContainer(parent, child) {
185
+ parent.removeChild(child);
186
+ },
187
+ insertBefore: function insertBefore(parent, child, refChild) {
188
+ parent.insertBefore(child, refChild);
189
+ },
190
+ insertInContainerBefore: function insertInContainerBefore(parent, child, refChild) {
191
+ parent.insertBefore(child, refChild);
192
+ },
193
+ commitTextUpdate: function commitTextUpdate(textInst, _, newText) {
194
+ textInst.nodeValue = newText;
195
+ },
196
+ finalizeInitialChildren: function finalizeInitialChildren(dom, _, props) {
197
+ updateProps(dom, {}, props);
198
+ return false;
199
+ },
200
+ prepareUpdate: function prepareUpdate() {
201
+ return shared.EMPTY_ARR;
202
+ },
203
+ commitUpdate: function commitUpdate(dom, _payload, _type, oldProps, newProps) {
204
+ updateProps(dom, oldProps, newProps);
205
+ },
206
+ hideInstance: function hideInstance(instance) {
207
+ var style = instance.style;
208
+ style.setProperty('display', 'none');
209
+ },
210
+ unhideInstance: function unhideInstance(instance, props) {
211
+ var styleProp = props.style;
212
+ var display = (styleProp === null || styleProp === void 0 ? void 0 : styleProp.hasOwnProperty('display')) ? styleProp.display : null;
213
+ display = display == null || shared.isBoolean(display) || display === '' ? '' : ('' + display).trim();
214
+ // eslint-disable-next-line dot-notation
215
+ instance.style['display'] = display;
216
+ },
217
+ clearContainer: function clearContainer(element) {
218
+ if (element.childNodes.length > 0) {
219
+ element.textContent = '';
220
+ }
221
+ },
222
+ queueMicrotask: !shared.isUndefined(Promise)
223
+ ? function (callback) { return Promise.resolve(null)
224
+ .then(callback)
225
+ .catch(function (error) {
226
+ setTimeout(function () {
227
+ throw error;
228
+ });
229
+ }); }
230
+ : setTimeout,
231
+ shouldSetTextContent: returnFalse,
230
232
  prepareForCommit: function prepareForCommit() {
231
- var _ = [], len = arguments.length;
232
- while ( len-- ) _[ len ] = arguments[ len ];
233
- return null; },
234
- resetAfterCommit: shared.noop,
235
- commitMount: shared.noop,
236
- now: now,
237
- cancelTimeout: clearTimeout,
238
- scheduleTimeout: setTimeout,
239
- preparePortalMount: shared.noop,
240
- noTimeout: -1,
241
- supportsMutation: true,
242
- supportsPersistence: false,
243
- isPrimaryRenderer: true,
244
- supportsHydration: false
245
- };
246
- var TaroReconciler = Reconciler__default['default'](hostConfig);
247
- if (process.env.NODE_ENV !== 'production') {
248
- var foundDevTools = TaroReconciler.injectIntoDevTools({
249
- bundleType: 1,
250
- version: '17.0.2',
251
- rendererPackageName: 'taro-react'
252
- });
253
- if (!foundDevTools) {
254
- // eslint-disable-next-line no-console
255
- console.info('%cDownload the React DevTools ' + 'for a better development experience: ' + 'https://reactjs.org/link/react-devtools', 'font-weight:bold');
256
- }
233
+ return null; },
234
+ resetAfterCommit: shared.noop,
235
+ commitMount: shared.noop,
236
+ now: now,
237
+ cancelTimeout: clearTimeout,
238
+ scheduleTimeout: setTimeout,
239
+ preparePortalMount: shared.noop,
240
+ noTimeout: -1,
241
+ supportsMutation: true,
242
+ supportsPersistence: false,
243
+ isPrimaryRenderer: true,
244
+ supportsHydration: false
245
+ };
246
+ var TaroReconciler = Reconciler__default["default"](hostConfig);
247
+ if (process.env.NODE_ENV !== 'production') {
248
+ var foundDevTools = TaroReconciler.injectIntoDevTools({
249
+ bundleType: 1,
250
+ version: '18.0.0',
251
+ rendererPackageName: 'taro-react'
252
+ });
253
+ if (!foundDevTools) {
254
+ // eslint-disable-next-line no-console
255
+ console.info('%cDownload the React DevTools ' + 'for a better development experience: ' + 'https://reactjs.org/link/react-devtools', 'font-weight:bold');
256
+ }
257
257
  }
258
258
 
259
- var ContainerMap = new WeakMap();
260
- var Root = function Root(renderer, domContainer) {
261
- this.renderer = renderer;
262
- this.internalRoot = renderer.createContainer(domContainer, 0 /** LegacyRoot: react-reconciler/src/ReactRootTags.js */, false, null);
263
- };
264
- Root.prototype.render = function render (children, cb) {
259
+ var ContainerMap = new WeakMap();
260
+ var Root = function Root(renderer, domContainer, isConcurrentRoot) {
261
+ if ( isConcurrentRoot === void 0 ) isConcurrentRoot = false;
262
+
263
+ this.renderer = renderer;
264
+ /** ConcurrentRoot & LegacyRoot: react-reconciler/src/ReactRootTags.js */
265
+ this.internalRoot = renderer.createContainer(domContainer, isConcurrentRoot ? 1 : 0, false, null);
266
+ };
267
+ Root.prototype.render = function render (children, cb) {
265
268
  var ref = this;
266
269
  var renderer = ref.renderer;
267
- var internalRoot = ref.internalRoot;
268
- renderer.updateContainer(children, internalRoot, null, cb);
269
- return renderer.getPublicRootInstance(internalRoot);
270
- };
271
- Root.prototype.unmount = function unmount (cb) {
272
- this.renderer.updateContainer(null, this.internalRoot, null, cb);
273
- };
274
- function render(element, domContainer, cb) {
275
- var oldRoot = ContainerMap.get(domContainer);
276
- if (oldRoot != null) {
277
- return oldRoot.render(element, cb);
278
- }
279
- var root = new Root(TaroReconciler, domContainer);
280
- ContainerMap.set(domContainer, root);
281
- return root.render(element, cb);
270
+ var internalRoot = ref.internalRoot;
271
+ renderer.updateContainer(children, internalRoot, null, cb);
272
+ return renderer.getPublicRootInstance(internalRoot);
273
+ };
274
+ Root.prototype.unmount = function unmount (cb) {
275
+ this.renderer.updateContainer(null, this.internalRoot, null, cb);
276
+ };
277
+ function render(element, domContainer, cb) {
278
+ var oldRoot = ContainerMap.get(domContainer);
279
+ if (oldRoot != null) {
280
+ return oldRoot.render(element, cb);
281
+ }
282
+ var root = new Root(TaroReconciler, domContainer);
283
+ ContainerMap.set(domContainer, root);
284
+ return root.render(element, cb);
285
+ }
286
+ function createRoot(domContainer) {
287
+ var oldRoot = ContainerMap.get(domContainer);
288
+ if (oldRoot != null) {
289
+ return oldRoot;
290
+ }
291
+ var root = new Root(TaroReconciler, domContainer, true);
292
+ ContainerMap.set(domContainer, root);
293
+ return root;
282
294
  }
283
295
 
284
- /* eslint-disable @typescript-eslint/no-unused-vars */
285
- var unstable_batchedUpdates = TaroReconciler.batchedUpdates;
286
- function unmountComponentAtNode(dom) {
287
- shared.ensure(dom && [1, 8, 9, 11].includes(dom.nodeType), 'unmountComponentAtNode(...): Target container is not a DOM element.');
288
- var root = ContainerMap.get(dom);
289
- if (!root)
290
- { return false; }
291
- unstable_batchedUpdates(function () {
292
- root.unmount(function () {
293
- ContainerMap.delete(dom);
294
- });
295
- }, null);
296
- return true;
297
- }
298
- function findDOMNode(comp) {
299
- if (comp == null) {
300
- return null;
301
- }
302
- var nodeType = comp.nodeType;
303
- if (nodeType === 1 || nodeType === 3) {
304
- return comp;
305
- }
306
- return TaroReconciler.findHostInstance(comp);
307
- }
308
- var portalType = shared.isFunction(Symbol) && Symbol.for
309
- ? Symbol.for('react.portal')
310
- : 0xeaca;
311
- function createPortal(children, containerInfo, key) {
312
- return {
313
- $$typeof: portalType,
314
- key: key == null ? null : String(key),
315
- children: children,
316
- containerInfo: containerInfo,
317
- implementation: null
318
- };
319
- }
320
- var index = {
321
- render: render,
322
- unstable_batchedUpdates: unstable_batchedUpdates,
323
- unmountComponentAtNode: unmountComponentAtNode,
324
- findDOMNode: findDOMNode,
325
- createPortal: createPortal
296
+ var unstable_batchedUpdates = TaroReconciler.batchedUpdates;
297
+ function unmountComponentAtNode(dom) {
298
+ shared.ensure(dom && [1, 8, 9, 11].includes(dom.nodeType), 'unmountComponentAtNode(...): Target container is not a DOM element.');
299
+ var root = ContainerMap.get(dom);
300
+ if (!root)
301
+ { return false; }
302
+ unstable_batchedUpdates(function () {
303
+ root.unmount(function () {
304
+ ContainerMap.delete(dom);
305
+ });
306
+ }, null);
307
+ return true;
308
+ }
309
+ function findDOMNode(comp) {
310
+ if (comp == null) {
311
+ return null;
312
+ }
313
+ var nodeType = comp.nodeType;
314
+ if (nodeType === 1 || nodeType === 3) {
315
+ return comp;
316
+ }
317
+ return TaroReconciler.findHostInstance(comp);
318
+ }
319
+ var portalType = shared.isFunction(Symbol) && Symbol.for
320
+ ? Symbol.for('react.portal')
321
+ : 0xeaca;
322
+ function createPortal(children, containerInfo, key) {
323
+ return {
324
+ $$typeof: portalType,
325
+ key: key == null ? null : String(key),
326
+ children: children,
327
+ containerInfo: containerInfo,
328
+ implementation: null
329
+ };
330
+ }
331
+ var index = {
332
+ render: render,
333
+ createRoot: createRoot,
334
+ unstable_batchedUpdates: unstable_batchedUpdates,
335
+ unmountComponentAtNode: unmountComponentAtNode,
336
+ findDOMNode: findDOMNode,
337
+ createPortal: createPortal
326
338
  };
327
339
 
328
340
  exports.createPortal = createPortal;
329
- exports['default'] = index;
341
+ exports.createRoot = createRoot;
342
+ exports["default"] = index;
330
343
  exports.findDOMNode = findDOMNode;
331
344
  exports.render = render;
332
345
  exports.unmountComponentAtNode = unmountComponentAtNode;