New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@designcombo/events

Package Overview
Dependencies
Maintainers
0
Versions
51
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@designcombo/events - npm Package Compare versions

Comparing version 0.1.19 to 0.1.20

1

dist/events.d.ts

@@ -10,2 +10,3 @@ export declare const ADD_SUFFIX = "add";

export declare const DESIGN_LOAD = "design:load";
export declare const DESIGN_RESIZE = "design:resize";
export declare const ADD_PREFIX = "add";

@@ -12,0 +13,0 @@ export declare const ADD_TEXT = "add:text";

179

dist/index.es.js

@@ -52,3 +52,3 @@ var R = function(e, r) {

}
function X(e) {
function G(e) {
var r = function(n) {

@@ -59,3 +59,3 @@ Error.call(n), n.stack = new Error().stack;

}
var I = X(function(e) {
var I = G(function(e) {
return function(t) {

@@ -113,6 +113,6 @@ e(this), this.message = t ? t.length + ` errors occurred during unsubscription:

try {
for (var _ = P(x), E = _.next(); !E.done; E = _.next()) {
var J = E.value;
for (var _ = P(x), b = _.next(); !b.done; b = _.next()) {
var Z = b.value;
try {
F(J);
F(Z);
} catch (l) {

@@ -126,3 +126,3 @@ i = i ?? [], l instanceof I ? i = $($([], O(i)), O(l.errors)) : i.push(l);

try {
E && !E.done && (o = _.return) && o.call(_);
b && !b.done && (o = _.return) && o.call(_);
} finally {

@@ -165,3 +165,3 @@ if (n) throw n.error;

}(), e;
}(), G = T.EMPTY;
}(), X = T.EMPTY;
function H(e) {

@@ -196,3 +196,3 @@ return e instanceof T || e && "closed" in e && f(e.remove) && f(e.add) && f(e.unsubscribe);

}
function j() {
function N() {
}

@@ -206,3 +206,3 @@ function A(e) {

var n = e.call(this) || this;
return n.isStopped = !1, t ? (n.destination = t, H(t) && t.add(n)) : n.destination = tt, n;
return n.isStopped = !1, t ? (n.destination = t, H(t) && t.add(n)) : n.destination = rt, n;
}

@@ -296,18 +296,18 @@ return r.create = function(t, n, o) {

}
function Z(e) {
function tt(e) {
throw e;
}
var tt = {
var rt = {
closed: !0,
next: j,
error: Z,
complete: j
}, rt = function() {
next: N,
error: tt,
complete: N
}, et = function() {
return typeof Symbol == "function" && Symbol.observable || "@@observable";
}();
function et(e) {
function nt(e) {
return e;
}
function nt(e) {
return e.length === 0 ? et : e.length === 1 ? e[0] : function(t) {
function ot(e) {
return e.length === 0 ? nt : e.length === 1 ? e[0] : function(t) {
return e.reduce(function(n, o) {

@@ -318,3 +318,3 @@ return o(n);

}
var N = function() {
var j = function() {
function e(r) {

@@ -327,3 +327,3 @@ r && (this._subscribe = r);

}, e.prototype.subscribe = function(r, t, n) {
var o = this, i = it(r) ? r : new g(r, t, n);
var o = this, i = st(r) ? r : new g(r, t, n);
return A(function() {

@@ -358,3 +358,3 @@ var s = o, c = s.operator, u = s.source;

return (t = this.source) === null || t === void 0 ? void 0 : t.subscribe(r);
}, e.prototype[rt] = function() {
}, e.prototype[et] = function() {
return this;

@@ -364,3 +364,3 @@ }, e.prototype.pipe = function() {

r[t] = arguments[t];
return nt(r)(this);
return ot(r)(this);
}, e.prototype.toPromise = function(r) {

@@ -386,14 +386,14 @@ var t = this;

}
function ot(e) {
function it(e) {
return e && f(e.next) && f(e.error) && f(e.complete);
}
function it(e) {
return e && e instanceof w || ot(e) && H(e);
function st(e) {
return e && e instanceof w || it(e) && H(e);
}
function st(e) {
function ct(e) {
return f(e == null ? void 0 : e.lift);
}
function ct(e) {
function ut(e) {
return function(r) {
if (st(r))
if (ct(r))
return r.lift(function(t) {

@@ -409,6 +409,6 @@ try {

}
function ut(e, r, t, n, o) {
return new at(e, r, t, n, o);
function at(e, r, t, n, o) {
return new lt(e, r, t, n, o);
}
var at = function(e) {
var lt = function(e) {
v(r, e);

@@ -448,3 +448,3 @@ function r(t, n, o, i, s, c) {

}, r;
}(w), lt = X(function(e) {
}(w), ft = G(function(e) {
return function() {

@@ -464,3 +464,3 @@ e(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";

if (this.closed)
throw new lt();
throw new ft();
}, r.prototype.next = function(t) {

@@ -521,3 +521,3 @@ var n = this;

var n = this, o = this, i = o.hasError, s = o.isStopped, c = o.observers;
return i || s ? G : (this.currentObservers = null, c.push(t), new T(function() {
return i || s ? X : (this.currentObservers = null, c.push(t), new T(function() {
n.currentObservers = null, L(c, t);

@@ -529,3 +529,3 @@ }));

}, r.prototype.asObservable = function() {
var t = new N();
var t = new j();
return t.source = this, t;

@@ -535,3 +535,3 @@ }, r.create = function(t, n) {

}, r;
}(N), M = function(e) {
}(j), M = function(e) {
v(r, e);

@@ -553,9 +553,9 @@ function r(t, n) {

var n, o;
return (o = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(t)) !== null && o !== void 0 ? o : G;
return (o = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(t)) !== null && o !== void 0 ? o : X;
}, r;
}(V);
function vt(e, r) {
return ct(function(t, n) {
return ut(function(t, n) {
var o = 0;
t.subscribe(ut(n, function(i) {
t.subscribe(at(n, function(i) {
return e.call(r, i, o++) && n.next(i);

@@ -566,3 +566,3 @@ }));

let D = null;
function ft() {
function pt() {
if (!D) {

@@ -574,68 +574,69 @@ const e = new V();

}
const { subject: yt, dispatch: _t } = ft(), St = "add", pt = "track", ht = "trackItems", At = `${pt}:changed`, Tt = `${ht}:changed`, dt = "state", It = `${dt}:changed`, bt = "design", mt = `${bt}:load`, h = "add", Dt = `${h}:text`, Rt = `${h}:video`, Pt = `${h}:audio`, Ot = `${h}:placeholder`, $t = `${h}:image`, Lt = `${h}:mask`, gt = `${h}:transition`, wt = `${h}:animation`, Ct = `${h}:caption`, C = "edit", Yt = `${C}:object`, xt = `${C}:text`, Ft = `${C}:shape`, jt = "enterEditMode", b = "player", Nt = `${b}:play`, Ut = `${b}:pause`, Mt = `${b}:seek`, Xt = `${b}:seekTo`, Gt = `${b}:seekBy`, Ht = `${b}:togglePlay`, y = "active", kt = `${y}:set`, Kt = `${y}:delete`, Vt = `${y}:paste`, Bt = `${y}:clone`, zt = `${y}:split`, a = "layer", Jt = `${a}:locked`, qt = `${a}:hidden`, Qt = `${a}:move`, Wt = `${a}:select`, Zt = `${a}:selection`, tr = `${a}:sendTo`, rr = `${a}:rename`, er = `${a}:editingName`, nr = `${a}:copy`, or = `${a}:paste`, ir = `${a}:clone`, sr = `${a}:split`, cr = `${a}:cut`, ur = `${a}:delete`, Y = "history", ar = `${Y}:undo`, lr = `${Y}:redo`, fr = `${Y}:reset`, B = "scale", pr = `${B}:changed`, hr = `${B}:fit`, z = "drag", dr = `${z}:start`, br = `${z}:end`, Et = "timeline", Er = `${Et}:boundingChanged`;
const { subject: yt, dispatch: _t } = pt(), St = "add", ht = "track", dt = "trackItems", At = `${ht}:changed`, Tt = `${dt}:changed`, Et = "state", It = `${Et}:changed`, B = "design", mt = `${B}:load`, Dt = `${B}:resize`, h = "add", Rt = `${h}:text`, Pt = `${h}:video`, Ot = `${h}:audio`, $t = `${h}:placeholder`, Lt = `${h}:image`, gt = `${h}:mask`, wt = `${h}:transition`, Ct = `${h}:animation`, Yt = `${h}:caption`, C = "edit", xt = `${C}:object`, Ft = `${C}:text`, Nt = `${C}:shape`, jt = "enterEditMode", E = "player", Ut = `${E}:play`, Mt = `${E}:pause`, Gt = `${E}:seek`, Xt = `${E}:seekTo`, Ht = `${E}:seekBy`, kt = `${E}:togglePlay`, y = "active", Kt = `${y}:set`, Vt = `${y}:delete`, Bt = `${y}:paste`, zt = `${y}:clone`, Jt = `${y}:split`, a = "layer", Zt = `${a}:locked`, qt = `${a}:hidden`, Qt = `${a}:move`, Wt = `${a}:select`, tr = `${a}:selection`, rr = `${a}:sendTo`, er = `${a}:rename`, nr = `${a}:editingName`, or = `${a}:copy`, ir = `${a}:paste`, sr = `${a}:clone`, cr = `${a}:split`, ur = `${a}:cut`, ar = `${a}:delete`, Y = "history", lr = `${Y}:undo`, fr = `${Y}:redo`, pr = `${Y}:reset`, z = "scale", hr = `${z}:changed`, dr = `${z}:fit`, J = "drag", Er = `${J}:start`, br = `${J}:end`, bt = "timeline", vr = `${bt}:boundingChanged`;
export {
Bt as ACTIVE_CLONE,
Kt as ACTIVE_DELETE,
Vt as ACTIVE_PASTE,
zt as ACTIVE_CLONE,
Vt as ACTIVE_DELETE,
Bt as ACTIVE_PASTE,
y as ACTIVE_PREFIX,
kt as ACTIVE_SET,
zt as ACTIVE_SPLIT,
wt as ADD_ANIMATION,
Pt as ADD_AUDIO,
Ct as ADD_CAPTION,
$t as ADD_IMAGE,
Lt as ADD_MASK,
Ot as ADD_PLACEHOLDER,
Kt as ACTIVE_SET,
Jt as ACTIVE_SPLIT,
Ct as ADD_ANIMATION,
Ot as ADD_AUDIO,
Yt as ADD_CAPTION,
Lt as ADD_IMAGE,
gt as ADD_MASK,
$t as ADD_PLACEHOLDER,
h as ADD_PREFIX,
St as ADD_SUFFIX,
Dt as ADD_TEXT,
gt as ADD_TRANSITION,
Rt as ADD_VIDEO,
Rt as ADD_TEXT,
wt as ADD_TRANSITION,
Pt as ADD_VIDEO,
mt as DESIGN_LOAD,
bt as DESIGN_PREFIX,
B as DESIGN_PREFIX,
Dt as DESIGN_RESIZE,
br as DRAG_END,
z as DRAG_PREFIX,
dr as DRAG_START,
Yt as EDIT_OBJECT,
J as DRAG_PREFIX,
Er as DRAG_START,
xt as EDIT_OBJECT,
C as EDIT_PREFIX,
Ft as EDIT_SHAPE,
xt as EDIT_TEXT,
Nt as EDIT_SHAPE,
Ft as EDIT_TEXT,
jt as ENTER_EDIT_MODE,
Y as HISTORY_PREFIX,
lr as HISTORY_REDO,
fr as HISTORY_RESET,
ar as HISTORY_UNDO,
ir as LAYER_CLONE,
nr as LAYER_COPY,
cr as LAYER_CUT,
ur as LAYER_DELETE,
er as LAYER_EDITING_NAME,
fr as HISTORY_REDO,
pr as HISTORY_RESET,
lr as HISTORY_UNDO,
sr as LAYER_CLONE,
or as LAYER_COPY,
ur as LAYER_CUT,
ar as LAYER_DELETE,
nr as LAYER_EDITING_NAME,
qt as LAYER_HIDDEN,
Jt as LAYER_LOCKED,
Zt as LAYER_LOCKED,
Qt as LAYER_MOVE,
or as LAYER_PASTE,
ir as LAYER_PASTE,
a as LAYER_PREFIX,
rr as LAYER_RENAME,
er as LAYER_RENAME,
Wt as LAYER_SELECT,
Zt as LAYER_SELECTION,
tr as LAYER_SEND_TO,
sr as LAYER_SPLIT,
Ut as PLAYER_PAUSE,
Nt as PLAYER_PLAY,
b as PLAYER_PREFIX,
Mt as PLAYER_SEEK,
Gt as PLAYER_SEEK_BY,
tr as LAYER_SELECTION,
rr as LAYER_SEND_TO,
cr as LAYER_SPLIT,
Mt as PLAYER_PAUSE,
Ut as PLAYER_PLAY,
E as PLAYER_PREFIX,
Gt as PLAYER_SEEK,
Ht as PLAYER_SEEK_BY,
Xt as PLAYER_SEEK_TO,
Ht as PLAYER_TOGGLE_PLAY,
kt as PLAYER_TOGGLE_PLAY,
It as STATE_CHANGED,
dt as STATE_PREFIX,
Er as TIMELINE_BOUNDING_CHANGED,
hr as TIMELINE_FIT,
Et as TIMELINE_PREFIX,
pr as TIMELINE_SCALE_CHANGED,
B as TIMELINE_SCALE_PREFIX,
Et as STATE_PREFIX,
vr as TIMELINE_BOUNDING_CHANGED,
dr as TIMELINE_FIT,
bt as TIMELINE_PREFIX,
hr as TIMELINE_SCALE_CHANGED,
z as TIMELINE_SCALE_PREFIX,
At as TRACKS_CHANGED,
Tt as TRACK_ITEMS_CHANGED,
ht as TRACK_ITEMS_PREFIX,
pt as TRACK_PREFIX,
dt as TRACK_ITEMS_PREFIX,
ht as TRACK_PREFIX,
_t as dispatch,

@@ -642,0 +643,0 @@ vt as filter,

(function(i,d){typeof exports=="object"&&typeof module<"u"?d(exports):typeof define=="function"&&define.amd?define(["exports"],d):(i=typeof globalThis<"u"?globalThis:i||self,d(i.events={}))})(this,function(i){"use strict";var d=function(n,r){return d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])},d(n,r)};function v(n,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");d(n,r);function t(){this.constructor=n}n.prototype=r===null?Object.create(r):(t.prototype=r.prototype,new t)}function P(n){var r=typeof Symbol=="function"&&Symbol.iterator,t=r&&n[r],e=0;if(t)return t.call(n);if(n&&typeof n.length=="number")return{next:function(){return n&&e>=n.length&&(n=void 0),{value:n&&n[e++],done:!n}}};throw new TypeError(r?"Object is not iterable.":"Symbol.iterator is not defined.")}function O(n,r){var t=typeof Symbol=="function"&&n[Symbol.iterator];if(!t)return n;var e=t.call(n),o,c=[],s;try{for(;(r===void 0||r-- >0)&&!(o=e.next()).done;)c.push(o.value)}catch(u){s={error:u}}finally{try{o&&!o.done&&(t=e.return)&&t.call(e)}finally{if(s)throw s.error}}return c}function m(n,r,t){if(t||arguments.length===2)for(var e=0,o=r.length,c;e<o;e++)(c||!(e in r))&&(c||(c=Array.prototype.slice.call(r,0,e)),c[e]=r[e]);return n.concat(c||Array.prototype.slice.call(r))}typeof SuppressedError=="function"&&SuppressedError;function f(n){return typeof n=="function"}function X(n){var r=function(e){Error.call(e),e.stack=new Error().stack},t=n(r);return t.prototype=Object.create(Error.prototype),t.prototype.constructor=t,t}var Y=X(function(n){return function(t){n(this),this.message=t?t.length+` errors occurred during unsubscription:
`+t.map(function(e,o){return o+1+") "+e.toString()}).join(`
`):"",this.name="UnsubscriptionError",this.errors=t}});function C(n,r){if(n){var t=n.indexOf(r);0<=t&&n.splice(t,1)}}var T=function(){function n(r){this.initialTeardown=r,this.closed=!1,this._parentage=null,this._finalizers=null}return n.prototype.unsubscribe=function(){var r,t,e,o,c;if(!this.closed){this.closed=!0;var s=this._parentage;if(s)if(this._parentage=null,Array.isArray(s))try{for(var u=P(s),a=u.next();!a.done;a=u.next()){var _=a.value;_.remove(this)}}catch(E){r={error:E}}finally{try{a&&!a.done&&(t=u.return)&&t.call(u)}finally{if(r)throw r.error}}else s.remove(this);var b=this.initialTeardown;if(f(b))try{b()}catch(E){c=E instanceof Y?E.errors:[E]}var tt=this._finalizers;if(tt){this._finalizers=null;try{for(var L=P(tt),y=L.next();!y.done;y=L.next()){var Ar=y.value;try{U(Ar)}catch(E){c=c??[],E instanceof Y?c=m(m([],O(c)),O(E.errors)):c.push(E)}}}catch(E){e={error:E}}finally{try{y&&!y.done&&(o=L.return)&&o.call(L)}finally{if(e)throw e.error}}}if(c)throw new Y(c)}},n.prototype.add=function(r){var t;if(r&&r!==this)if(this.closed)U(r);else{if(r instanceof n){if(r.closed||r._hasParent(this))return;r._addParent(this)}(this._finalizers=(t=this._finalizers)!==null&&t!==void 0?t:[]).push(r)}},n.prototype._hasParent=function(r){var t=this._parentage;return t===r||Array.isArray(t)&&t.includes(r)},n.prototype._addParent=function(r){var t=this._parentage;this._parentage=Array.isArray(t)?(t.push(r),t):t?[t,r]:r},n.prototype._removeParent=function(r){var t=this._parentage;t===r?this._parentage=null:Array.isArray(t)&&C(t,r)},n.prototype.remove=function(r){var t=this._finalizers;t&&C(t,r),r instanceof n&&r._removeParent(this)},n.EMPTY=function(){var r=new n;return r.closed=!0,r}(),n}(),G=T.EMPTY;function H(n){return n instanceof T||n&&"closed"in n&&f(n.remove)&&f(n.add)&&f(n.unsubscribe)}function U(n){f(n)?n():n.unsubscribe()}var j={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},K={setTimeout:function(n,r){for(var t=[],e=2;e<arguments.length;e++)t[e-2]=arguments[e];return setTimeout.apply(void 0,m([n,r],O(t)))},clearTimeout:function(n){var r=K.delegate;return((r==null?void 0:r.clearTimeout)||clearTimeout)(n)},delegate:void 0};function rt(n){K.setTimeout(function(){throw n})}function V(){}function I(n){n()}var N=function(n){v(r,n);function r(t){var e=n.call(this)||this;return e.isStopped=!1,t?(e.destination=t,H(t)&&t.add(e)):e.destination=ot,e}return r.create=function(t,e,o){return new g(t,e,o)},r.prototype.next=function(t){this.isStopped||this._next(t)},r.prototype.error=function(t){this.isStopped||(this.isStopped=!0,this._error(t))},r.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},r.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,n.prototype.unsubscribe.call(this),this.destination=null)},r.prototype._next=function(t){this.destination.next(t)},r.prototype._error=function(t){try{this.destination.error(t)}finally{this.unsubscribe()}},r.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},r}(T),nt=Function.prototype.bind;function $(n,r){return nt.call(n,r)}var et=function(){function n(r){this.partialObserver=r}return n.prototype.next=function(r){var t=this.partialObserver;if(t.next)try{t.next(r)}catch(e){S(e)}},n.prototype.error=function(r){var t=this.partialObserver;if(t.error)try{t.error(r)}catch(e){S(e)}else S(r)},n.prototype.complete=function(){var r=this.partialObserver;if(r.complete)try{r.complete()}catch(t){S(t)}},n}(),g=function(n){v(r,n);function r(t,e,o){var c=n.call(this)||this,s;if(f(t)||!t)s={next:t??void 0,error:e??void 0,complete:o??void 0};else{var u;c&&j.useDeprecatedNextContext?(u=Object.create(t),u.unsubscribe=function(){return c.unsubscribe()},s={next:t.next&&$(t.next,u),error:t.error&&$(t.error,u),complete:t.complete&&$(t.complete,u)}):s=t}return c.destination=new et(s),c}return r}(N);function S(n){rt(n)}function it(n){throw n}var ot={closed:!0,next:V,error:it,complete:V},ct=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}();function st(n){return n}function ut(n){return n.length===0?st:n.length===1?n[0]:function(t){return n.reduce(function(e,o){return o(e)},t)}}var k=function(){function n(r){r&&(this._subscribe=r)}return n.prototype.lift=function(r){var t=new n;return t.source=this,t.operator=r,t},n.prototype.subscribe=function(r,t,e){var o=this,c=lt(r)?r:new g(r,t,e);return I(function(){var s=o,u=s.operator,a=s.source;c.add(u?u.call(c,a):a?o._subscribe(c):o._trySubscribe(c))}),c},n.prototype._trySubscribe=function(r){try{return this._subscribe(r)}catch(t){r.error(t)}},n.prototype.forEach=function(r,t){var e=this;return t=B(t),new t(function(o,c){var s=new g({next:function(u){try{r(u)}catch(a){c(a),s.unsubscribe()}},error:c,complete:o});e.subscribe(s)})},n.prototype._subscribe=function(r){var t;return(t=this.source)===null||t===void 0?void 0:t.subscribe(r)},n.prototype[ct]=function(){return this},n.prototype.pipe=function(){for(var r=[],t=0;t<arguments.length;t++)r[t]=arguments[t];return ut(r)(this)},n.prototype.toPromise=function(r){var t=this;return r=B(r),new r(function(e,o){var c;t.subscribe(function(s){return c=s},function(s){return o(s)},function(){return e(c)})})},n.create=function(r){return new n(r)},n}();function B(n){var r;return(r=n??j.Promise)!==null&&r!==void 0?r:Promise}function at(n){return n&&f(n.next)&&f(n.error)&&f(n.complete)}function lt(n){return n&&n instanceof N||at(n)&&H(n)}function Et(n){return f(n==null?void 0:n.lift)}function ft(n){return function(r){if(Et(r))return r.lift(function(t){try{return n(t,this)}catch(e){this.error(e)}});throw new TypeError("Unable to lift unknown Observable type")}}function ht(n,r,t,e,o){return new _t(n,r,t,e,o)}var _t=function(n){v(r,n);function r(t,e,o,c,s,u){var a=n.call(this,t)||this;return a.onFinalize=s,a.shouldUnsubscribe=u,a._next=e?function(_){try{e(_)}catch(b){t.error(b)}}:n.prototype._next,a._error=c?function(_){try{c(_)}catch(b){t.error(b)}finally{this.unsubscribe()}}:n.prototype._error,a._complete=o?function(){try{o()}catch(_){t.error(_)}finally{this.unsubscribe()}}:n.prototype._complete,a}return r.prototype.unsubscribe=function(){var t;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){var e=this.closed;n.prototype.unsubscribe.call(this),!e&&((t=this.onFinalize)===null||t===void 0||t.call(this))}},r}(N),dt=X(function(n){return function(){n(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),J=function(n){v(r,n);function r(){var t=n.call(this)||this;return t.closed=!1,t.currentObservers=null,t.observers=[],t.isStopped=!1,t.hasError=!1,t.thrownError=null,t}return r.prototype.lift=function(t){var e=new z(this,this);return e.operator=t,e},r.prototype._throwIfClosed=function(){if(this.closed)throw new dt},r.prototype.next=function(t){var e=this;I(function(){var o,c;if(e._throwIfClosed(),!e.isStopped){e.currentObservers||(e.currentObservers=Array.from(e.observers));try{for(var s=P(e.currentObservers),u=s.next();!u.done;u=s.next()){var a=u.value;a.next(t)}}catch(_){o={error:_}}finally{try{u&&!u.done&&(c=s.return)&&c.call(s)}finally{if(o)throw o.error}}}})},r.prototype.error=function(t){var e=this;I(function(){if(e._throwIfClosed(),!e.isStopped){e.hasError=e.isStopped=!0,e.thrownError=t;for(var o=e.observers;o.length;)o.shift().error(t)}})},r.prototype.complete=function(){var t=this;I(function(){if(t._throwIfClosed(),!t.isStopped){t.isStopped=!0;for(var e=t.observers;e.length;)e.shift().complete()}})},r.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(r.prototype,"observed",{get:function(){var t;return((t=this.observers)===null||t===void 0?void 0:t.length)>0},enumerable:!1,configurable:!0}),r.prototype._trySubscribe=function(t){return this._throwIfClosed(),n.prototype._trySubscribe.call(this,t)},r.prototype._subscribe=function(t){return this._throwIfClosed(),this._checkFinalizedStatuses(t),this._innerSubscribe(t)},r.prototype._innerSubscribe=function(t){var e=this,o=this,c=o.hasError,s=o.isStopped,u=o.observers;return c||s?G:(this.currentObservers=null,u.push(t),new T(function(){e.currentObservers=null,C(u,t)}))},r.prototype._checkFinalizedStatuses=function(t){var e=this,o=e.hasError,c=e.thrownError,s=e.isStopped;o?t.error(c):s&&t.complete()},r.prototype.asObservable=function(){var t=new k;return t.source=this,t},r.create=function(t,e){return new z(t,e)},r}(k),z=function(n){v(r,n);function r(t,e){var o=n.call(this)||this;return o.destination=t,o.source=e,o}return r.prototype.next=function(t){var e,o;(o=(e=this.destination)===null||e===void 0?void 0:e.next)===null||o===void 0||o.call(e,t)},r.prototype.error=function(t){var e,o;(o=(e=this.destination)===null||e===void 0?void 0:e.error)===null||o===void 0||o.call(e,t)},r.prototype.complete=function(){var t,e;(e=(t=this.destination)===null||t===void 0?void 0:t.complete)===null||e===void 0||e.call(t)},r.prototype._subscribe=function(t){var e,o;return(o=(e=this.source)===null||e===void 0?void 0:e.subscribe(t))!==null&&o!==void 0?o:G},r}(J);function pt(n,r){return ft(function(t,e){var o=0;t.subscribe(ht(e,function(c){return n.call(r,c,o++)&&e.next(c)}))})}let w=null;function At(){if(!w){const n=new J;w={subject:n,dispatch:(t,e)=>n.next({key:t,value:e})}}return w}const{subject:bt,dispatch:vt}=At(),yt="add",q="track",Q="trackItems",Tt=`${q}:changed`,It=`${Q}:changed`,W="state",St=`${W}:changed`,Z="design",Dt=`${Z}:load`,h="add",Rt=`${h}:text`,Lt=`${h}:video`,Pt=`${h}:audio`,Ot=`${h}:placeholder`,mt=`${h}:image`,Yt=`${h}:mask`,Ct=`${h}:transition`,Nt=`${h}:animation`,$t=`${h}:caption`,D="edit",gt=`${D}:object`,wt=`${D}:text`,Ft=`${D}:shape`,Mt="enterEditMode",p="player",Xt=`${p}:play`,Gt=`${p}:pause`,Ht=`${p}:seek`,Ut=`${p}:seekTo`,jt=`${p}:seekBy`,Kt=`${p}:togglePlay`,A="active",Vt=`${A}:set`,kt=`${A}:delete`,Bt=`${A}:paste`,Jt=`${A}:clone`,zt=`${A}:split`,l="layer",qt=`${l}:locked`,Qt=`${l}:hidden`,Wt=`${l}:move`,Zt=`${l}:select`,xt=`${l}:selection`,tr=`${l}:sendTo`,rr=`${l}:rename`,nr=`${l}:editingName`,er=`${l}:copy`,ir=`${l}:paste`,or=`${l}:clone`,cr=`${l}:split`,sr=`${l}:cut`,ur=`${l}:delete`,R="history",ar=`${R}:undo`,lr=`${R}:redo`,Er=`${R}:reset`,F="scale",fr=`${F}:changed`,hr=`${F}:fit`,M="drag",_r=`${M}:start`,dr=`${M}:end`,x="timeline",pr=`${x}:boundingChanged`;i.ACTIVE_CLONE=Jt,i.ACTIVE_DELETE=kt,i.ACTIVE_PASTE=Bt,i.ACTIVE_PREFIX=A,i.ACTIVE_SET=Vt,i.ACTIVE_SPLIT=zt,i.ADD_ANIMATION=Nt,i.ADD_AUDIO=Pt,i.ADD_CAPTION=$t,i.ADD_IMAGE=mt,i.ADD_MASK=Yt,i.ADD_PLACEHOLDER=Ot,i.ADD_PREFIX=h,i.ADD_SUFFIX=yt,i.ADD_TEXT=Rt,i.ADD_TRANSITION=Ct,i.ADD_VIDEO=Lt,i.DESIGN_LOAD=Dt,i.DESIGN_PREFIX=Z,i.DRAG_END=dr,i.DRAG_PREFIX=M,i.DRAG_START=_r,i.EDIT_OBJECT=gt,i.EDIT_PREFIX=D,i.EDIT_SHAPE=Ft,i.EDIT_TEXT=wt,i.ENTER_EDIT_MODE=Mt,i.HISTORY_PREFIX=R,i.HISTORY_REDO=lr,i.HISTORY_RESET=Er,i.HISTORY_UNDO=ar,i.LAYER_CLONE=or,i.LAYER_COPY=er,i.LAYER_CUT=sr,i.LAYER_DELETE=ur,i.LAYER_EDITING_NAME=nr,i.LAYER_HIDDEN=Qt,i.LAYER_LOCKED=qt,i.LAYER_MOVE=Wt,i.LAYER_PASTE=ir,i.LAYER_PREFIX=l,i.LAYER_RENAME=rr,i.LAYER_SELECT=Zt,i.LAYER_SELECTION=xt,i.LAYER_SEND_TO=tr,i.LAYER_SPLIT=cr,i.PLAYER_PAUSE=Gt,i.PLAYER_PLAY=Xt,i.PLAYER_PREFIX=p,i.PLAYER_SEEK=Ht,i.PLAYER_SEEK_BY=jt,i.PLAYER_SEEK_TO=Ut,i.PLAYER_TOGGLE_PLAY=Kt,i.STATE_CHANGED=St,i.STATE_PREFIX=W,i.TIMELINE_BOUNDING_CHANGED=pr,i.TIMELINE_FIT=hr,i.TIMELINE_PREFIX=x,i.TIMELINE_SCALE_CHANGED=fr,i.TIMELINE_SCALE_PREFIX=F,i.TRACKS_CHANGED=Tt,i.TRACK_ITEMS_CHANGED=It,i.TRACK_ITEMS_PREFIX=Q,i.TRACK_PREFIX=q,i.dispatch=vt,i.filter=pt,i.subject=bt,Object.defineProperty(i,Symbol.toStringTag,{value:"Module"})});
`):"",this.name="UnsubscriptionError",this.errors=t}});function C(n,r){if(n){var t=n.indexOf(r);0<=t&&n.splice(t,1)}}var T=function(){function n(r){this.initialTeardown=r,this.closed=!1,this._parentage=null,this._finalizers=null}return n.prototype.unsubscribe=function(){var r,t,e,o,c;if(!this.closed){this.closed=!0;var s=this._parentage;if(s)if(this._parentage=null,Array.isArray(s))try{for(var u=P(s),a=u.next();!a.done;a=u.next()){var _=a.value;_.remove(this)}}catch(E){r={error:E}}finally{try{a&&!a.done&&(t=u.return)&&t.call(u)}finally{if(r)throw r.error}}else s.remove(this);var b=this.initialTeardown;if(f(b))try{b()}catch(E){c=E instanceof Y?E.errors:[E]}var tt=this._finalizers;if(tt){this._finalizers=null;try{for(var L=P(tt),y=L.next();!y.done;y=L.next()){var br=y.value;try{j(br)}catch(E){c=c??[],E instanceof Y?c=m(m([],O(c)),O(E.errors)):c.push(E)}}}catch(E){e={error:E}}finally{try{y&&!y.done&&(o=L.return)&&o.call(L)}finally{if(e)throw e.error}}}if(c)throw new Y(c)}},n.prototype.add=function(r){var t;if(r&&r!==this)if(this.closed)j(r);else{if(r instanceof n){if(r.closed||r._hasParent(this))return;r._addParent(this)}(this._finalizers=(t=this._finalizers)!==null&&t!==void 0?t:[]).push(r)}},n.prototype._hasParent=function(r){var t=this._parentage;return t===r||Array.isArray(t)&&t.includes(r)},n.prototype._addParent=function(r){var t=this._parentage;this._parentage=Array.isArray(t)?(t.push(r),t):t?[t,r]:r},n.prototype._removeParent=function(r){var t=this._parentage;t===r?this._parentage=null:Array.isArray(t)&&C(t,r)},n.prototype.remove=function(r){var t=this._finalizers;t&&C(t,r),r instanceof n&&r._removeParent(this)},n.EMPTY=function(){var r=new n;return r.closed=!0,r}(),n}(),H=T.EMPTY;function U(n){return n instanceof T||n&&"closed"in n&&f(n.remove)&&f(n.add)&&f(n.unsubscribe)}function j(n){f(n)?n():n.unsubscribe()}var K={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},V={setTimeout:function(n,r){for(var t=[],e=2;e<arguments.length;e++)t[e-2]=arguments[e];return setTimeout.apply(void 0,m([n,r],O(t)))},clearTimeout:function(n){var r=V.delegate;return((r==null?void 0:r.clearTimeout)||clearTimeout)(n)},delegate:void 0};function rt(n){V.setTimeout(function(){throw n})}function k(){}function I(n){n()}var N=function(n){v(r,n);function r(t){var e=n.call(this)||this;return e.isStopped=!1,t?(e.destination=t,U(t)&&t.add(e)):e.destination=ot,e}return r.create=function(t,e,o){return new g(t,e,o)},r.prototype.next=function(t){this.isStopped||this._next(t)},r.prototype.error=function(t){this.isStopped||(this.isStopped=!0,this._error(t))},r.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},r.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,n.prototype.unsubscribe.call(this),this.destination=null)},r.prototype._next=function(t){this.destination.next(t)},r.prototype._error=function(t){try{this.destination.error(t)}finally{this.unsubscribe()}},r.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},r}(T),nt=Function.prototype.bind;function $(n,r){return nt.call(n,r)}var et=function(){function n(r){this.partialObserver=r}return n.prototype.next=function(r){var t=this.partialObserver;if(t.next)try{t.next(r)}catch(e){S(e)}},n.prototype.error=function(r){var t=this.partialObserver;if(t.error)try{t.error(r)}catch(e){S(e)}else S(r)},n.prototype.complete=function(){var r=this.partialObserver;if(r.complete)try{r.complete()}catch(t){S(t)}},n}(),g=function(n){v(r,n);function r(t,e,o){var c=n.call(this)||this,s;if(f(t)||!t)s={next:t??void 0,error:e??void 0,complete:o??void 0};else{var u;c&&K.useDeprecatedNextContext?(u=Object.create(t),u.unsubscribe=function(){return c.unsubscribe()},s={next:t.next&&$(t.next,u),error:t.error&&$(t.error,u),complete:t.complete&&$(t.complete,u)}):s=t}return c.destination=new et(s),c}return r}(N);function S(n){rt(n)}function it(n){throw n}var ot={closed:!0,next:k,error:it,complete:k},ct=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}();function st(n){return n}function ut(n){return n.length===0?st:n.length===1?n[0]:function(t){return n.reduce(function(e,o){return o(e)},t)}}var B=function(){function n(r){r&&(this._subscribe=r)}return n.prototype.lift=function(r){var t=new n;return t.source=this,t.operator=r,t},n.prototype.subscribe=function(r,t,e){var o=this,c=lt(r)?r:new g(r,t,e);return I(function(){var s=o,u=s.operator,a=s.source;c.add(u?u.call(c,a):a?o._subscribe(c):o._trySubscribe(c))}),c},n.prototype._trySubscribe=function(r){try{return this._subscribe(r)}catch(t){r.error(t)}},n.prototype.forEach=function(r,t){var e=this;return t=z(t),new t(function(o,c){var s=new g({next:function(u){try{r(u)}catch(a){c(a),s.unsubscribe()}},error:c,complete:o});e.subscribe(s)})},n.prototype._subscribe=function(r){var t;return(t=this.source)===null||t===void 0?void 0:t.subscribe(r)},n.prototype[ct]=function(){return this},n.prototype.pipe=function(){for(var r=[],t=0;t<arguments.length;t++)r[t]=arguments[t];return ut(r)(this)},n.prototype.toPromise=function(r){var t=this;return r=z(r),new r(function(e,o){var c;t.subscribe(function(s){return c=s},function(s){return o(s)},function(){return e(c)})})},n.create=function(r){return new n(r)},n}();function z(n){var r;return(r=n??K.Promise)!==null&&r!==void 0?r:Promise}function at(n){return n&&f(n.next)&&f(n.error)&&f(n.complete)}function lt(n){return n&&n instanceof N||at(n)&&U(n)}function Et(n){return f(n==null?void 0:n.lift)}function ft(n){return function(r){if(Et(r))return r.lift(function(t){try{return n(t,this)}catch(e){this.error(e)}});throw new TypeError("Unable to lift unknown Observable type")}}function ht(n,r,t,e,o){return new _t(n,r,t,e,o)}var _t=function(n){v(r,n);function r(t,e,o,c,s,u){var a=n.call(this,t)||this;return a.onFinalize=s,a.shouldUnsubscribe=u,a._next=e?function(_){try{e(_)}catch(b){t.error(b)}}:n.prototype._next,a._error=c?function(_){try{c(_)}catch(b){t.error(b)}finally{this.unsubscribe()}}:n.prototype._error,a._complete=o?function(){try{o()}catch(_){t.error(_)}finally{this.unsubscribe()}}:n.prototype._complete,a}return r.prototype.unsubscribe=function(){var t;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){var e=this.closed;n.prototype.unsubscribe.call(this),!e&&((t=this.onFinalize)===null||t===void 0||t.call(this))}},r}(N),dt=X(function(n){return function(){n(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),J=function(n){v(r,n);function r(){var t=n.call(this)||this;return t.closed=!1,t.currentObservers=null,t.observers=[],t.isStopped=!1,t.hasError=!1,t.thrownError=null,t}return r.prototype.lift=function(t){var e=new Z(this,this);return e.operator=t,e},r.prototype._throwIfClosed=function(){if(this.closed)throw new dt},r.prototype.next=function(t){var e=this;I(function(){var o,c;if(e._throwIfClosed(),!e.isStopped){e.currentObservers||(e.currentObservers=Array.from(e.observers));try{for(var s=P(e.currentObservers),u=s.next();!u.done;u=s.next()){var a=u.value;a.next(t)}}catch(_){o={error:_}}finally{try{u&&!u.done&&(c=s.return)&&c.call(s)}finally{if(o)throw o.error}}}})},r.prototype.error=function(t){var e=this;I(function(){if(e._throwIfClosed(),!e.isStopped){e.hasError=e.isStopped=!0,e.thrownError=t;for(var o=e.observers;o.length;)o.shift().error(t)}})},r.prototype.complete=function(){var t=this;I(function(){if(t._throwIfClosed(),!t.isStopped){t.isStopped=!0;for(var e=t.observers;e.length;)e.shift().complete()}})},r.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(r.prototype,"observed",{get:function(){var t;return((t=this.observers)===null||t===void 0?void 0:t.length)>0},enumerable:!1,configurable:!0}),r.prototype._trySubscribe=function(t){return this._throwIfClosed(),n.prototype._trySubscribe.call(this,t)},r.prototype._subscribe=function(t){return this._throwIfClosed(),this._checkFinalizedStatuses(t),this._innerSubscribe(t)},r.prototype._innerSubscribe=function(t){var e=this,o=this,c=o.hasError,s=o.isStopped,u=o.observers;return c||s?H:(this.currentObservers=null,u.push(t),new T(function(){e.currentObservers=null,C(u,t)}))},r.prototype._checkFinalizedStatuses=function(t){var e=this,o=e.hasError,c=e.thrownError,s=e.isStopped;o?t.error(c):s&&t.complete()},r.prototype.asObservable=function(){var t=new B;return t.source=this,t},r.create=function(t,e){return new Z(t,e)},r}(B),Z=function(n){v(r,n);function r(t,e){var o=n.call(this)||this;return o.destination=t,o.source=e,o}return r.prototype.next=function(t){var e,o;(o=(e=this.destination)===null||e===void 0?void 0:e.next)===null||o===void 0||o.call(e,t)},r.prototype.error=function(t){var e,o;(o=(e=this.destination)===null||e===void 0?void 0:e.error)===null||o===void 0||o.call(e,t)},r.prototype.complete=function(){var t,e;(e=(t=this.destination)===null||t===void 0?void 0:t.complete)===null||e===void 0||e.call(t)},r.prototype._subscribe=function(t){var e,o;return(o=(e=this.source)===null||e===void 0?void 0:e.subscribe(t))!==null&&o!==void 0?o:H},r}(J);function pt(n,r){return ft(function(t,e){var o=0;t.subscribe(ht(e,function(c){return n.call(r,c,o++)&&e.next(c)}))})}let w=null;function At(){if(!w){const n=new J;w={subject:n,dispatch:(t,e)=>n.next({key:t,value:e})}}return w}const{subject:bt,dispatch:vt}=At(),yt="add",q="track",Q="trackItems",Tt=`${q}:changed`,It=`${Q}:changed`,W="state",St=`${W}:changed`,F="design",Dt=`${F}:load`,Rt=`${F}:resize`,h="add",Lt=`${h}:text`,Pt=`${h}:video`,Ot=`${h}:audio`,mt=`${h}:placeholder`,Yt=`${h}:image`,Ct=`${h}:mask`,Nt=`${h}:transition`,$t=`${h}:animation`,gt=`${h}:caption`,D="edit",wt=`${D}:object`,Ft=`${D}:text`,Mt=`${D}:shape`,Gt="enterEditMode",p="player",Xt=`${p}:play`,Ht=`${p}:pause`,Ut=`${p}:seek`,jt=`${p}:seekTo`,Kt=`${p}:seekBy`,Vt=`${p}:togglePlay`,A="active",kt=`${A}:set`,Bt=`${A}:delete`,zt=`${A}:paste`,Jt=`${A}:clone`,Zt=`${A}:split`,l="layer",qt=`${l}:locked`,Qt=`${l}:hidden`,Wt=`${l}:move`,xt=`${l}:select`,tr=`${l}:selection`,rr=`${l}:sendTo`,nr=`${l}:rename`,er=`${l}:editingName`,ir=`${l}:copy`,or=`${l}:paste`,cr=`${l}:clone`,sr=`${l}:split`,ur=`${l}:cut`,ar=`${l}:delete`,R="history",lr=`${R}:undo`,Er=`${R}:redo`,fr=`${R}:reset`,M="scale",hr=`${M}:changed`,_r=`${M}:fit`,G="drag",dr=`${G}:start`,pr=`${G}:end`,x="timeline",Ar=`${x}:boundingChanged`;i.ACTIVE_CLONE=Jt,i.ACTIVE_DELETE=Bt,i.ACTIVE_PASTE=zt,i.ACTIVE_PREFIX=A,i.ACTIVE_SET=kt,i.ACTIVE_SPLIT=Zt,i.ADD_ANIMATION=$t,i.ADD_AUDIO=Ot,i.ADD_CAPTION=gt,i.ADD_IMAGE=Yt,i.ADD_MASK=Ct,i.ADD_PLACEHOLDER=mt,i.ADD_PREFIX=h,i.ADD_SUFFIX=yt,i.ADD_TEXT=Lt,i.ADD_TRANSITION=Nt,i.ADD_VIDEO=Pt,i.DESIGN_LOAD=Dt,i.DESIGN_PREFIX=F,i.DESIGN_RESIZE=Rt,i.DRAG_END=pr,i.DRAG_PREFIX=G,i.DRAG_START=dr,i.EDIT_OBJECT=wt,i.EDIT_PREFIX=D,i.EDIT_SHAPE=Mt,i.EDIT_TEXT=Ft,i.ENTER_EDIT_MODE=Gt,i.HISTORY_PREFIX=R,i.HISTORY_REDO=Er,i.HISTORY_RESET=fr,i.HISTORY_UNDO=lr,i.LAYER_CLONE=cr,i.LAYER_COPY=ir,i.LAYER_CUT=ur,i.LAYER_DELETE=ar,i.LAYER_EDITING_NAME=er,i.LAYER_HIDDEN=Qt,i.LAYER_LOCKED=qt,i.LAYER_MOVE=Wt,i.LAYER_PASTE=or,i.LAYER_PREFIX=l,i.LAYER_RENAME=nr,i.LAYER_SELECT=xt,i.LAYER_SELECTION=tr,i.LAYER_SEND_TO=rr,i.LAYER_SPLIT=sr,i.PLAYER_PAUSE=Ht,i.PLAYER_PLAY=Xt,i.PLAYER_PREFIX=p,i.PLAYER_SEEK=Ut,i.PLAYER_SEEK_BY=Kt,i.PLAYER_SEEK_TO=jt,i.PLAYER_TOGGLE_PLAY=Vt,i.STATE_CHANGED=St,i.STATE_PREFIX=W,i.TIMELINE_BOUNDING_CHANGED=Ar,i.TIMELINE_FIT=_r,i.TIMELINE_PREFIX=x,i.TIMELINE_SCALE_CHANGED=hr,i.TIMELINE_SCALE_PREFIX=M,i.TRACKS_CHANGED=Tt,i.TRACK_ITEMS_CHANGED=It,i.TRACK_ITEMS_PREFIX=Q,i.TRACK_PREFIX=q,i.dispatch=vt,i.filter=pt,i.subject=bt,Object.defineProperty(i,Symbol.toStringTag,{value:"Module"})});
{
"name": "@designcombo/events",
"version": "0.1.19",
"version": "0.1.20",
"private": false,

@@ -5,0 +5,0 @@ "files": [

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc