| [ Index ] |
PHP Cross Reference of WordPress Trunk (Updated Daily) |
[Summary view] [Print] [Text view]
1 (function() { 2 var wp; 3 (wp ||= {}).nux = (() => { 4 var __create = Object.create; 5 var __defProp = Object.defineProperty; 6 var __getOwnPropDesc = Object.getOwnPropertyDescriptor; 7 var __getOwnPropNames = Object.getOwnPropertyNames; 8 var __getProtoOf = Object.getPrototypeOf; 9 var __hasOwnProp = Object.prototype.hasOwnProperty; 10 var __commonJS = (cb, mod) => function __require() { 11 return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports; 12 }; 13 var __export = (target, all) => { 14 for (var name in all) 15 __defProp(target, name, { get: all[name], enumerable: true }); 16 }; 17 var __copyProps = (to, from, except, desc) => { 18 if (from && typeof from === "object" || typeof from === "function") { 19 for (let key of __getOwnPropNames(from)) 20 if (!__hasOwnProp.call(to, key) && key !== except) 21 __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); 22 } 23 return to; 24 }; 25 var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps( 26 // If the importer is in node compatibility mode or this is not an ESM 27 // file that has been converted to a CommonJS file using a Babel- 28 // compatible transform (i.e. "__esModule" has not been set), then set 29 // "default" to the CommonJS "module.exports" for node compatibility. 30 isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target, 31 mod 32 )); 33 var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); 34 35 // package-external:@wordpress/deprecated 36 var require_deprecated = __commonJS({ 37 "package-external:@wordpress/deprecated"(exports, module) { 38 module.exports = window.wp.deprecated; 39 } 40 }); 41 42 // package-external:@wordpress/data 43 var require_data = __commonJS({ 44 "package-external:@wordpress/data"(exports, module) { 45 module.exports = window.wp.data; 46 } 47 }); 48 49 // packages/nux/build-module/index.mjs 50 var index_exports = {}; 51 __export(index_exports, { 52 DotTip: () => dot_tip_default, 53 store: () => store 54 }); 55 var import_deprecated = __toESM(require_deprecated(), 1); 56 57 // packages/nux/build-module/store/index.mjs 58 var import_data = __toESM(require_data(), 1); 59 60 // packages/nux/build-module/store/reducer.mjs 61 var DEFAULT_STATE = { 62 guides: [], 63 preferences: { 64 areTipsEnabled: false, 65 dismissedTips: {} 66 } 67 }; 68 function reducer(state = DEFAULT_STATE) { 69 return state; 70 } 71 72 // packages/nux/build-module/store/actions.mjs 73 var actions_exports = {}; 74 __export(actions_exports, { 75 disableTips: () => disableTips, 76 dismissTip: () => dismissTip, 77 enableTips: () => enableTips, 78 triggerGuide: () => triggerGuide 79 }); 80 function triggerGuide(tipIds) { 81 return { 82 type: "TRIGGER_GUIDE", 83 tipIds 84 }; 85 } 86 function dismissTip(id) { 87 return { 88 type: "DISMISS_TIP", 89 id 90 }; 91 } 92 function disableTips() { 93 return { 94 type: "DISABLE_TIPS" 95 }; 96 } 97 function enableTips() { 98 return { 99 type: "ENABLE_TIPS" 100 }; 101 } 102 103 // packages/nux/build-module/store/selectors.mjs 104 var selectors_exports = {}; 105 __export(selectors_exports, { 106 areTipsEnabled: () => areTipsEnabled, 107 getAssociatedGuide: () => getAssociatedGuide, 108 isTipVisible: () => isTipVisible 109 }); 110 function getAssociatedGuide() { 111 return null; 112 } 113 function isTipVisible() { 114 return false; 115 } 116 function areTipsEnabled() { 117 return false; 118 } 119 120 // packages/nux/build-module/store/index.mjs 121 var STORE_NAME = "core/nux"; 122 var store = (0, import_data.createReduxStore)(STORE_NAME, { 123 reducer, 124 actions: actions_exports, 125 selectors: selectors_exports, 126 persist: ["preferences"] 127 }); 128 (0, import_data.registerStore)(STORE_NAME, { 129 reducer, 130 actions: actions_exports, 131 selectors: selectors_exports, 132 persist: ["preferences"] 133 }); 134 135 // packages/nux/build-module/components/dot-tip/index.mjs 136 function DotTip() { 137 return null; 138 } 139 var dot_tip_default = DotTip; 140 141 // packages/nux/build-module/index.mjs 142 (0, import_deprecated.default)("wp.nux", { 143 since: "5.4", 144 hint: "wp.components.Guide can be used to show a user guide.", 145 version: "6.2" 146 }); 147 return __toCommonJS(index_exports); 148 })(); 149 (window.wp ||= {}).nux = wp.nux; 150 })();
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
| Generated : Wed Aug 26 08:20:24 2026 | Cross-referenced by PHPXref |