@empathyco/x-components 3.0.0-alpha.246 → 3.0.0-alpha.248
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.
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,28 @@
|
|
|
1
1
|
# Change Log
|
|
2
2
|
|
|
3
|
+
All notable changes to this project will be documented in this file.
|
|
4
|
+
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
|
+
|
|
6
|
+
## [3.0.0-alpha.248](https://github.com/empathyco/x/compare/@empathyco/x-components@3.0.0-alpha.247...@empathyco/x-components@3.0.0-alpha.248) (2022-12-12)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* remove warning when the event is not defined (#918) ([7f70e25](https://github.com/empathyco/x/commit/7f70e257bae41ba34f72c1c580c79862448faea9)), closes [EX-7617](https://searchbroker.atlassian.net/browse/EX-7617)
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
# Change Log
|
|
16
|
+
|
|
17
|
+
All notable changes to this project will be documented in this file. See
|
|
18
|
+
[Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
19
|
+
|
|
20
|
+
## [3.0.0-alpha.247](https://github.com/empathyco/x/compare/@empathyco/x-components@3.0.0-alpha.246...@empathyco/x-components@3.0.0-alpha.247) (2022-12-09)
|
|
21
|
+
|
|
22
|
+
**Note:** Version bump only for package @empathyco/x-components
|
|
23
|
+
|
|
24
|
+
# Change Log
|
|
25
|
+
|
|
3
26
|
All notable changes to this project will be documented in this file. See
|
|
4
27
|
[Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
28
|
|
|
@@ -36,6 +59,11 @@ All notable changes to this project will be documented in this file. See
|
|
|
36
59
|
|
|
37
60
|
## [3.0.0-alpha.244](https://github.com/empathyco/x/compare/@empathyco/x-components@3.0.0-alpha.243...@empathyco/x-components@3.0.0-alpha.244) (2022-12-08)
|
|
38
61
|
|
|
62
|
+
### ⚠ BREAKING CHANGES
|
|
63
|
+
|
|
64
|
+
- Removes `queryHTML` slot scope prop from `BaseSuggestion`, `PopularSearch` `QuerySuggestion` and
|
|
65
|
+
`HistoryQuery`. Use the new `Highlight` component instead.
|
|
66
|
+
|
|
39
67
|
### Features
|
|
40
68
|
|
|
41
69
|
- **components:** Use `Highlight` component inside suggestion components.(#894)
|
|
@@ -23,10 +23,6 @@ class StateMachine {
|
|
|
23
23
|
so we have to force it to be defined */
|
|
24
24
|
this.currentState = currentState[event];
|
|
25
25
|
}
|
|
26
|
-
else {
|
|
27
|
-
//eslint-disable-next-line no-console
|
|
28
|
-
console.warn(`The ${event} event is not defined as a possible transition for ${this.currentState}`);
|
|
29
|
-
}
|
|
30
26
|
}
|
|
31
27
|
}
|
|
32
28
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"state-machine.service.js","sources":["../../../src/services/state-machine.service.ts"],"sourcesContent":["import { Machine } from './services.types';\n\n/**\n * Default implementation for the {@link StateMachine}.\n *\n * @public\n */\nexport class StateMachine<SomeStatus extends string, SomeEvent extends string> {\n /**\n * A {@link Machine} having the different steps transition.\n *\n * @internal\n */\n private machine: Machine<SomeStatus, SomeEvent>;\n /**\n * The current state of the machine.\n *\n * @public\n */\n public currentState: SomeStatus;\n\n public constructor(machine: Machine<SomeStatus, SomeEvent>) {\n this.machine = machine;\n this.currentState = machine.initial;\n }\n\n /**\n * Determines which state will be the next to be transitioned.\n *\n * @param event - The event to determine which state is the new one to be\n * transitioned.\n *\n * @public\n */\n transition(event: SomeEvent): void {\n const currentState = this.machine.states[this.currentState];\n if (currentState[event]) {\n /* Typescript is not detecting the type guard in the previous if\n so we have to force it to be defined */\n this.currentState = currentState[event]!;\n }
|
|
1
|
+
{"version":3,"file":"state-machine.service.js","sources":["../../../src/services/state-machine.service.ts"],"sourcesContent":["import { Machine } from './services.types';\n\n/**\n * Default implementation for the {@link StateMachine}.\n *\n * @public\n */\nexport class StateMachine<SomeStatus extends string, SomeEvent extends string> {\n /**\n * A {@link Machine} having the different steps transition.\n *\n * @internal\n */\n private machine: Machine<SomeStatus, SomeEvent>;\n /**\n * The current state of the machine.\n *\n * @public\n */\n public currentState: SomeStatus;\n\n public constructor(machine: Machine<SomeStatus, SomeEvent>) {\n this.machine = machine;\n this.currentState = machine.initial;\n }\n\n /**\n * Determines which state will be the next to be transitioned.\n *\n * @param event - The event to determine which state is the new one to be\n * transitioned.\n *\n * @public\n */\n transition(event: SomeEvent): void {\n const currentState = this.machine.states[this.currentState];\n if (currentState[event]) {\n /* Typescript is not detecting the type guard in the previous if\n so we have to force it to be defined */\n this.currentState = currentState[event]!;\n }\n }\n}\n"],"names":[],"mappings":"AAEA;;;;;MAKa,YAAY;IAcvB,YAAmB,OAAuC;QACxD,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,YAAY,GAAG,OAAO,CAAC,OAAO,CAAC;KACrC;;;;;;;;;IAUD,UAAU,CAAC,KAAgB;QACzB,MAAM,YAAY,GAAG,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC;QAC5D,IAAI,YAAY,CAAC,KAAK,CAAC,EAAE;;;YAGvB,IAAI,CAAC,YAAY,GAAG,YAAY,CAAC,KAAK,CAAE,CAAC;SAC1C;KACF;;;;;"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@empathyco/x-components",
|
|
3
|
-
"version": "3.0.0-alpha.
|
|
3
|
+
"version": "3.0.0-alpha.248",
|
|
4
4
|
"description": "Empathy X Components",
|
|
5
5
|
"author": "Empathy Systems Corporation S.L.",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -85,7 +85,7 @@
|
|
|
85
85
|
"@cypress/vue": "~2.2.4",
|
|
86
86
|
"@cypress/webpack-dev-server": "~1.8.4",
|
|
87
87
|
"@empathyco/x-adapter-platform": "^1.0.0-alpha.45",
|
|
88
|
-
"@empathyco/x-tailwindcss": "^0.2.0-alpha.
|
|
88
|
+
"@empathyco/x-tailwindcss": "^0.2.0-alpha.34",
|
|
89
89
|
"@microsoft/api-documenter": "~7.15.3",
|
|
90
90
|
"@microsoft/api-extractor": "~7.19.4",
|
|
91
91
|
"@rollup/plugin-commonjs": "~21.0.1",
|
|
@@ -135,5 +135,5 @@
|
|
|
135
135
|
"access": "public",
|
|
136
136
|
"directory": "dist"
|
|
137
137
|
},
|
|
138
|
-
"gitHead": "
|
|
138
|
+
"gitHead": "4bf98494d91c4f0b7539f594aca7df88ac7f65b8"
|
|
139
139
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"state-machine.service.d.ts","sourceRoot":"","sources":["../../../src/services/state-machine.service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAE3C;;;;GAIG;AACH,qBAAa,YAAY,CAAC,UAAU,SAAS,MAAM,EAAE,SAAS,SAAS,MAAM;IAC3E;;;;OAIG;IACH,OAAO,CAAC,OAAO,CAAiC;IAChD;;;;OAIG;IACI,YAAY,EAAE,UAAU,CAAC;gBAEb,OAAO,EAAE,OAAO,CAAC,UAAU,EAAE,SAAS,CAAC;IAK1D;;;;;;;OAOG;IACH,UAAU,CAAC,KAAK,EAAE,SAAS,GAAG,IAAI;
|
|
1
|
+
{"version":3,"file":"state-machine.service.d.ts","sourceRoot":"","sources":["../../../src/services/state-machine.service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAE3C;;;;GAIG;AACH,qBAAa,YAAY,CAAC,UAAU,SAAS,MAAM,EAAE,SAAS,SAAS,MAAM;IAC3E;;;;OAIG;IACH,OAAO,CAAC,OAAO,CAAiC;IAChD;;;;OAIG;IACI,YAAY,EAAE,UAAU,CAAC;gBAEb,OAAO,EAAE,OAAO,CAAC,UAAU,EAAE,SAAS,CAAC;IAK1D;;;;;;;OAOG;IACH,UAAU,CAAC,KAAK,EAAE,SAAS,GAAG,IAAI;CAQnC"}
|