{"action":"created","comment":{"url":"https://api.github.com/repos/wix/wix-ui/pulls/comments/236065084","pull_request_review_id":178062977,"id":236065084,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIzNjA2NTA4NA==","diff_hunk":"@@ -0,0 +1,70 @@\n+import * as loadScript from 'load-script';\n+import {ISDKConfig} from '../types';\n+\n+const stack = {};\n+\n+const loadSDK = (name, url, onLoaded, onError, onReady) => {\n+  loadScript(url, err => {\n+    if (err) {\n+      onError(err);\n+    }\n+\n+    if (onReady) {\n+      const previousOnReady = window[onReady];\n+\n+      window[onReady] = () => {\n+        if (previousOnReady) {\n+          previousOnReady();\n+        }\n+        onLoaded(window[name])\n+      }\n+    } else {\n+      onLoaded(window[name]);\n+    }\n+  })\n+};\n+\n+const requireSDK = (name, url, onLoaded, onError, resolveRequire) => {\n+  // @ts-ignore\n+  window.require([url], sdk => {\n+    window[name] = resolveRequire(sdk);\n+    onLoaded(window[name])\n+  }, err => {\n+    onError(err);\n+  })\n+};\n+\n+export function getSDK({","path":"packages/wix-ui-core/src/components/Video/utils/getSDK.ts","position":37,"original_position":37,"commit_id":"b36b37c82f640c3fcba6ea98905bcdbb2ec728fd","original_commit_id":"b36b37c82f640c3fcba6ea98905bcdbb2ec728fd","user":{"login":"shlomitc","id":6093192,"node_id":"MDQ6VXNlcjYwOTMxOTI=","avatar_url":"https://avatars0.githubusercontent.com/u/6093192?v=4","gravatar_id":"","url":"https://api.github.com/users/shlomitc","html_url":"https://github.com/shlomitc","followers_url":"https://api.github.com/users/shlomitc/followers","following_url":"https://api.github.com/users/shlomitc/following{/other_user}","gists_url":"https://api.github.com/users/shlomitc/gists{/gist_id}","starred_url":"https://api.github.com/users/shlomitc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shlomitc/subscriptions","organizations_url":"https://api.github.com/users/shlomitc/orgs","repos_url":"https://api.github.com/users/shlomitc/repos","events_url":"https://api.github.com/users/shlomitc/events{/privacy}","received_events_url":"https://api.github.com/users/shlomitc/received_events","type":"User","site_admin":false},"body":"this should probably be tested as well","created_at":"2018-11-25T08:47:47Z","updated_at":"2018-11-25T08:55:16Z","html_url":"https://github.com/wix/wix-ui/pull/843#discussion_r236065084","pull_request_url":"https://api.github.com/repos/wix/wix-ui/pulls/843","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/wix/wix-ui/pulls/comments/236065084"},"html":{"href":"https://github.com/wix/wix-ui/pull/843#discussion_r236065084"},"pull_request":{"href":"https://api.github.com/repos/wix/wix-ui/pulls/843"}}},"pull_request":{"url":"https://api.github.com/repos/wix/wix-ui/pulls/843","id":226990993,"node_id":"MDExOlB1bGxSZXF1ZXN0MjI2OTkwOTkz","html_url":"https://github.com/wix/wix-ui/pull/843","diff_url":"https://github.com/wix/wix-ui/pull/843.diff","patch_url":"https://github.com/wix/wix-ui/pull/843.patch","issue_url":"https://api.github.com/repos/wix/wix-ui/issues/843","number":843,"state":"open","locked":false,"title":"[DO NOT MERGE YET][VOD-3967] Add United Video Player","user":{"login":"mokhovyk","id":5814585,"node_id":"MDQ6VXNlcjU4MTQ1ODU=","avatar_url":"https://avatars2.githubusercontent.com/u/5814585?v=4","gravatar_id":"","url":"https://api.github.com/users/mokhovyk","html_url":"https://github.com/mokhovyk","followers_url":"https://api.github.com/users/mokhovyk/followers","following_url":"https://api.github.com/users/mokhovyk/following{/other_user}","gists_url":"https://api.github.com/users/mokhovyk/gists{/gist_id}","starred_url":"https://api.github.com/users/mokhovyk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mokhovyk/subscriptions","organizations_url":"https://api.github.com/users/mokhovyk/orgs","repos_url":"https://api.github.com/users/mokhovyk/repos","events_url":"https://api.github.com/users/mokhovyk/events{/privacy}","received_events_url":"https://api.github.com/users/mokhovyk/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-10-30T16:23:06Z","updated_at":"2018-11-25T08:55:16Z","closed_at":null,"merged_at":null,"merge_commit_sha":"47b732b27bfcb50e289bcb6824e11ba4ddfaa4f4","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/wix/wix-ui/pulls/843/commits","review_comments_url":"https://api.github.com/repos/wix/wix-ui/pulls/843/comments","review_comment_url":"https://api.github.com/repos/wix/wix-ui/pulls/comments{/number}","comments_url":"https://api.github.com/repos/wix/wix-ui/issues/843/comments","statuses_url":"https://api.github.com/repos/wix/wix-ui/statuses/b36b37c82f640c3fcba6ea98905bcdbb2ec728fd","head":{"label":"wix:VOD-3967-universal-video-player","ref":"VOD-3967-universal-video-player","sha":"b36b37c82f640c3fcba6ea98905bcdbb2ec728fd","user":{"login":"wix","id":686511,"node_id":"MDEyOk9yZ2FuaXphdGlvbjY4NjUxMQ==","avatar_url":"https://avatars1.githubusercontent.com/u/686511?v=4","gravatar_id":"","url":"https://api.github.com/users/wix","html_url":"https://github.com/wix","followers_url":"https://api.github.com/users/wix/followers","following_url":"https://api.github.com/users/wix/following{/other_user}","gists_url":"https://api.github.com/users/wix/gists{/gist_id}","starred_url":"https://api.github.com/users/wix/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wix/subscriptions","organizations_url":"https://api.github.com/users/wix/orgs","repos_url":"https://api.github.com/users/wix/repos","events_url":"https://api.github.com/users/wix/events{/privacy}","received_events_url":"https://api.github.com/users/wix/received_events","type":"Organization","site_admin":false},"repo":{"id":102359519,"node_id":"MDEwOlJlcG9zaXRvcnkxMDIzNTk1MTk=","name":"wix-ui","full_name":"wix/wix-ui","private":false,"owner":{"login":"wix","id":686511,"node_id":"MDEyOk9yZ2FuaXphdGlvbjY4NjUxMQ==","avatar_url":"https://avatars1.githubusercontent.com/u/686511?v=4","gravatar_id":"","url":"https://api.github.com/users/wix","html_url":"https://github.com/wix","followers_url":"https://api.github.com/users/wix/followers","following_url":"https://api.github.com/users/wix/following{/other_user}","gists_url":"https://api.github.com/users/wix/gists{/gist_id}","starred_url":"https://api.github.com/users/wix/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wix/subscriptions","organizations_url":"https://api.github.com/users/wix/orgs","repos_url":"https://api.github.com/users/wix/repos","events_url":"https://api.github.com/users/wix/events{/privacy}","received_events_url":"https://api.github.com/users/wix/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/wix/wix-ui","description":null,"fork":false,"url":"https://api.github.com/repos/wix/wix-ui","forks_url":"https://api.github.com/repos/wix/wix-ui/forks","keys_url":"https://api.github.com/repos/wix/wix-ui/keys{/key_id}","collaborators_url":"https://api.github.com/repos/wix/wix-ui/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/wix/wix-ui/teams","hooks_url":"https://api.github.com/repos/wix/wix-ui/hooks","issue_events_url":"https://api.github.com/repos/wix/wix-ui/issues/events{/number}","events_url":"https://api.github.com/repos/wix/wix-ui/events","assignees_url":"https://api.github.com/repos/wix/wix-ui/assignees{/user}","branches_url":"https://api.github.com/repos/wix/wix-ui/branches{/branch}","tags_url":"https://api.github.com/repos/wix/wix-ui/tags","blobs_url":"https://api.github.com/repos/wix/wix-ui/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/wix/wix-ui/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/wix/wix-ui/git/refs{/sha}","trees_url":"https://api.github.com/repos/wix/wix-ui/git/trees{/sha}","statuses_url":"https://api.github.com/repos/wix/wix-ui/statuses/{sha}","languages_url":"https://api.github.com/repos/wix/wix-ui/languages","stargazers_url":"https://api.github.com/repos/wix/wix-ui/stargazers","contributors_url":"https://api.github.com/repos/wix/wix-ui/contributors","subscribers_url":"https://api.github.com/repos/wix/wix-ui/subscribers","subscription_url":"https://api.github.com/repos/wix/wix-ui/subscription","commits_url":"https://api.github.com/repos/wix/wix-ui/commits{/sha}","git_commits_url":"https://api.github.com/repos/wix/wix-ui/git/commits{/sha}","comments_url":"https://api.github.com/repos/wix/wix-ui/comments{/number}","issue_comment_url":"https://api.github.com/repos/wix/wix-ui/issues/comments{/number}","contents_url":"https://api.github.com/repos/wix/wix-ui/contents/{+path}","compare_url":"https://api.github.com/repos/wix/wix-ui/compare/{base}...{head}","merges_url":"https://api.github.com/repos/wix/wix-ui/merges","archive_url":"https://api.github.com/repos/wix/wix-ui/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/wix/wix-ui/downloads","issues_url":"https://api.github.com/repos/wix/wix-ui/issues{/number}","pulls_url":"https://api.github.com/repos/wix/wix-ui/pulls{/number}","milestones_url":"https://api.github.com/repos/wix/wix-ui/milestones{/number}","notifications_url":"https://api.github.com/repos/wix/wix-ui/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/wix/wix-ui/labels{/name}","releases_url":"https://api.github.com/repos/wix/wix-ui/releases{/id}","deployments_url":"https://api.github.com/repos/wix/wix-ui/deployments","created_at":"2017-09-04T12:34:56Z","updated_at":"2018-11-23T08:09:57Z","pushed_at":"2018-11-22T15:50:29Z","git_url":"git://github.com/wix/wix-ui.git","ssh_url":"git@github.com:wix/wix-ui.git","clone_url":"https://github.com/wix/wix-ui.git","svn_url":"https://github.com/wix/wix-ui","homepage":null,"size":5395,"stargazers_count":40,"watchers_count":40,"language":"TypeScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":16,"mirror_url":null,"archived":false,"open_issues_count":77,"license":null,"forks":16,"open_issues":77,"watchers":40,"default_branch":"master"}},"base":{"label":"wix:master","ref":"master","sha":"72b99a056169c6e1116834d071984f64e909ccec","user":{"login":"wix","id":686511,"node_id":"MDEyOk9yZ2FuaXphdGlvbjY4NjUxMQ==","avatar_url":"https://avatars1.githubusercontent.com/u/686511?v=4","gravatar_id":"","url":"https://api.github.com/users/wix","html_url":"https://github.com/wix","followers_url":"https://api.github.com/users/wix/followers","following_url":"https://api.github.com/users/wix/following{/other_user}","gists_url":"https://api.github.com/users/wix/gists{/gist_id}","starred_url":"https://api.github.com/users/wix/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wix/subscriptions","organizations_url":"https://api.github.com/users/wix/orgs","repos_url":"https://api.github.com/users/wix/repos","events_url":"https://api.github.com/users/wix/events{/privacy}","received_events_url":"https://api.github.com/users/wix/received_events","type":"Organization","site_admin":false},"repo":{"id":102359519,"node_id":"MDEwOlJlcG9zaXRvcnkxMDIzNTk1MTk=","name":"wix-ui","full_name":"wix/wix-ui","private":false,"owner":{"login":"wix","id":686511,"node_id":"MDEyOk9yZ2FuaXphdGlvbjY4NjUxMQ==","avatar_url":"https://avatars1.githubusercontent.com/u/686511?v=4","gravatar_id":"","url":"https://api.github.com/users/wix","html_url":"https://github.com/wix","followers_url":"https://api.github.com/users/wix/followers","following_url":"https://api.github.com/users/wix/following{/other_user}","gists_url":"https://api.github.com/users/wix/gists{/gist_id}","starred_url":"https://api.github.com/users/wix/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wix/subscriptions","organizations_url":"https://api.github.com/users/wix/orgs","repos_url":"https://api.github.com/users/wix/repos","events_url":"https://api.github.com/users/wix/events{/privacy}","received_events_url":"https://api.github.com/users/wix/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/wix/wix-ui","description":null,"fork":false,"url":"https://api.github.com/repos/wix/wix-ui","forks_url":"https://api.github.com/repos/wix/wix-ui/forks","keys_url":"https://api.github.com/repos/wix/wix-ui/keys{/key_id}","collaborators_url":"https://api.github.com/repos/wix/wix-ui/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/wix/wix-ui/teams","hooks_url":"https://api.github.com/repos/wix/wix-ui/hooks","issue_events_url":"https://api.github.com/repos/wix/wix-ui/issues/events{/number}","events_url":"https://api.github.com/repos/wix/wix-ui/events","assignees_url":"https://api.github.com/repos/wix/wix-ui/assignees{/user}","branches_url":"https://api.github.com/repos/wix/wix-ui/branches{/branch}","tags_url":"https://api.github.com/repos/wix/wix-ui/tags","blobs_url":"https://api.github.com/repos/wix/wix-ui/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/wix/wix-ui/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/wix/wix-ui/git/refs{/sha}","trees_url":"https://api.github.com/repos/wix/wix-ui/git/trees{/sha}","statuses_url":"https://api.github.com/repos/wix/wix-ui/statuses/{sha}","languages_url":"https://api.github.com/repos/wix/wix-ui/languages","stargazers_url":"https://api.github.com/repos/wix/wix-ui/stargazers","contributors_url":"https://api.github.com/repos/wix/wix-ui/contributors","subscribers_url":"https://api.github.com/repos/wix/wix-ui/subscribers","subscription_url":"https://api.github.com/repos/wix/wix-ui/subscription","commits_url":"https://api.github.com/repos/wix/wix-ui/commits{/sha}","git_commits_url":"https://api.github.com/repos/wix/wix-ui/git/commits{/sha}","comments_url":"https://api.github.com/repos/wix/wix-ui/comments{/number}","issue_comment_url":"https://api.github.com/repos/wix/wix-ui/issues/comments{/number}","contents_url":"https://api.github.com/repos/wix/wix-ui/contents/{+path}","compare_url":"https://api.github.com/repos/wix/wix-ui/compare/{base}...{head}","merges_url":"https://api.github.com/repos/wix/wix-ui/merges","archive_url":"https://api.github.com/repos/wix/wix-ui/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/wix/wix-ui/downloads","issues_url":"https://api.github.com/repos/wix/wix-ui/issues{/number}","pulls_url":"https://api.github.com/repos/wix/wix-ui/pulls{/number}","milestones_url":"https://api.github.com/repos/wix/wix-ui/milestones{/number}","notifications_url":"https://api.github.com/repos/wix/wix-ui/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/wix/wix-ui/labels{/name}","releases_url":"https://api.github.com/repos/wix/wix-ui/releases{/id}","deployments_url":"https://api.github.com/repos/wix/wix-ui/deployments","created_at":"2017-09-04T12:34:56Z","updated_at":"2018-11-23T08:09:57Z","pushed_at":"2018-11-22T15:50:29Z","git_url":"git://github.com/wix/wix-ui.git","ssh_url":"git@github.com:wix/wix-ui.git","clone_url":"https://github.com/wix/wix-ui.git","svn_url":"https://github.com/wix/wix-ui","homepage":null,"size":5395,"stargazers_count":40,"watchers_count":40,"language":"TypeScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":16,"mirror_url":null,"archived":false,"open_issues_count":77,"license":null,"forks":16,"open_issues":77,"watchers":40,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/wix/wix-ui/pulls/843"},"html":{"href":"https://github.com/wix/wix-ui/pull/843"},"issue":{"href":"https://api.github.com/repos/wix/wix-ui/issues/843"},"comments":{"href":"https://api.github.com/repos/wix/wix-ui/issues/843/comments"},"review_comments":{"href":"https://api.github.com/repos/wix/wix-ui/pulls/843/comments"},"review_comment":{"href":"https://api.github.com/repos/wix/wix-ui/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/wix/wix-ui/pulls/843/commits"},"statuses":{"href":"https://api.github.com/repos/wix/wix-ui/statuses/b36b37c82f640c3fcba6ea98905bcdbb2ec728fd"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"shlomitc"}}