@shopify/app-bridge-host
Advanced tools
Comparing version 6.1.0-snapshot-20241001182436 to 7.0.0
@@ -0,2 +1,4 @@ | ||
import { Payload } from '@shopify/app-bridge-core/actions/Error'; | ||
import { ApiClientConfig, AppConfig } from './types'; | ||
export declare function isValidConfig(appConfig: AppConfig, config: ApiClientConfig): boolean; | ||
export declare function throwInvalidConfigError(appConfig: AppConfig, config: ApiClientConfig, action: Payload): void; |
'use strict'; | ||
var Error = require('@shopify/app-bridge-core/actions/Error'); | ||
function isValidConfig(appConfig, config) { | ||
@@ -13,3 +15,7 @@ if (!appConfig) { | ||
} | ||
function throwInvalidConfigError(appConfig, config, action) { | ||
Error.throwError(Error.AppActionType.INVALID_CONFIG, action, "Provided apiKey `".concat(appConfig.apiKey, "` is incorrect. Expecting `").concat(config.apiKey, "`")); | ||
} | ||
exports.isValidConfig = isValidConfig; | ||
exports.throwInvalidConfigError = throwInvalidConfigError; |
@@ -11,3 +11,3 @@ import { ComponentProps } from '../types'; | ||
* */ | ||
declare const _default: import("@shopify/react-compose").ReactComponent<ComponentProps> & import("@shopify/useful-types").NonReactStatics<import("@shopify/react-compose").ReactComponent<unknown> & typeof Cart>; | ||
declare const _default: import("@shopify-internal/react-compose").ReactComponent<ComponentProps> & import("@shopify-internal/useful-types").NonReactStatics<import("@shopify-internal/react-compose").ReactComponent<unknown> & typeof Cart>; | ||
export default _default; |
@@ -5,3 +5,3 @@ 'use strict'; | ||
var compose = require('@shopify/react-compose'); | ||
var compose = require('@shopify-internal/react-compose'); | ||
var withStatelessFeature = require('./utilities/withStatelessFeature.js'); | ||
@@ -8,0 +8,0 @@ |
@@ -11,3 +11,3 @@ import { ComponentProps } from '../types'; | ||
* */ | ||
declare const _default: import("@shopify/react-compose").ReactComponent<ComponentProps> & import("@shopify/useful-types").NonReactStatics<import("@shopify/react-compose").ReactComponent<unknown> & typeof Client>; | ||
declare const _default: import("@shopify-internal/react-compose").ReactComponent<ComponentProps> & import("@shopify-internal/useful-types").NonReactStatics<import("@shopify-internal/react-compose").ReactComponent<unknown> & typeof Client>; | ||
export default _default; |
@@ -5,3 +5,3 @@ 'use strict'; | ||
var compose = require('@shopify/react-compose'); | ||
var compose = require('@shopify-internal/react-compose'); | ||
var withStatelessFeature = require('./utilities/withStatelessFeature.js'); | ||
@@ -8,0 +8,0 @@ |
@@ -17,3 +17,3 @@ import React from 'react'; | ||
* */ | ||
declare const _default: import("@shopify/react-compose").ReactComponent<ComponentProps> & import("@shopify/useful-types").NonReactStatics<import("@shopify/react-compose").ReactComponent<ComposedProps> & typeof ContextualSaveBar>; | ||
declare const _default: import("@shopify-internal/react-compose").ReactComponent<ComponentProps> & import("@shopify-internal/useful-types").NonReactStatics<import("@shopify-internal/react-compose").ReactComponent<ComposedProps> & typeof ContextualSaveBar>; | ||
export default _default; |
@@ -9,5 +9,5 @@ 'use strict'; | ||
var validator = require('@shopify/app-bridge-core/actions/validator'); | ||
var reactI18n = require('@shopify/react-i18n'); | ||
var reactI18n = require('@shopify-internal/react-i18n'); | ||
var polarisInternal = require('@shopify/polaris-internal'); | ||
var compose = require('@shopify/react-compose'); | ||
var compose = require('@shopify-internal/react-compose'); | ||
var store_reducers_embeddedApp_features_index = require('../../store/reducers/embeddedApp/features/index.js'); | ||
@@ -14,0 +14,0 @@ var withFeature = require('../../withFeature.js'); |
@@ -6,3 +6,3 @@ 'use strict'; | ||
var polarisInternal = require('@shopify/polaris-internal'); | ||
var reactI18n = require('@shopify/react-i18n'); | ||
var reactI18n = require('@shopify-internal/react-i18n'); | ||
var Error$1 = require('@shopify/app-bridge-core/actions/Error'); | ||
@@ -9,0 +9,0 @@ var MessageTransport = require('@shopify/app-bridge-core/MessageTransport'); |
@@ -15,3 +15,3 @@ import React from 'react'; | ||
* */ | ||
declare const _default: import("@shopify/react-compose").ReactComponent<ComponentProps> & import("@shopify/useful-types").NonReactStatics<import("@shopify/react-compose").ReactComponent<WithFeature> & typeof Loading>; | ||
declare const _default: import("@shopify-internal/react-compose").ReactComponent<ComponentProps> & import("@shopify-internal/useful-types").NonReactStatics<import("@shopify-internal/react-compose").ReactComponent<WithFeature> & typeof Loading>; | ||
export default _default; |
@@ -8,3 +8,3 @@ 'use strict'; | ||
var polarisInternal = require('@shopify/polaris-internal'); | ||
var compose = require('@shopify/react-compose'); | ||
var compose = require('@shopify-internal/react-compose'); | ||
var withFeature = require('../withFeature.js'); | ||
@@ -11,0 +11,0 @@ var store_reducers_embeddedApp_loading_index = require('../store/reducers/embeddedApp/loading/index.js'); |
@@ -23,3 +23,3 @@ import React from 'react'; | ||
* */ | ||
declare const _default: import("@shopify/react-compose").ReactComponent<ComponentProps & ExtraProps> & import("@shopify/useful-types").NonReactStatics<import("@shopify/react-compose").ReactComponent<ComposedProps> & typeof MainFrame>; | ||
declare const _default: import("@shopify-internal/react-compose").ReactComponent<ComponentProps & ExtraProps> & import("@shopify-internal/useful-types").NonReactStatics<import("@shopify-internal/react-compose").ReactComponent<ComposedProps> & typeof MainFrame>; | ||
export default _default; |
@@ -9,3 +9,3 @@ 'use strict'; | ||
var Actions = require('@shopify/app-bridge-core/actions'); | ||
var compose = require('@shopify/react-compose'); | ||
var compose = require('@shopify-internal/react-compose'); | ||
var Frame = require('../Frame.js'); | ||
@@ -12,0 +12,0 @@ var withFeature = require('../withFeature.js'); |
@@ -20,3 +20,3 @@ import React from 'react'; | ||
* */ | ||
declare const _default: import("@shopify/react-compose").ReactComponent<ComponentProps & ExtraProps> & import("@shopify/useful-types").NonReactStatics<import("@shopify/react-compose").ReactComponent<ComposedProps> & typeof Modal>; | ||
declare const _default: import("@shopify-internal/react-compose").ReactComponent<ComponentProps & ExtraProps> & import("@shopify-internal/useful-types").NonReactStatics<import("@shopify-internal/react-compose").ReactComponent<ComposedProps> & typeof Modal>; | ||
export default _default; |
@@ -7,3 +7,3 @@ 'use strict'; | ||
var React = require('react'); | ||
var compose = require('@shopify/react-compose'); | ||
var compose = require('@shopify-internal/react-compose'); | ||
var polarisInternal = require('@shopify/polaris-internal'); | ||
@@ -10,0 +10,0 @@ var appBridgeCore = require('@shopify/app-bridge-core'); |
@@ -17,3 +17,3 @@ import { ComponentProps } from '../../types'; | ||
* */ | ||
declare const _default: import("@shopify/react-compose").ReactComponent<ComponentProps & Props> & import("@shopify/useful-types").NonReactStatics<import("@shopify/react-compose").ReactComponent<ComposedProps> & typeof Navigation>; | ||
declare const _default: import("@shopify-internal/react-compose").ReactComponent<ComponentProps & Props> & import("@shopify-internal/useful-types").NonReactStatics<import("@shopify-internal/react-compose").ReactComponent<ComposedProps> & typeof Navigation>; | ||
export default _default; |
@@ -6,3 +6,3 @@ 'use strict'; | ||
var React = require('react'); | ||
var compose = require('@shopify/react-compose'); | ||
var compose = require('@shopify-internal/react-compose'); | ||
var Actions = require('@shopify/app-bridge-core/actions'); | ||
@@ -9,0 +9,0 @@ var safeRedirect = require('@shopify/app-bridge-core/validate/safe-redirect'); |
@@ -11,3 +11,3 @@ import { ComponentProps } from '../types'; | ||
* */ | ||
declare const _default: import("@shopify/react-compose").ReactComponent<ComponentProps> & import("@shopify/useful-types").NonReactStatics<import("@shopify/react-compose").ReactComponent<unknown> & typeof Pos>; | ||
declare const _default: import("@shopify-internal/react-compose").ReactComponent<ComponentProps> & import("@shopify-internal/useful-types").NonReactStatics<import("@shopify-internal/react-compose").ReactComponent<unknown> & typeof Pos>; | ||
export default _default; |
@@ -5,3 +5,3 @@ 'use strict'; | ||
var compose = require('@shopify/react-compose'); | ||
var compose = require('@shopify-internal/react-compose'); | ||
var store_reducers_embeddedApp_pos_index = require('../store/reducers/embeddedApp/pos/index.js'); | ||
@@ -8,0 +8,0 @@ var withFeature = require('../withFeature.js'); |
@@ -11,3 +11,3 @@ import { ComponentProps } from '../types'; | ||
* */ | ||
declare const _default: import("@shopify/react-compose").ReactComponent<ComponentProps> & import("@shopify/useful-types").NonReactStatics<import("@shopify/react-compose").ReactComponent<unknown> & typeof Print>; | ||
declare const _default: import("@shopify-internal/react-compose").ReactComponent<ComponentProps> & import("@shopify-internal/useful-types").NonReactStatics<import("@shopify-internal/react-compose").ReactComponent<unknown> & typeof Print>; | ||
export default _default; |
@@ -5,3 +5,3 @@ 'use strict'; | ||
var compose = require('@shopify/react-compose'); | ||
var compose = require('@shopify-internal/react-compose'); | ||
var withStatelessFeature = require('./utilities/withStatelessFeature.js'); | ||
@@ -8,0 +8,0 @@ |
@@ -11,3 +11,3 @@ import { ComponentProps } from '../types'; | ||
* */ | ||
declare const _default: import("@shopify/react-compose").ReactComponent<ComponentProps> & import("@shopify/useful-types").NonReactStatics<import("@shopify/react-compose").ReactComponent<unknown> & typeof Scanner>; | ||
declare const _default: import("@shopify-internal/react-compose").ReactComponent<ComponentProps> & import("@shopify-internal/useful-types").NonReactStatics<import("@shopify-internal/react-compose").ReactComponent<unknown> & typeof Scanner>; | ||
export default _default; |
@@ -5,3 +5,3 @@ 'use strict'; | ||
var compose = require('@shopify/react-compose'); | ||
var compose = require('@shopify-internal/react-compose'); | ||
var withStatelessFeature = require('./utilities/withStatelessFeature.js'); | ||
@@ -8,0 +8,0 @@ |
@@ -11,3 +11,3 @@ import { ComponentProps } from '../types'; | ||
* */ | ||
declare const _default: import("@shopify/react-compose").ReactComponent<ComponentProps> & import("@shopify/useful-types").NonReactStatics<import("@shopify/react-compose").ReactComponent<unknown> & typeof Share>; | ||
declare const _default: import("@shopify-internal/react-compose").ReactComponent<ComponentProps> & import("@shopify-internal/useful-types").NonReactStatics<import("@shopify-internal/react-compose").ReactComponent<unknown> & typeof Share>; | ||
export default _default; |
@@ -5,3 +5,3 @@ 'use strict'; | ||
var compose = require('@shopify/react-compose'); | ||
var compose = require('@shopify-internal/react-compose'); | ||
var withStatelessFeature = require('./utilities/withStatelessFeature.js'); | ||
@@ -8,0 +8,0 @@ |
@@ -11,3 +11,3 @@ import { ComponentProps } from '../types'; | ||
* */ | ||
declare const _default: import("@shopify/react-compose").ReactComponent<ComponentProps> & import("@shopify/useful-types").NonReactStatics<import("@shopify/react-compose").ReactComponent<unknown> & typeof StaffMember>; | ||
declare const _default: import("@shopify-internal/react-compose").ReactComponent<ComponentProps> & import("@shopify-internal/useful-types").NonReactStatics<import("@shopify-internal/react-compose").ReactComponent<unknown> & typeof StaffMember>; | ||
export default _default; |
@@ -5,3 +5,3 @@ 'use strict'; | ||
var compose = require('@shopify/react-compose'); | ||
var compose = require('@shopify-internal/react-compose'); | ||
var store_reducers_embeddedApp_staffMember_index = require('../store/reducers/embeddedApp/staffMember/index.js'); | ||
@@ -8,0 +8,0 @@ var withFeature = require('../withFeature.js'); |
@@ -13,3 +13,3 @@ import React from 'react'; | ||
* */ | ||
declare const _default: import("@shopify/react-compose").ReactComponent<ComponentProps> & import("@shopify/useful-types").NonReactStatics<import("@shopify/react-compose").ReactComponent<WithFeature> & typeof Toast>; | ||
declare const _default: import("@shopify-internal/react-compose").ReactComponent<ComponentProps> & import("@shopify-internal/useful-types").NonReactStatics<import("@shopify-internal/react-compose").ReactComponent<WithFeature> & typeof Toast>; | ||
export default _default; |
@@ -7,3 +7,3 @@ 'use strict'; | ||
var polarisInternal = require('@shopify/polaris-internal'); | ||
var compose = require('@shopify/react-compose'); | ||
var compose = require('@shopify-internal/react-compose'); | ||
var store_reducers_embeddedApp_toast_index = require('../store/reducers/embeddedApp/toast/index.js'); | ||
@@ -10,0 +10,0 @@ var withFeature = require('../withFeature.js'); |
@@ -0,1 +1,3 @@ | ||
import { throwError, AppActionType } from '@shopify/app-bridge-core/actions/Error'; | ||
function isValidConfig(appConfig, config) { | ||
@@ -11,3 +13,6 @@ if (!appConfig) { | ||
} | ||
function throwInvalidConfigError(appConfig, config, action) { | ||
throwError(AppActionType.INVALID_CONFIG, action, "Provided apiKey `".concat(appConfig.apiKey, "` is incorrect. Expecting `").concat(config.apiKey, "`")); | ||
} | ||
export { isValidConfig }; | ||
export { isValidConfig, throwInvalidConfigError }; |
@@ -1,2 +0,2 @@ | ||
import compose from '@shopify/react-compose'; | ||
import compose from '@shopify-internal/react-compose'; | ||
import withStatelessFeature from './utilities/withStatelessFeature.js'; | ||
@@ -3,0 +3,0 @@ |
@@ -1,2 +0,2 @@ | ||
import compose from '@shopify/react-compose'; | ||
import compose from '@shopify-internal/react-compose'; | ||
import withStatelessFeature from './utilities/withStatelessFeature.js'; | ||
@@ -3,0 +3,0 @@ |
@@ -7,5 +7,5 @@ import { __rest, __awaiter, __generator, __assign } from 'tslib'; | ||
import { getPermissionKey } from '@shopify/app-bridge-core/actions/validator'; | ||
import { useI18n } from '@shopify/react-i18n'; | ||
import { useI18n } from '@shopify-internal/react-i18n'; | ||
import { ContextualSaveBar as ContextualSaveBar$2 } from '@shopify/polaris-internal'; | ||
import compose from '@shopify/react-compose'; | ||
import compose from '@shopify-internal/react-compose'; | ||
import { feature } from '../../store/reducers/embeddedApp/features/index.js'; | ||
@@ -12,0 +12,0 @@ import withFeature from '../../withFeature.js'; |
import { __awaiter, __generator } from 'tslib'; | ||
import React, { useState, useRef, useEffect } from 'react'; | ||
import { EventListener, Modal } from '@shopify/polaris-internal'; | ||
import { useI18n } from '@shopify/react-i18n'; | ||
import { useI18n } from '@shopify-internal/react-i18n'; | ||
import { fromAction, AppActionType } from '@shopify/app-bridge-core/actions/Error'; | ||
@@ -6,0 +6,0 @@ import { Context } from '@shopify/app-bridge-core/MessageTransport'; |
import { __extends } from 'tslib'; | ||
import React from 'react'; | ||
import { Loading as Loading$2 } from '@shopify/polaris-internal'; | ||
import compose from '@shopify/react-compose'; | ||
import compose from '@shopify-internal/react-compose'; | ||
import withFeature from '../withFeature.js'; | ||
@@ -6,0 +6,0 @@ import { feature } from '../store/reducers/embeddedApp/loading/index.js'; |
@@ -5,3 +5,3 @@ import { __rest, __assign } from 'tslib'; | ||
import { Redirect } from '@shopify/app-bridge-core/actions'; | ||
import compose from '@shopify/react-compose'; | ||
import compose from '@shopify-internal/react-compose'; | ||
import Frame from '../Frame.js'; | ||
@@ -8,0 +8,0 @@ import withFeature from '../withFeature.js'; |
import { __rest, __assign } from 'tslib'; | ||
import React, { useCallback, useMemo } from 'react'; | ||
import compose from '@shopify/react-compose'; | ||
import compose from '@shopify-internal/react-compose'; | ||
import { Spinner, Modal as Modal$2 } from '@shopify/polaris-internal'; | ||
@@ -5,0 +5,0 @@ import { Context } from '@shopify/app-bridge-core'; |
import { useEffect } from 'react'; | ||
import compose from '@shopify/react-compose'; | ||
import compose from '@shopify-internal/react-compose'; | ||
import { Redirect, History } from '@shopify/app-bridge-core/actions'; | ||
@@ -4,0 +4,0 @@ import { isSafe } from '@shopify/app-bridge-core/validate/safe-redirect'; |
@@ -1,2 +0,2 @@ | ||
import compose from '@shopify/react-compose'; | ||
import compose from '@shopify-internal/react-compose'; | ||
import { feature } from '../store/reducers/embeddedApp/pos/index.js'; | ||
@@ -3,0 +3,0 @@ import withFeature from '../withFeature.js'; |
@@ -1,2 +0,2 @@ | ||
import compose from '@shopify/react-compose'; | ||
import compose from '@shopify-internal/react-compose'; | ||
import withStatelessFeature from './utilities/withStatelessFeature.js'; | ||
@@ -3,0 +3,0 @@ |
@@ -1,2 +0,2 @@ | ||
import compose from '@shopify/react-compose'; | ||
import compose from '@shopify-internal/react-compose'; | ||
import withStatelessFeature from './utilities/withStatelessFeature.js'; | ||
@@ -3,0 +3,0 @@ |
@@ -1,2 +0,2 @@ | ||
import compose from '@shopify/react-compose'; | ||
import compose from '@shopify-internal/react-compose'; | ||
import withStatelessFeature from './utilities/withStatelessFeature.js'; | ||
@@ -3,0 +3,0 @@ |
@@ -1,2 +0,2 @@ | ||
import compose from '@shopify/react-compose'; | ||
import compose from '@shopify-internal/react-compose'; | ||
import { feature } from '../store/reducers/embeddedApp/staffMember/index.js'; | ||
@@ -3,0 +3,0 @@ import withFeature from '../withFeature.js'; |
import React from 'react'; | ||
import { Toast as Toast$2 } from '@shopify/polaris-internal'; | ||
import compose from '@shopify/react-compose'; | ||
import compose from '@shopify-internal/react-compose'; | ||
import { feature } from '../store/reducers/embeddedApp/toast/index.js'; | ||
@@ -5,0 +5,0 @@ import withFeature from '../withFeature.js'; |
@@ -6,6 +6,6 @@ import { __assign } from 'tslib'; | ||
import { addAndRemoveFromCollection } from '@shopify/app-bridge-core/util/collection'; | ||
import { invalidConfigAction, throwError, Action, permissionAction } from '@shopify/app-bridge-core/actions/Error'; | ||
import { throwError, Action, permissionAction } from '@shopify/app-bridge-core/actions/Error'; | ||
import { PREFIX, SEPARATOR } from '@shopify/app-bridge-core/actions/constants'; | ||
import { isLoadReducerCompleteAction, apiClientLoad, apiClientUnload } from './actions.js'; | ||
import { isValidConfig } from './clientValidator.js'; | ||
import { isValidConfig, throwInvalidConfigError } from './clientValidator.js'; | ||
import { isReducerLoaded, createActionsQueue } from './store/index.js'; | ||
@@ -82,3 +82,3 @@ | ||
if (!isValidConfig(source, config)) { | ||
store.dispatch(invalidConfigAction("Provided apiKey `".concat(source.apiKey, "` is incorrect. Expecting `").concat(config.apiKey, "`"))); | ||
throwInvalidConfigError(source, config, action); | ||
} | ||
@@ -85,0 +85,0 @@ if (to.frameWindow !== event.source) { |
{ | ||
"name": "@shopify/app-bridge-host", | ||
"version": "6.1.0-snapshot-20241001182436", | ||
"version": "7.0.0", | ||
"types": "index.d.ts", | ||
@@ -152,3 +152,3 @@ "module": "esm/index.js", | ||
"@shopify/polaris-internal": "^14.0.0", | ||
"@shopify/react-i18n": "^5.0.0 || ^6.0.0 || 7.0.0", | ||
"@shopify-internal/react-i18n": "^7.13.3", | ||
"react": "^18.0.0", | ||
@@ -158,4 +158,4 @@ "react-dom": "^18.0.0" | ||
"dependencies": { | ||
"@shopify/app-bridge-core": "1.5.0-snapshot-20241001182436", | ||
"@shopify/react-compose": "^2.1.12 || ^3.0.0", | ||
"@shopify/app-bridge-core": "1.4.0", | ||
"@shopify-internal/react-compose": "^3.1.2", | ||
"@shopify/useful-types": "^5.3.0", | ||
@@ -162,0 +162,0 @@ "hoist-non-react-statics": "^3.1.0", |
@@ -37,4 +37,3 @@ import { __assign } from 'tslib'; | ||
default: | ||
// eslint-disable-next-line no-console | ||
console.error("".concat(String(event), " not supported")); | ||
throw Error("".concat(String(event), " not supported")); | ||
} | ||
@@ -41,0 +40,0 @@ }); |
@@ -83,3 +83,3 @@ 'use strict'; | ||
if (!clientValidator.isValidConfig(source, config)) { | ||
store.dispatch(Error.invalidConfigAction("Provided apiKey `".concat(source.apiKey, "` is incorrect. Expecting `").concat(config.apiKey, "`"))); | ||
clientValidator.throwInvalidConfigError(source, config, action); | ||
} | ||
@@ -86,0 +86,0 @@ if (to.frameWindow !== event.source) { |
{ | ||
"name": "@shopify/app-bridge-host", | ||
"version": "6.1.0-snapshot-20241001182436", | ||
"version": "7.0.0", | ||
"types": "index.d.ts", | ||
@@ -152,3 +152,3 @@ "module": "esm/index.js", | ||
"@shopify/polaris-internal": "^14.0.0", | ||
"@shopify/react-i18n": "^5.0.0 || ^6.0.0 || 7.0.0", | ||
"@shopify-internal/react-i18n": "^7.13.3", | ||
"react": "^18.0.0", | ||
@@ -158,4 +158,4 @@ "react-dom": "^18.0.0" | ||
"dependencies": { | ||
"@shopify/app-bridge-core": "1.5.0-snapshot-20241001182436", | ||
"@shopify/react-compose": "^2.1.12 || ^3.0.0", | ||
"@shopify/app-bridge-core": "1.4.0", | ||
"@shopify-internal/react-compose": "^3.1.2", | ||
"@shopify/useful-types": "^5.3.0", | ||
@@ -162,0 +162,0 @@ "hoist-non-react-statics": "^3.1.0", |
@@ -55,3 +55,3 @@ # `@shopify/app-bridge-host` | ||
```tsx | ||
import {HostProvider} from '@shopify/app-bridge-host'; | ||
import {HostProvider} from '@shopify-internal/app-bridge-host'; | ||
import Loading from '@shopify/app-bridge-host/components/Loading'; | ||
@@ -101,3 +101,3 @@ import Modal from '@shopify/app-bridge-host/components/Modal'; | ||
```tsx | ||
import {HostProvider, ComponentProps, withFeature} from '@shopify/app-bridge-host'; | ||
import {HostProvider, ComponentProps, withFeature} from '@shopify-internal/app-bridge-host'; | ||
import { | ||
@@ -108,3 +108,3 @@ feature as toastFeature, | ||
import {Toast} from '@shopify/polaris-internal'; | ||
import compose from '@shopify/react-compose'; | ||
import compose from '@shopify-internal/react-compose'; | ||
@@ -155,3 +155,3 @@ function CustomToastComponent(props: WithFeature) { | ||
```tsx | ||
import {HostProvider, useRouterContext, useFeature} from '@shopify/app-bridge-host'; | ||
import {HostProvider, useRouterContext, useFeature} from '@shopify-internal/app-bridge-host'; | ||
import {feature as titleBarFeature} from '@shopify/app-bridge-host/store/reducers/embeddedApp/titleBar'; | ||
@@ -201,7 +201,7 @@ import {feature as menuFeature} from '@shopify/app-bridge-host/store/reducers/embeddedApp/menu'; | ||
You can load host components asynchronously, ie using [@shopify/react-async](https://github.com/Shopify/quilt/tree/master/packages/react-async). The `<HostProvider>` handles adding the feature's reducer to the Redux store. Actions that are dispatched by the app before the feature is available is automatically queued and resolved once the feature's component is loaded. | ||
You can load host components asynchronously, ie using [@shopify-internal/react-async](https://github.com/Shopify/quilt-internal/tree/master/packages/react-async). The `<HostProvider>` handles adding the feature's reducer to the Redux store. Actions that are dispatched by the app before the feature is available is automatically queued and resolved once the feature's component is loaded. | ||
```tsx | ||
import {createAsyncComponent, DeferTiming} from '@shopify/react-async'; | ||
import {HostProvider} from '@shopify/app-bridge-host'; | ||
import {createAsyncComponent, DeferTiming} from '@shopify-internal/react-async'; | ||
import {HostProvider} from '@shopify-internal/app-bridge-host'; | ||
@@ -231,3 +231,3 @@ const Loading = createAsyncComponent<ComponentProps>({ | ||
```typescript | ||
import {HostProvider} from '@shopify/app-bridge-host'; | ||
import {HostProvider} from '@shopify-internal/app-bridge-host'; | ||
import MainFrame from '@shopify/app-bridge-host/components/MainFrame'; | ||
@@ -278,3 +278,3 @@ import Navigation from '@shopify/app-bridge-host/components/Navigation'; | ||
```tsx | ||
import {HostProvider, useHostContext, useFeature} from '@shopify/app-bridge-host'; | ||
import {HostProvider, useHostContext, useFeature} from '@shopify-internal/app-bridge-host'; | ||
import {SessionToken} from '@shopify/app-bridge/actions'; | ||
@@ -281,0 +281,0 @@ import {feature} from '@shopify/app-bridge-host/features/sessionToken'; |
@@ -45,4 +45,3 @@ 'use strict'; | ||
default: | ||
// eslint-disable-next-line no-console | ||
console.error("".concat(String(event), " not supported")); | ||
throw Error("".concat(String(event), " not supported")); | ||
} | ||
@@ -49,0 +48,0 @@ }); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
531979
11859
1
+ Added@shopify/app-bridge-core@1.4.0(transitive)
- Removed@shopify/app-bridge-core@1.5.0-snapshot-20241001182436(transitive)
- Removed@shopify/react-compose@3.1.1(transitive)