umwelt-js 0.2.0 → 0.2.2

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/dist/index.d.ts CHANGED
@@ -151,12 +151,18 @@ interface UmweltSpec {
151
151
  text: TextSpec;
152
152
  }
153
153
  type ExportableFieldDef = Omit<FieldDef, 'encodings' | 'active'>;
154
+ type ExportableVisualUnitSpec = Omit<VisualUnitSpec, 'name'> & {
155
+ name?: string;
156
+ };
157
+ type ExportableAudioUnitSpec = Omit<AudioUnitSpec, 'name'> & {
158
+ name?: string;
159
+ };
154
160
  interface ExportableVisualSpec {
155
- units: VisualUnitSpec[];
161
+ units: ExportableVisualUnitSpec[];
156
162
  composition?: ViewComposition;
157
163
  }
158
164
  interface ExportableAudioSpec {
159
- units: AudioUnitSpec[];
165
+ units: ExportableAudioUnitSpec[];
160
166
  composition?: ViewComposition;
161
167
  }
162
168
  interface ExportableTextSpec {
@@ -165,8 +171,8 @@ interface ExportableTextSpec {
165
171
  interface ExportableSpec extends Omit<UmweltSpec, 'fields' | 'data' | 'visual' | 'audio' | 'text'> {
166
172
  data: ExportableUmweltDataSource;
167
173
  fields: ExportableFieldDef[];
168
- visual: ExportableVisualSpec | VisualUnitSpec;
169
- audio: ExportableAudioSpec | AudioUnitSpec;
174
+ visual: ExportableVisualSpec | ExportableVisualUnitSpec;
175
+ audio: ExportableAudioSpec | ExportableAudioUnitSpec;
170
176
  text?: ExportableTextSpec;
171
177
  }
172
178