Skip to content

Commit

Permalink
fix: resolve missing exports for esbuild
Browse files Browse the repository at this point in the history
  • Loading branch information
tjuanitas committed Oct 16, 2024
1 parent e735c4c commit c488da4
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 11 deletions.
8 changes: 4 additions & 4 deletions src/api/Intelligence.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@
*/

import getProp from 'lodash/get';
import { QuestionType } from '@box/box-ai-content-answers';
import type { BoxItem } from '../common/types/core';
import { ERROR_CODE_EXTRACT_STRUCTURED } from '../constants';
import { isUserCorrectableError } from '../utils/error';
import type { QuestionType } from '@box/box-ai-content-answers';
import Base from './Base';
import { isUserCorrectableError } from '../utils/error';
import { AiExtractResponse } from './schemas/AiExtractResponse';
import { AiExtractStructured } from './schemas/AiExtractStructured';
import { ERROR_CODE_EXTRACT_STRUCTURED } from '../constants';
import type { BoxItem } from '../common/types/core';

class Intelligence extends Base {
/**
Expand Down
2 changes: 2 additions & 0 deletions src/elements/common/annotator-context/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,6 @@ export { default as AnnotatorContext } from './AnnotatorContext';
export { default as useAnnotatorEvents } from './useAnnotatorEvents';
export { default as withAnnotations } from './withAnnotations';
export { default as withAnnotatorContext } from './withAnnotatorContext';
export type { WithAnnotationsProps } from './withAnnotations';
export type { WithAnnotatorContextProps } from './withAnnotatorContext';
export * from './types';
8 changes: 2 additions & 6 deletions src/elements/content-preview/ContentPreview.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ import AsyncLoad from '../common/async-load';
import TokenService from '../../utils/TokenService';
import { isInputElement, focus } from '../../utils/dom';
import { getTypedFileId } from '../../utils/file';
import { withAnnotations, withAnnotatorContext } from '../common/annotator-context';
import { withErrorBoundary } from '../common/error-boundary';
import { withLogger } from '../common/logger';
import { PREVIEW_FIELDS_TO_FETCH } from '../../utils/fields';
Expand All @@ -40,12 +41,6 @@ import PreviewHeader from './preview-header';
import PreviewMask from './PreviewMask';
import PreviewNavigation from './PreviewNavigation';
import Providers from '../common/Providers';
import {
withAnnotations,
WithAnnotationsProps,
withAnnotatorContext,
WithAnnotatorContextProps,
} from '../common/annotator-context';
import {
DEFAULT_HOSTNAME_API,
DEFAULT_HOSTNAME_APP,
Expand All @@ -66,6 +61,7 @@ import type { RequestOptions, ErrorContextProps, ElementsXhrError } from '../../
import type { StringMap, Token, BoxItem, BoxItemVersion } from '../../common/types/core';
import type { VersionChangeCallback } from '../content-sidebar/versions';
import type { FeatureConfig } from '../common/feature-checking';
import type { WithAnnotationsProps, WithAnnotatorContextProps } from '../common/annotator-context';
import type APICache from '../../utils/Cache';

import '../common/fonts.scss';
Expand Down
3 changes: 2 additions & 1 deletion src/elements/content-sidebar/ActivitySidebar.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@ import AddTaskButton from './AddTaskButton';
import API from '../../api';
import messages from '../common/messages';
import SidebarContent from './SidebarContent';
import { WithAnnotatorContextProps, withAnnotatorContext } from '../common/annotator-context';
import { EVENT_DATA_READY, EVENT_JS_READY } from '../common/logger/constants';
import { getBadUserError } from '../../utils/error';
import { mark } from '../../utils/performance';
import { withAnnotatorContext } from '../common/annotator-context';
import { withAPIContext } from '../common/api-context';
import { withErrorBoundary } from '../common/error-boundary';
import { withFeatureConsumer, isFeatureEnabled } from '../common/feature-checking';
Expand Down Expand Up @@ -72,6 +72,7 @@ import type { SelectorItems, User, UserMini, GroupMini, BoxItem } from '../../co
import type { Errors, GetProfileUrlCallback } from '../common/flowTypes';
import type { Translations } from './flowTypes';
import type { FeatureConfig } from '../common/feature-checking';
import type { WithAnnotatorContextProps } from '../common/annotator-context';
import './ActivitySidebar.scss';

import type { OnAnnotationEdit, OnAnnotationStatusChange } from './activity-feed/comment/types';
Expand Down

0 comments on commit c488da4

Please sign in to comment.