@o3r/core 14.0.0-next.2 → 14.0.0-next.4

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 (331) hide show
  1. package/README.md +1 -1
  2. package/fesm2022/o3r-core.mjs.map +1 -1
  3. package/index.d.ts.map +1 -1
  4. package/migration.json +5 -0
  5. package/package.json +28 -25
  6. package/schematics/component/container/index.d.ts.map +1 -1
  7. package/schematics/component/container/index.js +22 -35
  8. package/schematics/component/container/schema.d.ts +2 -0
  9. package/schematics/component/container/schema.d.ts.map +1 -1
  10. package/schematics/component/container/schema.json +4 -0
  11. package/schematics/component/container/templates/index.ts.template +2 -2
  12. package/schematics/component/presenter/index.d.ts.map +1 -1
  13. package/schematics/component/presenter/index.js +10 -39
  14. package/schematics/component/presenter/schema.d.ts +2 -0
  15. package/schematics/component/presenter/schema.d.ts.map +1 -1
  16. package/schematics/component/presenter/schema.json +4 -0
  17. package/schematics/component/presenter/templates/index.ts.template +2 -2
  18. package/schematics/component/schema.d.ts +2 -0
  19. package/schematics/component/schema.d.ts.map +1 -1
  20. package/schematics/component/schema.json +4 -0
  21. package/schematics/component/templates/fixtures.ts.template +2 -2
  22. package/schematics/context-to-component/index.d.ts.map +1 -1
  23. package/schematics/context-to-component/index.js +8 -6
  24. package/schematics/ng-add/component-decorator/index.js +1 -1
  25. package/schematics/ng-add/index.d.ts.map +1 -1
  26. package/schematics/ng-add/index.js +0 -7
  27. package/schematics/ng-add-create/templates/schematics/ng-add/index.ts.template +1 -1
  28. package/schematics/ng-update/index.d.ts +4 -0
  29. package/schematics/ng-update/index.d.ts.map +1 -1
  30. package/schematics/ng-update/index.js +5 -1
  31. package/schematics/page/index.d.ts.map +1 -1
  32. package/schematics/page/index.js +11 -34
  33. package/schematics/page/schema.d.ts +2 -0
  34. package/schematics/page/schema.d.ts.map +1 -1
  35. package/schematics/page/schema.json +4 -0
  36. package/schematics/page/templates/index.ts.template +1 -1
  37. package/schematics/service/index.d.ts.map +1 -1
  38. package/schematics/service/index.js +14 -2
  39. package/schematics/service/schema.d.ts +4 -0
  40. package/schematics/service/schema.d.ts.map +1 -1
  41. package/schematics/service/schema.json +9 -0
  42. package/schematics/service/templates/base/__name__/__featureName__/{__name__.__featureName__.service.spec.ts.template → __name__-__featureName__.spec.ts.template} +1 -1
  43. package/schematics/service/templates/base/__name__/__featureName__/{__name__.__featureName__.service.ts.template → __name__-__featureName__.ts.template} +1 -1
  44. package/schematics/service/templates/base/__name__/__featureName__/index.ts.template +2 -2
  45. package/schematics/service/templates/jasmine-core/__name__/fixture/jasmine/index.ts.template +2 -2
  46. package/schematics/service/templates/jest/__name__/fixture/jest/index.ts.template +2 -2
  47. package/schematics/shared/presets/{all.preset.d.ts → all-preset.d.ts} +2 -2
  48. package/schematics/shared/presets/all-preset.d.ts.map +1 -0
  49. package/schematics/shared/presets/{all.preset.js → all-preset.js} +1 -1
  50. package/schematics/shared/presets/{basic.preset.d.ts → basic-preset.d.ts} +1 -1
  51. package/schematics/shared/presets/basic-preset.d.ts.map +1 -0
  52. package/schematics/shared/presets/{basic.preset.js → basic-preset.js} +1 -1
  53. package/schematics/shared/presets/{cms.preset.d.ts → cms-preset.d.ts} +2 -2
  54. package/schematics/shared/presets/cms-preset.d.ts.map +1 -0
  55. package/schematics/shared/presets/{cms.preset.js → cms-preset.js} +1 -1
  56. package/schematics/shared/presets/{external.preset.d.ts → external-preset.d.ts} +2 -2
  57. package/schematics/shared/presets/{external.preset.d.ts.map → external-preset.d.ts.map} +1 -1
  58. package/schematics/shared/presets/{external.preset.js → external-preset.js} +1 -1
  59. package/schematics/shared/presets/helpers.d.ts +1 -1
  60. package/schematics/shared/presets/index.d.ts +3 -3
  61. package/schematics/shared/presets/index.js +6 -6
  62. package/schematics/shared/presets/{preset.interface.d.ts → preset-interface.d.ts} +1 -1
  63. package/schematics/shared/presets/{preset.interface.d.ts.map → preset-interface.d.ts.map} +1 -1
  64. package/schematics/shared/presets/{preset.interface.js → preset-interface.js} +1 -1
  65. package/schematics/shared/presets/{recommended.preset.d.ts → recommended-preset.d.ts} +2 -2
  66. package/schematics/shared/presets/recommended-preset.d.ts.map +1 -0
  67. package/schematics/shared/presets/{recommended.preset.js → recommended-preset.js} +1 -1
  68. package/schematics/store/common/templates/index.ts.template +1 -1
  69. package/builders/app-version/index.js.map +0 -1
  70. package/builders/app-version/schema.js.map +0 -1
  71. package/builders/lib-build/index.js.map +0 -1
  72. package/builders/lib-build/schema.js.map +0 -1
  73. package/builders/multi-watcher/index.js.map +0 -1
  74. package/builders/multi-watcher/schema.js.map +0 -1
  75. package/builders/ngc/index.js.map +0 -1
  76. package/builders/ngc/schema.js.map +0 -1
  77. package/builders/pattern-replacement/index.js.map +0 -1
  78. package/builders/pattern-replacement/schema.js.map +0 -1
  79. package/builders/run-script/index.js.map +0 -1
  80. package/builders/run-script/schema.js.map +0 -1
  81. package/builders/utils.js.map +0 -1
  82. package/core/application/build-properties.d.ts +0 -50
  83. package/core/application/build-properties.d.ts.map +0 -1
  84. package/core/application/build-properties.js +0 -17
  85. package/core/application/build-properties.js.map +0 -1
  86. package/core/application/dgp.interfaces.d.ts +0 -35
  87. package/core/application/dgp.interfaces.d.ts.map +0 -1
  88. package/core/application/dgp.interfaces.js +0 -2
  89. package/core/application/dgp.interfaces.js.map +0 -1
  90. package/core/application/index.d.ts +0 -4
  91. package/core/application/index.d.ts.map +0 -1
  92. package/core/application/index.js +0 -4
  93. package/core/application/index.js.map +0 -1
  94. package/core/application/runtime.d.ts +0 -14
  95. package/core/application/runtime.d.ts.map +0 -1
  96. package/core/application/runtime.js +0 -2
  97. package/core/application/runtime.js.map +0 -1
  98. package/core/common/index.d.ts +0 -3
  99. package/core/common/index.d.ts.map +0 -1
  100. package/core/common/index.js +0 -3
  101. package/core/common/index.js.map +0 -1
  102. package/core/common/interface-utils.d.ts +0 -7
  103. package/core/common/interface-utils.d.ts.map +0 -1
  104. package/core/common/interface-utils.js +0 -2
  105. package/core/common/interface-utils.js.map +0 -1
  106. package/core/common/label-value.d.ts +0 -8
  107. package/core/common/label-value.d.ts.map +0 -1
  108. package/core/common/label-value.js +0 -2
  109. package/core/common/label-value.js.map +0 -1
  110. package/core/devkit/devtools.interface.d.ts +0 -34
  111. package/core/devkit/devtools.interface.d.ts.map +0 -1
  112. package/core/devkit/devtools.interface.js +0 -2
  113. package/core/devkit/devtools.interface.js.map +0 -1
  114. package/core/devkit/index.d.ts +0 -2
  115. package/core/devkit/index.d.ts.map +0 -1
  116. package/core/devkit/index.js +0 -2
  117. package/core/devkit/index.js.map +0 -1
  118. package/core/index.d.ts +0 -7
  119. package/core/index.d.ts.map +0 -1
  120. package/core/index.js +0 -7
  121. package/core/index.js.map +0 -1
  122. package/core/interfaces/configuration.d.ts +0 -90
  123. package/core/interfaces/configuration.d.ts.map +0 -1
  124. package/core/interfaces/configuration.js +0 -2
  125. package/core/interfaces/configuration.js.map +0 -1
  126. package/core/interfaces/context.d.ts +0 -57
  127. package/core/interfaces/context.d.ts.map +0 -1
  128. package/core/interfaces/context.js +0 -2
  129. package/core/interfaces/context.js.map +0 -1
  130. package/core/interfaces/index.d.ts +0 -5
  131. package/core/interfaces/index.d.ts.map +0 -1
  132. package/core/interfaces/index.js +0 -5
  133. package/core/interfaces/index.js.map +0 -1
  134. package/core/interfaces/item-identifier.d.ts +0 -14
  135. package/core/interfaces/item-identifier.d.ts.map +0 -1
  136. package/core/interfaces/item-identifier.js +0 -2
  137. package/core/interfaces/item-identifier.js.map +0 -1
  138. package/core/interfaces/translation.d.ts +0 -7
  139. package/core/interfaces/translation.d.ts.map +0 -1
  140. package/core/interfaces/translation.js +0 -2
  141. package/core/interfaces/translation.js.map +0 -1
  142. package/core/metadata/component.decorator.d.ts +0 -32
  143. package/core/metadata/component.decorator.d.ts.map +0 -1
  144. package/core/metadata/component.decorator.js +0 -18
  145. package/core/metadata/component.decorator.js.map +0 -1
  146. package/core/metadata/component.identifier.d.ts +0 -7
  147. package/core/metadata/component.identifier.d.ts.map +0 -1
  148. package/core/metadata/component.identifier.js +0 -9
  149. package/core/metadata/component.identifier.js.map +0 -1
  150. package/core/metadata/index.d.ts +0 -4
  151. package/core/metadata/index.d.ts.map +0 -1
  152. package/core/metadata/index.js +0 -4
  153. package/core/metadata/index.js.map +0 -1
  154. package/core/metadata/metadata.interface.d.ts +0 -10
  155. package/core/metadata/metadata.interface.d.ts.map +0 -1
  156. package/core/metadata/metadata.interface.js +0 -2
  157. package/core/metadata/metadata.interface.js.map +0 -1
  158. package/core/rules-engine/index.d.ts +0 -2
  159. package/core/rules-engine/index.d.ts.map +0 -1
  160. package/core/rules-engine/index.js +0 -2
  161. package/core/rules-engine/index.js.map +0 -1
  162. package/core/rules-engine/rules-engine.interfaces.d.ts +0 -24
  163. package/core/rules-engine/rules-engine.interfaces.d.ts.map +0 -1
  164. package/core/rules-engine/rules-engine.interfaces.js +0 -2
  165. package/core/rules-engine/rules-engine.interfaces.js.map +0 -1
  166. package/log/index.d.ts +0 -2
  167. package/log/index.d.ts.map +0 -1
  168. package/log/index.js +0 -2
  169. package/log/index.js.map +0 -1
  170. package/log/logger.d.ts +0 -36
  171. package/log/logger.d.ts.map +0 -1
  172. package/log/logger.js +0 -2
  173. package/log/logger.js.map +0 -1
  174. package/messages/common-message.interface.d.ts +0 -17
  175. package/messages/common-message.interface.d.ts.map +0 -1
  176. package/messages/common-message.interface.js +0 -2
  177. package/messages/common-message.interface.js.map +0 -1
  178. package/messages/index.d.ts +0 -4
  179. package/messages/index.d.ts.map +0 -1
  180. package/messages/index.js +0 -4
  181. package/messages/index.js.map +0 -1
  182. package/messages/message.helpers.d.ts +0 -24
  183. package/messages/message.helpers.d.ts.map +0 -1
  184. package/messages/message.helpers.js +0 -54
  185. package/messages/message.helpers.js.map +0 -1
  186. package/messages/message.interfaces.d.ts +0 -26
  187. package/messages/message.interfaces.d.ts.map +0 -1
  188. package/messages/message.interfaces.js +0 -5
  189. package/messages/message.interfaces.js.map +0 -1
  190. package/public_api.d.ts +0 -6
  191. package/public_api.d.ts.map +0 -1
  192. package/public_api.js +0 -6
  193. package/public_api.js.map +0 -1
  194. package/schematics/add-modules/index.js.map +0 -1
  195. package/schematics/add-modules/schema.js.map +0 -1
  196. package/schematics/component/container/index.js.map +0 -1
  197. package/schematics/component/container/schema.js.map +0 -1
  198. package/schematics/component/index.js.map +0 -1
  199. package/schematics/component/presenter/index.js.map +0 -1
  200. package/schematics/component/presenter/schema.js.map +0 -1
  201. package/schematics/component/schema.js.map +0 -1
  202. package/schematics/component/structures.types.js.map +0 -1
  203. package/schematics/context-to-component/index.js.map +0 -1
  204. package/schematics/context-to-component/schema.js.map +0 -1
  205. package/schematics/convert-component/index.js.map +0 -1
  206. package/schematics/convert-component/schema.js.map +0 -1
  207. package/schematics/ng-add/component-decorator/index.js.map +0 -1
  208. package/schematics/ng-add/index.js.map +0 -1
  209. package/schematics/ng-add/project-setup/index.js.map +0 -1
  210. package/schematics/ng-add/schema.js.map +0 -1
  211. package/schematics/ng-add/updates-for-v8/cms-adapters/update-builders-names.js.map +0 -1
  212. package/schematics/ng-add/updates-for-v8/generators/update-generators-names.js.map +0 -1
  213. package/schematics/ng-add/updates-for-v8/replaced-packages.js.map +0 -1
  214. package/schematics/ng-add-create/index.js.map +0 -1
  215. package/schematics/ng-add-create/schema.js.map +0 -1
  216. package/schematics/ng-update/index.js.map +0 -1
  217. package/schematics/ng-update/v10.0/configuration.js.map +0 -1
  218. package/schematics/ng-update/v8.2/import-map.js.map +0 -1
  219. package/schematics/page/index.js.map +0 -1
  220. package/schematics/page/schema.js.map +0 -1
  221. package/schematics/renovate/index.js.map +0 -1
  222. package/schematics/renovate/schema.js.map +0 -1
  223. package/schematics/rule-factories/additional-modules/index.js.map +0 -1
  224. package/schematics/rule-factories/component/analytics.js.map +0 -1
  225. package/schematics/rule-factories/component/common.js.map +0 -1
  226. package/schematics/rule-factories/component/configuration.js.map +0 -1
  227. package/schematics/rule-factories/component/context.js.map +0 -1
  228. package/schematics/rule-factories/component/design-token.js.map +0 -1
  229. package/schematics/rule-factories/component/fixture.js.map +0 -1
  230. package/schematics/rule-factories/component/localization.js.map +0 -1
  231. package/schematics/rule-factories/component/rules-engine.js.map +0 -1
  232. package/schematics/rule-factories/component/theming.js.map +0 -1
  233. package/schematics/rule-factories/customization-environment/index.js.map +0 -1
  234. package/schematics/rule-factories/index.js.map +0 -1
  235. package/schematics/rule-factories/o3r-basic-updates/index.js.map +0 -1
  236. package/schematics/rule-factories/otter-environment/index.js.map +0 -1
  237. package/schematics/rule-factories/store/index.js.map +0 -1
  238. package/schematics/rule-factories/update-package-json/index.js.map +0 -1
  239. package/schematics/schematics-update/index.js.map +0 -1
  240. package/schematics/schematics-update/schema.js.map +0 -1
  241. package/schematics/service/index.js.map +0 -1
  242. package/schematics/service/schema.js.map +0 -1
  243. package/schematics/shared/presets/all.preset.d.ts.map +0 -1
  244. package/schematics/shared/presets/all.preset.js.map +0 -1
  245. package/schematics/shared/presets/basic.preset.d.ts.map +0 -1
  246. package/schematics/shared/presets/basic.preset.js.map +0 -1
  247. package/schematics/shared/presets/cms.preset.d.ts.map +0 -1
  248. package/schematics/shared/presets/cms.preset.js.map +0 -1
  249. package/schematics/shared/presets/external.preset.js.map +0 -1
  250. package/schematics/shared/presets/helpers.js.map +0 -1
  251. package/schematics/shared/presets/index.js.map +0 -1
  252. package/schematics/shared/presets/preset.interface.js.map +0 -1
  253. package/schematics/shared/presets/recommended.preset.d.ts.map +0 -1
  254. package/schematics/shared/presets/recommended.preset.js.map +0 -1
  255. package/schematics/show-modules/index.js.map +0 -1
  256. package/schematics/show-modules/schema.js.map +0 -1
  257. package/schematics/store/common/helpers.js.map +0 -1
  258. package/schematics/store/common/schema.js.map +0 -1
  259. package/schematics/store/entity-async/index.js.map +0 -1
  260. package/schematics/store/entity-async/schema.js.map +0 -1
  261. package/schematics/store/entity-sync/index.js.map +0 -1
  262. package/schematics/store/entity-sync/schema.js.map +0 -1
  263. package/schematics/store/index.js.map +0 -1
  264. package/schematics/store/schema.js.map +0 -1
  265. package/schematics/store/simple-async/index.js.map +0 -1
  266. package/schematics/store/simple-async/schema.js.map +0 -1
  267. package/schematics/store/simple-sync/index.js.map +0 -1
  268. package/schematics/store/simple-sync/schema.js.map +0 -1
  269. package/schematics/store-action/index.js.map +0 -1
  270. package/schematics/store-action/schema.js.map +0 -1
  271. package/store/async/async-entity.adapter.d.ts +0 -62
  272. package/store/async/async-entity.adapter.d.ts.map +0 -1
  273. package/store/async/async-entity.adapter.js +0 -49
  274. package/store/async/async-entity.adapter.js.map +0 -1
  275. package/store/async/async.adapter.d.ts +0 -91
  276. package/store/async/async.adapter.d.ts.map +0 -1
  277. package/store/async/async.adapter.js +0 -94
  278. package/store/async/async.adapter.js.map +0 -1
  279. package/store/async/async.helpers.d.ts +0 -17
  280. package/store/async/async.helpers.d.ts.map +0 -1
  281. package/store/async/async.helpers.js +0 -25
  282. package/store/async/async.helpers.js.map +0 -1
  283. package/store/async/async.interfaces.d.ts +0 -91
  284. package/store/async/async.interfaces.d.ts.map +0 -1
  285. package/store/async/async.interfaces.js +0 -2
  286. package/store/async/async.interfaces.js.map +0 -1
  287. package/store/async/async.operators.d.ts +0 -22
  288. package/store/async/async.operators.d.ts.map +0 -1
  289. package/store/async/async.operators.js +0 -75
  290. package/store/async/async.operators.js.map +0 -1
  291. package/store/async/async.props.d.ts +0 -7
  292. package/store/async/async.props.d.ts.map +0 -1
  293. package/store/async/async.props.js +0 -10
  294. package/store/async/async.props.js.map +0 -1
  295. package/store/async/async.serializer.d.ts +0 -29
  296. package/store/async/async.serializer.d.ts.map +0 -1
  297. package/store/async/async.serializer.js +0 -34
  298. package/store/async/async.serializer.js.map +0 -1
  299. package/store/async/index.d.ts +0 -8
  300. package/store/async/index.d.ts.map +0 -1
  301. package/store/async/index.js +0 -8
  302. package/store/async/index.js.map +0 -1
  303. package/store/index.d.ts +0 -3
  304. package/store/index.d.ts.map +0 -1
  305. package/store/index.js +0 -3
  306. package/store/index.js.map +0 -1
  307. package/store/types.d.ts +0 -95
  308. package/store/types.d.ts.map +0 -1
  309. package/store/types.js +0 -11
  310. package/store/types.js.map +0 -1
  311. package/utils/debug/debug.helper.d.ts +0 -14
  312. package/utils/debug/debug.helper.d.ts.map +0 -1
  313. package/utils/debug/debug.helper.js +0 -19
  314. package/utils/debug/debug.helper.js.map +0 -1
  315. package/utils/deep-fill/deep-fill.d.ts +0 -37
  316. package/utils/deep-fill/deep-fill.d.ts.map +0 -1
  317. package/utils/deep-fill/deep-fill.js +0 -71
  318. package/utils/deep-fill/deep-fill.js.map +0 -1
  319. package/utils/index.d.ts +0 -4
  320. package/utils/index.d.ts.map +0 -1
  321. package/utils/index.js +0 -4
  322. package/utils/index.js.map +0 -1
  323. package/utils/rendering/rendering.helpers.d.ts +0 -10
  324. package/utils/rendering/rendering.helpers.d.ts.map +0 -1
  325. package/utils/rendering/rendering.helpers.js +0 -31
  326. package/utils/rendering/rendering.helpers.js.map +0 -1
  327. /package/schematics/context-to-component/templates/{__name__.context.ts.template → __name__-context.ts.template} +0 -0
  328. /package/schematics/service/templates/base/__name__/__featureName__/{__name__.__featureName__.module.ts.template → __name__-__featureName__-module.ts.template} +0 -0
  329. /package/schematics/service/templates/jasmine-core/__name__/fixture/jasmine/{__name__.__featureName__.fixture.jasmine.ts.template → __name__-__featureName__-fixture-jasmine.ts.template} +0 -0
  330. /package/schematics/service/templates/jest/__name__/fixture/jest/{__name__.__featureName__.fixture.jest.ts.template → __name__-__featureName__-fixture-jest.ts.template} +0 -0
  331. /package/schematics/store/common/templates/{__storeName@dasherize__.module.ts.template → __storeName@dasherize__-module.ts.template} +0 -0
