@dpuse/dpuse-shared 0.3.638 → 0.3.640

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,3 +1,4 @@
1
+ export declare const contextOperationNameSchema: import('valibot').UnionSchema<readonly [import('valibot').LiteralSchema<"listContextFocuses", undefined>], undefined>;
1
2
  export declare const contextConfigSchema: import('valibot').ObjectSchema<{
2
3
  readonly typeId: import('valibot').LiteralSchema<"context", undefined>;
3
4
  readonly models: import('valibot').ArraySchema<import('valibot').ObjectSchema<{
@@ -1,8 +1,8 @@
1
1
  import { InferOutput } from 'valibot';
2
- import { contextConfigSchema } from './contextConfig.schema';
3
2
  import { EngineContextActionOptions } from '../../../engine';
4
3
  import { Localised } from '../../../locale';
5
4
  import { Component, ComponentConfig, ComponentReference } from '../..';
5
+ import { contextConfigSchema, contextOperationNameSchema } from './contextConfig.schema';
6
6
  export { contextConfigSchema } from './contextConfig.schema';
7
7
  export interface ContextInterface extends Component {
8
8
  readonly config: ContextConfig;
@@ -10,6 +10,7 @@ export interface ContextInterface extends Component {
10
10
  }
11
11
  export type ContextConfig = InferOutput<typeof contextConfigSchema>;
12
12
  export type ContextLocalisedConfig = Localised<ContextConfig>;
13
+ export type ContextOperationName = InferOutput<typeof contextOperationNameSchema>;
13
14
  export interface ContextModelGroupConfig extends ComponentConfig {
14
15
  modelRefs: ComponentReference[];
15
16
  order: number;
@@ -1,6 +1,8 @@
1
+ import { InferOutput } from 'valibot';
2
+ import { Localised } from '../../../locale';
1
3
  import { ModuleConfig } from '..';
4
+ import { presenterOperationNameSchema } from './presenterConfig.schema';
2
5
  import { Component, ComponentReference } from '../..';
3
- import { Localised } from '../../../locale';
4
6
  export { presenterConfigSchema } from './presenterConfig.schema';
5
7
  export interface PresenterInterface extends Component {
6
8
  readonly config: PresenterConfig;
@@ -10,8 +12,8 @@ export interface PresenterInterface extends Component {
10
12
  }
11
13
  export interface PresenterConfig extends ModuleConfig {
12
14
  presentations: ComponentReference[];
13
- operations: PresenterOperation[];
15
+ operations: PresenterOperationName[];
14
16
  typeId: 'presenter';
15
17
  }
16
18
  export type PresenterLocalisedConfig = Localised<PresenterConfig>;
17
- export type PresenterOperation = 'list' | 'render' | 'setColorMode';
19
+ export type PresenterOperationName = InferOutput<typeof presenterOperationNameSchema>;
@@ -5,6 +5,7 @@ export type PresentationConfig = InferOutput<typeof presenterConfigSchema>;
5
5
  export interface PresentationConfig1 extends ComponentConfig {
6
6
  content: string;
7
7
  order: number;
8
+ typeId: 'presenterPresentation';
8
9
  }
9
10
  export interface PresentationVisualConfig {
10
11
  content: PresentationVisualContentConfig;
@@ -1,3 +1,4 @@
1
+ export declare const presenterOperationNameSchema: import('valibot').UnionSchema<readonly [import('valibot').LiteralSchema<"list", undefined>, import('valibot').LiteralSchema<"render", undefined>, import('valibot').LiteralSchema<"setColorMode", undefined>], undefined>;
1
2
  export declare const presenterConfigSchema: import('valibot').ObjectSchema<{
2
3
  readonly typeId: import('valibot').LiteralSchema<"presenter", undefined>;
3
4
  readonly presentations: import('valibot').ArraySchema<import('valibot').ObjectSchema<{
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dpuse/dpuse-shared",
3
- "version": "0.3.638",
3
+ "version": "0.3.640",
4
4
  "description": "Common constants, types and utilities used across all DPUse projects.",
5
5
  "license": "MIT",
6
6
  "author": "Jonathan Terrell <terrell.jm@gmail.com>",