@lionweb/class-core 0.6.13-beta.7 → 0.7.0-alpha.2

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 (92) hide show
  1. package/CHANGELOG.md +6 -1
  2. package/README.md +1 -1
  3. package/dist/{lionCore_builtins.g.d.ts → LionCore_builtins.g.d.ts} +1 -1
  4. package/dist/{lionCore_builtins.g.d.ts.map → LionCore_builtins.g.d.ts.map} +1 -1
  5. package/dist/{lionCore_builtins.g.js → LionCore_builtins.g.js} +1 -1
  6. package/dist/{lionCore_builtins.g.js.map → LionCore_builtins.g.js.map} +1 -1
  7. package/dist/base-types.d.ts +5 -4
  8. package/dist/base-types.d.ts.map +1 -1
  9. package/dist/base-types.js +1 -1
  10. package/dist/base-types.js.map +1 -1
  11. package/dist/convenience.d.ts +4 -3
  12. package/dist/convenience.d.ts.map +1 -1
  13. package/dist/convenience.js.map +1 -1
  14. package/dist/deltas/appliers.d.ts.map +1 -1
  15. package/dist/deltas/appliers.js +1 -1
  16. package/dist/deltas/appliers.js.map +1 -1
  17. package/dist/deltas/handlers.d.ts.map +1 -1
  18. package/dist/deltas/handlers.js.map +1 -1
  19. package/dist/deltas/inverters.d.ts.map +1 -1
  20. package/dist/deltas/inverters.js.map +1 -1
  21. package/dist/deltas/serialization/base.d.ts +1 -1
  22. package/dist/deltas/serialization/base.d.ts.map +1 -1
  23. package/dist/deltas/serialization/serializer-helpers.d.ts.map +1 -1
  24. package/dist/deltas/serialization/serializer-helpers.js.map +1 -1
  25. package/dist/deltas/serialization/types.g.d.ts +58 -57
  26. package/dist/deltas/serialization/types.g.d.ts.map +1 -1
  27. package/dist/deserializer.d.ts +5 -4
  28. package/dist/deserializer.d.ts.map +1 -1
  29. package/dist/deserializer.js +4 -3
  30. package/dist/deserializer.js.map +1 -1
  31. package/dist/duplicator.d.ts.map +1 -1
  32. package/dist/duplicator.js +3 -2
  33. package/dist/duplicator.js.map +1 -1
  34. package/dist/id-mapping.d.ts +5 -4
  35. package/dist/id-mapping.d.ts.map +1 -1
  36. package/dist/id-mapping.js +2 -3
  37. package/dist/id-mapping.js.map +1 -1
  38. package/dist/index.d.ts +2 -2
  39. package/dist/index.d.ts.map +1 -1
  40. package/dist/index.js +2 -2
  41. package/dist/index.js.map +1 -1
  42. package/dist/linking.d.ts +3 -2
  43. package/dist/linking.d.ts.map +1 -1
  44. package/dist/serializer.d.ts +2 -2
  45. package/dist/serializer.d.ts.map +1 -1
  46. package/dist/serializer.js +1 -1
  47. package/dist/serializer.js.map +1 -1
  48. package/dist/textualizer.d.ts.map +1 -1
  49. package/dist/textualizer.js +2 -2
  50. package/dist/textualizer.js.map +1 -1
  51. package/dist/value-managers/annotations.d.ts.map +1 -1
  52. package/dist/value-managers/annotations.js +1 -1
  53. package/dist/value-managers/annotations.js.map +1 -1
  54. package/dist/value-managers/base.d.ts.map +1 -1
  55. package/dist/value-managers/base.js.map +1 -1
  56. package/dist/value-managers/containments.d.ts.map +1 -1
  57. package/dist/value-managers/containments.js +1 -1
  58. package/dist/value-managers/containments.js.map +1 -1
  59. package/dist/value-managers/properties.d.ts +1 -1
  60. package/dist/value-managers/properties.d.ts.map +1 -1
  61. package/dist/value-managers/properties.js +1 -1
  62. package/dist/value-managers/properties.js.map +1 -1
  63. package/dist/value-managers/references.d.ts.map +1 -1
  64. package/dist/value-managers/references.js +1 -1
  65. package/dist/value-managers/references.js.map +1 -1
  66. package/package.json +11 -7
  67. package/src/{lionCore_builtins.g.ts → LionCore_builtins.g.ts} +5 -2
  68. package/src/base-types.ts +6 -6
  69. package/src/convenience.ts +6 -9
  70. package/src/deltas/appliers.ts +11 -11
  71. package/src/deltas/handlers.ts +2 -2
  72. package/src/deltas/inverters.ts +2 -2
  73. package/src/deltas/serialization/base.ts +2 -2
  74. package/src/deltas/serialization/serializer-helpers.ts +3 -4
  75. package/src/deltas/serialization/types.g.ts +58 -57
  76. package/src/deserializer.ts +12 -14
  77. package/src/duplicator.ts +8 -6
  78. package/src/id-mapping.ts +8 -9
  79. package/src/index.ts +3 -3
  80. package/src/linking.ts +4 -3
  81. package/src/serializer.ts +3 -3
  82. package/src/textualizer.ts +4 -5
  83. package/src/value-managers/annotations.ts +4 -4
  84. package/src/value-managers/base.ts +3 -3
  85. package/src/value-managers/containments.ts +6 -12
  86. package/src/value-managers/properties.ts +5 -5
  87. package/src/value-managers/references.ts +6 -11
  88. package/dist/utils.d.ts +0 -6
  89. package/dist/utils.d.ts.map +0 -1
  90. package/dist/utils.js +0 -22
  91. package/dist/utils.js.map +0 -1
  92. package/src/utils.ts +0 -24
