@_unit/unit 1.0.9 → 1.0.10

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 (108) hide show
  1. package/build/web.js +8 -8
  2. package/lib/API.d.ts +2 -0
  3. package/lib/API.js +1 -0
  4. package/lib/API.js.map +1 -1
  5. package/lib/Class/Graph/index.d.ts +2 -3
  6. package/lib/Class/Graph/index.js +161 -95
  7. package/lib/Class/Graph/index.js.map +1 -1
  8. package/lib/Class/Graph/moveSubgraph.js +2 -4
  9. package/lib/Class/Graph/moveSubgraph.js.map +1 -1
  10. package/lib/boot/index.js +2 -2
  11. package/lib/boot/index.js.map +1 -1
  12. package/lib/buildIdSetFromBundle.js +4 -3
  13. package/lib/buildIdSetFromBundle.js.map +1 -1
  14. package/lib/bundle.js +19 -1
  15. package/lib/bundle.js.map +1 -1
  16. package/lib/client/cache.js.map +1 -1
  17. package/lib/client/component.js +9 -2
  18. package/lib/client/component.js.map +1 -1
  19. package/lib/client/event/wheel.js.map +1 -1
  20. package/lib/client/platform/node/boot.js +1 -1
  21. package/lib/client/platform/node/boot.js.map +1 -1
  22. package/lib/client/platform/web/api/document.js +3 -0
  23. package/lib/client/platform/web/api/document.js.map +1 -1
  24. package/lib/client/platform/web/api/file.js +92 -0
  25. package/lib/client/platform/web/api/file.js.map +1 -1
  26. package/lib/client/platform/web/boot.d.ts +2 -2
  27. package/lib/client/platform/web/boot.js +6 -6
  28. package/lib/client/platform/web/boot.js.map +1 -1
  29. package/lib/client/platform/web/render.d.ts +1 -0
  30. package/lib/client/platform/web/render.js +11 -1
  31. package/lib/client/platform/web/render.js.map +1 -1
  32. package/lib/client/render/renderBundle.d.ts +2 -1
  33. package/lib/client/render/renderBundle.js +3 -4
  34. package/lib/client/render/renderBundle.js.map +1 -1
  35. package/lib/host/none.d.ts +1 -1
  36. package/lib/host/none.js +4 -3
  37. package/lib/host/none.js.map +1 -1
  38. package/lib/spec/escape.js.map +1 -1
  39. package/lib/spec/type.js +4 -4
  40. package/lib/spec/type.js.map +1 -1
  41. package/lib/spec/util.d.ts +1 -1
  42. package/lib/spec/util.js +19 -5
  43. package/lib/spec/util.js.map +1 -1
  44. package/lib/spec/validate.js +1 -0
  45. package/lib/spec/validate.js.map +1 -1
  46. package/lib/start.d.ts +2 -2
  47. package/lib/start.js +2 -1
  48. package/lib/start.js.map +1 -1
  49. package/lib/system/_classes.d.ts +10 -2
  50. package/lib/system/_classes.js +10 -2
  51. package/lib/system/_classes.js.map +1 -1
  52. package/lib/system/_ids.d.ts +5 -0
  53. package/lib/system/_ids.js +15 -10
  54. package/lib/system/_ids.js.map +1 -1
  55. package/lib/system/_specs.js +1 -1
  56. package/lib/system/_specs.js.map +1 -1
  57. package/lib/system/f/unit/HasInput/index.d.ts +15 -0
  58. package/lib/system/f/unit/HasInput/index.js +24 -0
  59. package/lib/system/f/unit/HasInput/index.js.map +1 -0
  60. package/lib/system/globalComponent.d.ts +1 -0
  61. package/lib/system/globalComponent.js +16 -1
  62. package/lib/system/globalComponent.js.map +1 -1
  63. package/lib/system/platform/api/observer/IntersectionObserver/index.d.ts +19 -0
  64. package/lib/system/platform/api/observer/IntersectionObserver/index.js +60 -0
  65. package/lib/system/platform/api/observer/IntersectionObserver/index.js.map +1 -0
  66. package/lib/system/platform/api/observer/SizeObserver/index.js +1 -0
  67. package/lib/system/platform/api/observer/SizeObserver/index.js.map +1 -1
  68. package/lib/system/platform/component/app/Editor/Component.d.ts +3 -1
  69. package/lib/system/platform/component/app/Editor/Component.js +186 -93
  70. package/lib/system/platform/component/app/Editor/Component.js.map +1 -1
  71. package/lib/system/platform/component/app/GUI/Component.js +2 -2
  72. package/lib/system/platform/meta/{Child → component/Child}/index.d.ts +5 -5
  73. package/lib/system/platform/meta/{Child → component/Child}/index.js +2 -2
  74. package/lib/system/platform/meta/component/Child/index.js.map +1 -0
  75. package/lib/system/platform/meta/component/Children/index.d.ts +16 -0
  76. package/lib/system/platform/meta/component/Children/index.js +70 -0
  77. package/lib/system/platform/meta/component/Children/index.js.map +1 -0
  78. package/lib/system/platform/meta/{ParentChild → component/ParentChild}/index.d.ts +5 -5
  79. package/lib/system/platform/meta/{ParentChild → component/ParentChild}/index.js +2 -2
  80. package/lib/system/platform/meta/component/ParentChild/index.js.map +1 -0
  81. package/lib/system/platform/method/array/{Push → Length0}/index.d.ts +5 -4
  82. package/lib/system/platform/method/array/{Push → Length0}/index.js +16 -9
  83. package/lib/system/platform/method/array/Length0/index.js.map +1 -0
  84. package/lib/system/platform/method/process/NewGraph/index.js +1 -1
  85. package/lib/system/platform/method/process/NewGraph/index.js.map +1 -1
  86. package/lib/types/global/IIntersectionObserver.d.ts +7 -0
  87. package/lib/types/global/{IHTTPServer.js → IIntersectionObserver.js} +1 -1
  88. package/lib/types/global/IIntersectionObserver.js.map +1 -0
  89. package/lib/types/index.d.ts +4 -1
  90. package/package-lock.json +4 -4
  91. package/package.json +3 -2
  92. package/public/_worker.js +10 -86061
  93. package/public/build.json +1 -1
  94. package/public/index.js +1163 -88931
  95. package/lib/ObjectWaiter.d.ts +0 -7
  96. package/lib/ObjectWaiter.js +0 -43
  97. package/lib/ObjectWaiter.js.map +0 -1
  98. package/lib/system/platform/api/http/HTTPServer/index.d.ts +0 -31
  99. package/lib/system/platform/api/http/HTTPServer/index.js +0 -31
  100. package/lib/system/platform/api/http/HTTPServer/index.js.map +0 -1
  101. package/lib/system/platform/api/media/image/BlobToBitmap/index.d.ts +0 -18
  102. package/lib/system/platform/api/media/image/BlobToBitmap/index.js +0 -63
  103. package/lib/system/platform/api/media/image/BlobToBitmap/index.js.map +0 -1
  104. package/lib/system/platform/meta/Child/index.js.map +0 -1
  105. package/lib/system/platform/meta/ParentChild/index.js.map +0 -1
  106. package/lib/system/platform/method/array/Push/index.js.map +0 -1
  107. package/lib/types/global/IHTTPServer.d.ts +0 -9
  108. package/lib/types/global/IHTTPServer.js.map +0 -1
