diff --git a/apps/component-calling/src/plugins/plugin-component-calling-weather/components/index.ts b/apps/component-calling/src/plugins/plugin-component-calling-weather/components/index.ts index 8eee490f4..7f6073256 100644 --- a/apps/component-calling/src/plugins/plugin-component-calling-weather/components/index.ts +++ b/apps/component-calling/src/plugins/plugin-component-calling-weather/components/index.ts @@ -2,11 +2,11 @@ import { object, string } from 'valibot' import Weather from './Weather.vue' -import { defineCCComponent } from '../../plugin-component-calling' +import { defineCallingComponent } from '../../plugin-component-calling' export { default as Weather } from './Weather.vue' -export const weatherComponent = defineCCComponent( +export const weatherComponent = defineCallingComponent( 'weather', Weather, object({ diff --git a/apps/component-calling/src/plugins/plugin-component-calling/index.ts b/apps/component-calling/src/plugins/plugin-component-calling/index.ts index d18d0d2c8..1b5a46fc8 100644 --- a/apps/component-calling/src/plugins/plugin-component-calling/index.ts +++ b/apps/component-calling/src/plugins/plugin-component-calling/index.ts @@ -4,7 +4,7 @@ import type { Schema } from 'xsschema' import { markRaw } from 'vue' import { toJsonSchema } from 'xsschema' -export function defineCCComponent(name: string, component: Component, schema: T, exampleProps?: Record) { +export function defineCallingComponent(name: string, component: Component, schema: T, exampleProps?: Record) { return { name, schema: toJsonSchema(schema),