@@ -1 +0,0 @@
1
- {"version":3,"file":"configuration.js","sourceRoot":"","sources":["../../../src/core/interfaces/configuration.ts"],"names":[],"mappings":""}
@@ -1,57 +0,0 @@
1
- import type { EventEmitter } from '@angular/core';
2
- import type { FormControl } from '@angular/forms';
3
- import type { Translation } from './translation';
4
- /**
5
- * Inputs of the component
6
- */
7
- export interface ContextInput {
8
- [key: string]: any;
9
- }
10
- /**
11
- * Base outputs of the components
12
- */
13
- export interface BaseContextOutput {
14
- [key: string]: any;
15
- }
16
- /**
17
- * Type helper to generate the interface of component outputs
18
- */
19
- export type EventEmitterify<T extends BaseContextOutput> = {
20
- [P in keyof T]: EventEmitter<T[P]>;
21
- };
22
- /**
23
- * Context of the component
24
- */
25
- export type Context<T extends ContextInput = {}, U extends BaseContextOutput = {}> = {
26
- [P in keyof T]: T[P];
27
- } & {
28
- [P in keyof U]: EventEmitterify<U>[P];
29
- };
30
- /**
31
- * Type helper to generate the template context outputs
32
- */
33
- export type Functionify<T extends BaseContextOutput> = {
34
- [P in keyof T]: (value: T[P]) => void;
35
- };
36
- /**
37
- * Interface for a context of a child component
38
- */
39
- export interface TemplateContext<N extends {}, S extends ContextInput = Record<string, unknown>, F extends BaseContextOutput = Record<string, unknown>, W extends Translation = Translation> {
40
- /** Component configuration */
41
- config?: Partial<N>;
42
- /** Component inputs context */
43
- inputs: S & {
44
- [key: string]: any;
45
- };
46
- /** Component outputs context */
47
- outputs: Functionify<F & {
48
- [key: string]: any;
49
- }>;
50
- /** Component translation */
51
- translations?: Partial<W>;
52
- /** Parent Component Id */
53
- parentId?: string;
54
- /** Form control object to be applied to the form */
55
- formControl?: FormControl;
56
- }
57
- //# sourceMappingURL=context.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"context.d.ts","sourceRoot":"","sources":["../../../src/core/interfaces/context.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,YAAY,EACb,MAAM,eAAe,CAAC;AACvB,OAAO,KAAK,EACV,WAAW,EACZ,MAAM,gBAAgB,CAAC;AACxB,OAAO,KAAK,EACV,WAAW,EACZ,MAAM,eAAe,CAAC;AAEvB;;GAEG;AACH,MAAM,WAAW,YAAY;IAC3B,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;CACpB;AAED;;GAEG;AACH,MAAM,WAAW,iBAAiB;IAChC,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;CACpB;AAED;;GAEG;AACH,MAAM,MAAM,eAAe,CAAC,CAAC,SAAS,iBAAiB,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,YAAY,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;CAAE,CAAC;AAElG;;GAEG;AACH,MAAM,MAAM,OAAO,CAAC,CAAC,SAAS,YAAY,GAAG,EAAE,EAAE,CAAC,SAAS,iBAAiB,GAAG,EAAE,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAE,GAAG;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,eAAe,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;CAAE,CAAC;AAE1J;;GAEG;AACH,MAAM,MAAM,WAAW,CAAC,CAAC,SAAS,iBAAiB,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,KAAK,EAAE,CAAC,CAAC,CAAC,CAAC,KAAK,IAAI;CAAE,CAAC;AAEjG;;GAEG;AACH,MAAM,WAAW,eAAe,CAC9B,CAAC,SAAS,EAAE,EACZ,CAAC,SAAS,YAAY,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAChD,CAAC,SAAS,iBAAiB,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EACrD,CAAC,SAAS,WAAW,GAAG,WAAW;IACnC,8BAA8B;IAC9B,MAAM,CAAC,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC;IACpB,+BAA+B;IAC/B,MAAM,EAAE,CAAC,GAAG;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAA;KAAE,CAAC;IACnC,gCAAgC;IAChC,OAAO,EAAE,WAAW,CAAC,CAAC,GAAG;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAA;KAAE,CAAC,CAAC;IACjD,4BAA4B;IAC5B,YAAY,CAAC,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC;IAC1B,0BAA0B;IAC1B,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,oDAAoD;IACpD,WAAW,CAAC,EAAE,WAAW,CAAC;CAC3B"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=context.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"context.js","sourceRoot":"","sources":["../../../src/core/interfaces/context.ts"],"names":[],"mappings":""}
@@ -1,5 +0,0 @@
1
- export * from './configuration';
2
- export * from './context';
3
- export * from './item-identifier';
4
- export * from './translation';
5
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/core/interfaces/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAC;AAChC,cAAc,WAAW,CAAC;AAC1B,cAAc,mBAAmB,CAAC;AAClC,cAAc,eAAe,CAAC"}
@@ -1,5 +0,0 @@
1
- export * from './configuration';
2
- export * from './context';
3
- export * from './item-identifier';
4
- export * from './translation';
5
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/core/interfaces/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAC;AAChC,cAAc,WAAW,CAAC;AAC1B,cAAc,mBAAmB,CAAC;AAClC,cAAc,eAAe,CAAC"}
@@ -1,14 +0,0 @@
1
- /**
2
- * Unique identifier of an item in the extracted metadata
3
- */
4
- export interface ItemIdentifier {
5
- /**
6
- * Name of the library where the item is originally from
7
- */
8
- library: string;
9
- /**
10
- * Name of the item
11
- */
12
- name: string;
13
- }
14
- //# sourceMappingURL=item-identifier.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"item-identifier.d.ts","sourceRoot":"","sources":["../../../src/core/interfaces/item-identifier.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,WAAW,cAAc;IAC7B;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;IAChB;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;CACd"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=item-identifier.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"item-identifier.js","sourceRoot":"","sources":["../../../src/core/interfaces/item-identifier.ts"],"names":[],"mappings":""}
@@ -1,7 +0,0 @@
1
- /**
2
- * Generic translation
3
- */
4
- export interface Translation {
5
- [x: string]: string;
6
- }
7
- //# sourceMappingURL=translation.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"translation.d.ts","sourceRoot":"","sources":["../../../src/core/interfaces/translation.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,WAAW,WAAW;IAC1B,CAAC,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;CACrB"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=translation.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"translation.js","sourceRoot":"","sources":["../../../src/core/interfaces/translation.ts"],"names":[],"mappings":""}
@@ -1,32 +0,0 @@
1
- import type { Translation } from '../interfaces';
2
- /** Type of component */
3
- export type ComponentType = 'Block' | 'Page' | 'ExposedComponent' | 'Component';
4
- /**
5
- * Information about an Otter component to provide
6
- */
7
- export interface OtterComponentInfoToProvide {
8
- /** Type of component */
9
- componentType: ComponentType;
10
- }
11
- /**
12
- * Information about an Otter component
13
- */
14
- export interface OtterComponentInfo extends OtterComponentInfoToProvide {
15
- /** Configuration ID */
16
- configId?: string;
17
- /** Translation keys */
18
- translations?: Translation;
19
- /** Component Name */
20
- componentName: string;
21
- }
22
- /**
23
- * Private field where Otter component information are stored
24
- */
25
- export declare const otterComponentInfoPropertyName = "__otter-info__";
26
- /**
27
- * Decorates an Angular component to provide Otter information
28
- * @param info Information to define the Otter component
29
- * @returns the component with the information
30
- */
31
- export declare function O3rComponent(info: OtterComponentInfoToProvide): <T extends new (...args: any[]) => object>(constructor: T) => T;
32
- //# sourceMappingURL=component.decorator.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"component.decorator.d.ts","sourceRoot":"","sources":["../../../src/core/metadata/component.decorator.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,WAAW,EACZ,MAAM,eAAe,CAAC;AAEvB,wBAAwB;AACxB,MAAM,MAAM,aAAa,GAAG,OAAO,GAAG,MAAM,GAAG,kBAAkB,GAAG,WAAW,CAAC;AAEhF;;GAEG;AACH,MAAM,WAAW,2BAA2B;IAC1C,wBAAwB;IACxB,aAAa,EAAE,aAAa,CAAC;CAC9B;AAED;;GAEG;AACH,MAAM,WAAW,kBAAmB,SAAQ,2BAA2B;IACrE,uBAAuB;IACvB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,uBAAuB;IACvB,YAAY,CAAC,EAAE,WAAW,CAAC;IAC3B,qBAAqB;IACrB,aAAa,EAAE,MAAM,CAAC;CACvB;AAED;;GAEG;AACH,eAAO,MAAM,8BAA8B,mBAAmB,CAAC;AAE/D;;;;GAIG;AAEH,wBAAgB,YAAY,CAAC,IAAI,EAAE,2BAA2B,IACpD,CAAC,SAAS,KAAK,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,MAAM,EAAE,aAAa,CAAC,OAKjE"}
@@ -1,18 +0,0 @@
1
- /**
2
- * Private field where Otter component information are stored
3
- */
4
- export const otterComponentInfoPropertyName = '__otter-info__';
5
- /**
6
- * Decorates an Angular component to provide Otter information
7
- * @param info Information to define the Otter component
8
- * @returns the component with the information
9
- */
10
- // eslint-disable-next-line @typescript-eslint/naming-convention -- decorator should be PascalCase
11
- export function O3rComponent(info) {
12
- return (constructor) => {
13
- const componentName = constructor.name;
14
- constructor.prototype[otterComponentInfoPropertyName] = { ...info, componentName };
15
- return constructor;
16
- };
17
- }
18
- //# sourceMappingURL=component.decorator.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"component.decorator.js","sourceRoot":"","sources":["../../../src/core/metadata/component.decorator.ts"],"names":[],"mappings":"AA2BA;;GAEG;AACH,MAAM,CAAC,MAAM,8BAA8B,GAAG,gBAAgB,CAAC;AAE/D;;;;GAIG;AACH,kGAAkG;AAClG,MAAM,UAAU,YAAY,CAAC,IAAiC;IAC5D,OAAO,CAA2C,WAAc,EAAE,EAAE;QAClE,MAAM,aAAa,GAAG,WAAW,CAAC,IAAI,CAAC;QACvC,WAAW,CAAC,SAAS,CAAC,8BAA8B,CAAC,GAAG,EAAE,GAAG,IAAI,EAAE,aAAa,EAAE,CAAC;QACnF,OAAO,WAAW,CAAC;IACrB,CAAC,CAAC;AACJ,CAAC"}
@@ -1,7 +0,0 @@
1
- /**
2
- * Compute the name of the component with the library's name to generate unique component identifier used in metadata and different modules
3
- * @param componentName Name of the component to get the configuration
4
- * @param libraryName Name of the library the component is coming from
5
- */
6
- export declare function computeItemIdentifier<C extends string, L extends string>(componentName: C, libraryName?: L): `${L extends string ? `${L}#` : ''}${C}`;
7
- //# sourceMappingURL=component.identifier.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"component.identifier.d.ts","sourceRoot":"","sources":["../../../src/core/metadata/component.identifier.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,wBAAgB,qBAAqB,CAAC,CAAC,SAAS,MAAM,EAAE,CAAC,SAAS,MAAM,EAAE,aAAa,EAAE,CAAC,EAAE,WAAW,CAAC,EAAE,CAAC,GAAG,GAAG,CAAC,SAAS,MAAM,GAAG,GAAG,CAAC,GAAG,GAAG,EAAE,GAAG,CAAC,EAAE,CAErJ"}
@@ -1,9 +0,0 @@
1
- /**
2
- * Compute the name of the component with the library's name to generate unique component identifier used in metadata and different modules
3
- * @param componentName Name of the component to get the configuration
4
- * @param libraryName Name of the library the component is coming from
5
- */
6
- export function computeItemIdentifier(componentName, libraryName) {
7
- return (libraryName ? libraryName + '#' : '') + componentName;
8
- }
9
- //# sourceMappingURL=component.identifier.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"component.identifier.js","sourceRoot":"","sources":["../../../src/core/metadata/component.identifier.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,MAAM,UAAU,qBAAqB,CAAqC,aAAgB,EAAE,WAAe;IACzG,OAAO,CAAC,WAAW,CAAC,CAAC,CAAC,WAAW,GAAG,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,GAAG,aAAyD,CAAC;AAC5G,CAAC"}
@@ -1,4 +0,0 @@
1
- export * from './component.decorator';
2
- export * from './component.identifier';
3
- export * from './metadata.interface';
4
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/core/metadata/index.ts"],"names":[],"mappings":"AAAA,cAAc,uBAAuB,CAAC;AACtC,cAAc,wBAAwB,CAAC;AACvC,cAAc,sBAAsB,CAAC"}
@@ -1,4 +0,0 @@
1
- export * from './component.decorator';
2
- export * from './component.identifier';
3
- export * from './metadata.interface';
4
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/core/metadata/index.ts"],"names":[],"mappings":"AAAA,cAAc,uBAAuB,CAAC;AACtC,cAAc,wBAAwB,CAAC;AACvC,cAAc,sBAAsB,CAAC"}
@@ -1,10 +0,0 @@
1
- /**
2
- * Represents an output generated by an Extractor
3
- */
4
- export interface Output {
5
- /** Name of the output entity */
6
- name: string;
7
- /** Filepath of the entity */
8
- path: string;
9
- }
10
- //# sourceMappingURL=metadata.interface.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"metadata.interface.d.ts","sourceRoot":"","sources":["../../../src/core/metadata/metadata.interface.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,WAAW,MAAM;IACrB,gCAAgC;IAChC,IAAI,EAAE,MAAM,CAAC;IACb,6BAA6B;IAC7B,IAAI,EAAE,MAAM,CAAC;CACd"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=metadata.interface.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"metadata.interface.js","sourceRoot":"","sources":["../../../src/core/metadata/metadata.interface.ts"],"names":[],"mappings":""}
@@ -1,2 +0,0 @@
1
- export * from './rules-engine.interfaces';
2
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/core/rules-engine/index.ts"],"names":[],"mappings":"AAAA,cAAc,2BAA2B,CAAC"}
@@ -1,2 +0,0 @@
1
- export * from './rules-engine.interfaces';
2
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/core/rules-engine/index.ts"],"names":[],"mappings":"AAAA,cAAc,2BAA2B,CAAC"}
@@ -1,24 +0,0 @@
1
- /**
2
- * Minimum action field
3
- */
4
- export interface RulesEngineAction<A extends string = string, V = any> {
5
- /** Type of the action */
6
- actionType: A;
7
- /** Generic value of the action */
8
- value: V;
9
- }
10
- /**
11
- * Action handler executed by the rules engine
12
- */
13
- export interface RulesEngineActionHandler<T extends RulesEngineAction = RulesEngineAction> {
14
- /**
15
- * Execute the actions resulting of the rules engine
16
- * @param actions List of actions executed by the rules engine
17
- */
18
- executeActions(actions: T[]): void | Promise<void>;
19
- /**
20
- * Actions supported by the handler
21
- */
22
- supportingActions: readonly T['actionType'][];
23
- }
24
- //# sourceMappingURL=rules-engine.interfaces.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"rules-engine.interfaces.d.ts","sourceRoot":"","sources":["../../../src/core/rules-engine/rules-engine.interfaces.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,WAAW,iBAAiB,CAAC,CAAC,SAAS,MAAM,GAAG,MAAM,EAAE,CAAC,GAAG,GAAG;IACnE,yBAAyB;IACzB,UAAU,EAAE,CAAC,CAAC;IACd,kCAAkC;IAClC,KAAK,EAAE,CAAC,CAAC;CACV;AAED;;GAEG;AACH,MAAM,WAAW,wBAAwB,CAAC,CAAC,SAAS,iBAAiB,GAAG,iBAAiB;IACvF;;;OAGG;IACH,cAAc,CAAC,OAAO,EAAE,CAAC,EAAE,GAAG,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAEnD;;OAEG;IACH,iBAAiB,EAAE,SAAS,CAAC,CAAC,YAAY,CAAC,EAAE,CAAC;CAC/C"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=rules-engine.interfaces.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"rules-engine.interfaces.js","sourceRoot":"","sources":["../../../src/core/rules-engine/rules-engine.interfaces.ts"],"names":[],"mappings":""}
package/log/index.d.ts DELETED
@@ -1,2 +0,0 @@
1
- export * from './logger';
2
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/log/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC"}
package/log/index.js DELETED
@@ -1,2 +0,0 @@
1
- export * from './logger';
2
- //# sourceMappingURL=index.js.map
package/log/index.js.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/log/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC"}
package/log/logger.d.ts DELETED
@@ -1,36 +0,0 @@
1
- /**
2
- * Logger Client interface.
3
- */
4
- export interface Logger {
5
- /**
6
- * Log an error.
7
- * @param message Message to log
8
- * @param optionalParams Optional parameters to log
9
- */
10
- error(message?: any, ...optionalParams: any[]): void;
11
- /**
12
- * Log a warning.
13
- * @param message Message to log
14
- * @param optionalParams Optional parameters to log
15
- */
16
- warn(message?: any, ...optionalParams: any[]): void;
17
- /**
18
- * Log a message.
19
- * @param message Message to log
20
- * @param optionalParams Optional parameters to log
21
- */
22
- info?(message?: any, ...optionalParams: any[]): void;
23
- /**
24
- * Log a message.
25
- * @param message Message to log
26
- * @param optionalParams Optional parameters to log
27
- */
28
- log(message?: any, ...optionalParams: any[]): void;
29
- /**
30
- * Log a debug message.
31
- * @param message Message to log
32
- * @param optionalParams Optional parameters to log
33
- */
34
- debug?(message?: any, ...optionalParams: any[]): void;
35
- }
36
- //# sourceMappingURL=logger.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"logger.d.ts","sourceRoot":"","sources":["../../src/log/logger.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,WAAW,MAAM;IACrB;;;;OAIG;IACH,KAAK,CAAC,OAAO,CAAC,EAAE,GAAG,EAAE,GAAG,cAAc,EAAE,GAAG,EAAE,GAAG,IAAI,CAAC;IAErD;;;;OAIG;IACH,IAAI,CAAC,OAAO,CAAC,EAAE,GAAG,EAAE,GAAG,cAAc,EAAE,GAAG,EAAE,GAAG,IAAI,CAAC;IAEpD;;;;OAIG;IACH,IAAI,CAAC,CAAC,OAAO,CAAC,EAAE,GAAG,EAAE,GAAG,cAAc,EAAE,GAAG,EAAE,GAAG,IAAI,CAAC;IAErD;;;;OAIG;IACH,GAAG,CAAC,OAAO,CAAC,EAAE,GAAG,EAAE,GAAG,cAAc,EAAE,GAAG,EAAE,GAAG,IAAI,CAAC;IAEnD;;;;OAIG;IACH,KAAK,CAAC,CAAC,OAAO,CAAC,EAAE,GAAG,EAAE,GAAG,cAAc,EAAE,GAAG,EAAE,GAAG,IAAI,CAAC;CACvD"}
package/log/logger.js DELETED
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=logger.js.map
package/log/logger.js.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"file":"logger.js","sourceRoot":"","sources":["../../src/log/logger.ts"],"names":[],"mappings":""}
@@ -1,17 +0,0 @@
1
- import type { OtterMessageContent } from './message.interfaces';
2
- /** Extension connection notification message content */
3
- export interface ConnectContentMessage extends OtterMessageContent<'connect'> {
4
- }
5
- /** Script Injection message content */
6
- export interface InjectContentMessage extends OtterMessageContent<'inject'> {
7
- /** Path to the extension script to inject to the web application */
8
- scriptToInject: string;
9
- }
10
- /** Requested messages Message Content */
11
- export interface RequestMessagesContentMessage<AvailableMessageDataTypes extends string = string> extends OtterMessageContent<'requestMessages'> {
12
- /** If specified, only the listed messages will be re-emitted */
13
- only?: AvailableMessageDataTypes[];
14
- }
15
- /** List of common Otter content messages */
16
- export type CommonContentMessages = ConnectContentMessage | InjectContentMessage | RequestMessagesContentMessage;
17
- //# sourceMappingURL=common-message.interface.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"common-message.interface.d.ts","sourceRoot":"","sources":["../../src/messages/common-message.interface.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,mBAAmB,EACpB,MAAM,sBAAsB,CAAC;AAE9B,wDAAwD;AACxD,MAAM,WAAW,qBAAsB,SAAQ,mBAAmB,CAAC,SAAS,CAAC;CAC5E;AAED,uCAAuC;AACvC,MAAM,WAAW,oBAAqB,SAAQ,mBAAmB,CAAC,QAAQ,CAAC;IACzE,oEAAoE;IACpE,cAAc,EAAE,MAAM,CAAC;CACxB;AAED,yCAAyC;AACzC,MAAM,WAAW,6BAA6B,CAAC,yBAAyB,SAAS,MAAM,GAAG,MAAM,CAAE,SAAQ,mBAAmB,CAAC,iBAAiB,CAAC;IAC9I,gEAAgE;IAChE,IAAI,CAAC,EAAE,yBAAyB,EAAE,CAAC;CACpC;AAED,4CAA4C;AAC5C,MAAM,MAAM,qBAAqB,GAAG,qBAAqB,GACrD,oBAAoB,GACpB,6BAA6B,CAAC"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=common-message.interface.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"common-message.interface.js","sourceRoot":"","sources":["../../src/messages/common-message.interface.ts"],"names":[],"mappings":""}
@@ -1,4 +0,0 @@
1
- export * from './common-message.interface';
2
- export * from './message.helpers';
3
- export * from './message.interfaces';
4
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/messages/index.ts"],"names":[],"mappings":"AAAA,cAAc,4BAA4B,CAAC;AAC3C,cAAc,mBAAmB,CAAC;AAClC,cAAc,sBAAsB,CAAC"}
package/messages/index.js DELETED
@@ -1,4 +0,0 @@
1
- export * from './common-message.interface';
2
- export * from './message.helpers';
3
- export * from './message.interfaces';
4
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/messages/index.ts"],"names":[],"mappings":"AAAA,cAAc,4BAA4B,CAAC;AAC3C,cAAc,mBAAmB,CAAC;AAClC,cAAc,sBAAsB,CAAC"}
@@ -1,24 +0,0 @@
1
- import { Observable } from 'rxjs';
2
- import { ContentMessageData, FilterMessageToApplication, OtterMessage, OtterMessageContent } from './message.interfaces';
3
- /**
4
- * Determine if a message should be handle by the application
5
- * @param message Message to analyze
6
- */
7
- export declare const isToAppOtterMessage: <T extends OtterMessage>(message?: T) => message is FilterMessageToApplication<T & {
8
- to: "app";
9
- }>;
10
- /**
11
- * Determine if a message is emitted by an Otter tool
12
- * @param message Message to analyze
13
- */
14
- export declare const isOtterMessage: <T extends OtterMessageContent>(message: any) => message is OtterMessage<T>;
15
- /**
16
- * Send an Otter Message
17
- * @param dataType Type of the message
18
- * @param content content of the message
19
- * @param preStringify determine if the message should JSON.stringify before being send (will use the default mechanism otherwise)
20
- */
21
- export declare const sendOtterMessage: <T extends OtterMessageContent>(dataType: T["dataType"], content: ContentMessageData<T>, preStringify?: boolean) => void;
22
- export declare function filterMessageContent<T extends Event | MessageEvent>(): (source$: Observable<T>) => Observable<OtterMessageContent<string>>;
23
- export declare function filterMessageContent<T extends Event | MessageEvent, S extends OtterMessageContent>(predicate: (message: any) => message is S): (source$: Observable<T>) => Observable<S>;
24
- //# sourceMappingURL=message.helpers.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"message.helpers.d.ts","sourceRoot":"","sources":["../../src/messages/message.helpers.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,UAAU,EACX,MAAM,MAAM,CAAC;AACd,OAAO,EAEL,kBAAkB,EAClB,0BAA0B,EAC1B,YAAY,EACZ,mBAAmB,EAEpB,MAAM,sBAAsB,CAAC;AAE9B;;;GAGG;AACH,eAAO,MAAM,mBAAmB,GAAI,CAAC,SAAS,YAAY,EAAE,UAAU,CAAC,KAAG,OAAO,IAAI,0BAA0B,CAAC,CAAC,GAAG;IAAE,EAAE,EAAE,KAAK,CAAA;CAAE,CAEhI,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,cAAc,GAAI,CAAC,SAAS,mBAAmB,EAAE,SAAS,GAAG,KAAG,OAAO,IAAI,YAAY,CAAC,CAAC,CAErG,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,gBAAgB,GAAI,CAAC,SAAS,mBAAmB,EAAE,UAAU,CAAC,CAAC,UAAU,CAAC,EAAE,SAAS,kBAAkB,CAAC,CAAC,CAAC,EAAE,sBAAmB,SAS3I,CAAC;AAEF,wBAAgB,oBAAoB,CAAC,CAAC,SAAS,KAAK,GAAG,YAAY,KAAK,CAAC,OAAO,EAAE,UAAU,CAAC,CAAC,CAAC,KAAK,UAAU,CAAC,mBAAmB,CAAC,MAAM,CAAC,CAAC,CAAC;AAC5I,wBAAgB,oBAAoB,CAAC,CAAC,SAAS,KAAK,GAAG,YAAY,EAAE,CAAC,SAAS,mBAAmB,EAAE,SAAS,EAAE,CAAC,OAAO,EAAE,GAAG,KAAK,OAAO,IAAI,CAAC,GAAG,CAAC,OAAO,EAAE,UAAU,CAAC,CAAC,CAAC,KAAK,UAAU,CAAC,CAAC,CAAC,CAAC"}
@@ -1,54 +0,0 @@
1
- import { filter, map, } from 'rxjs';
2
- import { applicationMessageTarget, otterMessageType, } from './message.interfaces';
3
- /**
4
- * Determine if a message should be handle by the application
5
- * @param message Message to analyze
6
- */
7
- export const isToAppOtterMessage = (message) => {
8
- return message?.to === applicationMessageTarget;
9
- };
10
- /**
11
- * Determine if a message is emitted by an Otter tool
12
- * @param message Message to analyze
13
- */
14
- export const isOtterMessage = (message) => {
15
- return message?.type === otterMessageType;
16
- };
17
- /**
18
- * Send an Otter Message
19
- * @param dataType Type of the message
20
- * @param content content of the message
21
- * @param preStringify determine if the message should JSON.stringify before being send (will use the default mechanism otherwise)
22
- */
23
- export const sendOtterMessage = (dataType, content, preStringify = true) => {
24
- const message = {
25
- type: otterMessageType,
26
- content: {
27
- ...content,
28
- dataType
29
- }
30
- };
31
- return window.postMessage(preStringify ? JSON.stringify(message) : message, '*');
32
- };
33
- /**
34
- * Filter the Otter message that should be handle by the application and returns it content
35
- * @param predicate condition to filter the message
36
- * @returns content of the message
37
- */
38
- /**
39
- * Operator to get only Otter messages that match the predicate
40
- * @param predicate
41
- */
42
- export function filterMessageContent(predicate) {
43
- return (source$) => {
44
- const obs = source$.pipe(map((event) => {
45
- const data = event.data;
46
- return typeof data === 'string' ? JSON.parse(data) : data;
47
- }), filter(isOtterMessage), filter(isToAppOtterMessage), map((message) => message.content));
48
- if (predicate) {
49
- return obs.pipe(filter(predicate));
50
- }
51
- return obs;
52
- };
53
- }
54
- //# sourceMappingURL=message.helpers.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"message.helpers.js","sourceRoot":"","sources":["../../src/messages/message.helpers.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,MAAM,EACN,GAAG,GAEJ,MAAM,MAAM,CAAC;AACd,OAAO,EACL,wBAAwB,EAKxB,gBAAgB,GACjB,MAAM,sBAAsB,CAAC;AAE9B;;;GAGG;AACH,MAAM,CAAC,MAAM,mBAAmB,GAAG,CAAyB,OAAW,EAA4D,EAAE;IACnI,OAAO,OAAO,EAAE,EAAE,KAAK,wBAAwB,CAAC;AAClD,CAAC,CAAC;AAEF;;;GAGG;AACH,MAAM,CAAC,MAAM,cAAc,GAAG,CAAgC,OAAY,EAA8B,EAAE;IACxG,OAAO,OAAO,EAAE,IAAI,KAAK,gBAAgB,CAAC;AAC5C,CAAC,CAAC;AAEF;;;;;GAKG;AACH,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAAgC,QAAuB,EAAE,OAA8B,EAAE,YAAY,GAAG,IAAI,EAAE,EAAE;IAC9I,MAAM,OAAO,GAAG;QACd,IAAI,EAAE,gBAAgB;QACtB,OAAO,EAAE;YACP,GAAG,OAAO;YACV,QAAQ;SACT;KACF,CAAC;IACF,OAAO,MAAM,CAAC,WAAW,CAAC,YAAY,CAAC,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,OAAO,EAAE,GAAG,CAAC,CAAC;AACnF,CAAC,CAAC;AAIF;;;;GAIG;AAEH;;;GAGG;AACH,MAAM,UAAU,oBAAoB,CAAgE,SAA0C;IAE5I,OAAO,CAAC,OAAsB,EAAE,EAAE;QAChC,MAAM,GAAG,GAAG,OAAO,CAAC,IAAI,CACtB,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE;YACZ,MAAM,IAAI,GAAI,KAAsB,CAAC,IAAI,CAAC;YAC1C,OAAO,OAAO,IAAI,KAAK,QAAQ,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC;QAC5D,CAAC,CAAC,EACF,MAAM,CAAC,cAAc,CAAC,EACtB,MAAM,CAAC,mBAAmB,CAAC,EAC3B,GAAG,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,OAAO,CAAC,OAAO,CAAC,CAClC,CAAC;QACF,IAAI,SAAS,EAAE,CAAC;YACd,OAAO,GAAG,CAAC,IAAI,CAAC,MAAM,CAAC,SAAS,CAAC,CAAC,CAAC;QACrC,CAAC;QACD,OAAO,GAAG,CAAC;IACb,CAAC,CAAC;AACJ,CAAC"}
@@ -1,26 +0,0 @@
1
- /** Type of a message exchanged within the Otter Framework */
2
- export declare const otterMessageType = "otter";
3
- /** Target of a message that should be handled by the application */
4
- export declare const applicationMessageTarget = "app";
5
- export interface OtterMessageContent<DataType extends string = string> {
6
- /** Type of data */
7
- dataType: DataType;
8
- }
9
- export interface OtterMessage<Content extends OtterMessageContent = OtterMessageContent, Target extends string | undefined = undefined | string> {
10
- /** Type of the message */
11
- type: typeof otterMessageType;
12
- /** Version of the message (default to the @o3r/core version ) */
13
- version?: string;
14
- /** Target of the message */
15
- to: Target;
16
- /** Message content */
17
- content: Content;
18
- }
19
- /** Type helper to retrieve the data types of a union of MessageContent */
20
- export type MessageDataTypes<T extends OtterMessageContent> = T['dataType'];
21
- /** Type helper to filter the message that can be received by the application */
22
- export type FilterMessageToApplication<T extends OtterMessage> = T extends {
23
- to: infer U;
24
- } ? U extends (typeof applicationMessageTarget | undefined) ? T : never : never;
25
- export type ContentMessageData<T extends OtterMessageContent> = T extends any ? Omit<T, 'dataType'> : never;
26
- //# sourceMappingURL=message.interfaces.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"message.interfaces.d.ts","sourceRoot":"","sources":["../../src/messages/message.interfaces.ts"],"names":[],"mappings":"AAAA,6DAA6D;AAC7D,eAAO,MAAM,gBAAgB,UAAU,CAAC;AAExC,oEAAoE;AACpE,eAAO,MAAM,wBAAwB,QAAQ,CAAC;AAE9C,MAAM,WAAW,mBAAmB,CAAC,QAAQ,SAAS,MAAM,GAAG,MAAM;IACnE,mBAAmB;IACnB,QAAQ,EAAE,QAAQ,CAAC;CACpB;AAED,MAAM,WAAW,YAAY,CAAC,OAAO,SAAS,mBAAmB,GAAG,mBAAmB,EAAE,MAAM,SAAS,MAAM,GAAG,SAAS,GAAG,SAAS,GAAG,MAAM;IAC7I,0BAA0B;IAC1B,IAAI,EAAE,OAAO,gBAAgB,CAAC;IAE9B,iEAAiE;IACjE,OAAO,CAAC,EAAE,MAAM,CAAC;IAEjB,4BAA4B;IAC5B,EAAE,EAAE,MAAM,CAAC;IAEX,sBAAsB;IACtB,OAAO,EAAE,OAAO,CAAC;CAClB;AAED,0EAA0E;AAC1E,MAAM,MAAM,gBAAgB,CAAC,CAAC,SAAS,mBAAmB,IAAI,CAAC,CAAC,UAAU,CAAC,CAAC;AAE5E,gFAAgF;AAChF,MAAM,MAAM,0BAA0B,CAAC,CAAC,SAAS,YAAY,IAAI,CAAC,SAAS;IAAE,EAAE,EAAE,MAAM,CAAC,CAAA;CAAE,GAAG,CAAC,SAAS,CAAC,OAAO,wBAAwB,GAAG,SAAS,CAAC,GAAG,CAAC,GAAG,KAAK,GAAG,KAAK,CAAC;AAEzK,MAAM,MAAM,kBAAkB,CAAC,CAAC,SAAS,mBAAmB,IAAI,CAAC,SAAS,GAAG,GACzE,IAAI,CAAC,CAAC,EAAE,UAAU,CAAC,GACnB,KAAK,CAAC"}
@@ -1,5 +0,0 @@
1
- /** Type of a message exchanged within the Otter Framework */
2
- export const otterMessageType = 'otter';
3
- /** Target of a message that should be handled by the application */
4
- export const applicationMessageTarget = 'app';
5
- //# sourceMappingURL=message.interfaces.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"message.interfaces.js","sourceRoot":"","sources":["../../src/messages/message.interfaces.ts"],"names":[],"mappings":"AAAA,6DAA6D;AAC7D,MAAM,CAAC,MAAM,gBAAgB,GAAG,OAAO,CAAC;AAExC,oEAAoE;AACpE,MAAM,CAAC,MAAM,wBAAwB,GAAG,KAAK,CAAC"}
package/public_api.d.ts DELETED
@@ -1,6 +0,0 @@
1
- export * from './core/index';
2
- export * from './log/index';
3
- export * from './messages/index';
4
- export * from './store/index';
5
- export * from './utils/index';
6
- //# sourceMappingURL=public_api.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"public_api.d.ts","sourceRoot":"","sources":["../src/public_api.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,aAAa,CAAC;AAC5B,cAAc,kBAAkB,CAAC;AACjC,cAAc,eAAe,CAAC;AAC9B,cAAc,eAAe,CAAC"}
package/public_api.js DELETED
@@ -1,6 +0,0 @@
1
- export * from './core/index';
2
- export * from './log/index';
3
- export * from './messages/index';
4
- export * from './store/index';
5
- export * from './utils/index';
6
- //# sourceMappingURL=public_api.js.map
package/public_api.js.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"file":"public_api.js","sourceRoot":"","sources":["../src/public_api.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,aAAa,CAAC;AAC5B,cAAc,kBAAkB,CAAC;AACjC,cAAc,eAAe,CAAC;AAC9B,cAAc,eAAe,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../schematics/add-modules/index.ts"],"names":[],"mappings":"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"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"schema.js","sourceRoot":"","sources":["../../../schematics/add-modules/schema.ts"],"names":[],"mappings":""}