package/src/serializer.ts CHANGED
@@ -25,9 +25,9 @@ import {
25
25
  Property,
26
26
  Reference,
27
27
  serializeNodes
28
- } from "@lionweb/core";
28
+ } from "@lionweb/core"
29
29
 
30
- import {INodeBase, LionCore_builtinsBase} from "./index.js";
30
+ import { INodeBase, LionCore_builtinsBase } from "./index.js"
31
31
 
32
32
 
33
33
  /**
@@ -79,7 +79,7 @@ export const nodeBaseReader: ExtractionFacade<INodeBase> = {
79
79
  };
80
80
 
81
81
  /**
82
- * @return a serialization of the given nodes (of type {@link INodeBase}) as a {@link SerializationChunk}.
82
+ * @return a serialization of the given nodes (of type {@link INodeBase}) as a {@link LionWebJsonChunk}.
83
83
  */
84
84
  export const serializeNodeBases = (nodes: INodeBase[]) =>
85
85
  serializeNodes(nodes, nodeBaseReader, { serializeEmptyFeatures: false });
@@ -15,12 +15,11 @@
15
15
  // SPDX-FileCopyrightText: 2025 TRUMPF Laser SE and other contributors
16
16
  // SPDX-License-Identifier: Apache-2.0
17
17
 
18
- import {asString, indentWith, Template} from "littoral-templates"
19
- import {allFeaturesOf, Containment, Feature, Property, Reference, unresolved} from "@lionweb/core"
20
-
21
- import {INodeBase} from "./base-types.js";
22
- import {LionCore_builtinsBase} from "./lionCore_builtins.g.js";
18
+ import { allFeaturesOf, Containment, Feature, Property, Reference, unresolved } from "@lionweb/core"
19
+ import { asString, indentWith, Template } from "littoral-templates"
23
20
 
21
+ import { INodeBase } from "./base-types.js"
22
+ import { LionCore_builtinsBase } from "./LionCore_builtins.g.js"
24
23
 
25
24
  const indent = indentWith(" ")(1)
26
25
 
@@ -15,17 +15,17 @@
15
15
  // SPDX-FileCopyrightText: 2025 TRUMPF Laser SE and other contributors
16
16
  // SPDX-License-Identifier: Apache-2.0
17
17
 
18
- import {action, observable} from "mobx";
18
+ import { action, observable } from "mobx"
19
19
 
