Skip to content

Commit b2cd9b1

Browse files
author
Sumedha Pramod
committed
Chore: Migrating annotations code into repo
1 parent 12aaab4 commit b2cd9b1

37 files changed

+87
-76
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[![Project Status](https://img.shields.io/badge/status-active-brightgreen.svg?style=flat-square)](http://opensource.box.com/badges/)
22
[![Styled With Prettier](https://img.shields.io/badge/styled_with-prettier-ff69b4.svg?style=flat-square)](https://github.com/prettier/prettier)
33
[![build status](https://img.shields.io/travis/box/box-content-preview/master.svg?style=flat-square)](https://travis-ci.org/box/box-annotations)
4-
[![version](https://img.shields.io/badge/version-v0.0.0-blue.svg?style=flat-square)](https://github.com/box/box-annotations)
4+
[![version](https://img.shields.io/badge/version-v0.0.10-blue.svg?style=flat-square)](https://github.com/box/box-annotations)
55
[![npm version](https://img.shields.io/npm/v/box-ui-elements.svg?style=flat-square)](https://www.npmjs.com/package/box-ui-elements)
66

77

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "box-annotations",
3-
"version": "0.0.0",
3+
"version": "0.0.10",
44
"description": "Box Annotations",
55
"author": "Box (https://www.box.com/)",
66
"license": "SEE LICENSE IN LICENSE",

src/AnnotationDialog.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import autobind from 'autobind-decorator';
22
import EventEmitter from 'events';
33
import * as annotatorUtil from './annotatorUtil';
44
import * as constants from './annotationConstants';
5-
import { ICON_CLOSE, ICON_DELETE } from '../icons/icons';
5+
import { ICON_CLOSE, ICON_DELETE } from './icons/icons';
66

77
const POINT_ANNOTATION_ICON_HEIGHT = 31;
88
const POINT_ANNOTATION_ICON_DOT_HEIGHT = 8;

src/AnnotationThread.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import autobind from 'autobind-decorator';
33
import Annotation from './Annotation';
44
import AnnotationService from './AnnotationService';
55
import * as annotatorUtil from './annotatorUtil';
6-
import { ICON_PLACED_ANNOTATION } from '../icons/icons';
6+
import { ICON_PLACED_ANNOTATION } from './icons/icons';
77
import {
88
STATES,
99
TYPES,

src/Annotator.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import EventEmitter from 'events';
22
import autobind from 'autobind-decorator';
33
import AnnotationService from './AnnotationService';
44
import * as annotatorUtil from './annotatorUtil';
5-
import { ICON_CLOSE } from '../icons/icons';
5+
import { ICON_CLOSE } from './icons/icons';
66
import './Annotator.scss';
77
import {
88
CLASS_ACTIVE,

src/Annotator.scss

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
@import '../boxuiVariables';
1+
@import 'boxui';
2+
@import 'boxuiVariables';
23

34
$highlight-yellow: #fed94e;
45
$highlight-yellow-active-hover: #ffc900;
@@ -21,7 +22,8 @@ $tablet: 'max-width: 768px';
2122
background-color: $fours;
2223
}
2324

24-
.bp-annotate-draw-header {
25+
.bp-annotate-draw-header,
26+
.bp-header.bp-annotate-draw-header {
2527
background-color: $twos;
2628
border: none;
2729
position: relative;
@@ -61,6 +63,8 @@ $tablet: 'max-width: 768px';
6163
.bp-annotate-draw-undo-redo-container {
6264
margin: 0 auto;
6365

66+
.is-disabled.bp-btn-annotate-draw-undo,
67+
.is-disabled.bp-btn-annotate-draw-redo,
6468
.bp-btn-annotate-draw-undo,
6569
.bp-btn-annotate-draw-redo {
6670
background: none;
@@ -450,15 +454,24 @@ $tablet: 'max-width: 768px';
450454

451455
&:hover {
452456
color: $better-black;
457+
padding: 8px;
453458
}
454459
}
455460

456461
.bp-btn-annotate-draw-add {
457462
padding-right: 4px;
463+
464+
&:hover {
465+
padding-right: 4px;
466+
}
458467
}
459468

460469
.bp-btn-annotate-draw-delete {
461470
padding-left: 4px;
471+
472+
&:hover {
473+
padding-left: 4px;
474+
}
462475
}
463476

464477
.bp-highlight-comment-btn {

src/BoxAnnotations.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,5 +130,4 @@ class BoxAnnotations {
130130
}
131131
}
132132

133-
global.BoxAnnotations = BoxAnnotations;
134133
export default BoxAnnotations;

src/MobileAnnotator.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
@import '../_boxuiVariables';
1+
@import 'boxuiVariables';
22

33
$tablet: "(min-width: 768px)";
44

src/__tests__/AnnotationDialog-test.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,13 @@ let dialog;
1616
const sandbox = sinon.sandbox.create();
1717
let stubs = {};
1818

19-
describe('lib/annotations/AnnotationDialog', () => {
19+
describe('AnnotationDialog', () => {
2020
before(() => {
21-
fixture.setBase('src/lib');
21+
fixture.setBase('src');
2222
});
2323

2424
beforeEach(() => {
25-
fixture.load('annotations/__tests__/AnnotationDialog-test.html');
25+
fixture.load('__tests__/AnnotationDialog-test.html');
2626

2727
dialog = new AnnotationDialog({
2828
annotatedElement: document.querySelector('.annotated-element'),

src/__tests__/AnnotationModeController-test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ let annotationModeController;
66
let stubs;
77
const sandbox = sinon.sandbox.create();
88

9-
describe('lib/annotations/AnnotationModeController', () => {
9+
describe('AnnotationModeController', () => {
1010
beforeEach(() => {
1111
annotationModeController = new AnnotationModeController();
1212
stubs = {};

0 commit comments

Comments
 (0)