@dpuse/dpuse-shared 0.3.608 → 0.3.609
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.
|
@@ -1,15 +1,17 @@
|
|
|
1
1
|
import { InferOutput } from 'valibot';
|
|
2
2
|
import { componentConfigSchema, componentReferenceSchema, componentStatusSchema } from './componentConfig.schema';
|
|
3
3
|
import { LocaleCode } from '../locale';
|
|
4
|
-
|
|
5
|
-
interface Component {
|
|
4
|
+
export interface Component {
|
|
6
5
|
readonly config: ComponentConfig;
|
|
7
6
|
}
|
|
8
|
-
type ComponentConfig = InferOutput<typeof componentConfigSchema>;
|
|
9
|
-
type
|
|
7
|
+
export type ComponentConfig = InferOutput<typeof componentConfigSchema>;
|
|
8
|
+
export type ComponentLocalisedConfig = Omit<ComponentConfig, 'label' | 'description'> & {
|
|
9
|
+
label: string;
|
|
10
|
+
description: string;
|
|
11
|
+
};
|
|
12
|
+
export type ComponentReference = InferOutput<typeof componentReferenceSchema>;
|
|
10
13
|
type ComponentStatus = InferOutput<typeof componentStatusSchema>;
|
|
11
14
|
declare function getComponentStatus(id: string, localeId?: LocaleCode): ComponentStatus;
|
|
12
15
|
export { getComponentStatus };
|
|
13
16
|
export { componentConfigSchema } from './componentConfig.schema';
|
|
14
|
-
export type { Component, ComponentConfig, ComponentReference };
|
|
15
17
|
export type { ModuleConfig, ModuleTypeId } from './module';
|
package/package.json
CHANGED