@emailmaker/extensions-sandbox 1.0.118-dev.0 → 1.1.44

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 (3) hide show
  1. package/README.md +3 -3
  2. package/index.js +0 -60
  3. package/package.json +1 -1
package/README.md CHANGED
@@ -57,10 +57,10 @@ npm run start:release
57
57
 
58
58
  ### Альтернатива: пример из репозитория
59
59
 
60
- [Готовый example](https://github.com/emailmaker/simple_plugin) можно клонировать для ознакомления; для новых плагинов предпочтительнее CLI-шаблон.
60
+ [Готовый example](https://github.com/emailmaker) можно клонировать для ознакомления; для новых плагинов предпочтительнее CLI-шаблон.
61
61
 
62
62
  ```bash
63
- git clone https://github.com/emailmaker/simple_plugin
63
+ git clone https://github.com/emailmaker
64
64
  cd simple_plugin
65
65
  npm install
66
66
  npm run start
@@ -1216,5 +1216,5 @@ pluginRegistry.add('MyPlugin', MyPlugin);
1216
1216
  - [React](https://github.com/facebook/react)
1217
1217
  - [TypeScript](https://github.com/microsoft/TypeScript)
1218
1218
  - [Ant Design](https://github.com/ant-design/ant-design)
1219
- - [Пример плагина](https://github.com/emailmaker/simple_plugin)
1219
+ - [Пример плагина](https://github.com/emailmaker)
1220
1220
 
package/index.js CHANGED
@@ -5,66 +5,6 @@ function e(e) {
5
5
  var t = e("SandboxApp"), n = e("IframePluginRegistry");
6
6
  //#endregion
7
7
  //#region iframe/js/extensions/api/src/index.ts
8
- (function(e) {
9
- if (!(!e || typeof e != "object")) {
10
- var t = e.__emailmaker__ ||= {}, n = t.__compat ||= {};
11
- n.host = n.host || null, n.packages = n.packages || {}, n.warned = n.warned || {}, n.normalizeVersion ||= function(e) {
12
- return String(e || "").split("-")[0] || "0.0.0";
13
- }, n.parseVersion ||= function(e) {
14
- var t = n.normalizeVersion(e).split(".");
15
- return {
16
- major: parseInt(t[0] || "0", 10),
17
- minor: parseInt(t[1] || "0", 10),
18
- patch: parseInt(t[2] || "0", 10)
19
- };
20
- }, n.compareVersions ||= function(e, t) {
21
- var r = n.parseVersion(e), i = n.parseVersion(t);
22
- return r.major === i.major ? r.minor === i.minor ? r.patch - i.patch : r.minor - i.minor : r.major - i.major;
23
- }, n.satisfies ||= function(e, t) {
24
- if (!t || t === "*" || t === "latest") return !0;
25
- var r = n.normalizeVersion(e), i = String(t || "").trim();
26
- if (!i) return !0;
27
- if (i.charAt(0) === "^") {
28
- var a = n.parseVersion(i.slice(1)), o = n.parseVersion(r);
29
- return n.compareVersions(r, i.slice(1)) < 0 ? !1 : a.major > 0 ? o.major === a.major : a.minor > 0 ? o.major === 0 && o.minor === a.minor : o.major === 0 && o.minor === 0 && o.patch === a.patch;
30
- }
31
- return n.normalizeVersion(r) === n.normalizeVersion(i);
32
- }, n.warnOnce ||= function(e, t, r) {
33
- n.warned[e] || (n.warned[e] = !0, console.warn("[compat]", t, r || ""));
34
- }, n.validateAll ||= function() {
35
- var e = n.host, t = n.packages || {};
36
- e && e.supports && Object.keys(t).forEach(function(r) {
37
- var i = t[r], a = e.supports[r];
38
- a && !n.satisfies(i.version, a) && n.warnOnce("host:" + r + ":" + i.version + ":" + a, "Host supports a different package version range.", {
39
- packageId: r,
40
- packageVersion: i.version,
41
- supportedRange: a,
42
- hostVersion: e.version
43
- });
44
- }), Object.keys(t).forEach(function(r) {
45
- var i = t[r], a = i.requires || {};
46
- Object.keys(a).forEach(function(o) {
47
- var s = a[o], c = o === "host" ? e && e.version : t[o] && t[o].version;
48
- c && (n.satisfies(c, s) || n.warnOnce(r + ":" + o + ":" + c + ":" + s, "Loaded package is outside the declared compatibility range.", {
49
- packageId: r,
50
- packageVersion: i.version,
51
- targetId: o,
52
- targetVersion: c,
53
- requiredRange: s
54
- }));
55
- });
56
- });
57
- }, n.registerHost ||= function(e) {
58
- n.host = e, n.validateAll();
59
- }, n.registerPackage ||= function(e) {
60
- n.packages[e.id] = e, n.validateAll();
61
- }, t.__compat.registerPackage({
62
- id: "extensions-sandbox",
63
- version: "1.0.118-dev.0",
64
- requires: { host: "^1.0.105" }
65
- });
66
- }
67
- })(typeof window < "u" ? window : typeof globalThis < "u" ? globalThis : void 0);
68
8
  function r() {
69
9
  return window.__sandbox__?.container;
70
10
  }
package/package.json CHANGED
@@ -5,5 +5,5 @@
5
5
  "main": "index.js",
6
6
  "types": "types.d.ts",
7
7
  "name": "@emailmaker/extensions-sandbox",
8
- "version": "1.0.118-dev.0"
8
+ "version": "1.1.44"
9
9
  }