Skip to content

Commit

Permalink
feat(mixins): removing deprecated mixins
Browse files Browse the repository at this point in the history
  • Loading branch information
victorcg88 committed Jul 23, 2024
1 parent 37b16b6 commit f1fb2ee
Show file tree
Hide file tree
Showing 12 changed files with 11 additions and 347 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { ListItem } from '../../utils/types';
*
* @example
* `const myKey: XInjectKey<Filter> = 'myFilter';`
* `@XInject(myKey)`
* `inject(myKey)`
*
* @public
*/
Expand Down
33 changes: 0 additions & 33 deletions packages/x-components/src/components/dynamic-props.mixin.ts

This file was deleted.

1 change: 0 additions & 1 deletion packages/x-components/src/components/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,5 +31,4 @@ export { default as PageLoaderButton } from './page-loader-button.vue';

// Utils
export * from './decorators/injection.consts';
export * from './x-component.mixin';
export * from './x-component.utils';
22 changes: 0 additions & 22 deletions packages/x-components/src/components/x-component.mixin.ts

This file was deleted.

2 changes: 1 addition & 1 deletion packages/x-components/src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ const installer = new XInstaller({
rootComponent: AppComponent,
domElement: '#app',
onCreateApp: initDevtools,
async installExtraPlugins({ app }) {
installExtraPlugins({ app }) {
app.use(router);
}
});
Expand Down
2 changes: 0 additions & 2 deletions packages/x-components/src/plugins/index.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
export * from './devtools/devtools.plugin';
export * from './x-bus';
export * from './x-emitters';
export * from './x-plugin.alias';
export * from './x-plugin.mixin';
export * from './x-plugin';
export * from './x-plugin.types';
export * from './x-plugin.utils';
141 changes: 0 additions & 141 deletions packages/x-components/src/plugins/x-plugin.alias.ts

This file was deleted.

113 changes: 0 additions & 113 deletions packages/x-components/src/plugins/x-plugin.mixin.ts

This file was deleted.

4 changes: 1 addition & 3 deletions packages/x-components/src/plugins/x-plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ import { AnyXModule, XModuleName } from '../x-modules/x-modules.types';
import { sendWiringToDevtools } from './devtools/wiring.devtools';
import { bus } from './x-bus';
import { registerStoreEmitters } from './x-emitters';
import { createXComponentAPIMixin } from './x-plugin.mixin';
import { AnyXStoreModuleOption, XModuleOptions, XPluginOptions } from './x-plugin.types';
import { assertXPluginOptionsAreValid } from './x-plugin.utils';

Expand Down Expand Up @@ -138,10 +137,9 @@ export class XPlugin {
* @internal
*/
protected store!: Store<any>;

/**
* The Vue application instance, passed by the installation method.
* {@link createXComponentAPIMixin}, and install the {@link https://vuex.vuejs.org/ | Vuex}
* plugin.
*
* @internal
*/
Expand Down
6 changes: 0 additions & 6 deletions packages/x-components/src/x-installer/x-installer/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,6 @@ export interface InstallXOptions<API extends XAPI = XAPI> extends XPluginOptions
* initialized, only plugin installed.
*/
rootComponent?: Component;
/**
* The Vue application instance. If it is not passed, a new Vue application is created.
*/
app?: App;
/**
* The API to expose globally. If is not passed the default {@link BaseXAPI} will be used. If
* a `false` value is passed then the API is not created.
Expand All @@ -40,7 +36,6 @@ export interface InstallXOptions<API extends XAPI = XAPI> extends XPluginOptions
* installed.
*/
plugin?: Plugin<XPluginOptions>;

/**
* Callback to invoke after instantiating the app.
*
Expand All @@ -64,7 +59,6 @@ export interface InstallXOptions<API extends XAPI = XAPI> extends XPluginOptions
*/
export interface ExtraPluginsOptions {
/** The Vue application instance that is being used. */

app: App;
/** The events bus instance used to communicate different part of the x-components. */
bus: XBus<XEventsTypes, WireMetadata>;
Expand Down
Loading

0 comments on commit f1fb2ee

Please sign in to comment.