@asyra/factory 0.2.5 → 0.5.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.
Files changed (105) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +13 -1
  3. package/dist/data-transact.d.ts +182 -6
  4. package/dist/data-transact.d.ts.map +1 -1
  5. package/dist/data-transact.js +3157 -57
  6. package/dist/data-transact.js.map +1 -1
  7. package/dist/factory.d.ts +58 -8
  8. package/dist/factory.d.ts.map +1 -1
  9. package/dist/factory.js +273 -13
  10. package/dist/factory.js.map +1 -1
  11. package/dist/index.d.ts +22 -1
  12. package/dist/index.d.ts.map +1 -1
  13. package/dist/index.js +21 -2
  14. package/dist/index.js.map +1 -1
  15. package/dist/mutation-batch.d.ts +28 -0
  16. package/dist/mutation-batch.d.ts.map +1 -0
  17. package/dist/mutation-batch.js +11 -0
  18. package/dist/mutation-batch.js.map +1 -0
  19. package/dist/shared-data-channel.d.ts +29 -0
  20. package/dist/shared-data-channel.d.ts.map +1 -0
  21. package/dist/shared-data-channel.js +147 -0
  22. package/dist/shared-data-channel.js.map +1 -0
  23. package/dist/shared-delivery.d.ts +76 -0
  24. package/dist/shared-delivery.d.ts.map +1 -0
  25. package/dist/shared-delivery.js +4 -0
  26. package/dist/shared-delivery.js.map +1 -0
  27. package/dist/subscribes.d.ts +1 -1
  28. package/dist/subscribes.d.ts.map +1 -1
  29. package/dist/subscribes.js +3 -19
  30. package/dist/subscribes.js.map +1 -1
  31. package/dist/transaction.d.ts +31 -0
  32. package/dist/transaction.d.ts.map +1 -0
  33. package/dist/transaction.js +17 -0
  34. package/dist/transaction.js.map +1 -0
  35. package/dist/value-clone.d.ts +7 -0
  36. package/dist/value-clone.d.ts.map +1 -0
  37. package/dist/value-clone.js +76 -0
  38. package/dist/value-clone.js.map +1 -0
  39. package/package.json +22 -5
  40. package/.turbo/turbo-test$colon$ci.log +0 -66
  41. package/.turbo/turbo-test$colon$local.log +0 -25
  42. package/.turbo/turbo-test.log +0 -357
  43. package/CHANGELOG.md +0 -46
  44. package/coverage/base.css +0 -224
  45. package/coverage/block-navigation.js +0 -87
  46. package/coverage/clover.xml +0 -228
  47. package/coverage/coverage-final.json +0 -3214
  48. package/coverage/favicon.png +0 -0
  49. package/coverage/index.html +0 -131
  50. package/coverage/prettify.css +0 -1
  51. package/coverage/prettify.js +0 -2
  52. package/coverage/sort-arrow-sprite.png +0 -0
  53. package/coverage/sorter.js +0 -196
  54. package/coverage/src/data-transact.ts.html +0 -589
  55. package/coverage/src/data.ts.html +0 -94
  56. package/coverage/src/factory.ts.html +0 -205
  57. package/coverage/src/index.html +0 -176
  58. package/coverage/src/index.ts.html +0 -106
  59. package/coverage/src/registry/constants.ts.html +0 -88
  60. package/coverage/src/registry/index.html +0 -176
  61. package/coverage/src/registry/index.ts.html +0 -94
  62. package/coverage/src/registry/props.ts.html +0 -112
  63. package/coverage/src/registry/scene-tree.ts.html +0 -115
  64. package/coverage/src/registry/selection.ts.html +0 -124
  65. package/coverage/src/subscribes.ts.html +0 -178
  66. package/dist/__tests__/factory.test.d.ts +0 -2
  67. package/dist/__tests__/factory.test.d.ts.map +0 -1
  68. package/dist/__tests__/factory.test.js +0 -44
  69. package/dist/__tests__/factory.test.js.map +0 -1
  70. package/dist/data.d.ts +0 -4
  71. package/dist/data.d.ts.map +0 -1
  72. package/dist/data.js +0 -4
  73. package/dist/data.js.map +0 -1
  74. package/dist/registry/constants.d.ts +0 -2
  75. package/dist/registry/constants.d.ts.map +0 -1
  76. package/dist/registry/constants.js +0 -2
  77. package/dist/registry/constants.js.map +0 -1
  78. package/dist/registry/index.d.ts +0 -4
  79. package/dist/registry/index.d.ts.map +0 -1
  80. package/dist/registry/index.js +0 -4
  81. package/dist/registry/index.js.map +0 -1
  82. package/dist/registry/props.d.ts +0 -5
  83. package/dist/registry/props.d.ts.map +0 -1
  84. package/dist/registry/props.js +0 -8
  85. package/dist/registry/props.js.map +0 -1
  86. package/dist/registry/scene-tree.d.ts +0 -5
  87. package/dist/registry/scene-tree.d.ts.map +0 -1
  88. package/dist/registry/scene-tree.js +0 -8
  89. package/dist/registry/scene-tree.js.map +0 -1
  90. package/dist/registry/selection.d.ts +0 -5
  91. package/dist/registry/selection.d.ts.map +0 -1
  92. package/dist/registry/selection.js +0 -8
  93. package/dist/registry/selection.js.map +0 -1
  94. package/src/__tests__/factory.test.ts +0 -54
  95. package/src/data-transact.ts +0 -168
  96. package/src/data.ts +0 -3
  97. package/src/factory.ts +0 -40
  98. package/src/index.ts +0 -7
  99. package/src/registry/constants.ts +0 -1
  100. package/src/registry/index.ts +0 -3
  101. package/src/registry/props.ts +0 -9
  102. package/src/registry/scene-tree.ts +0 -10
  103. package/src/registry/selection.ts +0 -13
  104. package/src/subscribes.ts +0 -31
  105. package/tsconfig.json +0 -17
