@wix/editor-react-components 1.2838.0 → 1.2839.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/site/components/Image3/component.js +2 -489
- package/dist/site/components/Logo/component.js +1 -157
- package/dist/site/components/Logo/css.css +16 -15
- package/dist/site/components/TransparentVideo/css.css +5 -4
- package/dist/site/components/VideoScrub/css.css +5 -4
- package/dist/site/components/VideoUpload/css.css +5 -4
- package/dist/site/components/chunks/Image.js +160 -0
- package/dist/site/components/chunks/Video.js +10 -648
- package/dist/site/components/chunks/customElementInit.js +655 -0
- package/dist/site/components/chunks/index6.js +7 -6
- package/package.json +5 -5
- package/dist/site/components/chunks/fastdom.js +0 -166
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wix/editor-react-components",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.2839.0",
|
|
4
4
|
"description": "React components for the Wix Editor",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -130,8 +130,8 @@
|
|
|
130
130
|
"@wix/editor-elements-test-utils": "^1.0.0",
|
|
131
131
|
"@wix/essentials": "^0.1.28",
|
|
132
132
|
"@wix/fed-cli-sled": "^1.0.39",
|
|
133
|
-
"@wix/image": "^1.
|
|
134
|
-
"@wix/image-kit": "^1.
|
|
133
|
+
"@wix/image": "^1.461.0",
|
|
134
|
+
"@wix/image-kit": "^1.129.0",
|
|
135
135
|
"@wix/janet-build": "^1.0.10",
|
|
136
136
|
"@wix/mappers-legacy-service": "^1.0.85",
|
|
137
137
|
"@wix/media": "^1.0.281",
|
|
@@ -156,7 +156,7 @@
|
|
|
156
156
|
"@wix/sled-playwright": "^1.404.0",
|
|
157
157
|
"@wix/thunderbolt-components-native": "^1.0.0",
|
|
158
158
|
"@wix/unidriver-core": "^1.5.6",
|
|
159
|
-
"@wix/video": "^1.
|
|
159
|
+
"@wix/video": "^1.116.0",
|
|
160
160
|
"@wix/viewer-playwright-app": "^1.0.730",
|
|
161
161
|
"@wix/viewer-service-anchors": "^1.0.54",
|
|
162
162
|
"@wix/viewer-service-consent-policy": "^1.0.110",
|
|
@@ -228,5 +228,5 @@
|
|
|
228
228
|
"registry": "https://registry.npmjs.org/",
|
|
229
229
|
"access": "public"
|
|
230
230
|
},
|
|
231
|
-
"falconPackageHash": "
|
|
231
|
+
"falconPackageHash": "ae980a19e04f4b910482e403e9e11905740a165296b2c912f79ca1ff"
|
|
232
232
|
}
|
|
@@ -1,166 +0,0 @@
|
|
|
1
|
-
import { g as getDefaultExportFromCjs } from "./_commonjsHelpers.js";
|
|
2
|
-
var fastdom$2 = { exports: {} };
|
|
3
|
-
var fastdom$1 = fastdom$2.exports;
|
|
4
|
-
var hasRequiredFastdom;
|
|
5
|
-
function requireFastdom() {
|
|
6
|
-
if (hasRequiredFastdom) return fastdom$2.exports;
|
|
7
|
-
hasRequiredFastdom = 1;
|
|
8
|
-
(function(module) {
|
|
9
|
-
!(function(win) {
|
|
10
|
-
var debug = function() {
|
|
11
|
-
};
|
|
12
|
-
var raf = win.requestAnimationFrame || win.webkitRequestAnimationFrame || win.mozRequestAnimationFrame || win.msRequestAnimationFrame || function(cb) {
|
|
13
|
-
return setTimeout(cb, 16);
|
|
14
|
-
};
|
|
15
|
-
function FastDom() {
|
|
16
|
-
var self = this;
|
|
17
|
-
self.reads = [];
|
|
18
|
-
self.writes = [];
|
|
19
|
-
self.raf = raf.bind(win);
|
|
20
|
-
}
|
|
21
|
-
FastDom.prototype = {
|
|
22
|
-
constructor: FastDom,
|
|
23
|
-
/**
|
|
24
|
-
* We run this inside a try catch
|
|
25
|
-
* so that if any jobs error, we
|
|
26
|
-
* are able to recover and continue
|
|
27
|
-
* to flush the batch until it's empty.
|
|
28
|
-
*
|
|
29
|
-
* @param {Array} tasks
|
|
30
|
-
*/
|
|
31
|
-
runTasks: function(tasks) {
|
|
32
|
-
var task;
|
|
33
|
-
while (task = tasks.shift()) task();
|
|
34
|
-
},
|
|
35
|
-
/**
|
|
36
|
-
* Adds a job to the read batch and
|
|
37
|
-
* schedules a new frame if need be.
|
|
38
|
-
*
|
|
39
|
-
* @param {Function} fn
|
|
40
|
-
* @param {Object} ctx the context to be bound to `fn` (optional).
|
|
41
|
-
* @public
|
|
42
|
-
*/
|
|
43
|
-
measure: function(fn, ctx) {
|
|
44
|
-
var task = !ctx ? fn : fn.bind(ctx);
|
|
45
|
-
this.reads.push(task);
|
|
46
|
-
scheduleFlush(this);
|
|
47
|
-
return task;
|
|
48
|
-
},
|
|
49
|
-
/**
|
|
50
|
-
* Adds a job to the
|
|
51
|
-
* write batch and schedules
|
|
52
|
-
* a new frame if need be.
|
|
53
|
-
*
|
|
54
|
-
* @param {Function} fn
|
|
55
|
-
* @param {Object} ctx the context to be bound to `fn` (optional).
|
|
56
|
-
* @public
|
|
57
|
-
*/
|
|
58
|
-
mutate: function(fn, ctx) {
|
|
59
|
-
var task = !ctx ? fn : fn.bind(ctx);
|
|
60
|
-
this.writes.push(task);
|
|
61
|
-
scheduleFlush(this);
|
|
62
|
-
return task;
|
|
63
|
-
},
|
|
64
|
-
/**
|
|
65
|
-
* Clears a scheduled 'read' or 'write' task.
|
|
66
|
-
*
|
|
67
|
-
* @param {Object} task
|
|
68
|
-
* @return {Boolean} success
|
|
69
|
-
* @public
|
|
70
|
-
*/
|
|
71
|
-
clear: function(task) {
|
|
72
|
-
return remove(this.reads, task) || remove(this.writes, task);
|
|
73
|
-
},
|
|
74
|
-
/**
|
|
75
|
-
* Extend this FastDom with some
|
|
76
|
-
* custom functionality.
|
|
77
|
-
*
|
|
78
|
-
* Because fastdom must *always* be a
|
|
79
|
-
* singleton, we're actually extending
|
|
80
|
-
* the fastdom instance. This means tasks
|
|
81
|
-
* scheduled by an extension still enter
|
|
82
|
-
* fastdom's global task queue.
|
|
83
|
-
*
|
|
84
|
-
* The 'super' instance can be accessed
|
|
85
|
-
* from `this.fastdom`.
|
|
86
|
-
*
|
|
87
|
-
* @example
|
|
88
|
-
*
|
|
89
|
-
* var myFastdom = fastdom.extend({
|
|
90
|
-
* initialize: function() {
|
|
91
|
-
* // runs on creation
|
|
92
|
-
* },
|
|
93
|
-
*
|
|
94
|
-
* // override a method
|
|
95
|
-
* measure: function(fn) {
|
|
96
|
-
* // do extra stuff ...
|
|
97
|
-
*
|
|
98
|
-
* // then call the original
|
|
99
|
-
* return this.fastdom.measure(fn);
|
|
100
|
-
* },
|
|
101
|
-
*
|
|
102
|
-
* ...
|
|
103
|
-
* });
|
|
104
|
-
*
|
|
105
|
-
* @param {Object} props properties to mixin
|
|
106
|
-
* @return {FastDom}
|
|
107
|
-
*/
|
|
108
|
-
extend: function(props) {
|
|
109
|
-
if (typeof props != "object") throw new Error("expected object");
|
|
110
|
-
var child = Object.create(this);
|
|
111
|
-
mixin(child, props);
|
|
112
|
-
child.fastdom = this;
|
|
113
|
-
if (child.initialize) child.initialize();
|
|
114
|
-
return child;
|
|
115
|
-
},
|
|
116
|
-
// override this with a function
|
|
117
|
-
// to prevent Errors in console
|
|
118
|
-
// when tasks throw
|
|
119
|
-
catch: null
|
|
120
|
-
};
|
|
121
|
-
function scheduleFlush(fastdom2) {
|
|
122
|
-
if (!fastdom2.scheduled) {
|
|
123
|
-
fastdom2.scheduled = true;
|
|
124
|
-
fastdom2.raf(flush.bind(null, fastdom2));
|
|
125
|
-
}
|
|
126
|
-
}
|
|
127
|
-
function flush(fastdom2) {
|
|
128
|
-
var writes = fastdom2.writes;
|
|
129
|
-
var reads = fastdom2.reads;
|
|
130
|
-
var error;
|
|
131
|
-
try {
|
|
132
|
-
debug("flushing reads", reads.length);
|
|
133
|
-
fastdom2.runTasks(reads);
|
|
134
|
-
debug("flushing writes", writes.length);
|
|
135
|
-
fastdom2.runTasks(writes);
|
|
136
|
-
} catch (e) {
|
|
137
|
-
error = e;
|
|
138
|
-
}
|
|
139
|
-
fastdom2.scheduled = false;
|
|
140
|
-
if (reads.length || writes.length) scheduleFlush(fastdom2);
|
|
141
|
-
if (error) {
|
|
142
|
-
debug("task errored", error.message);
|
|
143
|
-
if (fastdom2.catch) fastdom2.catch(error);
|
|
144
|
-
else throw error;
|
|
145
|
-
}
|
|
146
|
-
}
|
|
147
|
-
function remove(array, item) {
|
|
148
|
-
var index = array.indexOf(item);
|
|
149
|
-
return !!~index && !!array.splice(index, 1);
|
|
150
|
-
}
|
|
151
|
-
function mixin(target, source) {
|
|
152
|
-
for (var key in source) {
|
|
153
|
-
if (source.hasOwnProperty(key)) target[key] = source[key];
|
|
154
|
-
}
|
|
155
|
-
}
|
|
156
|
-
var exports$1 = win.fastdom = win.fastdom || new FastDom();
|
|
157
|
-
module.exports = exports$1;
|
|
158
|
-
})(typeof window !== "undefined" ? window : typeof fastdom$1 != "undefined" ? fastdom$1 : globalThis);
|
|
159
|
-
})(fastdom$2);
|
|
160
|
-
return fastdom$2.exports;
|
|
161
|
-
}
|
|
162
|
-
var fastdomExports = requireFastdom();
|
|
163
|
-
const fastdom = /* @__PURE__ */ getDefaultExportFromCjs(fastdomExports);
|
|
164
|
-
export {
|
|
165
|
-
fastdom as f
|
|
166
|
-
};
|