Skip to content

Commit

Permalink
Merge pull request #381 from adobe/updateEventType
Browse files Browse the repository at this point in the history
Extracted Media event types from the event types suggested to be used in sendEvent action
  • Loading branch information
ninaceban committed May 8, 2024
2 parents 1e28ab6 + 655a03b commit 74fa62f
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 25 deletions.
24 changes: 0 additions & 24 deletions src/view/actions/constants/eventTypes.js
Original file line number Diff line number Diff line change
Expand Up @@ -83,30 +83,6 @@ export default {
"inappmessageTracking.dismiss": "inapp message was dimissed",
"inappmessageTracking.display": "inapp message was displayed",
"inappmessageTracking.interact": "inapp message was interacted with",
"media.ping": "Media ping",
"media.sessionStart": "Media sessionStart",
"media.play": "Media play",
"media.bufferStart": "Media bufferStart",
"media.pauseStart": "Media pauseStart",
"media.chapterStart": "Media chapterStart",
"media.chapterSkip": "Media chapterSkip",
"media.chapterComplete": "Media chapterComplete",
"media.adStart": "Media adStart",
"media.adSkip": "Media adSkip",
"media.adComplete": "Media adComplete",
"media.adBreakStart": "Media adBreakStart",
"media.adBreakComplete": "Media adBreakComplete",
"media.bitrateChange": "Media bitrateChange",
"media.error": "Media error",
"media.sessionComplete": "Media sessionComplete",
"media.sessionEnd": "Media sessionEnd",
"media.statesUpdate": "Media statesUpdate",
"media.downloaded": "Media downloaded content",
"media.reporting.sessionStart": "Media reporting sessionStart",
"media.reporting.sessionClose": "Media reporting sessionClose",
"media.reporting.adStart": "Media reporting adStart",
"media.reporting.adClose": "Media reporting adClose",
"media.reporting.chapterClose": "Media reporting chapterClose",
"location.entry": "Location entry",
"location.exit": "Location exit"
};
31 changes: 31 additions & 0 deletions src/view/actions/constants/mediaEventTypes.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
/*
Copyright 2024 Adobe. All rights reserved.
This file is licensed to you under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License. You may obtain a copy
of the License at http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under
the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
OF ANY KIND, either express or implied. See the License for the specific language
governing permissions and limitations under the License.
*/
export default {
"media.ping": "Ping",
"media.sessionStart": "Session start",
"media.play": "Play",
"media.bufferStart": "Buffer start",
"media.pauseStart": "Pause start",
"media.chapterStart": "Chapter start",
"media.chapterSkip": "Chapter skip",
"media.chapterComplete": "Chapter complete",
"media.adStart": "Ad start",
"media.adSkip": "Sd skip",
"media.adComplete": "Ad complete",
"media.adBreakStart": "Ad break start",
"media.adBreakComplete": "Ad break complete",
"media.bitrateChange": "Bitrate change",
"media.error": "Error",
"media.sessionComplete": "Session complete",
"media.sessionEnd": "Session end",
"media.statesUpdate": "States update"
};
1 change: 0 additions & 1 deletion src/view/components/codeField.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ const CodeField = ({
language,
placeholder
}) => {

const [{ value }, { touched, error }, { setValue, setTouched }] =
useField(name);

Expand Down

0 comments on commit 74fa62f

Please sign in to comment.