@ndla/video-search 8.0.64-alpha.0 → 8.0.65-alpha.0

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.
@@ -7,8 +7,7 @@
7
7
  */
8
8
 
9
9
  import { useState } from "react";
10
- import { CloseLine } from "@ndla/icons/action";
11
- import { PanoramaPhotosphere } from "@ndla/icons/common";
10
+ import { CloseLine, PanoramaPhotosphere } from "@ndla/icons";
12
11
  import { getLicenseByNBTitle } from "@ndla/licenses";
13
12
  import { Image, Text, ListItemContent, ListItemRoot, Button, IconButton } from "@ndla/primitives";
14
13
  import { styled } from "@ndla/styled-system/jsx";
package/es/VideoSearch.js CHANGED
@@ -7,7 +7,7 @@
7
7
  */
8
8
 
9
9
  import { useCallback, useEffect, useState } from "react";
10
- import { SearchLine } from "@ndla/icons/common";
10
+ import { SearchLine } from "@ndla/icons";
11
11
  import { IconButton, Input } from "@ndla/primitives";
12
12
  import { styled } from "@ndla/styled-system/jsx";
13
13
  import { VideoResultList } from "./VideoResultList";
@@ -5,8 +5,8 @@
5
5
  * LICENSE file in the root directory of this source tree.
6
6
  *
7
7
  */
8
- import { BrightcoveApiType } from "@ndla/types-embed";
9
- import { VideoTranslations } from "./VideoSearch";
8
+ import type { BrightcoveApiType } from "@ndla/types-embed";
9
+ import type { VideoTranslations } from "./VideoSearch";
10
10
  interface VideoListItemProps {
11
11
  video: BrightcoveApiType;
12
12
  translations: VideoTranslations;
@@ -5,8 +5,7 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.VideoListItem = void 0;
7
7
  var _react = require("react");
8
- var _action = require("@ndla/icons/action");
9
- var _common = require("@ndla/icons/common");
8
+ var _icons = require("@ndla/icons");
10
9
  var _licenses = require("@ndla/licenses");
11
10
  var _primitives = require("@ndla/primitives");
12
11
  var _jsx2 = require("@ndla/styled-system/jsx");
@@ -118,7 +117,7 @@ const VideoListItem = _ref2 => {
118
117
  children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)(StyledVideoMeta, {
119
118
  children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)(_primitives.Text, {
120
119
  textStyle: "title.medium",
121
- children: [video.name, video.projection === "equirectangular" && /*#__PURE__*/(0, _jsxRuntime.jsx)(_common.PanoramaPhotosphere, {
120
+ children: [video.name, video.projection === "equirectangular" && /*#__PURE__*/(0, _jsxRuntime.jsx)(_icons.PanoramaPhotosphere, {
122
121
  "aria-hidden": false,
123
122
  "aria-label": translations.is360Video,
124
123
  title: translations.is360Video
@@ -154,7 +153,7 @@ const VideoListItem = _ref2 => {
154
153
  "aria-label": translations.close,
155
154
  title: translations.close,
156
155
  onClick: () => setIsPreviewing(false),
157
- children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_action.CloseLine, {})
156
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_icons.CloseLine, {})
158
157
  })]
159
158
  })]
160
159
  });
@@ -5,8 +5,8 @@
5
5
  * LICENSE file in the root directory of this source tree.
6
6
  *
7
7
  */
8
- import { BrightcoveApiType } from "@ndla/types-embed";
9
- import { VideoTranslations } from "./VideoSearch";
8
+ import type { BrightcoveApiType } from "@ndla/types-embed";
9
+ import type { VideoTranslations } from "./VideoSearch";
10
10
  interface Props {
11
11
  videos: BrightcoveApiType[];
12
12
  existsMoreVideos: boolean;
@@ -5,7 +5,7 @@
5
5
  * LICENSE file in the root directory of this source tree.
6
6
  *
7
7
  */
8
- import { BrightcoveApiType } from "@ndla/types-embed";
8
+ import type { BrightcoveApiType } from "@ndla/types-embed";
9
9
  export interface VideoTranslations {
10
10
  searchPlaceholder: string;
11
11
  searchButtonTitle: string;
@@ -5,7 +5,7 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.VideoSearch = void 0;
7
7
  var _react = require("react");
8
- var _common = require("@ndla/icons/common");
8
+ var _icons = require("@ndla/icons");
9
9
  var _primitives = require("@ndla/primitives");
10
10
  var _jsx2 = require("@ndla/styled-system/jsx");
11
11
  var _VideoResultList = require("./VideoResultList");
@@ -95,7 +95,7 @@ const VideoSearch = _ref => {
95
95
  title: translations.searchButtonTitle,
96
96
  onKeyDown: onEnter,
97
97
  onClick: onSearch,
98
- children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_common.SearchLine, {})
98
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_icons.SearchLine, {})
99
99
  })]
100
100
  }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_VideoResultList.VideoResultList, {
101
101
  videos: videos,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ndla/video-search",
3
- "version": "8.0.64-alpha.0",
3
+ "version": "8.0.65-alpha.0",
4
4
  "description": "A simple library for searching NDLA videos",
5
5
  "license": "GPL-3.0",
6
6
  "main": "lib/index.js",
@@ -26,14 +26,14 @@
26
26
  "es"
27
27
  ],
28
28
  "dependencies": {
29
- "@ndla/icons": "^8.0.46-alpha.0",
30
- "@ndla/licenses": "^8.0.4-alpha.0",
31
- "@ndla/primitives": "^1.0.59-alpha.0",
29
+ "@ndla/icons": "^8.0.47-alpha.0",
30
+ "@ndla/licenses": "^8.0.5-alpha.0",
31
+ "@ndla/primitives": "^1.0.60-alpha.0",
32
32
  "@ndla/styled-system": "^0.0.29"
33
33
  },
34
34
  "devDependencies": {
35
- "@ndla/preset-panda": "^0.0.47",
36
- "@ndla/types-embed": "^5.0.4-alpha.0",
35
+ "@ndla/preset-panda": "^0.0.48",
36
+ "@ndla/types-embed": "^5.0.5-alpha.0",
37
37
  "@pandacss/dev": "^0.48.0"
38
38
  },
39
39
  "peerDependencies": {
@@ -43,5 +43,5 @@
43
43
  "publishConfig": {
44
44
  "access": "public"
45
45
  },
46
- "gitHead": "8929fb445477b02e740a9a21fd2d3ef08287d99c"
46
+ "gitHead": "92829a00e58ee41ce4accfdb7fd6b740ed32e7e0"
47
47
  }