UNPKG

@wordpress/core-data

Version:
73 lines (71 loc) 3.9 kB
"use strict"; var __create = Object.create; var __defProp = Object.defineProperty; var __getOwnPropDesc = Object.getOwnPropertyDescriptor; var __getOwnPropNames = Object.getOwnPropertyNames; var __getProtoOf = Object.getPrototypeOf; var __hasOwnProp = Object.prototype.hasOwnProperty; var __export = (target, all) => { for (var name in all) __defProp(target, name, { get: all[name], enumerable: true }); }; var __copyProps = (to, from, except, desc) => { if (from && typeof from === "object" || typeof from === "function") { for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); } return to; }; var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps( // If the importer is in node compatibility mode or this is not an ESM // file that has been converted to a CommonJS file using a Babel- // compatible transform (i.e. "__esModule" has not been set), then set // "default" to the CommonJS "module.exports" for node compatibility. isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target, mod )); var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); // packages/core-data/src/private-apis.ts var private_apis_exports = {}; __export(private_apis_exports, { privateApis: () => privateApis }); module.exports = __toCommonJS(private_apis_exports); var import_use_entity_records = require("./hooks/use-entity-records.cjs"); var import_utils = require("./utils/index.cjs"); var import_use_post_editor_awareness_state = require("./hooks/use-post-editor-awareness-state.cjs"); var import_get_template_info = require("./utils/get-template-info.cjs"); var import_get_template_part_icon = require("./utils/get-template-part-icon.cjs"); var import_entities_saved_states = __toESM(require("./components/entities-saved-states/index.cjs")); var import_use_is_dirty = require("./components/entities-saved-states/hooks/use-is-dirty.cjs"); var import_lock_unlock = require("./lock-unlock.cjs"); var import_sync = require("./sync.cjs"); var import_crdt_user_selections = require("./utils/crdt-user-selections.cjs"); var lockedApis = { EntitiesSavedStates: import_entities_saved_states.default, EntitiesSavedStatesExtensible: import_entities_saved_states.EntitiesSavedStatesExtensible, getTemplateInfo: import_get_template_info.getTemplateInfo, getTemplatePartIcon: import_get_template_part_icon.getTemplatePartIcon, useEntitiesSavedStatesIsDirty: import_use_is_dirty.useIsDirty, useEntityRecordsWithPermissions: import_use_entity_records.useEntityRecordsWithPermissions, RECEIVE_INTERMEDIATE_RESULTS: import_utils.RECEIVE_INTERMEDIATE_RESULTS, CRDT_AUTOSAVE_SNAPSHOT_KEY: import_sync.CRDT_AUTOSAVE_SNAPSHOT_KEY, entityContainsSnapshot: import_sync.entityContainsSnapshot, getEntitySnapshot: import_sync.getEntitySnapshot, retrySyncConnection: import_sync.retrySyncConnection, useActiveCollaborators: import_use_post_editor_awareness_state.useActiveCollaborators, useResolvedSelection: import_use_post_editor_awareness_state.useResolvedSelection, useOnCollaboratorJoin: import_use_post_editor_awareness_state.useOnCollaboratorJoin, useOnCollaboratorLeave: import_use_post_editor_awareness_state.useOnCollaboratorLeave, useOnPostSave: import_use_post_editor_awareness_state.useOnPostSave, SelectionType: import_crdt_user_selections.SelectionType, SelectionDirection: import_crdt_user_selections.SelectionDirection }; var privateApis = {}; (0, import_lock_unlock.lock)(privateApis, lockedApis); // Annotate the CommonJS export names for ESM import in node: 0 && (module.exports = { privateApis }); //# sourceMappingURL=private-apis.cjs.map