@applicaster/zapp-react-native-utils 15.1.10 → 15.1.11-alpha.2710844646
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/actionsExecutor/ActionExecutor.ts +40 -2
- package/actionsExecutor/ActionExecutorContext.tsx +70 -16
- package/actionsExecutor/actions/__tests__/dismissBottomSheet.test.ts +22 -0
- package/actionsExecutor/actions/__tests__/loadItemsFromSource.test.ts +88 -0
- package/actionsExecutor/actions/__tests__/openBottomSheet.customContent.test.ts +76 -0
- package/actionsExecutor/actions/__tests__/openBottomSheet.inlineItems.test.ts +100 -0
- package/actionsExecutor/actions/dismissBottomSheet.ts +22 -0
- package/actionsExecutor/actions/index.ts +4 -0
- package/actionsExecutor/actions/openBottomSheet.ts +320 -0
- package/actionsExecutor/actions/refreshComponent.ts +6 -0
- package/actionsExecutor/actions/sendCloudEvent.ts +6 -1
- package/actionsExecutor/consts.ts +23 -0
- package/actionsExecutor/types.ts +1 -1
- package/appUtils/playerManager/OverlayObserver/OverlaysObserver.ts +5 -2
- package/appUtils/playerManager/OverlayObserver/__tests__/utils.test.ts +55 -2
- package/appUtils/playerManager/OverlayObserver/getUpcomingQueue.android.tv.ts +4 -0
- package/appUtils/playerManager/OverlayObserver/getUpcomingQueue.ios.tv.ts +4 -0
- package/appUtils/playerManager/OverlayObserver/getUpcomingQueue.ts +11 -0
- package/appUtils/playerManager/OverlayObserver/getUpcomingQueue.web.ts +4 -0
- package/appUtils/playerManager/OverlayObserver/utils.ts +51 -20
- package/arrayUtils/__tests__/reorderByIds.test.ts +50 -0
- package/arrayUtils/index.ts +79 -0
- package/configurationUtils/__tests__/modalBlocksParser.test.ts +107 -0
- package/configurationUtils/manifestKeyParser.ts +38 -9
- package/configurationUtils/modalBlocksParser.ts +178 -0
- package/entryActions/__tests__/buildEntryActions.test.ts +156 -0
- package/entryActions/aliasPresentation.ts +124 -0
- package/entryActions/buildEntryActions.ts +166 -0
- package/entryActions/index.ts +17 -0
- package/entryActions/types.ts +39 -0
- package/manifestUtils/defaultManifestConfigurations/player.js +22 -1
- package/manifestUtils/index.js +3 -0
- package/manifestUtils/modalBlocks.js +304 -0
- package/modalState/ContentViewModel.ts +113 -0
- package/modalState/EditableCollection.ts +17 -0
- package/modalState/EditableCollectionRegistry.ts +51 -0
- package/modalState/ModalOrchestrator.ts +199 -0
- package/modalState/RemoteEditableCollection.ts +227 -0
- package/modalState/__tests__/ContentViewModel.editable.test.ts +69 -0
- package/modalState/__tests__/ContentViewModel.test.ts +165 -0
- package/modalState/__tests__/EditableCollectionRegistry.test.ts +112 -0
- package/modalState/__tests__/ModalOrchestrator.phase3.test.ts +47 -0
- package/modalState/__tests__/RemoteEditableCollection.test.ts +326 -0
- package/modalState/__tests__/useBottomSheetContent.test.ts +349 -0
- package/modalState/index.ts +30 -83
- package/modalState/store.ts +102 -0
- package/modalState/types.ts +133 -0
- package/modalState/useBottomSheetContent.ts +102 -0
- package/package.json +2 -2
- package/playerUtils/__tests__/resolvePlayerActions.test.ts +138 -0
- package/playerUtils/index.ts +17 -1
- package/playerUtils/resolvePlayerActions.ts +71 -0
- package/reactHooks/actions/index.ts +67 -2
- package/reactHooks/usePluginConfiguration.ts +6 -3
- package/uiActionsRegistrator/__tests__/resolveActionIdentifiers.test.ts +93 -0
- package/uiActionsRegistrator/__tests__/subscribe.test.ts +107 -0
- package/uiActionsRegistrator/__tests__/usableActionItems.test.ts +52 -0
- package/uiActionsRegistrator/index.ts +25 -203
- package/uiActionsRegistrator/registry.ts +335 -0
- package/uiActionsRegistrator/resolveActionIdentifiers.ts +100 -0
- package/uiActionsRegistrator/usableActionItems.ts +66 -0
- package/playerUtils/__tests__/getPlayerActionButtons.test.ts +0 -54
- package/playerUtils/getPlayerActionButtons.ts +0 -17
- /package/reactHooks/actions/__tests__/{index.test.js → index.test.tsx} +0 -0
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Presentation defaults for backend action aliases.
|
|
3
|
+
*
|
|
4
|
+
* Entries may declare an action by `alias` alone, without a label or an icon.
|
|
5
|
+
* These maps are the last-resort labels/icons for the aliases we know about; an
|
|
6
|
+
* unknown alias falls back to a humanized version of the alias itself.
|
|
7
|
+
*
|
|
8
|
+
* They are defaults, not a framework guarantee: an app that speaks a different
|
|
9
|
+
* alias vocabulary, needs other languages, or does not want to depend on these
|
|
10
|
+
* icon hosts passes its own through `EntryActionDeps.aliasPresentation`.
|
|
11
|
+
*/
|
|
12
|
+
|
|
13
|
+
import { EntryAction } from "./types";
|
|
14
|
+
|
|
15
|
+
const ADD_TO_PLAYLIST_ICON =
|
|
16
|
+
"https://assets-secure.applicaster.com/zapp/assets/app_family/1710/906728572617/playlist_add_24dp_FFFFFF_FILL0_wght400_GRAD0_opsz24.png";
|
|
17
|
+
|
|
18
|
+
const REMOVE_ICON =
|
|
19
|
+
"https://assets-secure.applicaster.com/zapp/assets/app_family/1710/372097240191/remove_24dp_EA3323_FILL0_wght400_GRAD0_opsz24.png";
|
|
20
|
+
|
|
21
|
+
const EDIT_ICON =
|
|
22
|
+
"https://upload.wikimedia.org/wikipedia/commons/b/b6/Edit-icon.png";
|
|
23
|
+
|
|
24
|
+
/** Known backend action alias labels. */
|
|
25
|
+
export const ALIAS_LABELS: Record<string, string> = {
|
|
26
|
+
add_to_playlist: "Add to Playlist",
|
|
27
|
+
add_to_queue: "Add to Queue",
|
|
28
|
+
add_all_to_queue: "Add all to Queue",
|
|
29
|
+
play_all: "Play All",
|
|
30
|
+
remove_item: "Remove item",
|
|
31
|
+
delete_collection: "Delete collection",
|
|
32
|
+
create_collection: "Create collection",
|
|
33
|
+
edit: "Edit",
|
|
34
|
+
edit_name: "Edit Name & Details",
|
|
35
|
+
};
|
|
36
|
+
|
|
37
|
+
/** Known backend action alias image assets. */
|
|
38
|
+
export const ALIAS_ASSETS: Record<string, string> = {
|
|
39
|
+
add_to_playlist: ADD_TO_PLAYLIST_ICON,
|
|
40
|
+
add_to_queue: ADD_TO_PLAYLIST_ICON,
|
|
41
|
+
add_all_to_queue: ADD_TO_PLAYLIST_ICON,
|
|
42
|
+
play_all: ADD_TO_PLAYLIST_ICON,
|
|
43
|
+
remove_item: REMOVE_ICON,
|
|
44
|
+
delete_collection: REMOVE_ICON,
|
|
45
|
+
edit: EDIT_ICON,
|
|
46
|
+
edit_name: EDIT_ICON,
|
|
47
|
+
};
|
|
48
|
+
|
|
49
|
+
/** Per-app overrides for the maps above. */
|
|
50
|
+
export type AliasPresentation = {
|
|
51
|
+
labels?: Record<string, string>;
|
|
52
|
+
assets?: Record<string, string>;
|
|
53
|
+
};
|
|
54
|
+
|
|
55
|
+
function formatAliasLabel(
|
|
56
|
+
alias: string,
|
|
57
|
+
overrides?: AliasPresentation
|
|
58
|
+
): string {
|
|
59
|
+
const label = overrides?.labels?.[alias] ?? ALIAS_LABELS[alias];
|
|
60
|
+
|
|
61
|
+
if (label) {
|
|
62
|
+
return label;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
const formatted = alias.replace(/_/g, " ");
|
|
66
|
+
|
|
67
|
+
return formatted.charAt(0).toUpperCase() + formatted.slice(1);
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
const nonEmptyString = (value: unknown): value is string =>
|
|
71
|
+
typeof value === "string" && value.length > 0;
|
|
72
|
+
|
|
73
|
+
/**
|
|
74
|
+
* Label the backend stated outright, if any. Distinct from
|
|
75
|
+
* {@link resolveButtonLabel} because an explicit label outranks the executor's
|
|
76
|
+
* action state, while the alias fallback does not.
|
|
77
|
+
*/
|
|
78
|
+
export function resolveExplicitLabel(
|
|
79
|
+
button: EntryAction["button"]
|
|
80
|
+
): string | undefined {
|
|
81
|
+
if (nonEmptyString(button?.title)) {
|
|
82
|
+
return button.title;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
if (nonEmptyString(button?.label)) {
|
|
86
|
+
return button.label;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
return undefined;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
/** Label to show for an entry action: explicit title/label, else the alias. */
|
|
93
|
+
export function resolveButtonLabel(
|
|
94
|
+
button: EntryAction["button"],
|
|
95
|
+
overrides?: AliasPresentation
|
|
96
|
+
): string {
|
|
97
|
+
const explicit = resolveExplicitLabel(button);
|
|
98
|
+
|
|
99
|
+
if (explicit) {
|
|
100
|
+
return explicit;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
if (nonEmptyString(button?.alias)) {
|
|
104
|
+
return formatAliasLabel(button.alias, overrides);
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
return "";
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
/** Icon to show for an entry action: explicit iconURL, else the alias default. */
|
|
111
|
+
export function resolveButtonAsset(
|
|
112
|
+
button: EntryAction["button"],
|
|
113
|
+
overrides?: AliasPresentation
|
|
114
|
+
): string | undefined {
|
|
115
|
+
if (button?.iconURL) {
|
|
116
|
+
return button.iconURL;
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
if (!button?.alias) {
|
|
120
|
+
return undefined;
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
return overrides?.assets?.[button.alias] ?? ALIAS_ASSETS[button.alias];
|
|
124
|
+
}
|
|
@@ -0,0 +1,166 @@
|
|
|
1
|
+
/// <reference types="@applicaster/applicaster-types" />
|
|
2
|
+
import { createLogger } from "../logger";
|
|
3
|
+
import { ActionExecutionContext } from "../actionsExecutor/types";
|
|
4
|
+
import { RegisteredAction } from "../uiActionsRegistrator";
|
|
5
|
+
|
|
6
|
+
import {
|
|
7
|
+
resolveButtonAsset,
|
|
8
|
+
resolveButtonLabel,
|
|
9
|
+
resolveExplicitLabel,
|
|
10
|
+
} from "./aliasPresentation";
|
|
11
|
+
import { EntryAction, EntryActionDeps } from "./types";
|
|
12
|
+
|
|
13
|
+
const { log_info, log_warning, log_error } = createLogger({
|
|
14
|
+
subsystem: "EntryActions",
|
|
15
|
+
category: "EntryAction",
|
|
16
|
+
});
|
|
17
|
+
|
|
18
|
+
const ENTRY_ACTION_IDENTIFIER_PREFIX = "entry_action";
|
|
19
|
+
|
|
20
|
+
/** True for actions inflated from `entry.extensions.entry_action`. */
|
|
21
|
+
export function isEntryAction(item: RegisteredAction): boolean {
|
|
22
|
+
return item?.source === "entry";
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
function isValidEntryAction(value: unknown): value is EntryAction {
|
|
26
|
+
if (typeof value !== "object" || value === null) {
|
|
27
|
+
return false;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
const { button, actions } = value as EntryAction;
|
|
31
|
+
|
|
32
|
+
return (
|
|
33
|
+
(typeof button?.title === "string" ||
|
|
34
|
+
typeof button?.label === "string" ||
|
|
35
|
+
typeof button?.alias === "string") &&
|
|
36
|
+
Array.isArray(actions)
|
|
37
|
+
);
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
function createEntryAction(
|
|
41
|
+
entryAction: EntryAction,
|
|
42
|
+
index: number,
|
|
43
|
+
entry: ZappEntry | ZappFeed,
|
|
44
|
+
deps: EntryActionDeps
|
|
45
|
+
): RegisteredAction {
|
|
46
|
+
const { button, actions, dismiss_on_action } = entryAction;
|
|
47
|
+
|
|
48
|
+
const identifier = `${ENTRY_ACTION_IDENTIFIER_PREFIX}_${index}`;
|
|
49
|
+
const primaryAction = actions.length > 0 ? actions[0] : null;
|
|
50
|
+
|
|
51
|
+
const actionState = primaryAction
|
|
52
|
+
? deps.actionExecutor?.getActionState?.(primaryAction.type, entry)
|
|
53
|
+
: null;
|
|
54
|
+
|
|
55
|
+
// An explicit title/label outranks the executor's action state; the
|
|
56
|
+
// alias-derived defaults only fill in when neither produced anything.
|
|
57
|
+
const label: CellActionEntryState["label"] =
|
|
58
|
+
resolveExplicitLabel(button) ||
|
|
59
|
+
actionState?.label ||
|
|
60
|
+
resolveButtonLabel(button, deps.aliasPresentation);
|
|
61
|
+
|
|
62
|
+
const asset: CellActionEntryState["asset"] =
|
|
63
|
+
button?.iconURL ||
|
|
64
|
+
actionState?.asset ||
|
|
65
|
+
resolveButtonAsset(button, deps.aliasPresentation);
|
|
66
|
+
|
|
67
|
+
const initialState = { state: 0, label, asset };
|
|
68
|
+
|
|
69
|
+
return {
|
|
70
|
+
identifier,
|
|
71
|
+
source: "entry",
|
|
72
|
+
action: {
|
|
73
|
+
initialEntryState: () => initialState,
|
|
74
|
+
invokeAction: async (
|
|
75
|
+
invokedEntry: ZappEntry,
|
|
76
|
+
options: InvokeArgsOptions = {}
|
|
77
|
+
) => {
|
|
78
|
+
if (dismiss_on_action === true) {
|
|
79
|
+
options.dismiss?.();
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
log_info(
|
|
83
|
+
`invokeAction: entry action "${identifier}" triggered for entry "${invokedEntry?.id}"`,
|
|
84
|
+
{ identifier, entryId: invokedEntry?.id, actionCount: actions.length }
|
|
85
|
+
);
|
|
86
|
+
|
|
87
|
+
// Both of these leave the user with a button that does nothing when
|
|
88
|
+
// tapped, and neither throws, so they would otherwise be invisible.
|
|
89
|
+
if (actions.length === 0) {
|
|
90
|
+
log_warning(
|
|
91
|
+
`invokeAction: entry action "${identifier}" on entry "${invokedEntry?.id}" declares no actions - the tap does nothing`,
|
|
92
|
+
{ identifier, entryId: invokedEntry?.id }
|
|
93
|
+
);
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
if (typeof deps.actionExecutor?.handleActions !== "function") {
|
|
97
|
+
log_warning(
|
|
98
|
+
`invokeAction: no action executor available for entry action "${identifier}" - the tap does nothing`,
|
|
99
|
+
{ identifier, entryId: invokedEntry?.id }
|
|
100
|
+
);
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
try {
|
|
104
|
+
await deps.actionExecutor?.handleActions(actions, {
|
|
105
|
+
entry: invokedEntry,
|
|
106
|
+
entryContext: invokedEntry,
|
|
107
|
+
...deps.actionContext,
|
|
108
|
+
} as ActionExecutionContext);
|
|
109
|
+
} catch (error) {
|
|
110
|
+
log_error(
|
|
111
|
+
`invokeAction: entry action "${identifier}" failed for entry "${invokedEntry?.id}"`,
|
|
112
|
+
{
|
|
113
|
+
identifier,
|
|
114
|
+
entryId: invokedEntry?.id,
|
|
115
|
+
// Types only - the action payloads are backend supplied and may
|
|
116
|
+
// carry user data.
|
|
117
|
+
actionTypes: actions.map((action) => action?.type),
|
|
118
|
+
error,
|
|
119
|
+
}
|
|
120
|
+
);
|
|
121
|
+
}
|
|
122
|
+
},
|
|
123
|
+
},
|
|
124
|
+
};
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
/**
|
|
128
|
+
* Builds the list of actions declared on an entry via
|
|
129
|
+
* `entry.extensions.entry_action`.
|
|
130
|
+
*/
|
|
131
|
+
export function buildEntryActions(
|
|
132
|
+
entry: ZappEntry | ZappFeed,
|
|
133
|
+
deps: EntryActionDeps
|
|
134
|
+
): RegisteredAction[] {
|
|
135
|
+
const entryId = (entry as ZappEntry)?.id;
|
|
136
|
+
const raw = (entry as any)?.extensions?.entry_action;
|
|
137
|
+
|
|
138
|
+
// Most entries simply declare no actions. This provider is resolved for
|
|
139
|
+
// every entry on every render, so saying so would drown everything else.
|
|
140
|
+
if (raw === undefined || raw === null) {
|
|
141
|
+
return [];
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
if (!Array.isArray(raw)) {
|
|
145
|
+
log_warning(
|
|
146
|
+
`buildEntryActions: entry "${entryId}" has extensions.entry_action of type ${typeof raw} instead of an array - no entry actions will be shown`,
|
|
147
|
+
{ entryId, receivedType: typeof raw }
|
|
148
|
+
);
|
|
149
|
+
|
|
150
|
+
return [];
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
const valid = raw.filter(isValidEntryAction);
|
|
154
|
+
const invalid = raw.length - valid.length;
|
|
155
|
+
|
|
156
|
+
if (invalid > 0) {
|
|
157
|
+
log_warning(
|
|
158
|
+
`buildEntryActions: ${invalid} invalid entry action(s) skipped for entry "${entryId}"`,
|
|
159
|
+
{ entryId, total: raw.length, invalid }
|
|
160
|
+
);
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
return valid.map((entryAction, index) =>
|
|
164
|
+
createEntryAction(entryAction, index, entry, deps)
|
|
165
|
+
);
|
|
166
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export { buildEntryActions, isEntryAction } from "./buildEntryActions";
|
|
2
|
+
|
|
3
|
+
export {
|
|
4
|
+
ALIAS_ASSETS,
|
|
5
|
+
ALIAS_LABELS,
|
|
6
|
+
resolveButtonAsset,
|
|
7
|
+
resolveButtonLabel,
|
|
8
|
+
resolveExplicitLabel,
|
|
9
|
+
} from "./aliasPresentation";
|
|
10
|
+
|
|
11
|
+
export type {
|
|
12
|
+
EntryAction,
|
|
13
|
+
EntryActionDeps,
|
|
14
|
+
EntryActionExecutionContext,
|
|
15
|
+
} from "./types";
|
|
16
|
+
|
|
17
|
+
export type { AliasPresentation } from "./aliasPresentation";
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
/// <reference types="@applicaster/applicaster-types" />
|
|
2
|
+
import type { ActionExecutorContextType } from "../actionsExecutor/ActionExecutorContext";
|
|
3
|
+
import type { AliasPresentation } from "./aliasPresentation";
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* A single action declared by the backend on an entry, under
|
|
7
|
+
* `entry.extensions.entry_action`.
|
|
8
|
+
*/
|
|
9
|
+
export type EntryAction = {
|
|
10
|
+
button: {
|
|
11
|
+
title?: string;
|
|
12
|
+
label?: string;
|
|
13
|
+
alias?: string;
|
|
14
|
+
iconURL?: string;
|
|
15
|
+
};
|
|
16
|
+
actions: ZappActionType[];
|
|
17
|
+
dismiss_on_action?: boolean;
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
* Everything `buildEntryActions` needs from the surrounding React tree in order
|
|
22
|
+
* to execute an entry action. Supplied lazily so the registered provider always
|
|
23
|
+
* reads the freshest screen context.
|
|
24
|
+
*/
|
|
25
|
+
export type EntryActionDeps = {
|
|
26
|
+
actionExecutor: ActionExecutorContextType;
|
|
27
|
+
actionContext: EntryActionExecutionContext;
|
|
28
|
+
/** App-supplied labels/icons for backend aliases; defaults are used without it. */
|
|
29
|
+
aliasPresentation?: AliasPresentation;
|
|
30
|
+
};
|
|
31
|
+
|
|
32
|
+
/** The screen the action is executed against, spread into the execution context. */
|
|
33
|
+
export type EntryActionExecutionContext = {
|
|
34
|
+
screenData?: unknown;
|
|
35
|
+
screenState?: unknown;
|
|
36
|
+
screenRoute?: string;
|
|
37
|
+
screenStateStore?: unknown;
|
|
38
|
+
screenEntry?: unknown;
|
|
39
|
+
};
|
|
@@ -204,6 +204,20 @@ function getPlayerConfiguration({ platform, version }) {
|
|
|
204
204
|
label_tooltip: "Label for close button accessibility",
|
|
205
205
|
type: "text_input",
|
|
206
206
|
},
|
|
207
|
+
{
|
|
208
|
+
key: "accessibility_overflow_label",
|
|
209
|
+
label: "Accessibility overflow label",
|
|
210
|
+
initial_value: "More actions",
|
|
211
|
+
label_tooltip: "Label for the overflow (…) button accessibility",
|
|
212
|
+
type: "text_input",
|
|
213
|
+
},
|
|
214
|
+
{
|
|
215
|
+
key: "accessibility_overflow_hint",
|
|
216
|
+
label: "Accessibility overflow hint",
|
|
217
|
+
initial_value: "Opens the remaining player actions",
|
|
218
|
+
label_tooltip: "Hint for the overflow (…) button accessibility",
|
|
219
|
+
type: "text_input",
|
|
220
|
+
},
|
|
207
221
|
{
|
|
208
222
|
key: "accessibility_close_hint",
|
|
209
223
|
label: "Accessibility close hint",
|
|
@@ -747,7 +761,7 @@ function getPlayerConfiguration({ platform, version }) {
|
|
|
747
761
|
label: "Player action buttons",
|
|
748
762
|
initial_value: null,
|
|
749
763
|
label_tooltip:
|
|
750
|
-
"
|
|
764
|
+
"Comma-separated action identifiers. The entry_actions token expands from the playing entry's extensions.entry_action. When more than 2 actions resolve, the video and fullscreen audio players show Overflow (…) plus one companion - the first action that did not come from the entry, otherwise the first one - and the Overflow sheet lists every resolved action. A repeated identifier is counted once. No extra plugin is required.",
|
|
751
765
|
type: "text_input",
|
|
752
766
|
},
|
|
753
767
|
{
|
|
@@ -1047,6 +1061,13 @@ function getPlayerConfiguration({ platform, version }) {
|
|
|
1047
1061
|
type: "uploader",
|
|
1048
1062
|
label_tooltip: "Override default close badge / icon",
|
|
1049
1063
|
},
|
|
1064
|
+
{
|
|
1065
|
+
key: "overflow",
|
|
1066
|
+
label: "Overflow badge",
|
|
1067
|
+
type: "uploader",
|
|
1068
|
+
label_tooltip:
|
|
1069
|
+
"Override default overflow (…) badge / icon, shown when more action buttons resolve than fit on the player overlay",
|
|
1070
|
+
},
|
|
1050
1071
|
{
|
|
1051
1072
|
key: "lock",
|
|
1052
1073
|
label: "Lock player badge",
|
package/manifestUtils/index.js
CHANGED
|
@@ -23,6 +23,7 @@ const {
|
|
|
23
23
|
const { buttonKey } = require("./buttons");
|
|
24
24
|
const { tvBadges } = require("./tvBadges");
|
|
25
25
|
const { mobileProgressBar, tvProgressBar } = require("./progressBar");
|
|
26
|
+
const { getModalBlockStyles, getModalLocalizations } = require("./modalBlocks");
|
|
26
27
|
|
|
27
28
|
const {
|
|
28
29
|
secondaryImage,
|
|
@@ -52,4 +53,6 @@ module.exports = {
|
|
|
52
53
|
getUpdatedSecondaryImageKeys,
|
|
53
54
|
DEFAULT_GRADIENT_IMAGE,
|
|
54
55
|
compact,
|
|
56
|
+
getModalBlockStyles,
|
|
57
|
+
getModalLocalizations,
|
|
55
58
|
};
|