@@ -258,7 +258,7 @@ class GUI extends element_1.Element {
258
258
  value: '#ffffff',
259
259
  style: {
260
260
  position: 'relative',
261
- height: '26px',
261
+ height: '42px',
262
262
  width: '100%',
263
263
  borderWidth: '1px',
264
264
  borderStyle: 'solid',
@@ -530,7 +530,7 @@ class GUI extends element_1.Element {
530
530
  component: this._color_pallete,
531
531
  active: false,
532
532
  width: 60,
533
- height: 56,
533
+ height: 72,
534
534
  state: { y: cy - 17.5 },
535
535
  },
536
536
  file: {
@@ -1,8 +1,8 @@
1
- import { Element_ } from '../../../../Class/Element';
2
- import { Done } from '../../../../Class/Functional/Done';
3
- import { Semifunctional } from '../../../../Class/Semifunctional';
4
- import { System } from '../../../../system';
5
- import { C } from '../../../../types/interface/C';
1
+ import { Element_ } from '../../../../../Class/Element';
2
+ import { Done } from '../../../../../Class/Functional/Done';
3
+ import { Semifunctional } from '../../../../../Class/Semifunctional';
4
+ import { System } from '../../../../../system';
5
+ import { C } from '../../../../../types/interface/C';
6
6
  export interface I {
7
7
  parent: Element_;
8
8
  at: number;
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- const Semifunctional_1 = require("../../../../Class/Semifunctional");
4
- const _ids_1 = require("../../../_ids");
3
+ const Semifunctional_1 = require("../../../../../Class/Semifunctional");
4
+ const _ids_1 = require("../../../../_ids");
5
5
  class Child extends Semifunctional_1.Semifunctional {
6
6
  constructor(system) {
7
7
  super({
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"src/","sources":["system/platform/meta/component/Child/index.ts"],"names":[],"mappings":";;AAEA,wEAAoE;AAIpE,2CAA2C;AAY3C,MAAqB,KAAM,SAAQ,+BAAoB;IACrD,YAAY,MAAc;QACxB,KAAK,CACH;YACE,EAAE,EAAE,CAAC,QAAQ,EAAE,IAAI,CAAC;YACpB,EAAE,EAAE,CAAC,OAAO,CAAC;YACb,CAAC,EAAE,CAAC,MAAM,CAAC;SACZ,EACD;YACE,KAAK,EAAE;gBACL,MAAM,EAAE;oBACN,G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CAAC;CACF;AA1ED,wBA0EC"}
@@ -0,0 +1,16 @@
1
+ import { Element_ } from '../../../../../Class/Element';
2
+ import { Done } from '../../../../../Class/Functional/Done';
3
+ import { Semifunctional } from '../../../../../Class/Semifunctional';
4
+ import { System } from '../../../../../system';
5
+ import { A } from '../../../../../types/interface/A';
6
+ import { C } from '../../../../../types/interface/C';
7
+ export interface I {
8
+ parent: Element_;
9
+ }
10
+ export interface O {
11
+ children: A<C>;
12
+ }
13
+ export default class Children extends Semifunctional<I, O> {
14
+ constructor(system: System);
15
+ f({ parent }: I, done: Done<O>): void;
16
+ }
@@ -0,0 +1,70 @@
1
+ "use strict";
2
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
+ return new (P || (P = Promise))(function (resolve, reject) {
5
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
9
+ });
10
+ };
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ const _1 = require("../../../../../Class/$");
13
+ const Semifunctional_1 = require("../../../../../Class/Semifunctional");
14
+ const MethodNotImplementedError_1 = require("../../../../../exception/MethodNotImplementedError");
15
+ const _ids_1 = require("../../../../_ids");
16
+ class Children extends Semifunctional_1.Semifunctional {
17
+ constructor(system) {
18
+ super({
19
+ fi: ['parent'],
20
+ fo: ['children'],
21
+ i: [],
22
+ }, {
23
+ input: {
24
+ parent: {
25
+ ref: true,
26
+ },
27
+ },
28
+ output: {
29
+ children: {
30
+ ref: true,
31
+ },
32
+ },
33
+ }, system, _ids_1.ID_CHILDREN);
34
+ }
35
+ f({ parent }, done) {
36
+ const _children = parent.refChildren();
37
+ const children = new (class Chidren_ extends _1.$ {
38
+ append(a) {
39
+ return __awaiter(this, void 0, void 0, function* () {
40
+ throw new MethodNotImplementedError_1.MethodNotImplementedError();
41
+ });
42
+ }
43
+ put(i, data) {
44
+ return __awaiter(this, void 0, void 0, function* () {
45
+ throw new MethodNotImplementedError_1.MethodNotImplementedError();
46
+ });
47
+ }
48
+ at(i) {
49
+ return __awaiter(this, void 0, void 0, function* () {
50
+ throw new MethodNotImplementedError_1.MethodNotImplementedError();
51
+ });
52
+ }
53
+ length() {
54
+ return __awaiter(this, void 0, void 0, function* () {
55
+ return _children.length;
56
+ });
57
+ }
58
+ indexOf(a) {
59
+ return __awaiter(this, void 0, void 0, function* () {
60
+ throw new MethodNotImplementedError_1.MethodNotImplementedError();
61
+ });
62
+ }
63
+ })(this.__system);
64
+ done({
65
+ children,
66
+ });
67
+ }
68
+ }
69
+ exports.default = Children;
70
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"src/","sources":["system/platform/meta/component/Children/index.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,6CAA0C;AAG1C,wEAAoE;AACpE,kGAA8F;AAI9F,2CAA8C;AAU9C,MAAqB,QAAS,SAAQ,+BAAoB;IACxD,YAAY,MAAc;QACxB,KAAK,CACH;YACE,EAAE,EAAE,CAAC,QAAQ,CAAC;YACd,EAAE,EAAE,CAAC,UAAU,CAAC;YAChB,CAAC,EAAE,EAAE;SACN,EACD;YACE,KAAK,EAAE;gBACL,MAAM,EAAE;oBACN,GAAG,EAAE,IAAI;iBACV;aACF;YACD,MAAM,EAAE;gBACN,QAAQ,EAAE;oBACR,GAAG,EAAE,IAAI;iBACV;aACF;SACF,EACD,MAAM,EACN,kBAAW,CACZ,CAAA;IACH,CAAC;IAED,CAAC,CAAC,EAAE,MAAM,EAAK,EAAE,IAAa;QAC5B,MAAM,SAAS,GAAG,MAAM,CAAC,WAAW,EAAE,CAAA;QAEtC,MAAM,QAAQ,GAAG,IAAI,CAAC,MAAM,QAAS,SAAQ,IAAC;YACtC,MAAM,CAAC,CAAM;;oBACjB,MAAM,IAAI,qDAAyB,EAAE,CAAA;gBACvC,CAAC;aAAA;YAEK,GAAG,CAAC,CAAS,EAAE,IAAS;;oBAC5B,MAAM,IAAI,qDAAyB,EAAE,CAAA;gBACvC,CAAC;aAAA;YAEK,EAAE,CAAC,CAAS;;oBAChB,MAAM,IAAI,qDAAyB,EAAE,CAAA;gBACvC,CAAC;aAAA;YAEK,MAAM;;oBACV,OAAO,SAAS,CAAC,MAAM,CAAA;gBACzB,CAAC;aAAA;YAEK,OAAO,CAAC,CAAM;;oBAClB,MAAM,IAAI,qDAAyB,EAAE,CAAA;gBACvC,CAAC;aAAA;SACF,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAA;QAEjB,IAAI,CAAC;YACH,QAAQ;SACT,CAAC,CAAA;IACJ,CAAC;CACF;AAtDD,2BAsDC"}
@@ -1,8 +1,8 @@
1
- import { Element_ } from '../../../../Class/Element';
2
- import { Done } from '../../../../Class/Functional/Done';
3
- import { Semifunctional } from '../../../../Class/Semifunctional';
4
- import { System } from '../../../../system';
5
- import { C } from '../../../../types/interface/C';
1
+ import { Element_ } from '../../../../../Class/Element';
2
+ import { Done } from '../../../../../Class/Functional/Done';
3
+ import { Semifunctional } from '../../../../../Class/Semifunctional';
4
+ import { System } from '../../../../../system';
5
+ import { C } from '../../../../../types/interface/C';
6
6
  export interface I {
7
7
  parent: Element_;
8
8
  at: number;
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- const Semifunctional_1 = require("../../../../Class/Semifunctional");
4
- const _ids_1 = require("../../../_ids");
3
+ const Semifunctional_1 = require("../../../../../Class/Semifunctional");
4
+ const _ids_1 = require("../../../../_ids");
5
5
  class ParentChild extends Semifunctional_1.Semifunctional {
6
6
  constructor(system) {
7
7
  super({
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"src/","sources":["system/platform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E,wBAAwB,CAAC,CAAA;QAC1E,CAAC,CAAA;QAED,IAAI,CAAC;YACH,KAAK;SACN,CAAC,CAAA;IACJ,CAAC;IAED,mBAAmB,CAAC,IAAY;QAC9B,yBAAyB;QACzB,IAAI,CAAC,MAAM,EAAE,CAAA;QAEb,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,CAAA;QACtB,IAAI;IACN,CAAC;CACF;AApED,8BAoEC"}
@@ -3,12 +3,13 @@ import { Done } from '../../../../../Class/Functional/Done';
3
3
  import { System } from '../../../../../system';
4
4
  import { A } from '../../../../../types/interface/A';
5
5
  export interface I<T> {
6
- 'a[]': A;
7
- a: T;
6
+ a: A;
7
+ any: any;
8
8
  }
9
9
  export interface O<T> {
10
+ length: number;
10
11
  }
11
- export default class Push<T> extends Functional<I<T>, O<T>> {
12
+ export default class Length1<T> extends Functional<I<T>, O<T>> {
12
13
  constructor(system: System);
13
- f({ 'a[]': _a, a }: I<T>, done: Done<O<T>>): Promise<void>;
14
+ f({ a }: I<T>, done: Done<O<T>>): Promise<void>;
14
15
  }
@@ -11,25 +11,32 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
12
  const Functional_1 = require("../../../../../Class/Functional");
13
13
  const _ids_1 = require("../../../../_ids");
14
- class Push extends Functional_1.Functional {
14
+ class Length1 extends Functional_1.Functional {
15
15
  constructor(system) {
16
16
  super({
17
- i: ['a[]', 'a'],
18
- o: [],
17
+ i: ['a', 'any'],
18
+ o: ['length'],
19
19
  }, {
20
20
  input: {
21
- 'a[]': {
21
+ a: {
22
22
  ref: true,
23
23
  },
24
24
  },
25
- }, system, _ids_1.ID_APPEND);
25
+ }, system, _ids_1.ID_LENGTH_1);
26
26
  }
27
- f({ 'a[]': _a, a }, done) {
27
+ f({ a }, done) {
28
28
  return __awaiter(this, void 0, void 0, function* () {
29
- yield _a.append(a);
30
- done();
29
+ let length;
30
+ try {
31
+ length = yield a.length();
32
+ }
33
+ catch (err) {
34
+ done(undefined, err.message.toLowerCase());
35
+ return;
36
+ }
37
+ done({ length });
31
38
  });
32
39
  }
33
40
  }
34
- exports.default = Push;
41
+ exports.default = Length1;
35
42
  //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"src/","sources":["system/platform/method/array/Length0/index.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,gEAA4D;AAI5D,2CAA8C;AAW9C,MAAqB,OAAW,SAAQ,uBAAsB;IAC5D,YAAY,MAAc;QACxB,KAAK,CACH;YACE,CAAC,EAAE,CAAC,GAAG,EAAE,KAAK,CAAC;YACf,CAAC,EAAE,CAAC,QAAQ,CAAC;SACd,EACD;YACE,KAAK,EAAE;gBACL,CAAC,EAAE;oBACD,GAAG,EAAE,IAAI;iBACV;aACF;SACF,EACD,MAAM,EACN,kBAAW,CACZ,CAAA;IACH,CAAC;IAEK,CAAC,CAAC,EAAE,CAAC,EAAQ,EAAE,IAAgB;;YACnC,IAAI,MAAc,CAAA;YAElB,IAAI;gBACF,MAAM,GAAG,MAAM,CAAC,CAAC,MAAM,EAAE,CAAA;aAC1B;YAAC,OAAO,GAAG,EAAE;gBACZ,IAAI,CAAC,SAAS,EAAE,GAAG,CAAC,OAAO,CAAC,WAAW,EAAE,CAAC,CAAA;gBAE1C,OAAM;aACP;YAED,IAAI,CAAC,EAAE,MAAM,EAAE,CAAC,CAAA;QAClB,CAAC;KAAA;CACF;AAhCD,0BAgCC"}
@@ -21,7 +21,7 @@ class NewGraph extends Functional_1.Functional {
21
21
  const { unit, specs = {} } = graphClass.__bundle;
22
22
  this.__system.injectSpecs(specs);
23
23
  const spec = this.__system.getSpec(unit.id);
24
- const graph = (0, start_1.start)(this.__system, spec);
24
+ const graph = (0, start_1.start)(this.__system, { spec, specs });
25
25
  done({ graph });
26
26
  }
27
27
  }
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"src/","sources":["system/platform/method/process/NewGraph/index.ts"],"names":[],"mappings":";;AAAA,gEAA4D;AAG5D,gDAA4C;AAI5C,2CAA+C;AAU/C,MAAqB,QAAS,SAAQ,uBAAgB;IACpD,YAAY,MAAc;QACxB,KAAK,CACH;YACE,CAAC,EAAE,CAAC,OAAO,CAAC;YACZ,CAAC,EAAE,CAAC,OAAO,CAAC;SACb,EACD;YACE,MAAM,EAAE;gBACN,KAAK,EAAE;oBACL,GAAG,EAAE,IAAI;iBACV;aACF;SACF,EACD,MAAM,EACN,mBAAY,CACb,CAAA;IACH,CAAC;IAED,CAAC,CAAC,EAAE,KAAK,EAAE,UAAU,EAAK,EAAE,IAAa;QACvC,uCAAuC;QAEvC,MAAM,EAAE,IAAI,EAAE,KAAK,GAAG,EAAE,EAAE,GAAG,UAAU,CAAC,QAAQ,CAAA;QAEhD,IAAI,CAAC,QAAQ,CAAC,WAAW,CAAC,KAAK,CAAC,CAAA;QAEhC,MAAM,IAAI,GAAG,IAAI,CAAC,QAAQ,CAAC,OAAO,CAAC,IAAI,CAAC,EAAE,CAAc,CAAA;QAExD,MAAM,KAAK,GAAG,IAAA,aAAK,EAAC,IAAI,CAAC,QAAQ,EAAE,IAAI,CAAC,CAAA;QAExC,IAAI,CAAC,EAAE,KAAK,EAAE,CAAC,CAAA;IACjB,CAAC;CACF;AAhCD,2BAgCC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"src/","sources":["system/platform/method/process/NewGraph/index.ts"],"names":[],"mappings":";;AAAA,gEAA4D;AAG5D,gDAA4C;AAI5C,2CAA+C;AAU/C,MAAqB,QAAS,SAAQ,uBAAgB;IACpD,YAAY,MAAc;QACxB,KAAK,CACH;YACE,CAAC,EAAE,CAAC,OAAO,CAAC;YACZ,CAAC,EAAE,CAAC,OAAO,CAAC;SACb,EACD;YACE,MAAM,EAAE;gBACN,KAAK,EAAE;oBACL,GAAG,EAAE,IAAI;iBACV;aACF;SACF,EACD,MAAM,EACN,mBAAY,CACb,CAAA;IACH,CAAC;IAED,CAAC,CAAC,EAAE,KAAK,EAAE,UAAU,EAAK,EAAE,IAAa;QACvC,uCAAuC;QAEvC,MAAM,EAAE,IAAI,EAAE,KAAK,GAAG,EAAE,EAAE,GAAG,UAAU,CAAC,QAAQ,CAAA;QAEhD,IAAI,CAAC,QAAQ,CAAC,WAAW,CAAC,KAAK,CAAC,CAAA;QAEhC,MAAM,IAAI,GAAG,IAAI,CAAC,QAAQ,CAAC,OAAO,CAAC,IAAI,CAAC,EAAE,CAAc,CAAA;QAExD,MAAM,KAAK,GAAG,IAAA,aAAK,EAAC,IAAI,CAAC,QAAQ,EAAE,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC,CAAA;QAEnD,IAAI,CAAC,EAAE,KAAK,EAAE,CAAC,CAAA;IACjB,CAAC;CACF;AAhCD,2BAgCC"}
@@ -0,0 +1,7 @@
1
+ export interface IIntersectionObserverConstructor {
2
+ new (callback: IntersectionObserverCallback, opt: IntersectionObserverInit): IntersectionObserver;
3
+ }
4
+ export interface IIntersectionObserver {
5
+ observe(element: HTMLElement): any;
6
+ disconnect(): void;
7
+ }
@@ -1,3 +1,3 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=IHTTPServer.js.map
3
+ //# sourceMappingURL=IIntersectionObserver.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IIntersectionObserver.js","sourceRoot":"src/","sources":["types/global/IIntersectionObserver.ts"],"names":[],"mappings":""}
@@ -32,10 +32,11 @@ export type GraphExposedMergeSpec = PinSpecBase & {
32
32
  mergeId: string;
33
33
  unitId?: undefined;
34
34
  pinId?: undefined;
35
+ kind?: undefined;
35
36
  };
36
37
  export type GraphExposedLinkPinSpec = PinSpecBase & {
37
38
  unitId: string;
38
- type?: IO;
39
+ kind?: IO | undefined;
39
40
  pinId: string;
40
41
  mergeId?: undefined;
41
42
  };
@@ -43,6 +44,7 @@ export type GraphExposedEmptyPinSpec = PinSpecBase & {
43
44
  unitId?: undefined;
44
45
  pinId?: undefined;
45
46
  mergeId?: undefined;
47
+ kind?: undefined;
46
48
  };
47
49
  export type GraphSubPinSpec = GraphExposedMergeSpec | GraphExposedLinkPinSpec | GraphExposedEmptyPinSpec;
48
50
  export type GraphPinSpec = PinSpecBase & {
@@ -120,6 +122,7 @@ export type GraphUnitPinOuterSpec = {
120
122
  export type GraphPlugOuterSpec = {
121
123
  type: IO;
122
124
  pinId: string;
125
+ kind?: IO;
123
126
  subPinId: string;
124
127
  };
125
128
  export type GraphPlugSpec = GraphPlugOuterSpec & {
package/package-lock.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@_unit/unit",
3
- "version": "1.0.6",
3
+ "version": "1.0.9",
4
4
  "lockfileVersion": 2,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "@_unit/unit",
9
- "version": "1.0.6",
9
+ "version": "1.0.9",
10
10
  "license": "MIT",
11
11
  "dependencies": {
12
12
  "compression": "1.7.4",
@@ -36,9 +36,9 @@
36
36
  "@typescript-eslint/parser": "6.0.0",
37
37
  "@typescript-eslint/typescript-estree": "5.37.0",
38
38
  "esbuild": "0.17.5",
39
- "eslint": "^8.5.0",
39
+ "eslint": "8.5.0",
40
40
  "eslint-config-prettier": "8.3.0",
41
- "eslint-plugin-import": "^2.27.5",
41
+ "eslint-plugin-import": "2.27.5",
42
42
  "eslint-plugin-prettier": "3.4.0",
43
43
  "eslint-plugin-unused-imports": "3.0.0",
44
44
  "fs-extra": "10.1.0",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@_unit/unit",
3
- "version": "1.0.9",
3
+ "version": "1.0.10",
4
4
  "main": "lib/index.js",
5
5
  "bin": "./lib/server/index.js",
6
6
  "repository": "git@github.com:samuelmtimbo/unit.git",
@@ -37,7 +37,8 @@
37
37
  "build:sw": "ts-node -T src/script/build/sw.ts",
38
38
  "build:ext": "ts-node -T src/script/build/ext.ts",
39
39
  "lint": "eslint src --ext .ts",
40
- "format": "prettier --config .prettierrc 'src/**/*.ts' --write"
40
+ "format": "prettier --config .prettierrc 'src/**/*.ts' --write",
41
+ "prepublish": "run-s build lib"
41
42
  },
42
43
  "dependencies": {
43
44
  "compression": "1.7.4",