/home/sitetest/makie/homedir/public_html/wp-includes/js/dist
NameSizeModeActions
development/-0755rm
script-modules/-0755rm
vendor/-0755rm
a11y.js55840644editdlrm
a11y.min.js25030644editdlrm
annotations.js154930644editdlrm
annotations.min.js57530644editdlrm
api-fetch.js178750644editdlrm
api-fetch.min.js64720644editdlrm
autop.js99620644editdlrm
autop.min.js56370644editdlrm
base-styles.js480644editdlrm
base-styles.min.js750644editdlrm
blob.js23550644editdlrm
blob.min.js11880644editdlrm
block-directory.js570060644editdlrm
block-directory.min.js224820644editdlrm
block-editor.js28323200644editdlrm
block-editor.min.js10560020644editdlrm
block-library.js26928450644editdlrm
block-library.min.js11439760644editdlrm
block-serialization-default-parser.js66950644editdlrm
block-serialization-default-parser.min.js24510644editdlrm
block-serialization-spec-parser.js516930644editdlrm
block-serialization-spec-parser.min.js106250644editdlrm
blocks.js3902060644editdlrm
blocks.min.js1849520644editdlrm
commands.js1553460644editdlrm
commands.min.js646530644editdlrm
components.js40174640644editdlrm
components.min.js8051480644editdlrm
compose.js826880644editdlrm
compose.min.js288560644editdlrm
core-commands.js293670644editdlrm
core-commands.min.js121530644editdlrm
core-data.js6267180644editdlrm
core-data.min.js2155160644editdlrm
customize-widgets.js937700644editdlrm
customize-widgets.min.js374940644editdlrm
data-controls.js42300644editdlrm
data-controls.min.js18140644editdlrm
data.js847710644editdlrm
data.min.js265400644editdlrm
date.js1805760644editdlrm
date.min.js1446080644editdlrm
deprecated.js31130644editdlrm
deprecated.min.js13150644editdlrm
dom-ready.js15080644editdlrm
dom-ready.min.js8180644editdlrm
dom.js354450644editdlrm
dom.min.js129540644editdlrm
edit-post.js1202130644editdlrm
edit-post.min.js502840644editdlrm
edit-site.js17674560644editdlrm
edit-site.min.js7008800644editdlrm
edit-widgets.js1640940644editdlrm
edit-widgets.min.js633440644editdlrm
editor.js26177020644editdlrm
editor.min.js10461500644editdlrm
element.js286020644editdlrm
element.min.js124580644editdlrm
escape-html.js23460644editdlrm
escape-html.min.js10910644editdlrm
format-library.js750990644editdlrm
format-library.min.js295750644editdlrm
hooks.js122420644editdlrm
hooks.min.js50500644editdlrm
html-entities.js16850644editdlrm
html-entities.min.js8790644editdlrm
i18n.js156700644editdlrm
i18n.min.js57320644editdlrm
is-shallow-equal.js27580644editdlrm
is-shallow-equal.min.js11220644editdlrm
keyboard-shortcuts.js99130644editdlrm
keyboard-shortcuts.min.js35270644editdlrm
keycodes.js85010644editdlrm
keycodes.min.js29750644editdlrm
list-reusable-blocks.js133740644editdlrm
list-reusable-blocks.min.js53670644editdlrm
media-utils.js6524380644editdlrm
media-utils.min.js2433430644editdlrm
notices.js103560644editdlrm
notices.min.js44890644editdlrm
nux.js105720644editdlrm
nux.min.js40480644editdlrm
patterns.js596440644editdlrm
patterns.min.js221520644editdlrm
plugins.js119510644editdlrm
plugins.min.js48700644editdlrm
preferences-persistence.js176290644editdlrm
preferences-persistence.min.js56220644editdlrm
preferences.js215740644editdlrm
preferences.min.js78990644editdlrm
primitives.js52030644editdlrm
primitives.min.js20260644editdlrm
priority-queue.js102650644editdlrm
priority-queue.min.js34320644editdlrm
private-apis.js41920644editdlrm
private-apis.min.js27230644editdlrm
react-i18n.js39990644editdlrm
react-i18n.min.js15620644editdlrm
redux-routine.js252750644editdlrm
redux-routine.min.js98810644editdlrm
reusable-blocks.js210040644editdlrm
reusable-blocks.min.js73960644editdlrm
rich-text.js993660644editdlrm
rich-text.min.js408470644editdlrm
router.js369870644editdlrm
router.min.js144700644editdlrm
server-side-render.js112310644editdlrm
server-side-render.min.js40350644editdlrm
shortcode.js81500644editdlrm
shortcode.min.js33610644editdlrm
style-engine.js180400644editdlrm
style-engine.min.js65690644editdlrm
theme.js1307110644editdlrm
theme.min.js574650644editdlrm
token-list.js62620644editdlrm
token-list.min.js16580644editdlrm
undo-manager.js54220644editdlrm
undo-manager.min.js17390644editdlrm
upload-media.js570020644editdlrm
upload-media.min.js236060644editdlrm
url.js239510644editdlrm
url.min.js103700644editdlrm
viewport.js67650644editdlrm
viewport.min.js22970644editdlrm
warning.js15590644editdlrm
warning.min.js7550644editdlrm
widgets.js512820644editdlrm
widgets.min.js213270644editdlrm
wordcount.js71010644editdlrm
wordcount.min.js25050644editdlrm
Edit: /home/sitetest/makie/homedir/public_html/wp-includes/js/dist/keyboard-shortcuts.js (9913B)
var wp; (wp ||= {}).keyboardShortcuts = (() => { 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 __commonJS = (cb, mod) => function __require() { return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports; }; 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); // package-external:@wordpress/data var require_data = __commonJS({ "package-external:@wordpress/data"(exports, module) { module.exports = window.wp.data; } }); // package-external:@wordpress/keycodes var require_keycodes = __commonJS({ "package-external:@wordpress/keycodes"(exports, module) { module.exports = window.wp.keycodes; } }); // package-external:@wordpress/element var require_element = __commonJS({ "package-external:@wordpress/element"(exports, module) { module.exports = window.wp.element; } }); // vendor-external:react/jsx-runtime var require_jsx_runtime = __commonJS({ "vendor-external:react/jsx-runtime"(exports, module) { module.exports = window.ReactJSXRuntime; } }); // packages/keyboard-shortcuts/build-module/index.mjs var index_exports = {}; __export(index_exports, { ShortcutProvider: () => ShortcutProvider, __unstableUseShortcutEventMatch: () => useShortcutEventMatch, store: () => store, useShortcut: () => useShortcut }); // packages/keyboard-shortcuts/build-module/store/index.mjs var import_data2 = __toESM(require_data(), 1); // packages/keyboard-shortcuts/build-module/store/reducer.mjs function reducer(state = {}, action) { switch (action.type) { case "REGISTER_SHORTCUT": return { ...state, [action.name]: { category: action.category, keyCombination: action.keyCombination, aliases: action.aliases, description: action.description } }; case "UNREGISTER_SHORTCUT": const { [action.name]: actionName, ...remainingState } = state; return remainingState; } return state; } var reducer_default = reducer; // packages/keyboard-shortcuts/build-module/store/actions.mjs var actions_exports = {}; __export(actions_exports, { registerShortcut: () => registerShortcut, unregisterShortcut: () => unregisterShortcut }); function registerShortcut({ name, category, description, keyCombination, aliases }) { return { type: "REGISTER_SHORTCUT", name, category, keyCombination, aliases, description }; } function unregisterShortcut(name) { return { type: "UNREGISTER_SHORTCUT", name }; } // packages/keyboard-shortcuts/build-module/store/selectors.mjs var selectors_exports = {}; __export(selectors_exports, { getAllShortcutKeyCombinations: () => getAllShortcutKeyCombinations, getAllShortcutRawKeyCombinations: () => getAllShortcutRawKeyCombinations, getCategoryShortcuts: () => getCategoryShortcuts, getShortcutAliases: () => getShortcutAliases, getShortcutDescription: () => getShortcutDescription, getShortcutKeyCombination: () => getShortcutKeyCombination, getShortcutRepresentation: () => getShortcutRepresentation }); var import_data = __toESM(require_data(), 1); var import_keycodes = __toESM(require_keycodes(), 1); var EMPTY_ARRAY = []; var FORMATTING_METHODS = { display: import_keycodes.displayShortcut, raw: import_keycodes.rawShortcut, ariaLabel: import_keycodes.shortcutAriaLabel }; function getKeyCombinationRepresentation(shortcut, representation) { if (!shortcut) { return null; } return shortcut.modifier ? FORMATTING_METHODS[representation][shortcut.modifier]( shortcut.character ) : shortcut.character; } function getShortcutKeyCombination(state, name) { return state[name] ? state[name].keyCombination : null; } function getShortcutRepresentation(state, name, representation = "display") { const shortcut = getShortcutKeyCombination(state, name); return getKeyCombinationRepresentation(shortcut, representation); } function getShortcutDescription(state, name) { return state[name] ? state[name].description : null; } function getShortcutAliases(state, name) { return state[name] && state[name].aliases ? state[name].aliases : EMPTY_ARRAY; } var getAllShortcutKeyCombinations = (0, import_data.createSelector)( (state, name) => { return [ getShortcutKeyCombination(state, name), ...getShortcutAliases(state, name) ].filter(Boolean); }, (state, name) => [state[name]] ); var getAllShortcutRawKeyCombinations = (0, import_data.createSelector)( (state, name) => { return getAllShortcutKeyCombinations(state, name).map( (combination) => getKeyCombinationRepresentation(combination, "raw") ); }, (state, name) => [state[name]] ); var getCategoryShortcuts = (0, import_data.createSelector)( (state, categoryName) => { return Object.entries(state).filter(([, shortcut]) => shortcut.category === categoryName).map(([name]) => name); }, (state) => [state] ); // packages/keyboard-shortcuts/build-module/store/index.mjs var STORE_NAME = "core/keyboard-shortcuts"; var store = (0, import_data2.createReduxStore)(STORE_NAME, { reducer: reducer_default, actions: actions_exports, selectors: selectors_exports }); (0, import_data2.register)(store); // packages/keyboard-shortcuts/build-module/hooks/use-shortcut.mjs var import_element2 = __toESM(require_element(), 1); // packages/keyboard-shortcuts/build-module/hooks/use-shortcut-event-match.mjs var import_data3 = __toESM(require_data(), 1); var import_keycodes2 = __toESM(require_keycodes(), 1); function useShortcutEventMatch() { const { getAllShortcutKeyCombinations: getAllShortcutKeyCombinations2 } = (0, import_data3.useSelect)( store ); function isMatch(name, event) { return getAllShortcutKeyCombinations2(name).some( ({ modifier, character }) => { return import_keycodes2.isKeyboardEvent[modifier](event, character); } ); } return isMatch; } // packages/keyboard-shortcuts/build-module/context.mjs var import_element = __toESM(require_element(), 1); var globalShortcuts = /* @__PURE__ */ new Set(); var globalListener = (event) => { for (const keyboardShortcut of globalShortcuts) { keyboardShortcut(event); } }; var context = (0, import_element.createContext)({ add: (shortcut) => { if (globalShortcuts.size === 0) { document.addEventListener("keydown", globalListener); } globalShortcuts.add(shortcut); }, delete: (shortcut) => { globalShortcuts.delete(shortcut); if (globalShortcuts.size === 0) { document.removeEventListener("keydown", globalListener); } } }); context.displayName = "KeyboardShortcutsContext"; // packages/keyboard-shortcuts/build-module/hooks/use-shortcut.mjs function useShortcut(name, callback, { isDisabled = false } = {}) { const shortcuts = (0, import_element2.useContext)(context); const isMatch = useShortcutEventMatch(); const callbackRef = (0, import_element2.useRef)(); (0, import_element2.useEffect)(() => { callbackRef.current = callback; }, [callback]); (0, import_element2.useEffect)(() => { if (isDisabled) { return; } function _callback(event) { if (isMatch(name, event)) { callbackRef.current(event); } } shortcuts.add(_callback); return () => { shortcuts.delete(_callback); }; }, [name, isDisabled, shortcuts]); } // packages/keyboard-shortcuts/build-module/components/shortcut-provider.mjs var import_element3 = __toESM(require_element(), 1); var import_jsx_runtime = __toESM(require_jsx_runtime(), 1); var { Provider } = context; function ShortcutProvider(props) { const [keyboardShortcuts] = (0, import_element3.useState)(() => /* @__PURE__ */ new Set()); function onKeyDown(event) { if (props.onKeyDown) { props.onKeyDown(event); } for (const keyboardShortcut of keyboardShortcuts) { keyboardShortcut(event); } } return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Provider, { value: keyboardShortcuts, children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { ...props, onKeyDown }) }); } return __toCommonJS(index_exports); })();