@@ -1,87 +0,0 @@
1
- /* eslint-disable */
2
- var jumpToCode = (function init() {
3
- // Classes of code we would like to highlight in the file view
4
- var missingCoverageClasses = ['.cbranch-no', '.cstat-no', '.fstat-no'];
5
-
6
- // Elements to highlight in the file listing view
7
- var fileListingElements = ['td.pct.low'];
8
-
9
- // We don't want to select elements that are direct descendants of another match
10
- var notSelector = ':not(' + missingCoverageClasses.join('):not(') + ') > '; // becomes `:not(a):not(b) > `
11
-
12
- // Selecter that finds elements on the page to which we can jump
13
- var selector =
14
- fileListingElements.join(', ') +
15
- ', ' +
16
- notSelector +
17
- missingCoverageClasses.join(', ' + notSelector); // becomes `:not(a):not(b) > a, :not(a):not(b) > b`
18
-
19
- // The NodeList of matching elements
20
- var missingCoverageElements = document.querySelectorAll(selector);
21
-
22
- var currentIndex;
23
-
24
- function toggleClass(index) {
25
- missingCoverageElements
26
- .item(currentIndex)
27
- .classList.remove('highlighted');
28
- missingCoverageElements.item(index).classList.add('highlighted');
29
- }
30
-
31
- function makeCurrent(index) {
32
- toggleClass(index);
33
- currentIndex = index;
34
- missingCoverageElements.item(index).scrollIntoView({
35
- behavior: 'smooth',
36
- block: 'center',
37
- inline: 'center'
38
- });
39
- }
40
-
41
- function goToPrevious() {
42
- var nextIndex = 0;
43
- if (typeof currentIndex !== 'number' || currentIndex === 0) {
44
- nextIndex = missingCoverageElements.length - 1;
45
- } else if (missingCoverageElements.length > 1) {
46
- nextIndex = currentIndex - 1;
47
- }
48
-
49
- makeCurrent(nextIndex);
50
- }
51
-
52
- function goToNext() {
53
- var nextIndex = 0;
54
-
55
- if (
56
- typeof currentIndex === 'number' &&
57
- currentIndex < missingCoverageElements.length - 1
58
- ) {
59
- nextIndex = currentIndex + 1;
60
- }
61
-
62
- makeCurrent(nextIndex);
63
- }
64
-
65
- return function jump(event) {
66
- if (
67
- document.getElementById('fileSearch') === document.activeElement &&
68
- document.activeElement != null
69
- ) {
70
- // if we're currently focused on the search input, we don't want to navigate
71
- return;
72
- }
73
-
74
- switch (event.which) {
75
- case 78: // n
76
- case 74: // j
77
- goToNext();
78
- break;
79
- case 66: // b
80
- case 75: // k
81
- case 80: // p
82
- goToPrevious();
83
- break;
84
- }
85
- };
86
- })();
87
- window.addEventListener('keydown', jumpToCode);
@@ -1,228 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <coverage generated="1768935037328" clover="3.2.0">
3
- <project timestamp="1768935037328" name="All files">
4
- <metrics statements="186" coveredstatements="98" conditionals="20" coveredconditionals="12" methods="18" coveredmethods="12" elements="224" coveredelements="122" complexity="0" loc="186" ncloc="186" packages="2" files="10" classes="10"/>
5
- <package name="src">
6
- <metrics statements="162" coveredstatements="74" conditionals="20" coveredconditionals="12" methods="18" coveredmethods="12"/>
7
- <file name="data-transact.ts" path="/Users/asa/Desktop/workspace/asyra/packages/factory/src/data-transact.ts">
8
- <metrics statements="112" coveredstatements="47" conditionals="12" coveredconditionals="6" methods="9" coveredmethods="6"/>
9
- <line num="1" count="1" type="stmt"/>
10
- <line num="7" count="1" type="stmt"/>
11
- <line num="14" count="1" type="stmt"/>
12
- <line num="19" count="1" type="stmt"/>
13
- <line num="29" count="1" type="stmt"/>
14
- <line num="30" count="1" type="stmt"/>
15
- <line num="31" count="1" type="stmt"/>
16
- <line num="32" count="1" type="stmt"/>
17
- <line num="33" count="1" type="stmt"/>
18
- <line num="35" count="6" type="cond" truecount="1" falsecount="0"/>
19
- <line num="36" count="6" type="stmt"/>
20
- <line num="37" count="6" type="stmt"/>
21
- <line num="38" count="6" type="stmt"/>
22
- <line num="39" count="6" type="stmt"/>
23
- <line num="40" count="6" type="stmt"/>
24
- <line num="41" count="6" type="stmt"/>
25
- <line num="43" count="1" type="cond" truecount="1" falsecount="0"/>
26
- <line num="44" count="1" type="stmt"/>
27
- <line num="45" count="1" type="cond" truecount="0" falsecount="1"/>
28
- <line num="46" count="0" type="stmt"/>
29
- <line num="47" count="0" type="stmt"/>
30
- <line num="49" count="1" type="stmt"/>
31
- <line num="50" count="1" type="stmt"/>
32
- <line num="52" count="1" type="cond" truecount="1" falsecount="0"/>
33
- <line num="53" count="1" type="stmt"/>
34
- <line num="54" count="1" type="stmt"/>
35
- <line num="55" count="1" type="cond" truecount="0" falsecount="1"/>
36
- <line num="57" count="0" type="stmt"/>
37
- <line num="58" count="0" type="stmt"/>
38
- <line num="59" count="0" type="stmt"/>
39
- <line num="60" count="0" type="stmt"/>
40
- <line num="61" count="0" type="stmt"/>
41
- <line num="62" count="0" type="stmt"/>
42
- <line num="64" count="1" type="cond" truecount="0" falsecount="1"/>
43
- <line num="65" count="0" type="stmt"/>
44
- <line num="66" count="0" type="stmt"/>
45
- <line num="68" count="0" type="stmt"/>
46
- <line num="69" count="0" type="stmt"/>
47
- <line num="70" count="0" type="stmt"/>
48
- <line num="71" count="0" type="stmt"/>
49
- <line num="72" count="1" type="stmt"/>
50
- <line num="74" count="1" type="cond" truecount="1" falsecount="0"/>
51
- <line num="75" count="1" type="stmt"/>
52
- <line num="76" count="1" type="stmt"/>
53
- <line num="77" count="1" type="cond" truecount="0" falsecount="1"/>
54
- <line num="79" count="0" type="stmt"/>
55
- <line num="81" count="0" type="stmt"/>
56
- <line num="82" count="0" type="stmt"/>
57
- <line num="83" count="0" type="stmt"/>
58
- <line num="84" count="0" type="stmt"/>
59
- <line num="85" count="1" type="stmt"/>
60
- <line num="87" count="1" type="stmt"/>
61
- <line num="89" count="0" type="stmt"/>
62
- <line num="90" count="0" type="stmt"/>
63
- <line num="91" count="0" type="stmt"/>
64
- <line num="92" count="0" type="stmt"/>
65
- <line num="93" count="0" type="stmt"/>
66
- <line num="94" count="0" type="stmt"/>
67
- <line num="96" count="1" type="cond" truecount="1" falsecount="0"/>
68
- <line num="97" count="1" type="stmt"/>
69
- <line num="98" count="1" type="stmt"/>
70
- <line num="99" count="1" type="cond" truecount="0" falsecount="1"/>
71
- <line num="101" count="0" type="stmt"/>
72
- <line num="103" count="0" type="stmt"/>
73
- <line num="104" count="0" type="stmt"/>
74
- <line num="106" count="0" type="stmt"/>
75
- <line num="107" count="0" type="stmt"/>
76
- <line num="108" count="0" type="stmt"/>
77
- <line num="109" count="0" type="stmt"/>
78
- <line num="111" count="0" type="stmt"/>
79
- <line num="112" count="0" type="stmt"/>
80
- <line num="113" count="0" type="stmt"/>
81
- <line num="114" count="0" type="stmt"/>
82
- <line num="115" count="0" type="stmt"/>
83
- <line num="116" count="0" type="stmt"/>
84
- <line num="117" count="0" type="stmt"/>
85
- <line num="118" count="0" type="stmt"/>
86
- <line num="119" count="0" type="stmt"/>
87
- <line num="121" count="0" type="stmt"/>
88
- <line num="122" count="0" type="stmt"/>
89
- <line num="124" count="0" type="stmt"/>
90
- <line num="126" count="0" type="stmt"/>
91
- <line num="128" count="0" type="stmt"/>
92
- <line num="130" count="0" type="stmt"/>
93
- <line num="131" count="0" type="stmt"/>
94
- <line num="132" count="1" type="stmt"/>
95
- <line num="134" count="1" type="cond" truecount="1" falsecount="0"/>
96
- <line num="135" count="1" type="stmt"/>
97
- <line num="136" count="1" type="stmt"/>
98
- <line num="137" count="1" type="cond" truecount="0" falsecount="1"/>
99
- <line num="139" count="0" type="stmt"/>
100
- <line num="141" count="0" type="stmt"/>
101
- <line num="142" count="0" type="stmt"/>
102
- <line num="144" count="0" type="stmt"/>
103
- <line num="145" count="0" type="stmt"/>
104
- <line num="146" count="0" type="stmt"/>
105
- <line num="147" count="0" type="stmt"/>
106
- <line num="148" count="0" type="stmt"/>
107
- <line num="150" count="0" type="stmt"/>
108
- <line num="151" count="0" type="stmt"/>
109
- <line num="153" count="0" type="stmt"/>
110
- <line num="155" count="0" type="stmt"/>
111
- <line num="156" count="0" type="stmt"/>
112
- <line num="157" count="1" type="stmt"/>
113
- <line num="159" count="1" type="stmt"/>
114
- <line num="160" count="0" type="stmt"/>
115
- <line num="161" count="0" type="stmt"/>
116
- <line num="163" count="1" type="stmt"/>
117
- <line num="164" count="0" type="stmt"/>
118
- <line num="165" count="0" type="stmt"/>
119
- <line num="166" count="1" type="stmt"/>
120
- <line num="168" count="1" type="stmt"/>
121
- </file>
122
- <file name="data.ts" path="/Users/asa/Desktop/workspace/asyra/packages/factory/src/data.ts">
123
- <metrics statements="3" coveredstatements="3" conditionals="0" coveredconditionals="0" methods="0" coveredmethods="0"/>
124
- <line num="1" count="1" type="stmt"/>
125
- <line num="2" count="1" type="stmt"/>
126
- <line num="3" count="1" type="stmt"/>
127
- </file>
128
- <file name="factory.ts" path="/Users/asa/Desktop/workspace/asyra/packages/factory/src/factory.ts">
129
- <metrics statements="26" coveredstatements="24" conditionals="6" coveredconditionals="6" methods="7" coveredmethods="6"/>
130
- <line num="1" count="1" type="stmt"/>
131
- <line num="7" count="6" type="cond" truecount="1" falsecount="0"/>
132
- <line num="8" count="6" type="stmt"/>
133
- <line num="9" count="6" type="stmt"/>
134
- <line num="10" count="6" type="stmt"/>
135
- <line num="12" count="1" type="cond" truecount="1" falsecount="0"/>
136
- <line num="13" count="1" type="stmt"/>
137
- <line num="14" count="1" type="stmt"/>
138
- <line num="16" count="1" type="cond" truecount="1" falsecount="0"/>
139
- <line num="17" count="1" type="stmt"/>
140
- <line num="18" count="1" type="stmt"/>
141
- <line num="20" count="1" type="cond" truecount="1" falsecount="0"/>
142
- <line num="21" count="1" type="stmt"/>
143
- <line num="22" count="1" type="stmt"/>
144
- <line num="24" count="1" type="cond" truecount="1" falsecount="0"/>
145
- <line num="25" count="1" type="stmt"/>
146
- <line num="26" count="1" type="stmt"/>
147
- <line num="28" count="1" type="cond" truecount="1" falsecount="0"/>
148
- <line num="29" count="1" type="stmt"/>
149
- <line num="30" count="1" type="stmt"/>
150
- <line num="32" count="1" type="stmt"/>
151
- <line num="33" count="0" type="stmt"/>
152
- <line num="34" count="0" type="stmt"/>
153
- <line num="35" count="1" type="stmt"/>
154
- <line num="37" count="1" type="stmt"/>
155
- <line num="38" count="1" type="stmt"/>
156
- </file>
157
- <file name="index.ts" path="/Users/asa/Desktop/workspace/asyra/packages/factory/src/index.ts">
158
- <metrics statements="3" coveredstatements="0" conditionals="1" coveredconditionals="0" methods="1" coveredmethods="0"/>
159
- <line num="1" count="0" type="cond" truecount="0" falsecount="1"/>
160
- <line num="4" count="0" type="stmt"/>
161
- <line num="6" count="0" type="stmt"/>
162
- </file>
163
- <file name="subscribes.ts" path="/Users/asa/Desktop/workspace/asyra/packages/factory/src/subscribes.ts">
164
- <metrics statements="18" coveredstatements="0" conditionals="1" coveredconditionals="0" methods="1" coveredmethods="0"/>
165
- <line num="1" count="0" type="cond" truecount="0" falsecount="1"/>
166
- <line num="11" count="0" type="stmt"/>
167
- <line num="12" count="0" type="stmt"/>
168
- <line num="13" count="0" type="stmt"/>
169
- <line num="14" count="0" type="stmt"/>
170
- <line num="16" count="0" type="stmt"/>
171
- <line num="17" count="0" type="stmt"/>
172
- <line num="18" count="0" type="stmt"/>
173
- <line num="20" count="0" type="stmt"/>
174
- <line num="21" count="0" type="stmt"/>
175
- <line num="22" count="0" type="stmt"/>
176
- <line num="24" count="0" type="stmt"/>
177
- <line num="25" count="0" type="stmt"/>
178
- <line num="26" count="0" type="stmt"/>
179
- <line num="28" count="0" type="stmt"/>
180
- <line num="29" count="0" type="stmt"/>
181
- <line num="30" count="0" type="stmt"/>
182
- <line num="31" count="0" type="stmt"/>
183
- </file>
184
- </package>
185
- <package name="src.registry">
186
- <metrics statements="24" coveredstatements="24" conditionals="0" coveredconditionals="0" methods="0" coveredmethods="0"/>
187
- <file name="constants.ts" path="/Users/asa/Desktop/workspace/asyra/packages/factory/src/registry/constants.ts">
188
- <metrics statements="1" coveredstatements="1" conditionals="0" coveredconditionals="0" methods="0" coveredmethods="0"/>
189
- <line num="1" count="1" type="stmt"/>
190
- </file>
191
- <file name="index.ts" path="/Users/asa/Desktop/workspace/asyra/packages/factory/src/registry/index.ts">
192
- <metrics statements="3" coveredstatements="3" conditionals="0" coveredconditionals="0" methods="0" coveredmethods="0"/>
193
- <line num="1" count="1" type="stmt"/>
194
- <line num="2" count="1" type="stmt"/>
195
- <line num="3" count="1" type="stmt"/>
196
- </file>
197
- <file name="props.ts" path="/Users/asa/Desktop/workspace/asyra/packages/factory/src/registry/props.ts">
198
- <metrics statements="5" coveredstatements="5" conditionals="0" coveredconditionals="0" methods="0" coveredmethods="0"/>
199
- <line num="1" count="1" type="stmt"/>
200
- <line num="6" count="1" type="stmt"/>
201
- <line num="7" count="1" type="stmt"/>
202
- <line num="8" count="1" type="stmt"/>
203
- <line num="9" count="1" type="stmt"/>
204
- </file>
205
- <file name="scene-tree.ts" path="/Users/asa/Desktop/workspace/asyra/packages/factory/src/registry/scene-tree.ts">
206
- <metrics statements="6" coveredstatements="6" conditionals="0" coveredconditionals="0" methods="0" coveredmethods="0"/>
207
- <line num="1" count="1" type="stmt"/>
208
- <line num="6" count="1" type="stmt"/>
209
- <line num="7" count="1" type="stmt"/>
210
- <line num="8" count="1" type="stmt"/>
211
- <line num="9" count="1" type="stmt"/>
212
- <line num="10" count="1" type="stmt"/>
213
- </file>
214
- <file name="selection.ts" path="/Users/asa/Desktop/workspace/asyra/packages/factory/src/registry/selection.ts">
215
- <metrics statements="9" coveredstatements="9" conditionals="0" coveredconditionals="0" methods="0" coveredmethods="0"/>
216
- <line num="1" count="1" type="stmt"/>
217
- <line num="6" count="1" type="stmt"/>
218
- <line num="7" count="1" type="stmt"/>
219
- <line num="8" count="1" type="stmt"/>
220
- <line num="9" count="1" type="stmt"/>
221
- <line num="10" count="1" type="stmt"/>
222
- <line num="11" count="1" type="stmt"/>
223
- <line num="12" count="1" type="stmt"/>
224
- <line num="13" count="1" type="stmt"/>
225
- </file>
226
- </package>
227
- </project>
228
- </coverage>