Skip to content

Commit

Permalink
Removed importing from the entire public index.ts file (#2307)
Browse files Browse the repository at this point in the history
* cleaned up some imports in the private folder

---------

Co-authored-by: Trevor Harris <trharris@microsoft.com>
  • Loading branch information
noahdarveau-MSFT and TrevorJoelHarris authored May 7, 2024
1 parent ef47e4a commit 565dfe5
Show file tree
Hide file tree
Showing 8 changed files with 16 additions and 11 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"type": "patch",
"comment": "Cleaned up import structure in the `private` folder",
"packageName": "@microsoft/teams-js",
"email": "noahdarveau@microsoft.com",
"dependentChangeType": "patch"
}
2 changes: 1 addition & 1 deletion packages/teams-js/src/internal/marketplaceUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
/* eslint-disable @typescript-eslint/no-explicit-any */
import { validate } from 'uuid';

import { marketplace } from '../public';
import { marketplace } from '../public/marketplace';

/**
* @hidden
Expand Down
4 changes: 2 additions & 2 deletions packages/teams-js/src/private/appEntity.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { sendMessageToParent } from '../internal/communication';
import { ensureInitialized } from '../internal/internalAPIs';
import { ApiName, ApiVersionNumber, getApiVersionTag } from '../internal/telemetry';
import { FrameContexts, SdkError } from '../public';
import { errorNotSupportedOnPlatform } from '../public/constants';
import { errorNotSupportedOnPlatform, FrameContexts } from '../public/constants';
import { SdkError } from '../public/interfaces';
import { runtime } from '../public/runtime';

/**
Expand Down
3 changes: 1 addition & 2 deletions packages/teams-js/src/private/externalAppAuthentication.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@ import { sendMessageToParentAsync } from '../internal/communication';
import { ensureInitialized } from '../internal/internalAPIs';
import { ApiName, ApiVersionNumber, getApiVersionTag } from '../internal/telemetry';
import { validateId, validateUrl } from '../internal/utils';
import { FrameContexts } from '../public';
import { errorNotSupportedOnPlatform } from '../public/constants';
import { errorNotSupportedOnPlatform, FrameContexts } from '../public/constants';
import { runtime } from '../public/runtime';

/**
Expand Down
3 changes: 1 addition & 2 deletions packages/teams-js/src/private/externalAppCardActions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@ import { sendMessageToParentAsync } from '../internal/communication';
import { ensureInitialized } from '../internal/internalAPIs';
import { ApiName, ApiVersionNumber, getApiVersionTag } from '../internal/telemetry';
import { validateId } from '../internal/utils';
import { FrameContexts } from '../public';
import { errorNotSupportedOnPlatform } from '../public/constants';
import { errorNotSupportedOnPlatform, FrameContexts } from '../public/constants';
import { runtime } from '../public/runtime';
import { ExternalAppErrorCode } from './constants';

Expand Down
3 changes: 1 addition & 2 deletions packages/teams-js/src/private/externalAppCommands.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@ import { sendMessageToParentAsync } from '../internal/communication';
import { ensureInitialized } from '../internal/internalAPIs';
import { ApiName, ApiVersionNumber, getApiVersionTag } from '../internal/telemetry';
import { validateId } from '../internal/utils';
import { FrameContexts } from '../public';
import { errorNotSupportedOnPlatform } from '../public/constants';
import { errorNotSupportedOnPlatform, FrameContexts } from '../public/constants';
import { runtime } from '../public/runtime';
import { ExternalAppErrorCode } from './constants';
import { externalAppAuthentication } from './externalAppAuthentication';
Expand Down
3 changes: 2 additions & 1 deletion packages/teams-js/src/private/files.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@ import { sendMessageToParent } from '../internal/communication';
import { registerHandler } from '../internal/handlers';
import { ensureInitialized } from '../internal/internalAPIs';
import { ApiName, ApiVersionNumber, getApiVersionTag } from '../internal/telemetry';
import { ErrorCode, FileOpenPreference, FrameContexts, SdkError } from '../public';
import { FrameContexts } from '../public/constants';
import { ErrorCode, FileOpenPreference, SdkError } from '../public/interfaces';
import { runtime } from '../public/runtime';

/**
Expand Down
2 changes: 1 addition & 1 deletion packages/teams-js/src/private/otherAppStateChange.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { registerHandler, removeHandler } from '../internal/handlers';
import { ensureInitialized } from '../internal/internalAPIs';
import { ApiName, ApiVersionNumber, getApiVersionTag } from '../internal/telemetry';
import { isNullOrUndefined } from '../internal/typeCheckUtilities';
import { ErrorCode } from '../public';
import { ErrorCode } from '../public/interfaces';
import { runtime } from '../public/runtime';

/**
Expand Down

0 comments on commit 565dfe5

Please sign in to comment.