@ldelia/react-media 0.2.2 → 0.2.3

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.
@@ -5,7 +5,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  const react_1 = __importDefault(require("react"));
7
7
  const client_1 = require("react-dom/client");
8
- const timeline_1 = __importDefault(require("../../timeline"));
8
+ const timeline_1 = require("../../timeline");
9
9
  describe('Timeline', () => {
10
10
  let props;
11
11
  beforeEach(() => {
@@ -21,7 +21,7 @@ describe('Timeline', () => {
21
21
  it('renders a timeline', () => {
22
22
  const rootElement = document.createElement('div');
23
23
  const root = (0, client_1.createRoot)(rootElement);
24
- root.render(react_1.default.createElement(timeline_1.default, Object.assign({}, props)));
24
+ root.render(react_1.default.createElement(timeline_1.Timeline, Object.assign({}, props)));
25
25
  });
26
26
  });
27
27
  });
@@ -13,5 +13,4 @@ export type ZoomContextType = {
13
13
  pixelsInSecond: number;
14
14
  };
15
15
  export declare const ZoomContext: React.Context<ZoomContextType>;
16
- declare const Timeline: React.FC<TimelineProps>;
17
- export default Timeline;
16
+ export declare const Timeline: React.FC<TimelineProps>;
@@ -3,7 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
3
3
  return (mod && mod.__esModule) ? mod : { "default": mod };
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.ZoomContext = void 0;
6
+ exports.Timeline = exports.ZoomContext = void 0;
7
7
  const react_1 = __importDefault(require("react"));
8
8
  const styled_components_1 = __importDefault(require("styled-components"));
9
9
  const react_2 = require("react");
@@ -74,4 +74,4 @@ const Timeline = ({ duration, value, zoomLevel = 0, selectedRange = [], onChange
74
74
  react_1.default.createElement(RangeSelectorCanvas_1.default, { selectedRange: selectedRange, onChange: onChange, onRangeChange: onRangeChange }),
75
75
  react_1.default.createElement(TickTimeCollectionDisplay_1.default, { tickTimes: blockStartingTimes })))));
76
76
  };
77
- exports.default = Timeline;
77
+ exports.Timeline = Timeline;
@@ -5,9 +5,9 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.WithSelectedRange = exports.Default = void 0;
7
7
  const react_1 = __importDefault(require("react"));
8
- const timeline_1 = __importDefault(require("../components/timeline"));
8
+ const timeline_1 = require("../components/timeline");
9
9
  const styled_components_1 = __importDefault(require("styled-components"));
10
- const StyledTimeline = (0, styled_components_1.default)(timeline_1.default) `
10
+ const StyledTimeline = (0, styled_components_1.default)(timeline_1.Timeline) `
11
11
  .media-timeline-value-line {
12
12
  background-color: red;
13
13
  width: 5px;
@@ -15,7 +15,7 @@ const StyledTimeline = (0, styled_components_1.default)(timeline_1.default) `
15
15
  `;
16
16
  exports.default = {
17
17
  title: 'Timeline',
18
- component: timeline_1.default,
18
+ component: timeline_1.Timeline,
19
19
  argTypes: {
20
20
  onChange: { action: 'changed' },
21
21
  onRangeChange: { action: 'range changed' },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ldelia/react-media",
3
- "version": "0.2.2",
3
+ "version": "0.2.3",
4
4
  "description": "A React components collection for media-related features.",
5
5
  "private": false,
6
6
  "keywords": [