20
- import {INodeBase, removeFromParent} from "../base-types.js";
21
- import {checkIndex, ValueManager} from "./base.js";
20
+ import { INodeBase, removeFromParent } from "../base-types.js"
22
21
  import {
23
22
  AnnotationAddedDelta,
24
23
  AnnotationDeletedDelta,
25
24
  AnnotationMovedFromOtherParentDelta,
26
25
  AnnotationMovedInSameParentDelta,
27
26
  AnnotationReplacedDelta
28
- } from "../deltas/index.js";
27
+ } from "../deltas/index.js"
28
+ import { checkIndex, ValueManager } from "./base.js"
29
29
 
30
30
 
31
31
  /**
@@ -15,9 +15,9 @@
15
15
  // SPDX-FileCopyrightText: 2025 TRUMPF Laser SE and other contributors
16
16
  // SPDX-License-Identifier: Apache-2.0
17
17
 
18
- import {Feature, featureMetaType, Link} from "@lionweb/core";
19
- import {INodeBase} from "../base-types.js";
20
- import {IDelta} from "../deltas/index.js";
18
+ import { Feature, featureMetaType, Link } from "@lionweb/core"
19
+ import { INodeBase } from "../base-types.js"
20
+ import { IDelta } from "../deltas/index.js"
21
21
 
22
22
 
23
23
  /**
@@ -15,18 +15,12 @@
15
15
  // SPDX-FileCopyrightText: 2025 TRUMPF Laser SE and other contributors
16
16
  // SPDX-License-Identifier: Apache-2.0
17
17
 
18
- import {Containment} from "@lionweb/core";
19
- import {action, observable} from "mobx";
20
-
21
- import {INodeBase, removeFromParent} from "../base-types.js";
22
- import {checkIndex, FeatureValueManager} from "./base.js";
23
- import {
24
- ChildAddedDelta,
25
- ChildDeletedDelta,
26
- ChildMovedDelta,
27
- ChildMovedInSameContainmentDelta,
28
- ChildReplacedDelta
29
- } from "../deltas/index.js";
18
+ import { Containment } from "@lionweb/core"
19
+ import { action, observable } from "mobx"
20
+
21
+ import { INodeBase, removeFromParent } from "../base-types.js"
22
+ import { ChildAddedDelta, ChildDeletedDelta, ChildMovedDelta, ChildMovedInSameContainmentDelta, ChildReplacedDelta } from "../deltas/index.js"
23
+ import { checkIndex, FeatureValueManager } from "./base.js"
30
24
 
31
25
 
32
26
  /**
@@ -15,12 +15,12 @@
15
15
  // SPDX-FileCopyrightText: 2025 TRUMPF Laser SE and other contributors
16
16
  // SPDX-License-Identifier: Apache-2.0
17
17
 
18
- import {Property} from "@lionweb/core";
19
- import {action, IObservableValue, observable} from "mobx";
18
+ import { Property } from "@lionweb/core"
19
+ import { action, IObservableValue, observable } from "mobx"
20
+ import { INodeBase } from "../base-types.js"
21
+ import { PropertyAddedDelta, PropertyChangedDelta, PropertyDeletedDelta } from "../deltas/index.js"
20
22
 
21
- import {FeatureValueManager} from "./base.js";
22
- import {INodeBase} from "../base-types.js";
23
- import {PropertyAddedDelta, PropertyChangedDelta, PropertyDeletedDelta} from "../deltas/index.js";
23
+ import { FeatureValueManager } from "./base.js"
24
24
 
25
25
 
26
26
  /**
@@ -15,17 +15,12 @@
15
15
  // SPDX-FileCopyrightText: 2025 TRUMPF Laser SE and other contributors
16
16
  // SPDX-License-Identifier: Apache-2.0
17
17
 
18
- import {Reference, SingleRef} from "@lionweb/core";
19
- import {action, observable} from "mobx";
20
-
21
- import {INodeBase} from "../base-types.js";
22
- import {checkIndex, FeatureValueManager} from "./base.js";
23
- import {
24
- ReferenceAddedDelta,
25
- ReferenceDeletedDelta,
26
- ReferenceMovedInSameReferenceDelta,
27
- ReferenceReplacedDelta
28
- } from "../deltas/index.js";
18
+ import { Reference, SingleRef } from "@lionweb/core"
19
+ import { action, observable } from "mobx"
20
+
21
+ import { INodeBase } from "../base-types.js"
22
+ import { ReferenceAddedDelta, ReferenceDeletedDelta, ReferenceMovedInSameReferenceDelta, ReferenceReplacedDelta } from "../deltas/index.js"
23
+ import { checkIndex, FeatureValueManager } from "./base.js"
29
24
 
30
25
 
31
26
  /**
package/dist/utils.d.ts DELETED
@@ -1,6 +0,0 @@
1
- /**
2
- * @return a view of the given array of items with duplicates removed.
3
- * *Note*: verbatim copy of a function in @lionweb/utilities/utils/array.ts!
4
- */
5
- export declare const uniquesAmong: <T>(ts: T[]) => T[];
6
- //# sourceMappingURL=utils.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../src/utils.ts"],"names":[],"mappings":"AAiBA;;;GAGG;AACH,eAAO,MAAM,YAAY,qBACL,CAAA"}
package/dist/utils.js DELETED
@@ -1,22 +0,0 @@
1
- // Copyright 2025 TRUMPF Laser SE and other contributors
2
- //
3
- // Licensed under the Apache License, Version 2.0 (the "License")
4
- // you may not use this file except in compliance with the License.
5
- // You may obtain a copy of the License at
6
- //
7
- // http://www.apache.org/licenses/LICENSE-2.0
8
- //
9
- // Unless required by applicable law or agreed to in writing, software
10
- // distributed under the License is distributed on an "AS IS" BASIS,
11
- // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
- // See the License for the specific language governing permissions and
13
- // limitations under the License.
14
- //
15
- // SPDX-FileCopyrightText: 2025 TRUMPF Laser SE and other contributors
16
- // SPDX-License-Identifier: Apache-2.0
17
- /**
18
- * @return a view of the given array of items with duplicates removed.
19
- * *Note*: verbatim copy of a function in @lionweb/utilities/utils/array.ts!
20
- */
21
- export const uniquesAmong = (ts) => [...new Set(ts)];
22
- //# sourceMappingURL=utils.js.map
package/dist/utils.js.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"file":"utils.js","sourceRoot":"","sources":["../src/utils.ts"],"names":[],"mappings":"AAAA,wDAAwD;AACxD,EAAE;AACF,iEAAiE;AACjE,mEAAmE;AACnE,0CAA0C;AAC1C,EAAE;AACF,iDAAiD;AACjD,EAAE;AACF,sEAAsE;AACtE,oEAAoE;AACpE,2EAA2E;AAC3E,sEAAsE;AACtE,iCAAiC;AACjC,EAAE;AACF,sEAAsE;AACtE,sCAAsC;AAEtC;;;GAGG;AACH,MAAM,CAAC,MAAM,YAAY,GAAG,CAAI,EAAO,EAAO,EAAE,CAC5C,CAAC,GAAG,IAAI,GAAG,CAAC,EAAE,CAAC,CAAC,CAAA"}
package/src/utils.ts DELETED
@@ -1,24 +0,0 @@
1
- // Copyright 2025 TRUMPF Laser SE and other contributors
2
- //
3
- // Licensed under the Apache License, Version 2.0 (the "License")
4
- // you may not use this file except in compliance with the License.
5
- // You may obtain a copy of the License at
6
- //
7
- // http://www.apache.org/licenses/LICENSE-2.0
8
- //
9
- // Unless required by applicable law or agreed to in writing, software
10
- // distributed under the License is distributed on an "AS IS" BASIS,
11
- // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
- // See the License for the specific language governing permissions and
13
- // limitations under the License.
14
- //
15
- // SPDX-FileCopyrightText: 2025 TRUMPF Laser SE and other contributors
16
- // SPDX-License-Identifier: Apache-2.0
17
-
18
- /**
19
- * @return a view of the given array of items with duplicates removed.
20
- * *Note*: verbatim copy of a function in @lionweb/utilities/utils/array.ts!
21
- */
22
- export const uniquesAmong = <T>(ts: T[]): T[] =>
23
- [...new Set(ts)]
24
-