entangled-worlds-orbiters-shared 6.0.0 → 6.0.1
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.
|
@@ -12,7 +12,7 @@ export interface ShortcutSheetRow extends ShortcutNamed {
|
|
|
12
12
|
export interface ShortcutSheetColumn extends ShortcutNamed {
|
|
13
13
|
readonly rows: readonly ShortcutSheetRow[];
|
|
14
14
|
}
|
|
15
|
-
/** One surface's keys (`orbiters-play`, `ew-studio`, `
|
|
15
|
+
/** One surface's keys (`orbiters-play`, `ew-clip-studio`, `root`). Two actions clash only inside a section. */
|
|
16
16
|
export interface ShortcutSection {
|
|
17
17
|
readonly id: string;
|
|
18
18
|
/** The app it belongs to (`orbiters`) and that app's name. */
|
|
@@ -54,7 +54,7 @@ export declare function localName(item: {
|
|
|
54
54
|
}, locale?: string): string;
|
|
55
55
|
/** A section's app name in a language. */
|
|
56
56
|
export declare function localAppName(section: Pick<ShortcutSection, 'appLabel' | 'appNames'>, locale?: string): string;
|
|
57
|
-
/** A section's part name (`Play`, `Studio`) in a language; `undefined` when it has none. */
|
|
57
|
+
/** A section's part name (`Play`, `Orbiter Studio`) in a language; `undefined` when it has none. */
|
|
58
58
|
export declare function localPartName(section: Pick<ShortcutSection, 'part' | 'partNames'>, locale?: string): string | undefined;
|
|
59
59
|
/** The apps the catalogue has, in its order. */
|
|
60
60
|
export declare function shortcutApps(catalogue: ShortcutCatalogue): ReadonlyArray<{
|
|
@@ -82,7 +82,7 @@ export function localName(item, locale) {
|
|
|
82
82
|
export function localAppName(section, locale) {
|
|
83
83
|
return localName({ label: section.appLabel, names: section.appNames }, locale);
|
|
84
84
|
}
|
|
85
|
-
/** A section's part name (`Play`, `Studio`) in a language; `undefined` when it has none. */
|
|
85
|
+
/** A section's part name (`Play`, `Orbiter Studio`) in a language; `undefined` when it has none. */
|
|
86
86
|
export function localPartName(section, locale) {
|
|
87
87
|
return section.part === undefined ? undefined : localName({ label: section.part, names: section.partNames }, locale);
|
|
88
88
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "entangled-worlds-orbiters-shared",
|
|
3
|
-
"version": "6.0.
|
|
3
|
+
"version": "6.0.1",
|
|
4
4
|
"description": "Shared library for entangled worlds orbiters - contains core world rendering, moons system, and UI components",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -20,7 +20,7 @@ export interface ShortcutSheetColumn extends ShortcutNamed {
|
|
|
20
20
|
readonly rows: readonly ShortcutSheetRow[]
|
|
21
21
|
}
|
|
22
22
|
|
|
23
|
-
/** One surface's keys (`orbiters-play`, `ew-studio`, `
|
|
23
|
+
/** One surface's keys (`orbiters-play`, `ew-clip-studio`, `root`). Two actions clash only inside a section. */
|
|
24
24
|
export interface ShortcutSection {
|
|
25
25
|
readonly id: string
|
|
26
26
|
/** The app it belongs to (`orbiters`) and that app's name. */
|
|
@@ -135,7 +135,7 @@ export function localAppName(section: Pick<ShortcutSection, 'appLabel' | 'appNam
|
|
|
135
135
|
return localName({ label: section.appLabel, names: section.appNames }, locale)
|
|
136
136
|
}
|
|
137
137
|
|
|
138
|
-
/** A section's part name (`Play`, `Studio`) in a language; `undefined` when it has none. */
|
|
138
|
+
/** A section's part name (`Play`, `Orbiter Studio`) in a language; `undefined` when it has none. */
|
|
139
139
|
export function localPartName(section: Pick<ShortcutSection, 'part' | 'partNames'>, locale?: string): string | undefined {
|
|
140
140
|
return section.part === undefined ? undefined : localName({ label: section.part, names: section.partNames }, locale)
|
|
141
141
|
}
|