@shopify/app-bridge-host
Version:
App Bridge Host contains middleware and components that are meant to be consumed by the app's host. The middleware and `Frame` component are responsible for facilitating messages posted between the client and host, and used to act on actions sent from the
31 lines (30 loc) • 1.2 kB
JavaScript
;
function __export(m) {
for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];
}
var __importStar = (this && this.__importStar) || function (mod) {
if (mod && mod.__esModule) return mod;
var result = {};
if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];
result["default"] = mod;
return result;
};
Object.defineProperty(exports, "__esModule", { value: true });
var actionCreators_1 = require("./actionCreators");
var reducer_1 = __importStar(require("./reducer"));
exports.defaultLoadingStore = reducer_1.defaultLoadingStore;
var utilities_1 = require("../utilities");
exports.default = reducer_1.default;
__export(require("./actionCreators"));
/**
* An object containing the key, actions, initial state and reducer of the Loading feature
* Can be used with the `withFeature` decorator to add the reducer
* and then make its actions and store available to the wrapped component
* @public
* */
exports.feature = {
actions: actionCreators_1.loadingActionCreatorsMap,
key: 'loading',
initialState: reducer_1.defaultLoadingStore,
reducer: utilities_1.resetStateReducer(reducer_1.default),
};