Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: resolve missing exports for esbuild #3719

Merged
merged 2 commits into from
Oct 17, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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';
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

eslint is forcing import order during pre-commit hook

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
Loading