__( 'Save as a template', 'elementor' );
__( 'New', 'elementor' );
__( 'Create component', 'elementor' );
__( 'To create new components, update Elementor Pro to the latest version.', 'elementor' );
__( 'Update Now', 'elementor' );
__( 'Add %s', 'elementor' );
__( 'Edit %s', 'elementor' );
__( 'Duplicate %s', 'elementor' );
__( 'Delete %s', 'elementor' );# Members - EDD Integration
The Members - EDD Integration add-on more nicely integrates the [Easy Digital Downloads](https://easydigitaldownloads.com/) plugin capabilities into the Members plugin's role manager.
The [Members plugin](https://themehybrid.com/plugins/members) and the Easy Digital Downloads plugin are required to be installed and activated for this plugin to work.
## Shop Role Group
The plugin creates a new "Shop" role group for Easy Digital Downloads, which is located under the Users > Roles screen in the admin. This role group lists the following roles:
- Shop Accountant
- Shop Manager
- Shop Vendor
- Shop Worker
- Any other roles that have EDD-related capabilities.
This allows you to see any roles that have EDD permissions at a glance.
## Downloads Capability Group
When editing or creating a new role in Members, this add-on creates a new "Downloads" tab (cap group). This tab combines all of the Easy Digital Downloads capabilities in one place. That way, you can see all available caps without jumping between different tabs.
## Copyright and License
This project is licensed under the [GNU GPL](http://www.gnu.org/licenses/old-licenses/gpl-2.0.html), version 2 or later.
2019 © [Justin Tadlock](http://justintadlock.com).
/******/ (function() { // webpackBootstrap
/******/ "use strict";
/******/ var __webpack_modules__ = ({
/***/ "./node_modules/@monaco-editor/loader/lib/es/_virtual/_rollupPluginBabelHelpers.js":
/*!*****************************************************************************************!*\
!*** ./node_modules/@monaco-editor/loader/lib/es/_virtual/_rollupPluginBabelHelpers.js ***!
\*****************************************************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */ arrayLikeToArray: function() { return /* binding */ _arrayLikeToArray; },
/* harmony export */ arrayWithHoles: function() { return /* binding */ _arrayWithHoles; },
/* harmony export */ defineProperty: function() { return /* binding */ _defineProperty; },
/* harmony export */ iterableToArrayLimit: function() { return /* binding */ _iterableToArrayLimit; },
/* harmony export */ nonIterableRest: function() { return /* binding */ _nonIterableRest; },
/* harmony export */ objectSpread2: function() { return /* binding */ _objectSpread2; },
/* harmony export */ objectWithoutProperties: function() { return /* binding */ _objectWithoutProperties; },
/* harmony export */ objectWithoutPropertiesLoose: function() { return /* binding */ _objectWithoutPropertiesLoose; },
/* harmony export */ slicedToArray: function() { return /* binding */ _slicedToArray; },
/* harmony export */ toPrimitive: function() { return /* binding */ _toPrimitive; },
/* harmony export */ toPropertyKey: function() { return /* binding */ _toPropertyKey; },
/* harmony export */ unsupportedIterableToArray: function() { return /* binding */ _unsupportedIterableToArray; }
/* harmony export */ });
function _arrayLikeToArray(r, a) {
(null == a || a > r.length) && (a = r.length);
for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];
return n;
}
function _arrayWithHoles(r) {
if (Array.isArray(r)) return r;
}
function _defineProperty(e, r, t) {
return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
value: t,
enumerable: true,
configurable: true,
writable: true
}) : e[r] = t, e;
}
function _iterableToArrayLimit(r, l) {
var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
if (null != t) {
var e,
n,
i,
u,
a = [],
f = true,
o = false;
try {
if (i = (t = t.call(r)).next, 0 === l) ; else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0);
} catch (r) {
o = true, n = r;
} finally {
try {
if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return;
} finally {
if (o) throw n;
}
}
return a;
}
}
function _nonIterableRest() {
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
}
function ownKeys(e, r) {
var t = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var o = Object.getOwnPropertySymbols(e);
r && (o = o.filter(function (r) {
return Object.getOwnPropertyDescriptor(e, r).enumerable;
})), t.push.apply(t, o);
}
return t;
}
function _objectSpread2(e) {
for (var r = 1; r < arguments.length; r++) {
var t = null != arguments[r] ? arguments[r] : {};
r % 2 ? ownKeys(Object(t), true).forEach(function (r) {
_defineProperty(e, r, t[r]);
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) {
Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));
});
}
return e;
}
function _objectWithoutProperties(e, t) {
if (null == e) return {};
var o,
r,
i = _objectWithoutPropertiesLoose(e, t);
if (Object.getOwnPropertySymbols) {
var n = Object.getOwnPropertySymbols(e);
for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]);
}
return i;
}
function _objectWithoutPropertiesLoose(r, e) {
if (null == r) return {};
var t = {};
for (var n in r) if ({}.hasOwnProperty.call(r, n)) {
if (-1 !== e.indexOf(n)) continue;
t[n] = r[n];
}
return t;
}
function _slicedToArray(r, e) {
return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest();
}
function _toPrimitive(t, r) {
if ("object" != typeof t || !t) return t;
var e = t[Symbol.toPrimitive];
if (void 0 !== e) {
var i = e.call(t, r);
if ("object" != typeof i) return i;
throw new TypeError("@@toPrimitive must return a primitive value.");
}
return ("string" === r ? String : Number)(t);
}
function _toPropertyKey(t) {
var i = _toPrimitive(t, "string");
return "symbol" == typeof i ? i : i + "";
}
function _unsupportedIterableToArray(r, a) {
if (r) {
if ("string" == typeof r) return _arrayLikeToArray(r, a);
var t = {}.toString.call(r).slice(8, -1);
return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0;
}
}
/***/ }),
/***/ "./node_modules/@monaco-editor/loader/lib/es/config/index.js":
/*!*******************************************************************!*\
!*** ./node_modules/@monaco-editor/loader/lib/es/config/index.js ***!
\*******************************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */ "default": function() { return /* binding */ config; }
/* harmony export */ });
var config = {
paths: {
vs: 'https://cdn.jsdelivr.net/npm/monaco-editor@0.55.1/min/vs'
}
};
/***/ }),
/***/ "./node_modules/@monaco-editor/loader/lib/es/index.js":
/*!************************************************************!*\
!*** ./node_modules/@monaco-editor/loader/lib/es/index.js ***!
\************************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */ "default": function() { return /* reexport safe */ _loader_index_js__WEBPACK_IMPORTED_MODULE_0__["default"]; }
/* harmony export */ });
/* harmony import */ var _loader_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./loader/index.js */ "./node_modules/@monaco-editor/loader/lib/es/loader/index.js");
/***/ }),
/***/ "./node_modules/@monaco-editor/loader/lib/es/loader/index.js":
/*!*******************************************************************!*\
!*** ./node_modules/@monaco-editor/loader/lib/es/loader/index.js ***!
\*******************************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */ "default": function() { return /* binding */ loader; }
/* harmony export */ });
/* harmony import */ var _virtual_rollupPluginBabelHelpers_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../_virtual/_rollupPluginBabelHelpers.js */ "./node_modules/@monaco-editor/loader/lib/es/_virtual/_rollupPluginBabelHelpers.js");
/* harmony import */ var state_local__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! state-local */ "./node_modules/state-local/lib/es/state-local.js");
/* harmony import */ var _config_index_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../config/index.js */ "./node_modules/@monaco-editor/loader/lib/es/config/index.js");
/* harmony import */ var _validators_index_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../validators/index.js */ "./node_modules/@monaco-editor/loader/lib/es/validators/index.js");
/* harmony import */ var _utils_compose_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../utils/compose.js */ "./node_modules/@monaco-editor/loader/lib/es/utils/compose.js");
/* harmony import */ var _utils_deepMerge_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../utils/deepMerge.js */ "./node_modules/@monaco-editor/loader/lib/es/utils/deepMerge.js");
/* harmony import */ var _utils_makeCancelable_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../utils/makeCancelable.js */ "./node_modules/@monaco-editor/loader/lib/es/utils/makeCancelable.js");
var _excluded = ["monaco"];
/** the local state of the module */
var _state$create = state_local__WEBPACK_IMPORTED_MODULE_1__["default"].create({
config: _config_index_js__WEBPACK_IMPORTED_MODULE_2__["default"],
isInitialized: false,
resolve: null,
reject: null,
monaco: null
}),
_state$create2 = (0,_virtual_rollupPluginBabelHelpers_js__WEBPACK_IMPORTED_MODULE_0__.slicedToArray)(_state$create, 2),
getState = _state$create2[0],
setState = _state$create2[1];
/**
* set the loader configuration
* @param {Object} config - the configuration object
*/
function config(globalConfig) {
var _validators$config = _validators_index_js__WEBPACK_IMPORTED_MODULE_3__["default"].config(globalConfig),
monaco = _validators$config.monaco,
config = (0,_virtual_rollupPluginBabelHelpers_js__WEBPACK_IMPORTED_MODULE_0__.objectWithoutProperties)(_validators$config, _excluded);
setState(function (state) {
return {
config: (0,_utils_deepMerge_js__WEBPACK_IMPORTED_MODULE_5__["default"])(state.config, config),
monaco: monaco
};
});
}
/**
* handles the initialization of the monaco-editor
* @return {Promise} - returns an instance of monaco (with a cancelable promise)
*/
function init() {
var state = getState(function (_ref) {
var monaco = _ref.monaco,
isInitialized = _ref.isInitialized,
resolve = _ref.resolve;
return {
monaco: monaco,
isInitialized: isInitialized,
resolve: resolve
};
});
if (!state.isInitialized) {
setState({
isInitialized: true
});
if (state.monaco) {
state.resolve(state.monaco);
return (0,_utils_makeCancelable_js__WEBPACK_IMPORTED_MODULE_6__["default"])(wrapperPromise);
}
if (window.monaco && window.monaco.editor) {
storeMonacoInstance(window.monaco);
state.resolve(window.monaco);
return (0,_utils_makeCancelable_js__WEBPACK_IMPORTED_MODULE_6__["default"])(wrapperPromise);
}
(0,_utils_compose_js__WEBPACK_IMPORTED_MODULE_4__["default"])(injectScripts, getMonacoLoaderScript)(configureLoader);
}
return (0,_utils_makeCancelable_js__WEBPACK_IMPORTED_MODULE_6__["default"])(wrapperPromise);
}
/**
* injects provided scripts into the document.body
* @param {Object} script - an HTML script element
* @return {Object} - the injected HTML script element
*/
function injectScripts(script) {
return document.body.appendChild(script);
}
/**
* creates an HTML script element with/without provided src
* @param {string} [src] - the source path of the script
* @return {Object} - the created HTML script element
*/
function createScript(src) {
var script = document.createElement('script');
return src && (script.src = src), script;
}
/**
* creates an HTML script element with the monaco loader src
* @return {Object} - the created HTML script element
*/
function getMonacoLoaderScript(configureLoader) {
var state = getState(function (_ref2) {
var config = _ref2.config,
reject = _ref2.reject;
return {
config: config,
reject: reject
};
});
var loaderScript = createScript("".concat(state.config.paths.vs, "/loader.js"));
loaderScript.onload = function () {
return configureLoader();
};
loaderScript.onerror = state.reject;
return loaderScript;
}
/**
* configures the monaco loader
*/
function configureLoader() {
var state = getState(function (_ref3) {
var config = _ref3.config,
resolve = _ref3.resolve,
reject = _ref3.reject;
return {
config: config,
resolve: resolve,
reject: reject
};
});
var require = window.require;
require.config(state.config);
require(['vs/editor/editor.main'], function (loaded) {
var monaco = loaded.m /* for 0.53 & 0.54 */ || loaded /* for other versions */;
storeMonacoInstance(monaco);
state.resolve(monaco);
}, function (error) {
state.reject(error);
});
}
/**
* store monaco instance in local state
*/
function storeMonacoInstance(monaco) {
if (!getState().monaco) {
setState({
monaco: monaco
});
}
}
/**
* internal helper function
* extracts stored monaco instance
* @return {Object|null} - the monaco instance
*/
function __getMonacoInstance() {
return getState(function (_ref4) {
var monaco = _ref4.monaco;
return monaco;
});
}
var wrapperPromise = new Promise(function (resolve, reject) {
return setState({
resolve: resolve,
reject: reject
});
});
var loader = {
config: config,
init: init,
__getMonacoInstance: __getMonacoInstance
};
/***/ }),
/***/ "./node_modules/@monaco-editor/loader/lib/es/utils/compose.js":
/*!********************************************************************!*\
!*** ./node_modules/@monaco-editor/loader/lib/es/utils/compose.js ***!
\********************************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */ "default": function() { return /* binding */ compose; }
/* harmony export */ });
var compose = function compose() {
for (var _len = arguments.length, fns = new Array(_len), _key = 0; _key < _len; _key++) {
fns[_key] = arguments[_key];
}
return function (x) {
return fns.reduceRight(function (y, f) {
return f(y);
}, x);
};
};
/***/ }),
/***/ "./node_modules/@monaco-editor/loader/lib/es/utils/curry.js":
/*!******************************************************************!*\
!*** ./node_modules/@monaco-editor/loader/lib/es/utils/curry.js ***!
\******************************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */ "default": function() { return /* binding */ curry; }
/* harmony export */ });
function curry(fn) {
return function curried() {
var _this = this;
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
args[_key] = arguments[_key];
}
return args.length >= fn.length ? fn.apply(this, args) : function () {
for (var _len2 = arguments.length, nextArgs = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
nextArgs[_key2] = arguments[_key2];
}
return curried.apply(_this, [].concat(args, nextArgs));
};
};
}
/***/ }),
/***/ "./node_modules/@monaco-editor/loader/lib/es/utils/deepMerge.js":
/*!**********************************************************************!*\
!*** ./node_modules/@monaco-editor/loader/lib/es/utils/deepMerge.js ***!
\**********************************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */ "default": function() { return /* binding */ merge; }
/* harmony export */ });
/* harmony import */ var _virtual_rollupPluginBabelHelpers_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../_virtual/_rollupPluginBabelHelpers.js */ "./node_modules/@monaco-editor/loader/lib/es/_virtual/_rollupPluginBabelHelpers.js");
function merge(target, source) {
Object.keys(source).forEach(function (key) {
if (source[key] instanceof Object) {
if (target[key]) {
Object.assign(source[key], merge(target[key], source[key]));
}
}
});
return (0,_virtual_rollupPluginBabelHelpers_js__WEBPACK_IMPORTED_MODULE_0__.objectSpread2)((0,_virtual_rollupPluginBabelHelpers_js__WEBPACK_IMPORTED_MODULE_0__.objectSpread2)({}, target), source);
}
/***/ }),
/***/ "./node_modules/@monaco-editor/loader/lib/es/utils/isObject.js":
/*!*********************************************************************!*\
!*** ./node_modules/@monaco-editor/loader/lib/es/utils/isObject.js ***!
\*********************************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */ "default": function() { return /* binding */ isObject; }
/* harmony export */ });
function isObject(value) {
return {}.toString.call(value).includes('Object');
}
/***/ }),
/***/ "./node_modules/@monaco-editor/loader/lib/es/utils/makeCancelable.js":
/*!***************************************************************************!*\
!*** ./node_modules/@monaco-editor/loader/lib/es/utils/makeCancelable.js ***!
\***************************************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */ CANCELATION_MESSAGE: function() { return /* binding */ CANCELATION_MESSAGE; },
/* harmony export */ "default": function() { return /* binding */ makeCancelable; }
/* harmony export */ });
// The source (has been changed) is https://github.com/facebook/react/issues/5465#issuecomment-157888325
var CANCELATION_MESSAGE = {
type: 'cancelation',
msg: 'operation is manually canceled'
};
function makeCancelable(promise) {
var hasCanceled_ = false;
var wrappedPromise = new Promise(function (resolve, reject) {
promise.then(function (val) {
return hasCanceled_ ? reject(CANCELATION_MESSAGE) : resolve(val);
});
promise["catch"](reject);
});
return wrappedPromise.cancel = function () {
return hasCanceled_ = true;
}, wrappedPromise;
}
/***/ }),
/***/ "./node_modules/@monaco-editor/loader/lib/es/validators/index.js":
/*!***********************************************************************!*\
!*** ./node_modules/@monaco-editor/loader/lib/es/validators/index.js ***!
\***********************************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */ "default": function() { return /* binding */ validators; },
/* harmony export */ errorHandler: function() { return /* binding */ errorHandler; },
/* harmony export */ errorMessages: function() { return /* binding */ errorMessages; }
/* harmony export */ });
/* harmony import */ var _utils_curry_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../utils/curry.js */ "./node_modules/@monaco-editor/loader/lib/es/utils/curry.js");
/* harmony import */ var _utils_isObject_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../utils/isObject.js */ "./node_modules/@monaco-editor/loader/lib/es/utils/isObject.js");
/**
* validates the configuration object and informs about deprecation
* @param {Object} config - the configuration object
* @return {Object} config - the validated configuration object
*/
function validateConfig(config) {
if (!config) errorHandler('configIsRequired');
if (!(0,_utils_isObject_js__WEBPACK_IMPORTED_MODULE_1__["default"])(config)) errorHandler('configType');
if (config.urls) {
informAboutDeprecation();
return {
paths: {
vs: config.urls.monacoBase
}
};
}
return config;
}
/**
* logs deprecation message
*/
function informAboutDeprecation() {
console.warn(errorMessages.deprecation);
}
function throwError(errorMessages, type) {
throw new Error(errorMessages[type] || errorMessages["default"]);
}
var errorMessages = {
configIsRequired: 'the configuration object is required',
configType: 'the configuration object should be an object',
"default": 'an unknown error accured in `@monaco-editor/loader` package',
deprecation: "Deprecation warning!\n You are using deprecated way of configuration.\n\n Instead of using\n monaco.config({ urls: { monacoBase: '...' } })\n use\n monaco.config({ paths: { vs: '...' } })\n\n For more please check the link https://github.com/suren-atoyan/monaco-loader#config\n "
};
var errorHandler = (0,_utils_curry_js__WEBPACK_IMPORTED_MODULE_0__["default"])(throwError)(errorMessages);
var validators = {
config: validateConfig
};
/***/ }),
/***/ "./packages/packages/pro/editor-controls-extended/src/components/css-code-editor/css-editor.styles.ts":
/*!************************************************************************************************************!*\
!*** ./packages/packages/pro/editor-controls-extended/src/components/css-code-editor/css-editor.styles.ts ***!
\************************************************************************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */ EditorWrapper: function() { return /* binding */ EditorWrapper; },
/* harmony export */ ResizeHandle: function() { return /* binding */ ResizeHandle; }
/* harmony export */ });
/* harmony import */ var _elementor_ui__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @elementor/ui */ "@elementor/ui");
/* harmony import */ var _elementor_ui__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_elementor_ui__WEBPACK_IMPORTED_MODULE_0__);
const EditorWrapper = (0,_elementor_ui__WEBPACK_IMPORTED_MODULE_0__.styled)((0,_elementor_ui__WEBPACK_IMPORTED_MODULE_0__.Box))`
/* @noflip */
direction: ltr;
border: 1px solid var( --e-a-border-color );
border-radius: 8px;
padding: 4px;
position: relative;
height: 200px;
.monaco-editor .suggest-widget {
width: 220px !important;
max-width: 220px !important;
z-index: 1001;
}
.visual-content-dimmed {
opacity: 0.6;
color: #aaa !important;
pointer-events: none;
}
.monaco-editor {
.margin-view-overlays > div:nth-of-type( 1 ) .cldr.codicon.codicon-folding-expanded {
visibility: hidden;
}
.monaco-scrollable-element {
> .scrollbar {
width: 6px !important;
> .slider {
width: 6px !important;
}
}
}
}
`;
const ResizeHandle = (0,_elementor_ui__WEBPACK_IMPORTED_MODULE_0__.styled)((0,_elementor_ui__WEBPACK_IMPORTED_MODULE_0__.Button))`
position: absolute;
bottom: 0;
left: 0;
right: 0;
height: 6px;
cursor: ns-resize;
background: transparent;
border: none;
padding: 0;
&:hover {
background: rgba( 0, 0, 0, 0.05 );
}
&:active {
background: rgba( 0, 0, 0, 0.1 );
}
&::after {
content: '';
position: absolute;
top: 50%;
left: 50%;
transform: translate( -50%, -50% );
width: 30px;
height: 2px;
background: var( --e-a-border-color );
border-radius: 1px;
}
`;
/***/ }),
/***/ "./packages/packages/pro/editor-controls-extended/src/components/css-code-editor/css-editor.tsx":
/*!******************************************************************************************************!*\
!*** ./packages/packages/pro/editor-controls-extended/src/components/css-code-editor/css-editor.tsx ***!
\******************************************************************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */ CssEditor: function() { return /* binding */ CssEditor; }
/* harmony export */ });
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var _elementor_editor_controls__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @elementor/editor-controls */ "@elementor/editor-controls");
/* harmony import */ var _elementor_editor_controls__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_elementor_editor_controls__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var _elementor_editor_ui__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @elementor/editor-ui */ "@elementor/editor-ui");
/* harmony import */ var _elementor_editor_ui__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_elementor_editor_ui__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var _elementor_ui__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @elementor/ui */ "@elementor/ui");
/* harmony import */ var _elementor_ui__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_elementor_ui__WEBPACK_IMPORTED_MODULE_3__);
/* harmony import */ var _monaco_editor_react__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @monaco-editor/react */ "./node_modules/@monaco-editor/react/dist/index.mjs");
/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @wordpress/i18n */ "@wordpress/i18n");
/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_5__);
/* harmony import */ var _css_editor_styles__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./css-editor.styles */ "./packages/packages/pro/editor-controls-extended/src/components/css-code-editor/css-editor.styles.ts");
/* harmony import */ var _css_validation__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./css-validation */ "./packages/packages/pro/editor-controls-extended/src/components/css-code-editor/css-validation.ts");
/* harmony import */ var _resize_handle__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./resize-handle */ "./packages/packages/pro/editor-controls-extended/src/components/css-code-editor/resize-handle.tsx");
/* harmony import */ var _visual_content_change_protection__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./visual-content-change-protection */ "./packages/packages/pro/editor-controls-extended/src/components/css-code-editor/visual-content-change-protection.ts");
const createEditorDidMountHandler = (editorRef, monacoRef, onUserContentChange, setIsValid, syntaxRuleOptions) => {
return (editor, monaco) => {
editorRef.current = editor;
monacoRef.current = monaco;
(0,_visual_content_change_protection__WEBPACK_IMPORTED_MODULE_9__.preventChangeOnVisualContent)(editor);
(0,_css_validation__WEBPACK_IMPORTED_MODULE_7__.setCustomSyntaxRules)(editor, monaco, syntaxRuleOptions);
const initialCode = editor.getModel()?.getValue() ?? '';
const initialUserContent = (0,_visual_content_change_protection__WEBPACK_IMPORTED_MODULE_9__.getActual)(initialCode);
onUserContentChange(initialUserContent);
monaco.editor.onDidChangeMarkers(() => {
(0,_css_validation__WEBPACK_IMPORTED_MODULE_7__.clearMarkersFromVisualContent)(editor, monaco);
setIsValid((0,_css_validation__WEBPACK_IMPORTED_MODULE_7__.validate)(editor, monaco));
});
editor.setPosition({
lineNumber: 2,
column: (editor.getModel()?.getLineContent(2).length ?? 0) + 1
});
disableFoldingFirstRow(editor);
// eslint-disable-next-line no-bitwise
editor.addCommand(monaco.KeyMod.CtrlCmd | monaco.KeyCode.KeyA, () => {
const editorModel = editor.getModel();
if (!editorModel) {
return;
}
const fullRange = editorModel.getFullModelRange();
const contentEndLine = fullRange.endLineNumber - 1;
let endColumn = editorModel.getLineLastNonWhitespaceColumn(contentEndLine);
if (endColumn === 0) {
endColumn = editorModel.getLineMaxColumn(contentEndLine);
}
editor.setSelection(new monaco.Selection(fullRange.startLineNumber + 1, fullRange.startColumn, contentEndLine, endColumn));
});
};
};
function disableFoldingFirstRow(editor) {
if (!(typeof editor.getDomNode === 'function')) {
return;
}
const marginViewOverlays = editor.getDomNode()?.querySelector('.margin-view-overlays');
const handler = event => {
const ev = event;
if (ev.button !== 0) {
return;
}
const target = ev.target;
const firstElem = marginViewOverlays?.children[0];
const isFirstRow = target === firstElem || target.parentElement === firstElem;
if (isFirstRow) {
event.preventDefault();
event.stopPropagation();
}
};
marginViewOverlays?.addEventListener('mousedown', handler);
editor.onDidDispose(() => {
marginViewOverlays?.removeEventListener('mousedown', handler);
});
}
const CssEditor = ({
value,
onChange,
syntaxRuleOptions,
readOnly = false
}) => {
const theme = (0,_elementor_ui__WEBPACK_IMPORTED_MODULE_3__.useTheme)();
const containerRef = (0,react__WEBPACK_IMPORTED_MODULE_0__.useRef)(null);
const editorRef = (0,react__WEBPACK_IMPORTED_MODULE_0__.useRef)(null);
const monacoRef = (0,react__WEBPACK_IMPORTED_MODULE_0__.useRef)(null);
const debounceTimer = (0,react__WEBPACK_IMPORTED_MODULE_0__.useRef)(null);
const [hasContent, setHasContent] = (0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(value.trim() !== '');
const [isValid, setIsValid] = (0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(true);
const [contentVersion, setContentVersion] = (0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(0);
useOnUpdate(() => {
const code = editorRef.current?.getModel()?.getValue() ?? '';
const userContent = (0,_visual_content_change_protection__WEBPACK_IMPORTED_MODULE_9__.getActual)(code);
setHasContent(!userContent.trim());
onChange(userContent, isValid);
}, [contentVersion, isValid]);
const handleUserContentChange = (0,react__WEBPACK_IMPORTED_MODULE_0__.useCallback)(newValue => {
setHasContent(newValue.trim() !== '');
}, []);
const handleResize = (0,react__WEBPACK_IMPORTED_MODULE_0__.useCallback)(() => {
editorRef.current?.layout();
}, []);
const handleHeightChange = (0,react__WEBPACK_IMPORTED_MODULE_0__.useCallback)(height => {
if (containerRef.current) {
containerRef.current.style.height = `${height}px`;
}
}, []);
const handleEditorChange = () => {
if (!editorRef.current || !monacoRef.current) {
return;
}
(0,_css_validation__WEBPACK_IMPORTED_MODULE_7__.setCustomSyntaxRules)(editorRef?.current, monacoRef.current, syntaxRuleOptions);
if (debounceTimer.current) {
clearTimeout(debounceTimer.current);
}
debounceTimer.current = setTimeout(() => {
setContentVersion(prev => prev + 1);
}, 500);
};
const handleEditorDidMount = createEditorDidMountHandler(editorRef, monacoRef, handleUserContentChange, setIsValid, syntaxRuleOptions);
const handleReset = () => editorRef.current?.getModel()?.setValue((0,_visual_content_change_protection__WEBPACK_IMPORTED_MODULE_9__.setVisualContent)(''));
(0,react__WEBPACK_IMPORTED_MODULE_0__.useEffect)(() => {
const timerRef = debounceTimer;
return () => {
const timer = timerRef.current;
if (timer) {
clearTimeout(timer);
}
};
}, []);
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_elementor_editor_ui__WEBPACK_IMPORTED_MODULE_2__.FloatingActionsBar, {
actions: hasContent ? [/*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_elementor_editor_controls__WEBPACK_IMPORTED_MODULE_1__.ClearIconButton, {
key: "clear",
tooltipText: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_5__.__)('Clear', 'elementor-pro'),
onClick: handleReset
})] : []
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_elementor_ui__WEBPACK_IMPORTED_MODULE_3__.Box, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_css_editor_styles__WEBPACK_IMPORTED_MODULE_6__.EditorWrapper, {
ref: containerRef,
dir: "ltr"
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_monaco_editor_react__WEBPACK_IMPORTED_MODULE_4__.Editor, {
height: "100%",
language: "css",
theme: theme.palette.mode === 'dark' ? 'vs-dark' : 'vs',
value: (0,_visual_content_change_protection__WEBPACK_IMPORTED_MODULE_9__.setVisualContent)(value),
onMount: handleEditorDidMount,
onChange: handleEditorChange,
options: {
lineNumbers: 'on',
lineNumbersMinChars: 3,
folding: true,
minimap: {
enabled: false
},
fontFamily: 'Roboto, Arial, Helvetica, Verdana, sans-serif',
fontSize: 12,
renderLineHighlight: 'none',
hideCursorInOverviewRuler: true,
overviewRulerBorder: false,
fixedOverflowWidgets: true,
suggestFontSize: 10,
suggestLineHeight: 14,
stickyScroll: {
enabled: false
},
lineDecorationsWidth: 2,
wordWrap: 'on',
scrollBeyondLastLine: false,
readOnly,
editContext: false
}
}), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_resize_handle__WEBPACK_IMPORTED_MODULE_8__.ResizeHandleComponent, {
onResize: handleResize,
containerRef: containerRef,
onHeightChange: handleHeightChange
}))));
};
function useOnUpdate(callback, dependencies) {
const hasMounted = (0,react__WEBPACK_IMPORTED_MODULE_0__.useRef)(false);
(0,react__WEBPACK_IMPORTED_MODULE_0__.useEffect)(() => {
if (hasMounted.current) {
callback();
} else {
hasMounted.current = true;
}
// eslint-disable-next-line react-hooks/exhaustive-deps
}, dependencies);
}
/***/ }),
/***/ "./packages/packages/pro/editor-controls-extended/src/components/css-code-editor/css-validation.ts":
/*!*********************************************************************************************************!*\
!*** ./packages/packages/pro/editor-controls-extended/src/components/css-code-editor/css-validation.ts ***!
\*********************************************************************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */ clearMarkersFromVisualContent: function() { return /* binding */ clearMarkersFromVisualContent; },
/* harmony export */ setCustomSyntaxRules: function() { return /* binding */ setCustomSyntaxRules; },
/* harmony export */ validate: function() { return /* binding */ validate; }
/* harmony export */ });
/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wordpress/i18n */ "@wordpress/i18n");
/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__);
const syntaxRules = {
pseudoState: {
pattern: '^\\s*[&]{0,1}\\s*(?::hover|:active|:focus)',
regex: true,
message: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__.__)('The use of pseudo-states is not permitted. Instead, switch to the desired pseudo state and add your custom code there.', 'elementor-pro')
},
mediaQuery: {
pattern: '@media\\s+[^{]*\\b(?:min-width|max-width|width)\\b',
regex: true,
message: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__.__)('The use of @media width queries is not permitted. Instead, switch to the desired breakpoint and add your custom code there.', 'elementor-pro')
}
};
function setCustomSyntaxRules(editor, monaco, options) {
const model = editor.getModel();
if (!model) {
return true;
}
const customMarkers = [];
Object.entries(syntaxRules).forEach(([id, rule]) => {
if (options?.rules?.[id] === false) {
return;
}
const matches = model.findMatches(rule.pattern, true, rule.regex ?? false, true, null, true);
matches.forEach(match => {
customMarkers.push({
severity: monaco.MarkerSeverity.Error,
message: rule.message,
startLineNumber: match.range.startLineNumber,
startColumn: match.range.startColumn,
endLineNumber: match.range.endLineNumber,
endColumn: match.range.endColumn,
source: 'custom-css-rules'
});
});
});
monaco.editor.setModelMarkers(model, 'custom-css-rules', customMarkers);
return customMarkers.length === 0;
}
function validate(editor, monaco) {
const model = editor.getModel();
if (!model) {
return true;
}
const allMarkers = monaco.editor.getModelMarkers({
resource: model.uri
});
return allMarkers.filter(marker => marker.severity === monaco.MarkerSeverity.Error).length === 0;
}
function clearMarkersFromVisualContent(editor, monaco) {
const model = editor.getModel();
if (!model) {
return;
}
const allMarkers = monaco.editor.getModelMarkers({
resource: model.uri
});
const filteredMarkers = allMarkers.filter(marker => marker.startLineNumber !== 1);
const nonCustomMarkers = filteredMarkers.filter(m => m.source !== 'custom-css-rules');
if (nonCustomMarkers.length === allMarkers.length) {
return;
}
monaco.editor.setModelMarkers(model, 'css', nonCustomMarkers);
}
/***/ }),
/***/ "./packages/packages/pro/editor-controls-extended/src/components/css-code-editor/resize-handle.tsx":
/*!*********************************************************************************************************!*\
!*** ./packages/packages/pro/editor-controls-extended/src/components/css-code-editor/resize-handle.tsx ***!
\*********************************************************************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */ ResizeHandleComponent: function() { return /* binding */ ResizeHandleComponent; }
/* harmony export */ });
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var _css_editor_styles__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./css-editor.styles */ "./packages/packages/pro/editor-controls-extended/src/components/css-code-editor/css-editor.styles.ts");
const ResizeHandleComponent = ({
onResize,
containerRef,
onHeightChange
}) => {
const handleResizeMove = react__WEBPACK_IMPORTED_MODULE_0__.useCallback(e => {
const container = containerRef.current;
if (!container) {
return;
}
const containerRect = container.getBoundingClientRect();
const newHeight = Math.max(100, e.clientY - containerRect.top);
onHeightChange?.(newHeight);
onResize(newHeight);
}, [containerRef, onResize, onHeightChange]);
const handleResizeEnd = react__WEBPACK_IMPORTED_MODULE_0__.useCallback(() => {
document.removeEventListener('mousemove', handleResizeMove);
document.removeEventListener('mouseup', handleResizeEnd);
}, [handleResizeMove]);
const handleResizeStart = react__WEBPACK_IMPORTED_MODULE_0__.useCallback(e => {
e.preventDefault();
e.stopPropagation();
document.addEventListener('mousemove', handleResizeMove);
document.addEventListener('mouseup', handleResizeEnd);
}, [handleResizeMove, handleResizeEnd]);
react__WEBPACK_IMPORTED_MODULE_0__.useEffect(() => {
return () => {
document.removeEventListener('mousemove', handleResizeMove);
document.removeEventListener('mouseup', handleResizeEnd);
};
}, [handleResizeMove, handleResizeEnd]);
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_css_editor_styles__WEBPACK_IMPORTED_MODULE_1__.ResizeHandle, {
onMouseDown: handleResizeStart,
"aria-label": "Resize editor height",
title: "Drag to resize editor height"
});
};
/***/ }),
/***/ "./packages/packages/pro/editor-controls-extended/src/components/css-code-editor/visual-content-change-protection.ts":
/*!***************************************************************************************************************************!*\
!*** ./packages/packages/pro/editor-controls-extended/src/components/css-code-editor/visual-content-change-protection.ts ***!
\***************************************************************************************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */ getActual: function() { return /* binding */ getActual; },
/* harmony export */ preventChangeOnVisualContent: function() { return /* binding */ preventChangeOnVisualContent; },
/* harmony export */ setVisualContent: function() { return /* binding */ setVisualContent; }
/* harmony export */ });
const preventChangeOnVisualContent = editor => {
const model = editor.getModel();
if (!model) {
return;
}
// On first load
applyVisualContentStyling(editor, model);
// On every change
model.onDidChangeContent(() => {
applyVisualContentStyling(editor, model);
});
disableCursorOnVisualContent(editor);
overridePushEditOperations(model);
};
const applyVisualContentStyling = (editor, model) => {
const decorationsCollection = editor.createDecorationsCollection();
const lineCount = model.getLineCount();
const decorations = [];
decorations.push({
range: {
startLineNumber: 1,
startColumn: 1,
endLineNumber: 1,
endColumn: model.getLineContent(1).length + 1
},
options: {
inlineClassName: 'visual-content-dimmed',
isWholeLine: false
}
});
if (lineCount > 1) {
decorations.push({
range: {
startLineNumber: lineCount,
startColumn: 1,
endLineNumber: lineCount,
endColumn: model.getLineContent(lineCount).length + 1
},
options: {
inlineClassName: 'visual-content-dimmed',
isWholeLine: false
}
});
}
decorationsCollection.set(decorations);
};
const disableCursorOnVisualContent = editor => {
const model = editor.getModel();
if (!model) {
return;
}
editor.onDidChangeCursorPosition(e => {
const totalLines = model.getLineCount();
const position = e.position;
if (position.lineNumber === 1) {
editor.setPosition({
lineNumber: 2,
column: 1
});
} else if (position.lineNumber === totalLines) {
editor.setPosition({
lineNumber: totalLines - 1,
column: model.getLineContent(totalLines - 1).length + 1
});
}
});
};
const overridePushEditOperations = model => {
const originalPushEditOperations = model.pushEditOperations;
model.pushEditOperations = (beforeCursorState, editOperations, cursorStateComputer) => {
const totalLines = model.getLineCount();
const modelRange = model.getFullModelRange();
const filteredOperations = editOperations.filter(operation => {
const range = operation.range;
const affectsProtectedLine = range.startLineNumber === 1 || range.endLineNumber === 1 || range.startLineNumber === totalLines || range.endLineNumber === totalLines;
if (affectsProtectedLine && isFullContentReplacement(range, modelRange) && hasVisualContent(operation.text)) {
return true;
}
return !affectsProtectedLine;
});
return originalPushEditOperations.call(model, beforeCursorState, filteredOperations, cursorStateComputer);
};
};
const isFullContentReplacement = (range, modelRange) => {
return range.startLineNumber === modelRange.startLineNumber && range.endLineNumber === modelRange.endLineNumber && range.startColumn === modelRange.startColumn && range.endColumn === modelRange.endColumn;
};
const hasVisualContent = text => {
if (!text) {
return false;
}
return text.startsWith('element.style {') && text.endsWith('}');
};
const setVisualContent = value => {
const trimmed = value.trim();
return `element.style {\n${trimmed ? ' ' + trimmed.replace(/\n/g, '\n ') + '\n' : ' \n'}}`;
};
const getActual = value => {
const lines = value.split('\n');
if (lines.length < 2) {
return '';
}
return lines.slice(1, -1).map(line => line.replace(/^ {2}/, '')).join('\n');
};
/***/ }),
/***/ "./packages/packages/pro/editor-controls-extended/src/controls/attributes-control.tsx":
/*!********************************************************************************************!*\
!*** ./packages/packages/pro/editor-controls-extended/src/controls/attributes-control.tsx ***!
\********************************************************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */ AttributesControl: function() { return /* binding */ AttributesControl; }
/* harmony export */ });
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var _elementor_editor_controls__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @elementor/editor-controls */ "@elementor/editor-controls");
/* harmony import */ var _elementor_editor_controls__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_elementor_editor_controls__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @wordpress/i18n */ "@wordpress/i18n");
/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__);
const AttributesControl = (0,_elementor_editor_controls__WEBPACK_IMPORTED_MODULE_1__.createControl)(() => {
const getHelperText = (key, value) => {
if (value && !key) {
return {
keyHelper: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__.__)("Empty attribute names aren't valid and won't render on the page.", 'elementor-pro')
};
}
return {};
};
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_elementor_editor_controls__WEBPACK_IMPORTED_MODULE_1__.KeyValueControl, {
keyName: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__.__)('Name', 'elementor-pro'),
valueName: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__.__)('Value', 'elementor-pro'),
regexKey: "^[a-zA-Z0-9_-]*$",
validationErrorMessage: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__.__)('Names can only use letters, numbers, dashes (-) and underscores (_).', 'elementor-pro'),
getHelperText: getHelperText
});
});
/***/ }),
/***/ "./packages/packages/pro/editor-controls-extended/src/controls/display-conditions-control.tsx":
/*!****************************************************************************************************!*\
!*** ./packages/packages/pro/editor-controls-extended/src/controls/display-conditions-control.tsx ***!
\****************************************************************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */ DisplayConditionsControl: function() { return /* binding */ DisplayConditionsControl; }
/* harmony export */ });
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var _elementor_editor_controls__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @elementor/editor-controls */ "@elementor/editor-controls");
/* harmony import */ var _elementor_editor_controls__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_elementor_editor_controls__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var _elementor_icons__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @elementor/icons */ "@elementor/icons");
/* harmony import */ var _elementor_icons__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_elementor_icons__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var _elementor_ui__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @elementor/ui */ "@elementor/ui");
/* harmony import */ var _elementor_ui__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_elementor_ui__WEBPACK_IMPORTED_MODULE_3__);
/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @wordpress/i18n */ "@wordpress/i18n");
/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__);
/* harmony import */ var _prop_types_display_conditions__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../prop-types/display-conditions */ "./packages/packages/pro/editor-controls-extended/src/prop-types/display-conditions.ts");
/* harmony import */ var _utils_display_conditions_utils__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../utils/display-conditions-utils */ "./packages/packages/pro/editor-controls-extended/src/utils/display-conditions-utils.ts");
const OPEN_MODAL_EVENT = 'elementor/display-conditions/open';
const CLOSE_MODAL_EVENT = 'elementor/display-conditions/close';
const SET_CACHE_NOTICE_STATUS_EVENT = 'elementor/display-conditions/set-cache-notice-status';
const ariaLabel = (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__.__)('Display Conditions', 'elementor-pro');
async function setCacheNoticeStatus() {
return new Promise((resolve, reject) => {
window.dispatchEvent(new CustomEvent(SET_CACHE_NOTICE_STATUS_EVENT, {
detail: {
resolve,
reject
}
}));
});
}
const DisplayConditionsControl = (0,_elementor_editor_controls__WEBPACK_IMPORTED_MODULE_1__.createControl)(({
disabled = false
}) => {
const {
setValue,
value: displayConditionsValue
} = (0,_elementor_editor_controls__WEBPACK_IMPORTED_MODULE_1__.useBoundProp)(_prop_types_display_conditions__WEBPACK_IMPORTED_MODULE_5__.displayConditionsPropTypeUtil);
const [isModalOpen, setIsModalOpen] = (0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(false);
const hasValue = !!displayConditionsValue?.length;
const setControlValue = value => setValue((0,_utils_display_conditions_utils__WEBPACK_IMPORTED_MODULE_6__.transformV3ToV4)(JSON.parse(value ?? '[]')));
const getControlValue = () => (0,_utils_display_conditions_utils__WEBPACK_IMPORTED_MODULE_6__.transformV4ToV3)(displayConditionsValue) ?? [];
const onClose = () => {
setIsModalOpen(false);
window.dispatchEvent(new CustomEvent(CLOSE_MODAL_EVENT));
};
const conditions = getControlValue();
const openConditionsModal = () => {
setIsModalOpen(true);
window.dispatchEvent(new CustomEvent(OPEN_MODAL_EVENT, {
detail: {
props: {
getControlValue,
setControlValue,
onClose,
setCacheNoticeStatus
}
}
}));
};
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(react__WEBPACK_IMPORTED_MODULE_0__.Fragment, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_elementor_ui__WEBPACK_IMPORTED_MODULE_3__.Stack, {
direction: "row",
spacing: 2,
sx: {
justifyContent: 'flex-end',
alignItems: 'center'
}
}, disabled && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_elementor_ui__WEBPACK_IMPORTED_MODULE_3__.Chip, {
icon: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_elementor_icons__WEBPACK_IMPORTED_MODULE_2__.CrownFilledIcon, {
fontSize: "tiny"
}),
size: "tiny",
color: "promotion",
variant: "standard",
sx: {
width: '20px',
'& .MuiChip-label': {
display: 'none'
}
}
}), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_elementor_ui__WEBPACK_IMPORTED_MODULE_3__.Tooltip, {
title: ariaLabel,
placement: "top"
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_elementor_ui__WEBPACK_IMPORTED_MODULE_3__.Box, {
sx: {
cursor: disabled ? 'not-allowed' : 'pointer',
display: 'inline-flex'
}
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_elementor_ui__WEBPACK_IMPORTED_MODULE_3__.ToggleButton, {
value: JSON.stringify(conditions),
size: "tiny",
variant: "outline",
"aria-pressed": hasValue,
"aria-expanded": isModalOpen,
selected: hasValue,
"aria-haspopup": "dialog",
"aria-label": ariaLabel,
onClick: openConditionsModal,
disabled: disabled,
sx: {
pointerEvents: disabled ? 'none' : 'auto'
},
"data-behavior": "display-conditions"
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_elementor_icons__WEBPACK_IMPORTED_MODULE_2__.SitemapIcon, {
fontSize: "tiny"
}))))));
});
/***/ }),
/***/ "./packages/packages/pro/editor-controls-extended/src/controls/options-control.tsx":
/*!*****************************************************************************************!*\
!*** ./packages/packages/pro/editor-controls-extended/src/controls/options-control.tsx ***!
\*****************************************************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */ OptionsControl: function() { return /* binding */ OptionsControl; }
/* harmony export */ });
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var _elementor_editor_controls__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @elementor/editor-controls */ "@elementor/editor-controls");
/* harmony import */ var _elementor_editor_controls__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_elementor_editor_controls__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @wordpress/i18n */ "@wordpress/i18n");
/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__);
const OptionsControl = (0,_elementor_editor_controls__WEBPACK_IMPORTED_MODULE_1__.createControl)(() => {
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_elementor_editor_controls__WEBPACK_IMPORTED_MODULE_1__.KeyValueControl, {
keyName: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__.__)('Name', 'elementor-pro'),
valueName: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__.__)('Value', 'elementor-pro')
});
});
/***/ }),
/***/ "./packages/packages/pro/editor-controls-extended/src/extend-transition-properties.ts":
/*!********************************************************************************************!*\
!*** ./packages/packages/pro/editor-controls-extended/src/extend-transition-properties.ts ***!
\********************************************************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */ extendTransitionProperties: function() { return /* binding */ extendTransitionProperties; },
/* harmony export */ transitionProperties: function() { return /* reexport safe */ _elementor_editor_controls__WEBPACK_IMPORTED_MODULE_0__.transitionProperties; },
/* harmony export */ transitionsItemsList: function() { return /* reexport safe */ _elementor_editor_controls__WEBPACK_IMPORTED_MODULE_0__.transitionsItemsList; }
/* harmony export */ });
/* harmony import */ var _elementor_editor_controls__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @elementor/editor-controls */ "@elementor/editor-controls");
/* harmony import */ var _elementor_editor_controls__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_elementor_editor_controls__WEBPACK_IMPORTED_MODULE_0__);
function extendTransitionProperties(isDisabled = false) {
if (!_elementor_editor_controls__WEBPACK_IMPORTED_MODULE_0__.transitionProperties || _elementor_editor_controls__WEBPACK_IMPORTED_MODULE_0__.transitionProperties.length === 0) {
return;
}
_elementor_editor_controls__WEBPACK_IMPORTED_MODULE_0__.transitionProperties.forEach(category => {
category.properties.forEach(property => {
if (property.value !== 'all') {
property.isDisabled = isDisabled;
}
});
});
_elementor_editor_controls__WEBPACK_IMPORTED_MODULE_0__.transitionsItemsList.splice(0, _elementor_editor_controls__WEBPACK_IMPORTED_MODULE_0__.transitionsItemsList.length, ..._elementor_editor_controls__WEBPACK_IMPORTED_MODULE_0__.transitionProperties.map(category => ({
label: category.label,
items: category.properties.map(property => property.label)
})));
}
/***/ }),
/***/ "./packages/packages/pro/editor-controls-extended/src/init.ts":
/*!********************************************************************!*\
!*** ./packages/packages/pro/editor-controls-extended/src/init.ts ***!
\********************************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */ init: function() { return /* binding */ init; }
/* harmony export */ });
/* harmony import */ var _elementor_license_api__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @elementor/license-api */ "@elementor/license-api");
/* harmony import */ var _elementor_license_api__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_elementor_license_api__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var _extend_transition_properties__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./extend-transition-properties */ "./packages/packages/pro/editor-controls-extended/src/extend-transition-properties.ts");
async function init() {
const [isExpired, features] = await Promise.all([(0,_elementor_license_api__WEBPACK_IMPORTED_MODULE_0__.fetchLicenseStatus)().catch(() => false), (0,_elementor_license_api__WEBPACK_IMPORTED_MODULE_0__.fetchTierFeatures)().catch(() => [])]);
if (features.includes('transitions')) {
(0,_extend_transition_properties__WEBPACK_IMPORTED_MODULE_1__.extendTransitionProperties)(isExpired);
}
}
/***/ }),
/***/ "./packages/packages/pro/editor-controls-extended/src/prop-types/condition-group.ts":
/*!******************************************************************************************!*\
!*** ./packages/packages/pro/editor-controls-extended/src/prop-types/condition-group.ts ***!
\******************************************************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */ conditionGroupPropTypeUtil: function() { return /* binding */ conditionGroupPropTypeUtil; }
/* harmony export */ });
/* harmony import */ var _elementor_editor_props__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @elementor/editor-props */ "@elementor/editor-props");
/* harmony import */ var _elementor_editor_props__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_elementor_editor_props__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var _elementor_schema__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @elementor/schema */ "@elementor/schema");
/* harmony import */ var _elementor_schema__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_elementor_schema__WEBPACK_IMPORTED_MODULE_1__);
const unknownChildrenSchema = _elementor_schema__WEBPACK_IMPORTED_MODULE_1__.z.any().nullable();
const conditionGroupPropTypeUtil = (0,_elementor_editor_props__WEBPACK_IMPORTED_MODULE_0__.createPropUtils)('condition-group', _elementor_schema__WEBPACK_IMPORTED_MODULE_1__.z.array(unknownChildrenSchema));
/***/ }),
/***/ "./packages/packages/pro/editor-controls-extended/src/prop-types/display-conditions.ts":
/*!*********************************************************************************************!*\
!*** ./packages/packages/pro/editor-controls-extended/src/prop-types/display-conditions.ts ***!
\*********************************************************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */ displayConditionsPropTypeUtil: function() { return /* binding */ displayConditionsPropTypeUtil; }
/* harmony export */ });
/* harmony import */ var _elementor_editor_props__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @elementor/editor-props */ "@elementor/editor-props");
/* harmony import */ var _elementor_editor_props__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_elementor_editor_props__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var _elementor_schema__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @elementor/schema */ "@elementor/schema");
/* harmony import */ var _elementor_schema__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_elementor_schema__WEBPACK_IMPORTED_MODULE_1__);
const unknownChildrenSchema = _elementor_schema__WEBPACK_IMPORTED_MODULE_1__.z.any().nullable();
const displayConditionsPropTypeUtil = (0,_elementor_editor_props__WEBPACK_IMPORTED_MODULE_0__.createPropUtils)('display-conditions', _elementor_schema__WEBPACK_IMPORTED_MODULE_1__.z.array(unknownChildrenSchema));
/***/ }),
/***/ "./packages/packages/pro/editor-controls-extended/src/utils/display-conditions-utils.ts":
/*!**********************************************************************************************!*\
!*** ./packages/packages/pro/editor-controls-extended/src/utils/display-conditions-utils.ts ***!
\**********************************************************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */ transformV3ToV4: function() { return /* binding */ transformV3ToV4; },
/* harmony export */ transformV4ToV3: function() { return /* binding */ transformV4ToV3; }
/* harmony export */ });
/* harmony import */ var _elementor_editor_props__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @elementor/editor-props */ "@elementor/editor-props");
/* harmony import */ var _elementor_editor_props__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_elementor_editor_props__WEBPACK_IMPORTED_MODULE_0__);
// Value must be falsy for navigator indication to work properly
function transformV3ToV4(displayConditions) {
if (!Array.isArray(displayConditions) || !displayConditions?.length) {
return null;
}
const transformed = displayConditions.filter(conditionGroup => !!conditionGroup?.length).map(conditionGroup => ({
$$type: 'condition-group',
value: conditionGroup.map(condition => _elementor_editor_props__WEBPACK_IMPORTED_MODULE_0__.stringPropTypeUtil.create(JSON.stringify(condition)))
}));
return transformed.length ? transformed : null;
}
function transformV4ToV3(value) {
const conditionGroups = value;
const transformed = conditionGroups?.map(group => group.value.map(conditions => {
return JSON.parse(_elementor_editor_props__WEBPACK_IMPORTED_MODULE_0__.stringPropTypeUtil.extract(conditions) ?? '[]');
})) ?? null;
return getStructuredConditions(transformed);
}
function shouldConvertConditionsStructure(conditions) {
return !!conditions?.length && !Array.isArray(conditions?.[0]);
}
function getStructuredConditions(conditions) {
return shouldConvertConditionsStructure(conditions) ? [conditions] : conditions;
}
/***/ }),
/***/ "./node_modules/state-local/lib/es/state-local.js":
/*!********************************************************!*\
!*** ./node_modules/state-local/lib/es/state-local.js ***!
\********************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
__webpack_require__.r(__webpack_exports__);
function _defineProperty(obj, key, value) {
if (key in obj) {
Object.defineProperty(obj, key, {
value: value,
enumerable: true,
configurable: true,
writable: true
});
} else {
obj[key] = value;
}
return obj;
}
function ownKeys(object, enumerableOnly) {
var keys = Object.keys(object);
if (Object.getOwnPropertySymbols) {
var symbols = Object.getOwnPropertySymbols(object);
if (enumerableOnly) symbols = symbols.filter(function (sym) {
return Object.getOwnPropertyDescriptor(object, sym).enumerable;
});
keys.push.apply(keys, symbols);
}
return keys;
}
function _objectSpread2(target) {
for (var i = 1; i < arguments.length; i++) {
var source = arguments[i] != null ? arguments[i] : {};
if (i % 2) {
ownKeys(Object(source), true).forEach(function (key) {
_defineProperty(target, key, source[key]);
});
} else if (Object.getOwnPropertyDescriptors) {
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
} else {
ownKeys(Object(source)).forEach(function (key) {
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
});
}
}
return target;
}
function compose() {
for (var _len = arguments.length, fns = new Array(_len), _key = 0; _key < _len; _key++) {
fns[_key] = arguments[_key];
}
return function (x) {
return fns.reduceRight(function (y, f) {
return f(y);
}, x);
};
}
function curry(fn) {
return function curried() {
var _this = this;
for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
args[_key2] = arguments[_key2];
}
return args.length >= fn.length ? fn.apply(this, args) : function () {
for (var _len3 = arguments.length, nextArgs = new Array(_len3), _key3 = 0; _key3 < _len3; _key3++) {
nextArgs[_key3] = arguments[_key3];
}
return curried.apply(_this, [].concat(args, nextArgs));
};
};
}
function isObject(value) {
return {}.toString.call(value).includes('Object');
}
function isEmpty(obj) {
return !Object.keys(obj).length;
}
function isFunction(value) {
return typeof value === 'function';
}
function hasOwnProperty(object, property) {
return Object.prototype.hasOwnProperty.call(object, property);
}
function validateChanges(initial, changes) {
if (!isObject(changes)) errorHandler('changeType');
if (Object.keys(changes).some(function (field) {
return !hasOwnProperty(initial, field);
})) errorHandler('changeField');
return changes;
}
function validateSelector(selector) {
if (!isFunction(selector)) errorHandler('selectorType');
}
function validateHandler(handler) {
if (!(isFunction(handler) || isObject(handler))) errorHandler('handlerType');
if (isObject(handler) && Object.values(handler).some(function (_handler) {
return !isFunction(_handler);
})) errorHandler('handlersType');
}
function validateInitial(initial) {
if (!initial) errorHandler('initialIsRequired');
if (!isObject(initial)) errorHandler('initialType');
if (isEmpty(initial)) errorHandler('initialContent');
}
function throwError(errorMessages, type) {
throw new Error(errorMessages[type] || errorMessages["default"]);
}
var errorMessages = {
initialIsRequired: 'initial state is required',
initialType: 'initial state should be an object',
initialContent: 'initial state shouldn\'t be an empty object',
handlerType: 'handler should be an object or a function',
handlersType: 'all handlers should be a functions',
selectorType: 'selector should be a function',
changeType: 'provided value of changes should be an object',
changeField: 'it seams you want to change a field in the state which is not specified in the "initial" state',
"default": 'an unknown error accured in `state-local` package'
};
var errorHandler = curry(throwError)(errorMessages);
var validators = {
changes: validateChanges,
selector: validateSelector,
handler: validateHandler,
initial: validateInitial
};
function create(initial) {
var handler = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
validators.initial(initial);
validators.handler(handler);
var state = {
current: initial
};
var didUpdate = curry(didStateUpdate)(state, handler);
var update = curry(updateState)(state);
var validate = curry(validators.changes)(initial);
var getChanges = curry(extractChanges)(state);
function getState() {
var selector = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : function (state) {
return state;
};
validators.selector(selector);
return selector(state.current);
}
function setState(causedChanges) {
compose(didUpdate, update, validate, getChanges)(causedChanges);
}
return [getState, setState];
}
function extractChanges(state, causedChanges) {
return isFunction(causedChanges) ? causedChanges(state.current) : causedChanges;
}
function updateState(state, changes) {
state.current = _objectSpread2(_objectSpread2({}, state.current), changes);
return changes;
}
function didStateUpdate(state, handler, changes) {
isFunction(handler) ? handler(state.current) : Object.keys(changes).forEach(function (field) {
var _handler$field;
return (_handler$field = handler[field]) === null || _handler$field === void 0 ? void 0 : _handler$field.call(handler, state.current[field]);
});
return changes;
}
var index = {
create: create
};
/* harmony default export */ __webpack_exports__["default"] = (index);
/***/ }),
/***/ "react":
/*!**************************!*\
!*** external ["React"] ***!
\**************************/
/***/ (function(module) {
module.exports = window["React"];
/***/ }),
/***/ "@elementor/editor-controls":
/*!*************************************************!*\
!*** external ["elementorV2","editorControls"] ***!
\*************************************************/
/***/ (function(module) {
module.exports = window["elementorV2"]["editorControls"];
/***/ }),
/***/ "@elementor/editor-props":
/*!**********************************************!*\
!*** external ["elementorV2","editorProps"] ***!
\**********************************************/
/***/ (function(module) {
module.exports = window["elementorV2"]["editorProps"];
/***/ }),
/***/ "@elementor/editor-ui":
/*!*******************************************!*\
!*** external ["elementorV2","editorUi"] ***!
\*******************************************/
/***/ (function(module) {
module.exports = window["elementorV2"]["editorUi"];
/***/ }),
/***/ "@elementor/icons":
/*!****************************************!*\
!*** external ["elementorV2","icons"] ***!
\****************************************/
/***/ (function(module) {
module.exports = window["elementorV2"]["icons"];
/***/ }),
/***/ "@elementor/license-api":
/*!*********************************************!*\
!*** external ["elementorV2","licenseApi"] ***!
\*********************************************/
/***/ (function(module) {
module.exports = window["elementorV2"]["licenseApi"];
/***/ }),
/***/ "@elementor/schema":
/*!*****************************************!*\
!*** external ["elementorV2","schema"] ***!
\*****************************************/
/***/ (function(module) {
module.exports = window["elementorV2"]["schema"];
/***/ }),
/***/ "@elementor/ui":
/*!*************************************!*\
!*** external ["elementorV2","ui"] ***!
\*************************************/
/***/ (function(module) {
module.exports = window["elementorV2"]["ui"];
/***/ }),
/***/ "@wordpress/i18n":
/*!******************************!*\
!*** external ["wp","i18n"] ***!
\******************************/
/***/ (function(module) {
module.exports = window["wp"]["i18n"];
/***/ }),
/***/ "./node_modules/@monaco-editor/react/dist/index.mjs":
/*!**********************************************************!*\
!*** ./node_modules/@monaco-editor/react/dist/index.mjs ***!
\**********************************************************/
/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */ DiffEditor: function() { return /* binding */ we; },
/* harmony export */ Editor: function() { return /* binding */ de; },
/* harmony export */ "default": function() { return /* binding */ Ft; },
/* harmony export */ loader: function() { return /* reexport safe */ _monaco_editor_loader__WEBPACK_IMPORTED_MODULE_0__["default"]; },
/* harmony export */ useMonaco: function() { return /* binding */ Le; }
/* harmony export */ });
/* harmony import */ var _monaco_editor_loader__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @monaco-editor/loader */ "./node_modules/@monaco-editor/loader/lib/es/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "react");
var le={wrapper:{display:"flex",position:"relative",textAlign:"initial"},fullWidth:{width:"100%"},hide:{display:"none"}},v=le;var ae={container:{display:"flex",height:"100%",width:"100%",justifyContent:"center",alignItems:"center"}},Y=ae;function Me({children:e}){return react__WEBPACK_IMPORTED_MODULE_1__.createElement("div",{style:Y.container},e)}var Z=Me;var $=Z;function Ee({width:e,height:r,isEditorReady:n,loading:t,_ref:a,className:m,wrapperProps:E}){return react__WEBPACK_IMPORTED_MODULE_1__.createElement("section",{style:{...v.wrapper,width:e,height:r},...E},!n&&react__WEBPACK_IMPORTED_MODULE_1__.createElement($,null,t),react__WEBPACK_IMPORTED_MODULE_1__.createElement("div",{ref:a,style:{...v.fullWidth,...!n&&v.hide},className:m}))}var ee=Ee;var H=(0,react__WEBPACK_IMPORTED_MODULE_1__.memo)(ee);function Ce(e){(0,react__WEBPACK_IMPORTED_MODULE_1__.useEffect)(e,[])}var k=Ce;function he(e,r,n=!0){let t=(0,react__WEBPACK_IMPORTED_MODULE_1__.useRef)(!0);(0,react__WEBPACK_IMPORTED_MODULE_1__.useEffect)(t.current||!n?()=>{t.current=!1}:e,r)}var l=he;function D(){}function h(e,r,n,t){return De(e,t)||be(e,r,n,t)}function De(e,r){return e.editor.getModel(te(e,r))}function be(e,r,n,t){return e.editor.createModel(r,n,t?te(e,t):void 0)}function te(e,r){return e.Uri.parse(r)}function Oe({original:e,modified:r,language:n,originalLanguage:t,modifiedLanguage:a,originalModelPath:m,modifiedModelPath:E,keepCurrentOriginalModel:g=!1,keepCurrentModifiedModel:N=!1,theme:x="light",loading:P="Loading...",options:y={},height:V="100%",width:z="100%",className:F,wrapperProps:j={},beforeMount:A=D,onMount:q=D}){let[M,O]=(0,react__WEBPACK_IMPORTED_MODULE_1__.useState)(!1),[T,s]=(0,react__WEBPACK_IMPORTED_MODULE_1__.useState)(!0),u=(0,react__WEBPACK_IMPORTED_MODULE_1__.useRef)(null),c=(0,react__WEBPACK_IMPORTED_MODULE_1__.useRef)(null),w=(0,react__WEBPACK_IMPORTED_MODULE_1__.useRef)(null),d=(0,react__WEBPACK_IMPORTED_MODULE_1__.useRef)(q),o=(0,react__WEBPACK_IMPORTED_MODULE_1__.useRef)(A),b=(0,react__WEBPACK_IMPORTED_MODULE_1__.useRef)(!1);k(()=>{let i=_monaco_editor_loader__WEBPACK_IMPORTED_MODULE_0__["default"].init();return i.then(f=>(c.current=f)&&s(!1)).catch(f=>f?.type!=="cancelation"&&console.error("Monaco initialization: error:",f)),()=>u.current?I():i.cancel()}),l(()=>{if(u.current&&c.current){let i=u.current.getOriginalEditor(),f=h(c.current,e||"",t||n||"text",m||"");f!==i.getModel()&&i.setModel(f)}},[m],M),l(()=>{if(u.current&&c.current){let i=u.current.getModifiedEditor(),f=h(c.current,r||"",a||n||"text",E||"");f!==i.getModel()&&i.setModel(f)}},[E],M),l(()=>{let i=u.current.getModifiedEditor();i.getOption(c.current.editor.EditorOption.readOnly)?i.setValue(r||""):r!==i.getValue()&&(i.executeEdits("",[{range:i.getModel().getFullModelRange(),text:r||"",forceMoveMarkers:!0}]),i.pushUndoStop())},[r],M),l(()=>{u.current?.getModel()?.original.setValue(e||"")},[e],M),l(()=>{let{original:i,modified:f}=u.current.getModel();c.current.editor.setModelLanguage(i,t||n||"text"),c.current.editor.setModelLanguage(f,a||n||"text")},[n,t,a],M),l(()=>{c.current?.editor.setTheme(x)},[x],M),l(()=>{u.current?.updateOptions(y)},[y],M);let L=(0,react__WEBPACK_IMPORTED_MODULE_1__.useCallback)(()=>{if(!c.current)return;o.current(c.current);let i=h(c.current,e||"",t||n||"text",m||""),f=h(c.current,r||"",a||n||"text",E||"");u.current?.setModel({original:i,modified:f})},[n,r,a,e,t,m,E]),U=(0,react__WEBPACK_IMPORTED_MODULE_1__.useCallback)(()=>{!b.current&&w.current&&(u.current=c.current.editor.createDiffEditor(w.current,{automaticLayout:!0,...y}),L(),c.current?.editor.setTheme(x),O(!0),b.current=!0)},[y,x,L]);(0,react__WEBPACK_IMPORTED_MODULE_1__.useEffect)(()=>{M&&d.current(u.current,c.current)},[M]),(0,react__WEBPACK_IMPORTED_MODULE_1__.useEffect)(()=>{!T&&!M&&U()},[T,M,U]);function I(){let i=u.current?.getModel();g||i?.original?.dispose(),N||i?.modified?.dispose(),u.current?.dispose()}return react__WEBPACK_IMPORTED_MODULE_1__.createElement(H,{width:z,height:V,isEditorReady:M,loading:P,_ref:w,className:F,wrapperProps:j})}var ie=Oe;var we=(0,react__WEBPACK_IMPORTED_MODULE_1__.memo)(ie);function Pe(){let[e,r]=(0,react__WEBPACK_IMPORTED_MODULE_1__.useState)(_monaco_editor_loader__WEBPACK_IMPORTED_MODULE_0__["default"].__getMonacoInstance());return k(()=>{let n;return e||(n=_monaco_editor_loader__WEBPACK_IMPORTED_MODULE_0__["default"].init(),n.then(t=>{r(t)})),()=>n?.cancel()}),e}var Le=Pe;function He(e){let r=(0,react__WEBPACK_IMPORTED_MODULE_1__.useRef)();return (0,react__WEBPACK_IMPORTED_MODULE_1__.useEffect)(()=>{r.current=e},[e]),r.current}var se=He;var _=new Map;function Ve({defaultValue:e,defaultLanguage:r,defaultPath:n,value:t,language:a,path:m,theme:E="light",line:g,loading:N="Loading...",options:x={},overrideServices:P={},saveViewState:y=!0,keepCurrentModel:V=!1,width:z="100%",height:F="100%",className:j,wrapperProps:A={},beforeMount:q=D,onMount:M=D,onChange:O,onValidate:T=D}){let[s,u]=(0,react__WEBPACK_IMPORTED_MODULE_1__.useState)(!1),[c,w]=(0,react__WEBPACK_IMPORTED_MODULE_1__.useState)(!0),d=(0,react__WEBPACK_IMPORTED_MODULE_1__.useRef)(null),o=(0,react__WEBPACK_IMPORTED_MODULE_1__.useRef)(null),b=(0,react__WEBPACK_IMPORTED_MODULE_1__.useRef)(null),L=(0,react__WEBPACK_IMPORTED_MODULE_1__.useRef)(M),U=(0,react__WEBPACK_IMPORTED_MODULE_1__.useRef)(q),I=(0,react__WEBPACK_IMPORTED_MODULE_1__.useRef)(),i=(0,react__WEBPACK_IMPORTED_MODULE_1__.useRef)(t),f=se(m),Q=(0,react__WEBPACK_IMPORTED_MODULE_1__.useRef)(!1),B=(0,react__WEBPACK_IMPORTED_MODULE_1__.useRef)(!1);k(()=>{let p=_monaco_editor_loader__WEBPACK_IMPORTED_MODULE_0__["default"].init();return p.then(R=>(d.current=R)&&w(!1)).catch(R=>R?.type!=="cancelation"&&console.error("Monaco initialization: error:",R)),()=>o.current?pe():p.cancel()}),l(()=>{let p=h(d.current,e||t||"",r||a||"",m||n||"");p!==o.current?.getModel()&&(y&&_.set(f,o.current?.saveViewState()),o.current?.setModel(p),y&&o.current?.restoreViewState(_.get(m)))},[m],s),l(()=>{o.current?.updateOptions(x)},[x],s),l(()=>{!o.current||t===void 0||(o.current.getOption(d.current.editor.EditorOption.readOnly)?o.current.setValue(t):t!==o.current.getValue()&&(B.current=!0,o.current.executeEdits("",[{range:o.current.getModel().getFullModelRange(),text:t,forceMoveMarkers:!0}]),o.current.pushUndoStop(),B.current=!1))},[t],s),l(()=>{let p=o.current?.getModel();p&&a&&d.current?.editor.setModelLanguage(p,a)},[a],s),l(()=>{g!==void 0&&o.current?.revealLine(g)},[g],s),l(()=>{d.current?.editor.setTheme(E)},[E],s);let X=(0,react__WEBPACK_IMPORTED_MODULE_1__.useCallback)(()=>{if(!(!b.current||!d.current)&&!Q.current){U.current(d.current);let p=m||n,R=h(d.current,t||e||"",r||a||"",p||"");o.current=d.current?.editor.create(b.current,{model:R,automaticLayout:!0,...x},P),y&&o.current.restoreViewState(_.get(p)),d.current.editor.setTheme(E),g!==void 0&&o.current.revealLine(g),u(!0),Q.current=!0}},[e,r,n,t,a,m,x,P,y,E,g]);(0,react__WEBPACK_IMPORTED_MODULE_1__.useEffect)(()=>{s&&L.current(o.current,d.current)},[s]),(0,react__WEBPACK_IMPORTED_MODULE_1__.useEffect)(()=>{!c&&!s&&X()},[c,s,X]),i.current=t,(0,react__WEBPACK_IMPORTED_MODULE_1__.useEffect)(()=>{s&&O&&(I.current?.dispose(),I.current=o.current?.onDidChangeModelContent(p=>{B.current||O(o.current.getValue(),p)}))},[s,O]),(0,react__WEBPACK_IMPORTED_MODULE_1__.useEffect)(()=>{if(s){let p=d.current.editor.onDidChangeMarkers(R=>{let G=o.current.getModel()?.uri;if(G&&R.find(J=>J.path===G.path)){let J=d.current.editor.getModelMarkers({resource:G});T?.(J)}});return()=>{p?.dispose()}}return()=>{}},[s,T]);function pe(){I.current?.dispose(),V?y&&_.set(m,o.current.saveViewState()):o.current.getModel()?.dispose(),o.current.dispose()}return react__WEBPACK_IMPORTED_MODULE_1__.createElement(H,{width:z,height:F,isEditorReady:s,loading:N,_ref:b,className:j,wrapperProps:A})}var fe=Ve;var de=(0,react__WEBPACK_IMPORTED_MODULE_1__.memo)(fe);var Ft=de;
//# sourceMappingURL=index.mjs.map
/***/ })
/******/ });
/************************************************************************/
/******/ // The module cache
/******/ var __webpack_module_cache__ = {};
/******/
/******/ // The require function
/******/ function __webpack_require__(moduleId) {
/******/ // Check if module is in cache
/******/ var cachedModule = __webpack_module_cache__[moduleId];
/******/ if (cachedModule !== undefined) {
/******/ return cachedModule.exports;
/******/ }
/******/ // Create a new module (and put it into the cache)
/******/ var module = __webpack_module_cache__[moduleId] = {
/******/ // no module.id needed
/******/ // no module.loaded needed
/******/ exports: {}
/******/ };
/******/
/******/ // Execute the module function
/******/ if (!(moduleId in __webpack_modules__)) {
/******/ delete __webpack_module_cache__[moduleId];
/******/ var e = new Error("Cannot find module '" + moduleId + "'");
/******/ e.code = 'MODULE_NOT_FOUND';
/******/ throw e;
/******/ }
/******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__);
/******/
/******/ // Return the exports of the module
/******/ return module.exports;
/******/ }
/******/
/************************************************************************/
/******/ /* webpack/runtime/compat get default export */
/******/ !function() {
/******/ // getDefaultExport function for compatibility with non-harmony modules
/******/ __webpack_require__.n = function(module) {
/******/ var getter = module && module.__esModule ?
/******/ function() { return module['default']; } :
/******/ function() { return module; };
/******/ __webpack_require__.d(getter, { a: getter });
/******/ return getter;
/******/ };
/******/ }();
/******/
/******/ /* webpack/runtime/define property getters */
/******/ !function() {
/******/ // define getter functions for harmony exports
/******/ __webpack_require__.d = function(exports, definition) {
/******/ for(var key in definition) {
/******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
/******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
/******/ }
/******/ }
/******/ };
/******/ }();
/******/
/******/ /* webpack/runtime/hasOwnProperty shorthand */
/******/ !function() {
/******/ __webpack_require__.o = function(obj, prop) { return Object.prototype.hasOwnProperty.call(obj, prop); }
/******/ }();
/******/
/******/ /* webpack/runtime/make namespace object */
/******/ !function() {
/******/ // define __esModule on exports
/******/ __webpack_require__.r = function(exports) {
/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
/******/ }
/******/ Object.defineProperty(exports, '__esModule', { value: true });
/******/ };
/******/ }();
/******/
/************************************************************************/
var __webpack_exports__ = {};
// This entry needs to be wrapped in an IIFE because it needs to be isolated against other modules in the chunk.
!function() {
/*!*********************************************************************!*\
!*** ./packages/packages/pro/editor-controls-extended/src/index.ts ***!
\*********************************************************************/
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */ AttributesControl: function() { return /* reexport safe */ _controls_attributes_control__WEBPACK_IMPORTED_MODULE_1__.AttributesControl; },
/* harmony export */ CssEditor: function() { return /* reexport safe */ _components_css_code_editor_css_editor__WEBPACK_IMPORTED_MODULE_6__.CssEditor; },
/* harmony export */ DisplayConditionsControl: function() { return /* reexport safe */ _controls_display_conditions_control__WEBPACK_IMPORTED_MODULE_3__.DisplayConditionsControl; },
/* harmony export */ OptionsControl: function() { return /* reexport safe */ _controls_options_control__WEBPACK_IMPORTED_MODULE_2__.OptionsControl; },
/* harmony export */ conditionGroupPropTypeUtil: function() { return /* reexport safe */ _prop_types_condition_group__WEBPACK_IMPORTED_MODULE_5__.conditionGroupPropTypeUtil; },
/* harmony export */ displayConditionsPropTypeUtil: function() { return /* reexport safe */ _prop_types_display_conditions__WEBPACK_IMPORTED_MODULE_4__.displayConditionsPropTypeUtil; }
/* harmony export */ });
/* harmony import */ var _init__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./init */ "./packages/packages/pro/editor-controls-extended/src/init.ts");
/* harmony import */ var _controls_attributes_control__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./controls/attributes-control */ "./packages/packages/pro/editor-controls-extended/src/controls/attributes-control.tsx");
/* harmony import */ var _controls_options_control__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./controls/options-control */ "./packages/packages/pro/editor-controls-extended/src/controls/options-control.tsx");
/* harmony import */ var _controls_display_conditions_control__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./controls/display-conditions-control */ "./packages/packages/pro/editor-controls-extended/src/controls/display-conditions-control.tsx");
/* harmony import */ var _prop_types_display_conditions__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./prop-types/display-conditions */ "./packages/packages/pro/editor-controls-extended/src/prop-types/display-conditions.ts");
/* harmony import */ var _prop_types_condition_group__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./prop-types/condition-group */ "./packages/packages/pro/editor-controls-extended/src/prop-types/condition-group.ts");
/* harmony import */ var _components_css_code_editor_css_editor__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./components/css-code-editor/css-editor */ "./packages/packages/pro/editor-controls-extended/src/components/css-code-editor/css-editor.tsx");
(0,_init__WEBPACK_IMPORTED_MODULE_0__.init)();
}();
(window.elementorV2 = window.elementorV2 || {}).editorControlsExtended = __webpack_exports__;
/******/ })()
;
window.elementorV2.editorControlsExtended?.init?.();
The post Regents Canal Walk appeared first on Char's Footsteps.
]]>
The full walk starts at Little Venice, a picturesque basin where the canal meets the Grand Union Canal. From here, the towpath passes through Maida Hill Tunnel and skirts Regent’s Park, offering views of London Zoo. Continuing east, the route runs through Camden Town, known for its market and music venues, before heading towards King’s Cross and the redeveloped Coal Drops Yard. Further along, you pass through Islington Tunnel (where you’ll need to detour onto streets) and follow the canal past Victoria Park in Hackney. The final stretch runs to Limehouse Basin, where it meets the River Thames.
I love doing this walk at different times throughout the year, to enjoy the changing seasons and different scenery that brings. From spring blossom to autumnal leaves, every season brings a different vibe! I recommend going at different points throughout the year if you’re able to.

There are so many great places to stop along the Regent’s Canal;
If you want a shorter walk, Little Venice to Camden Town is one of the most popular sections along the route. At around 2.5 miles (4km), it take approximately one hour to complete at a leisurely pace. This stretch offers peaceful water views, passes the edge of Regent’s Park and you’ll be treated to sneak peaks of London Zoo! You’ll end in Camden, where you can explore the market, get food/drinks in the sun and just enjoy the buzzing vibe of the area. This is one of my favourite walks in London without doubt!

At roughly 9 miles in length, the entire route takes around 4–5 hours, depending on pace and stops.
For the most page, the walk is safe. However as a woman, I wouldn’t recommend walking down the canal late at night in the dark!
Yes, you can cycle along the towpath. But it does get narrow and very busy at times – particularly on weekends. If you are going to cycle, be prepared to go slow and have to stop at points. This isn’t the place for a training ride, as you’d have with Richmond Park or Regents Park Laps.
Yes, you can break up the whole walk into smaller, more manageable sections. As the canal goes through a number of transport links, it’s easy to join or leave the Regent’s Canal Walk at different points.
There are signs at major points, but you might want to use a GPS/Google Maps/AllTrails too. Once you’re on the walk, it’s mostly obvious where to go. There are a couple of points where you need to go back up to street level and join the path from round the corner, but there are signs posts here to help with that.
Yes, there are lots of places to eat – especially around Camden, King’s Cross and Little Venice. I also love that there are a few restaurants and cafes hidden along the path too!
The post Regents Canal Walk appeared first on Char's Footsteps.
]]>The post How To Make Friends in London appeared first on Char's Footsteps.
]]>Time Left: Time Left is an app that matches you with 5 people for dinner and drinks, every Wednesday night, in your chosen area. To ensure you’re matched with people of a similar age and interests, you’ll fill out a short questionnaire beforehand. I’ve been to two of these dinners now and had a great experience each time! One of my favourite aspects of Time Left, is the designated bar that all dinners within the same area can go to after. We ended up in the Alchemist in Piccadilly, with about 15 other tables. It was great to be able to meet more people from other Time Left dinners there too. This app is available in cities across the world, not just London! I recommend signing up for the one-off dinner to see how you go. Or sign up to one of their subscriptions if you’re likely to go more regularly.
The StoriBoard Club – Similar to Time Left, StoriBoard Club is an organisation that host small-group events throughout the week. Mondays are for social darts at FlightClub. Tuesdays are for dinners with strangers (just like Time Left) where you’ll be matched with likeminded people, based on a questionnaire. I believe they might have a few other events, but so far, i’ve just done the dinner and darts! So brilliant! You can do these events in London, Birmingham, Bristol, Edinburgh, Manchester and Leeds.
We Got You Boo: We Got You Boo is a great way for women to meet other women, with 50+ group chats, organised events, meet-ups and retreats! There’s a lifetime membership fee of £49.00 which gives you access to all the different chats and huge list of events. What I love about this too is you can chose region specific groups, so you meet people from specific parts of London (or wider UK) to have more local friends. So far, I’ve joined a few group chats for girls in my area but have yet to go to an event. I’ll report back shortly!
Lonely Girls Club: The Lonely Girls Club is a community, spread across the UK, to help women connect with other women to “make life a little less lonely“. Consisting of digital forums and weekly meet-ups and events, this is a great community to find friends! This isn’t just available in London. They also have groups in Nottingham, Birmingham and Manchester.
Gutsy Girls: Gutsy Girls is a group all about taking on new challenges! They organise regular events and trips – ranging from small weekends away to full international trips. If a full trip sounds a bit much (or out of your budget) consider joining their day excursions. These take place across the country, including London, Bristol and Bath, and range from paddleboarding to yoga or day hikes.
Gals Who: The Gals Who community consists of 300,000 girls worldwide who support each other with everything from graduation to travelling. The online community has now grown to Gals Who Sweat, Gals Who Travel, Gals Who Read, Gals Who Date, Gals Who Rent and Gals Who Recruit. These are Facebook groups, so consider joining one that appeals to you.
Sober Girl Society: Sober Girl Society is a group for sober and sober-curious women to meet and enjoy virtual workshops to fun IRL events. London has a big drinking scene and it can be frustrating to have most social events revolving around alcohol. This is a great way to meet new people without feeling pressure to drink alcohol.
Supper Clubs: London is home to a number of supper clubs but some worth checking out are Khao Suppers, Eleven98, The Bridge Club, and probably one of the coolest Supperclub.tube. This supper club actually takes place in an old school London Underground carriage!
Meetup.com: This platform offers various groups and events based on interests, from language exchanges and book clubs to hiking and wine tasting. It’s a fantastic place to find niche communities!
London Newcomers Club: Specifically for people new to London. They organise regular meet-ups and activities, perfect for those unfamiliar with the city. I have found this to be for a slightly older demographic but worth having a look at their various activities and events.
Bumble BFF: Designed for making friends, you can swipe and connect with other people who are also looking to expand their social circle. I had great experiences with this when I had moved to Australia and was looking for friends in Melbourne.
Friender: Matches users with people who share similar interests and hobbies, making it easier to connect on a personal level. I haven’t got first hand experience with this but could be worth checking out.
Go Mammoth: Go Mammoth offer a huge range of social sports leagues across London, including netball, football, volleyball, indoor hockey, basketball and many more! No experience is needed and it’s a relaxed way to meet new people.
GoodGym: GoodGym is not-for-profit group that combines running, walking and cycling with volunteering. The volunteering can be anything from helping community projects or visiting elderly people and you can choose from a number of initiatives on their site. It’s a great way to get fit while giving back and meeting others.
Be Military Fitness (BMF): These are quite intense group fitness sessions run by former military personnel in London parks. The camaraderie developed in tough workouts can help form strong bonds. Get super fit and make friends in the process with Be Military Fit (previously British Military Fitness).
Parkrun: One of my favourite community activities in London is Parkrun! These are free, weekly 5km runs held in various parks around London on Saturday mornings. A fantastic way to meet like-minded runners or just enjoy a chat and coffee afterward! Check out the Parkrun site to find your nearest one. I’ve been lucky to travel around the world, and spend several years working overseas across Australia, Singapore and Malaysia. Parkrun was always my first go-to in all these places to start forming a network, so i’d highly recommend checking it out if you’re into running/jogging. I will say i’ve found the larger London ones (Battersea, Bushy, Clapham etc) harder to meet people compared to the smaller, local ones.
Join a Sports Club of Your Choice: A great way to meet people in London is to join a hobby or sport you actually like. That way you’re engaging in something you enjoy and meet people with similar interests. Plus it takes the pressure off just going to something just to make friends. There are so many different sports clubs in London, from running and rugby, to 5-a-sides and netball. I highly recommend looking to join your local netball club, golf club etc. My sport of choice is running! London is home to so many incredible running clubs, who often go for pints/coffees after a run to help people socialise. The best running clubs I’ve found so far for making friends is Midnight Runners, London City Runners and Friday Night Lights!
Local Gym: Become a regular at your local gym and connect with people that way! Or if you’re not into lifting weights, join something like F45, Barry’s Bootcamp, Boom Cycle etc where, if you go regularly, you’ll start seeing the same faces!
City Lit: City Lit offers various evening classes in subjects like languages, arts, and professional development. Learning something new is a great way to connect with others. Whether you’re looking to learn a language, gain a certificate in social media marketing or improve your writing skills, there are so many class to choose from.
The School of Life: The School of Life hosts workshops and talks on various topics, including relationships, philosophy and self-development. It attracts people interested in deep, meaningful conversations.
Cookery Classes: Taking a cooking class can be a fun way to bond over shared interests and tastes. There are so many classes to choose from in London, from one-day events to longer courses. Leiths School of Food and Wine, the Avenue Cookery School and Cookery School at Little Portland Street are great places to start. In addition, wine courses like WSET can be a fun way to get to know people, whilst learning about wine.
Hands On London: Hands On London is another site that makes finding volunteer opportunities in London easy! They have two main initiatives. The first is BrightenUp London, which aims to improve London’s green spaces. The second is WrapUp London, which seeks to provide warm coats for those in need. However, they have a number of other volunteer opportunities on the site too.
Team London: A government initiative that connects volunteers with organisations across the city. Volunteering is a great way to make friends while contributing to a cause you care about.
Do-it.org: A website that lists volunteering opportunities across the city, allowing you to choose something that aligns with your interests.
The Felix Project: A charity that rescues surplus food and redistributes it to vulnerable people. Volunteering with them can offer a mix of socialising and meaningful impact.
Co-Working Spaces: Co-working spaces, like WeWork or Work Life, often organise social events, workshops and networking events, ideal for freelancers or remote workers looking to expand their social circle.
Second Home: A creative community that provides flexible workspaces and hosts regular events for members. Currently they are based in London and Lisbon, with London locations in Holland Park and Spitalfields.
Impact Hub: Focused on social entrepreneurship, Impact Hub attracts mission-driven individuals and often hosts community-focused events. There’s a wide range of opportunities here for learning and collaboration with like-minded individuals.
Time Out London: Time Out London is great for seeing the latest events happening in the city, from theatre shows and festivals to pop-up markets and outdoor screenings. It’s great for looking up the newest restaurants, pop-ups and happenings!
Londonist: Similar to Time Out, the Londonist covers interesting events and happenings across London, helping you find social gatherings or niche activities.
Southbank Centre: Hosts a variety of events, including music, dance and literary festivals. These can be great for meeting others with similar cultural interests.
Pub Quiz: Many London pubs host quiz nights where you can join a team or even go solo to be matched up with others. Popular venues include The Old Queen’s Head in Islington and The King’s Arms in Waterloo. If you go solo, go up to the quizmaster and they might be able to help you join another team.
London Pub Crawls: A great way to enjoy the many pubs of London is to join a guided tour in specific areas. This is a great way to know more about your local area, as well as having a fun social environment to meet new people. Some popular places to look include The Shoreditch Pub Crawl and The London Pub Crawl Company.
Eventbrite: Often lists professional networking events, panel discussions and social gatherings for various industries. Eventbrite isn’t just for networking events, it has a wide range of events from parties, to music events to bar crawls etc.
General Assembly: Runs tech and business-related workshops, which attract professionals and people looking to network. There are so many events to choose from! Check them out here.
The Hoxton Mix: A co-working space that also organises networking events, particularly for start-ups and freelancers.
Industry Specific Networking: Consider a Google search of networking events for your specific industry. I work in SEO by day, and there are a number of great SEO networking groups throughout the city that host monthly events. This is a great way to meet others in your industry and broaden your network.
London Writers’ Café: A community for writers of all levels, where you can meet people through workshops and feedback sessions.
Board Game Clubs: For those who enjoy board games, there are a number of clubs to check out across London. Check out this other blog that has put together a list of clubs around London. Alternatively, if you have a specific game you like, try a google search for relating clubs!
Toastmasters London: Helps people improve their public speaking and leadership skills. There are several branches around the city where you can practice and socialise.
Facebook Groups: There are so many Facebook groups to check out for making friends in London. I recommend searching for London-based interest groups, like “Book Clubs in London” or “Outdoor Adventures in London” to find friends with specific interests. For broader groups, look for things like “Expats in London” or “Girls Gone International London”.
Reddit (r/LondonSocialClub): A subreddit dedicated to organising meet-ups, finding activities or making new friends. This is a great one to check out as it’s very active, with multiple posts a day suggesting meet up and activities. You can check out the subreddit here.
Instagram Communities: Follow London-specific hashtags like #ThisIsLondon or #WeLoveLondon to find local events and meet people with similar interests. This might not directly lead to friends but it’s definitely a great way to see new things happening in the city!
Waterstones Book Club: Some locations host regular book club meetings where you can discuss literature and meet fellow book lovers. Check out their site for more information on locations, events and author meet-ups!
The Prince Charles Cinema: Located in Leicester Square, it hosts film marathons, sing-alongs and themed screenings, making it easy to start a conversation with fellow film buffs.
Tandem London: Language exchange meet-ups where people practice different languages together. You can improve your language skills while meeting people from diverse backgrounds. There are nearly 5,000 Tandem partners in London with a wide range of languages to choose from.
Language Café at The Abbey Centre: Offers a space for people to learn and practice languages through conversation, often with social events or themed evenings.
Outdooraholics: This is a group within the meet-up site that provides hikes and adventure travel for those between 25-49 years old. It’s one of the largest outdoor groups in London with over 50,000 members. There are multiple events happening each weekend around the country – many departing from London. Check out the group within meetup here.
The Expedition Club: Focused on adventure and exploration, this group organises events for people who love the outdoors. Events take place once a month around the UK! Check out their site for more info.
Walking Groups: There are a number of walking groups around the UK that are worth joining, if you’re looking to meet new people and get out in nature. Ones to look at are the famous Ramblers, with their London-specific site here, and the Metropolitan Walkers. The latter is geared at people in their 20s-30s, whereas the Ramblers is all inclusive and around the country.
Drink & Draw London: They host regular meet-ups for those who enjoy drawing. All skill levels are welcome and it’s a casual way to bond over art.
The Poetry Café in Covent Garden: A hub for poetry readings and open mic nights, where you can meet other creative-minded people.
Paint and Sip: A fun way to meet people over having some drinks whilst painting. I did a few of these when I moved to Melbourne! It was always a fun activity to do after work and bond with people over our poor painting skills.
I hope these ideas will help boost your chances of finding a group of friends in London, who share your interests. London is a diverse and vibrant city with plenty of opportunities to connect with other likeminded people. It’s just a case of putting yourself out there and saying yes to things! I found it a little daunting at first, but found that most people are in the same boat and are typically open to making connections. I’ve also put together a short guide on how to make friends in Melbourne.
The post How To Make Friends in London appeared first on Char's Footsteps.
]]>The post The Best Christmas Markets in London appeared first on Char's Footsteps.
]]>Related: Check out the Top 10 Markets in London
Dates: 14th November 2025 to 1st January 2026
Winter Wonderland in Hyde Park is one of London’s largest and most famous Christmas markets. The market is home to over 200 chalets selling crafts, gifts, festive treats and activities! Along with all the markets, Winter Wonderland also has ice skating, fairground rides, circus shows and a giant observation wheel. One of my favourite things to do is visit the Bavarian Village, which offers hearty food and live music. Winter Wonderland’s extensive attractions and festive atmosphere make it a must-visit during the holiday season. I highly recommend visiting on a weekday, outside of the school Christmas holidays, if you’re looking to avoid the bulk of the crowds. I’ve had hit and miss experiences here over the years, with some days having to deal with very queues. Winter Wonderland is perfect for everyone; from families, couples, groups and kids!
Highlights: Ice Kingdom, Christmas circus shows, Santa Land for children, and various themed bars. Check out the Winter Wonderland site for tickets, information and news on what’s on.
Dates: TBC
The Southbank Centre Winter Market, located along the Thames, offers a picturesque setting for some festive shopping. Open from mid-November to late December, the market features wooden chalets selling handcrafted gifts, festive food and Christmas drinks (like Mulled Wine!!). It’s a lovely place to visit as you get great riverside views of London, while browsing for unique Christmas presents and indulging in delicious street food. The market also hosts seasonal shows and performances throughout the period. The Southbank Centre Winter Market is ideal for those looking for a scenic and cultural Christmas experience. After you’ve enjoyed the market, be sure to wander along the river and take in the many sites along London’s River Thames.
Highlights: Seasonal food and drink, local crafts, and festive shows at the Southbank Centre. Visit the official site for more information!
Dates: TBC
Leicester Square Christmas Market, in the heart of the West End, brings festive cheer to one of London’s busiest areas. This market features charming wooden huts offering gifts, crafts, seasonal treats and a Santa’s Grotto for kids! The market’s cosy atmosphere is enhanced by twinkling lights and festive decorations. There’s typically a range of performances at the Leicester Square Spiegeltent too, including cabaret, comedy and family-friendly shows. The central location and vibrant ambiance make Leicester Square Christmas Market a convenient and enjoyable festive stop. Given its location, you can also pop to see the Covent Garden or Trafalgar Square markets nearby too.
Highlights: Santa’s Grotto, cabaret shows and mulled wine. Check out their official site for more information.
Dates: TBC
Greenwich Christmas Market, located in the historic heart of Greenwich, offers a delightful festive experience. The Greenwich market features stalls selling handmade crafts, unique gifts and festive food. I love this market for its charming setting, surrounded by historic buildings and close to the famous Cutty Sark. You can enjoy live music, carol singing and seasonal treats while exploring the market too. Greenwich Christmas Market’s blend of history and holiday cheer makes it a lovely spot for festive shopping and entertainment. This is a great place to visit if you want to explore the nearby attractions in Greenwich. Read more on how to have a great day out in Greenwich!
Highlights: Craft stalls, street food, live music and the stunning surroundings. Check out this site for more information on all the Christmassy things to do in Greenwich.
Dates: TBC
Covent Garden Christmas Village is a festive haven that is a must-do for anyone in London during the Christmas season. The iconic area gets totally transformed during the season, from the famous Piazza and Market Building, down to Neal’s Yard and Seven Dials. The market features stalls offering luxury gifts, artisanal food and festive decorations. Covent Garden is famous for its giant 60ft and iconic Christmas bells and bauble decorations. Whilst visiting the markets, you can also explore the wider shops and restaurants in the area, making it a great destination for a full day of festive fun. Covent Garden’s central location and enchanting decorations make it a favourite among locals and tourists alike.
Highlights: Giant 60ft Christmas tree, live music performances and iconic festive decorations. Check out their site for more detailed information on where you can find each attraction in the area.
Dates: TBC
Christmas by the River, set against the stunning backdrop of Tower Bridge and the Tower of London, offers a magical festive experience. Open from late November to early January, this market features wooden cabins selling gifts, crafts and delicious food. Other things to enjoy here include ice skating, live music, and workshops while taking in the spectacular views of the Thames. The market’s riverside location and festive atmosphere create a unique and charming holiday experience. Christmas by the River is perfect for those looking to combine festive shopping with iconic London sights.
Highlights: Craft stalls, winter warming drinks and amazing views of the River Thames.
Dates: 9th November 2025 – 2nd January 2026
The Christmas market at Trafalgar Square sits alongside the famous Christmas tree and features 34 wooden chalet stalls selling handmade gifts and decorations. There are lots of great food options here, alongside mulled wine and cider to get into the festive spirit! There’s also an insanely good Belgian hot chocolate…be sure to come here hungry. Trafalgar Square is also close to Covent Garden, so you could do both in one go if you’re pushed for time.
Highlights: The iconic Christmas tree from Norway, carol singing events and traditional market fare.
Dates: 5-7th & 12-14th December 2025
Held in the courtyards of Hampton Court Palace, this festive fayre offers a historic backdrop for seasonal shopping, with a focus on artisan gifts, festive treats and entertainment. Hampton Court Palace also puts on a legendary ice rink for most of the Christmas season too (mid-November to early January). If you’re looking to make your visit to the Hampton Court Palace Christmas Market extra special, coincide it with a trip to the ice rink! There’s an onsite ice cafe and bar here too, so you can really make a day out of it. Check out more information on the Hampton Court Palace Ice Rink and the Christmas Fayre.
Highlights: Hampton Court Palace backdrop, artisan food stalls and live music.
Dates: TBC
Situated in Kingston’s Ancient Market Place, this charming Christmas market features a traditional alpine village theme, including wooden cabins offering seasonal food, drinks and gifts. There’s also great entertainment here with carol singers, live music and Bavarian Curling lanes! Compared to other Christmas Markets in London, this is a little smaller and more of a local vibe. If you’re visiting London for the Christmas Markets, I’d recommend going to one of the more central ones (like Winter Wonderland) instead.
Highlights: Live entertainment, festive street food and family-friendly activities. Check out the Kingston Christmas Market site for more information.
The post The Best Christmas Markets in London appeared first on Char's Footsteps.
]]>The post A Londoner’s Guide to Hampstead – Best Things to Do appeared first on Char's Footsteps.
]]>Whether you’re interested in exploring cultural landmarks, enjoying outdoor spaces, or indulging in local cuisine, Hampstead has something for everyone. I personally love coming here to enjoy the park, pond swimming and great pubs! Here is a list of the best things to do in Hampstead.

Hampstead Heath is a huge park covering 320 hectares, offering a variety of landscapes, including woodlands, ponds, and open fields. There are many trails to walk along, taking in panoramic views of London from Parliament Hill. The heath also features swimming ponds, which are open all year-round, and other sports facilities for athletics, tennis, and other activities. The best places here without doubt are the Pergola and Hills Gardens, woodland trial walks and Parliament Hill Viewpoint.
If you enjoy Hampstead Heath, be sure to check out my guide on the best parks in London for more like this!

My favourite thing to do in Hampstead is visit the Pergola and Hill Gardens. This Edwardian pergola and landscaped garden were originally part of a private estate but are now open to the public. You can walk along raised walkways, offering views over the heath and West Heath. It’s a great place for photographers, as the overgrown vines and weathered stone create a romantic, slightly decayed atmosphere.

The Pergola and Hill Gardens definitely feel like a hidden treasure within London! They’re completely free to enter and are open year-round. It’ll take you about 20 minute to walk to from the main entrances and they’re clearly marked on Google Maps, so aren’t difficult to find.

The neoclassical villa, Kenwood House, is located on the northern edge of Hampstead Heath. This English Heritage site houses a significant collection of paintings, including works by Rembrandt and Vermeer. You can explore the beautifully restored rooms and learn about the house’s history through guided tours. The surrounding estate offers picturesque gardens and many walking paths.

This is definitely worth doing after enjoying the Pergola and Hill Gardens, or other parts of Hampstead Heath, given the close proximity. Kenwood House is open daily and is free to enter. For more information, or to book your free ticket, head over to their site.

Flask Walk is a charming pedestrian lane that epitomises Hampstead’s village-like atmosphere. This narrow street is lined with independent shops, cafes, and a traditional pub. There are many antique stores, bookshops, boutiques and eateries. I love to pop down here to grab a coffee to enjoy on my walk around Hampstead Heath, or cosy up in one of the bookshops in the colder months. The street also hosts a small weekend market, adding to its lively character.
Related: Best Markets in London
Hampstead has long been associated with literary figures. Visitors can explore this heritage by visiting Keats House, where the poet John Keats lived and wrote some of his most famous works. The house is now a museum dedicated to his life and poetry. Other literary spots include the Freud Museum, located in Sigmund Freud’s final home, and various blue plaques marking the residences of notable writers throughout the area.

Hampstead offers a wide range of dining options, from casual cafes to upscale restaurants. My favourite places to go in Hampstead are the many traditional pubs, with The Holly Bush or The Spaniards Inn, being great options! For international cuisine, there are numerous options along Hampstead High Street and Heath Street. Many restaurants in the area use locally sourced ingredients, providing a taste of seasonal British produce.

The area hosts various cultural events throughout the year. The Hampstead Summer Festival includes art shows, concerts, and food fairs. The Hampstead Theatre presents contemporary plays and often features up-and-coming talent. Additionally, several local galleries showcase works by both established and emerging artists, offering insights into London’s vibrant art scene.
Hampstead High Street combines high-end boutiques with familiar chain stores and independent shops. You’ll be treated to everything from fashion, home goods, books, and specialty foods. The street retains much of its historic architecture, making window shopping an enjoyable activity in itself. On weekends, a small farmers’ market sets up near the tube station, offering fresh produce and artisanal products.
2 Willow Road is a modernist house designed by architect Ernő Goldfinger in 1939. Now managed by the National Trust, it offers visitors a glimpse into mid-20th century design and architecture. The house contains a collection of modern art and personal effects, providing insight into the lives of Goldfinger and his family. For more detailed explanations of the building’s innovative features and historical context, opt for a guided tour. Check out their official site for more information.
Fenton House is a 17th-century merchant’s house also managed by the National Trust. It features a walled garden, a notable collection of early keyboard instruments, and displays of porcelain and needlework. Fenton House is great for its balcony, showcasing panoramic views of London. The house provides a well-preserved example of 17th-century domestic architecture and lifestyle. Check out the National Trust site for more info on visiting Fenton House.
For those interested in the area’s scientific heritage, the Hampstead Scientific Trail offers a self-guided walk past homes and locations associated with notable scientists. The trail includes sites linked to figures such as Sir William Rowan Hamilton and Sir Julian Huxley, providing context about their lives and work in Hampstead.

The easiest way to get to Hampstead is via rail. Hampstead is well connected by are overground and underground stations, as well as various bus routes. Hampstead Underground Station is noteworthy for having the deepest lift shaft on the London Underground network, at 55 meters (180 feet)!
Other great London neighbourhoods worth checking out in London include Greenwich!
The post A Londoner’s Guide to Hampstead – Best Things to Do appeared first on Char's Footsteps.
]]>The post Explore the Stunning Mayfield Lavender Farm – A Short Trip From London appeared first on Char's Footsteps.
]]>
Mayfield Lavender Farm is located approximately 15 miles south of central London. If you’re driving, you can reach the farm by taking the M25 and exiting at Junction 7, then following the A23 and A237 to reach the destination. There is lots of parking available on-site and is free!
It is possible to reach the Mayfield Lavender Farm by public transport, but it’s not very direct. The nearest train station is Chipstead, which is approximately 3 miles from the farm. From Chipstead Station, you can take a taxi or enjoy a scenic walk to the farm. Alternatively, buses run from various locations in London to the farm, with the 166 bus route from Croydon being a popular choice.
Mayfield Lavender Farm offers a range of activities for visitors to enjoy. Strolling through the endless rows of lavender is a must, providing ample opportunities for photography and relaxation. The farm also has a charming on-site café, serving lavender-themed refreshments like lavender lemonade and cakes!

For those interested in the cultivation and uses of lavender, the farm offers educational tours and workshops. You can learn about the history of lavender farming, the distillation process, and the benefits of lavender oil. Additionally, the Mayfield Lavender farm has a cute shop on-site that sells a variety of organic lavender products. This ranges from essential oils and soaps to culinary items!
Be sure to check out my guide on the best parks in London if you’re looking for more outdoor escapes.
The Mayfield Lavender Farm is open during the peak blooming season, typically from late June to early August. This period ensures the lavender is in full bloom, offering the most vibrant and fragrant experience. Early mornings and late afternoons are ideal for visits, as the light is perfect for photography, and it’s less crowded.
To note, the farm shop and Glasshouse are actually open year-round!

Mayfield Lavender Farm is well-equipped with good facilities. There are clean, accessible toilets available on-site, as well as a spacious car park. The café provides a selection of light snacks and drinks, many infused with lavender. For visitors with mobility issues, the farm is relatively flat and accessible, making it easy to navigate the lavender fields.
The entry fee is £5 per person and free for children aged 12 and under. This helps to maintain the farm and support its organic farming practices
Yes, the farm is family-friendly and provides a safe environment for children to explore.
Well-behaved dogs on a leash are welcome at Mayfield Lavender Farm. Owners are expected to clean up after their pets.
Professional photography is allowed, but the farm requests that all photographers purchase a permit beforehand. This ensures that the farm can manage the flow of visitors and maintain a pleasant experience for everyone.
Yes, the farm shop offers a variety of lavender plants for purchase, along with a large variety of lavender-based products. I bought numerous lavender oils and soaps!
Mayfield Lavender Farm is a great destination that offers a unique blend of natural beauty, educational opportunities, and relaxation. Whether you’re a local or a visitor from afar, the farm provides a memorable experience that celebrates the charm and versatility of lavender.
Check out their official site for more information on how to visit the lavender farm and for their shop. Other great day trips from London include Greenwich, or for more further afield, Cambridge and Liverpool.
The post Explore the Stunning Mayfield Lavender Farm – A Short Trip From London appeared first on Char's Footsteps.
]]>The post A Guide to The Best Parks in London appeared first on Char's Footsteps.
]]>Whether you’re seeking a leisurely stroll, a picnic spot, or a place to engage in outdoor activities, London’s parks cater to all preferences. As a Londoner, here are my favourite parks to go for unwinding and meeting up with friends.
Hampstead Heath is a vast, ancient heath in North London, spanning 790 acres. Known for its rich history and natural beauty, it offers a blend of woodlands, meadows and ponds. What makes Hampstead Heath unique is its mix of untamed wilderness and well-maintained facilities.

My favourite place in Hampstead Heath is the Pergola and Hill Gardens. I love strolling along the raised walkways of this Edwardian Pergola, that’s covered in vines and pretty flowers. Another favourite part of mine are the famous Hampstead Ponds, perfect to swimming in the summer. Although braver swimmers face the waters year-round. For more views over London, walk up to Parliament Hill where you can spot the Shard and St Paul’s Cathedral. There are numerous trails and open spaces to explore.

The nearby village of Hampstead is perfect for a post-walk coffee or meal. If you’re visiting Hampstead, be sure to pop into one of the quaint, local pubs!
Location: North-West London. Nearest stations Hampstead Heath, Gospel Oak and Hampstead.
Opening Hours: Open 24 hours, Hampstead Heath Official Site
Regent’s Park, another of London’s Royal Parks, covers 410 acres and is located in the heart of the city. It is known for its beautifully landscaped gardens, boating lake and the famous ZSL London Zoo. The park also features the Queen Mary’s Gardens, home to over 12,000 roses, and the Open Air Theatre, which hosts performances during the summer months. To the north of Regent’s Park you’ll find Primrose Hill, an elevated point in the park that provides excellent views over London. This is definitely a place to come during sunset with a blanket and some drinks (particularly if you’re looking for date ideas!).

It’s also home to a number of events every year, my favourite being the Taste of London. This 5 day food and drink festival is the perfect way to kick of summer each year.
Regent’s Park is a go-to for the city’s cyclists, who frequent the park to do laps. If you’re looking for a place to cycle, especially away from London’s dangerous roads, Regent’s Park is a must! The nearby areas of Marylebone and Camden offer a variety of dining and entertainment options, from Camden Market to Madame Tussards and the Sherlock Holmes Museum.
Location: Central London – nearest stations are Baker Street, Regents Park & Great Portland Street.
Opening Hours: 5am – 9:30pm Regent’s Park Official Site
Nestled in the Royal Borough of Kensington and Chelsea, Holland Park is a picturesque haven, covering 54 acres. It is renowned for its serene Kyoto Garden, a beautiful Japanese garden complete with koi pond, waterfall and stone lanterns. The park also features extensive woodland, formal gardens and an open-air theatre.

Visitors can enjoy leisurely walks, visit the Holland Park Café, or explore the Holland House ruins. My favourite parts are the Kyoto Gardens, Dutch Gardens and the woodland trails. Holland Park has Kensington High Street on one side and Notting Hill on the other. Both great areas for shopping, cafes and restaurants.
Location: West London – nearest stations are Holland Park & Kensington Olympia. Holland Park Official Site.
Opening Hours: 7.30am until 30 minutes before dusk.
Kensington Gardens and Hyde Park together form one of London’s largest green spaces, offering 625 acres of lush parkland. Hyde Park is famous for its large boating lake, the Serpentine, and the historic Speaker’s Corner.

Kensington Gardens is home to the magnificent Kensington Palace and the Diana, Princess of Wales Memorial Playground. Both parks provide numerous opportunities for leisure activities such as boating, cycling, and horse riding. The parks’ central location makes them easily accessible and ideal for a day out.

Hyde Park holds a number of big events throughout the year, from BST Hyde Park music festival, to Winter Wonderland at Christmas.

Location: Central London. Nearest stations are Hyde Park Corner, Lancaster Gate, Queensway, Knightsbridge and High Street Kensington.
Opening Hours: 5am-midnight – Hyde Park Official Site and 6am-9:45pm Kensington Gardens Official Site.
St James’s Park, the oldest Royal Park in London, is located in the heart of the city. With its beautiful flower beds, lake, and views of Buckingham Palace, it offers a serene escape amidst the city’s landmarks. Unique features include the Blue Bridge, which provides iconic views of the London Eye and St James’s Palace. The park is home to a variety of wildlife, including pelicans and squirrels, and regularly hosts ceremonial events.

Green Park, one of London’s eight Royal Parks, is a serene and scenic escape located between Hyde Park and St James’s Park. Unlike its neighbouring parks, Green Park is known for its more natural and minimalist landscape, with mature trees and open grassland rather than formal flowerbeds. It’s a popular spot for picnics and leisurely walks, offering a peaceful retreat in the heart of the city.

Both parks are near many popular tourist attractions such as The Mall, Buckingham Palace, Houses of Parliament and Horse Guards Parade.
Location: Central London, Nearest station is St. James Park, Westminster and Green Park
Opening Hours: 5am- Midnight. St. James Park Official Site and Green Park’s Official Site.
Kew Gardens, a UNESCO World Heritage Site, is a botanical paradise located in Southwest London. Spanning 300 acres, it boasts the world’s largest and most diverse collection of living plants. My favourite areas to explore here are the Palm House and the Temperate House. I also love the Treetop Walkway, which provide stunning aerial views of the gardens, and the Great Pagoda. This is a restored 1762 pagoda decorated with colourful dragons with views over London from the top.

Kew Gardens is also home to art galleries, a lake, and numerous themed gardens. It’s a must-visit for plant enthusiasts and those seeking a peaceful retreat. You’ll find a various events are on throughout the year, with the most notable probably being the Christmas Light show held between November and Early-Jan.
Once you’ve finished exploring the gardens, head over to the charming village of Kew. There are a number of quaint cafes and shops to explore around here. Be aware that you’ll need to buy a ticket to view some parts of Kew Gardens, like the Palm House.
Location: South-West London, Nearest station is Kew Gardens
Opening Hours: 10:00am – 7:00pm (last entrance 6pm) Kew Gardens Official Site.
Richmond Park, the largest of London’s Royal Parks, covers 2,500 acres and is famous for its herds of free-roaming deer. This expansive park offers a taste of the countryside within the city, featuring woodlands, grasslands, and ponds. Key attractions include the Isabella Plantation, a stunning woodland garden, and King Henry’s Mound, which provides a protected view of St Paul’s Cathedral.

Richmond Park is perfect for walking, running, cycling, and horse riding. Along with Regent’s Park, Richmond Park is very popular amongst cyclists, particularly in the summer and before/after work. Be aware of vehicles if you do come here to cycle as the roads are open to cars.

Once you’ve finished exploring Richmond Park, be sure to head to Richmond town! There are a number of shopping and dining options. I love to come here and sit by the river in the summer.
Location: South-West London, Nearest station is Richmond.
Opening Hours: 7am-9pm. Richmond Park Official Site.
Bushy Park, located near Hampton Court Palace, is the second largest Royal Park, spanning 1,100 acres. It is known for its beautiful waterways, abundant wildlife, and historical features such as the Diana Fountain. The park’s Longford River and numerous ponds make it a haven for birdwatching and fishing. This makes Bushy Park a great place for enjoying picnics, sports, and dog walking.
Bushy Park is also home to the very first Parkrun – a free 5km walk/run held every Saturday morning. Since the inaugural run in Bushy Park, Parkrun is now held across thousands of parks around the world every Saturday morning.
The park is adjacent to Hampton Court Palace, providing a perfect combination of natural beauty and historical exploration. I would recommend coming here for a day trip to really make the most of the park, exploring Hampton Court Palace and the surrounding area.
Location: South-West London. Nearest stations are Hampton, Hampton Wick, Teddington and Hampton Court (these are all Rail lines and not London Underground).
Opening Hours: 6:30am – 9pm. Bushy Parks Official Site.
Greenwich Park is one of London’s eight Royal Parks and offers a mix of historic sites and green spaces. Covering 180 acres, it provides spectacular views of the River Thames and the London skyline from its elevated points. This makes is a great place to have a watch the sunset! The park is also home to the Royal Observatory, the Prime Meridian Line and the National Maritime Museum and a deer park.

There’s a lot to see and do in Greenwich Park, so i’d recommend setting aside a day to explore the park and Greenwich itself. The surrounding area of Greenwich is also full of things to do, from the Cutty Sark to the bustling Greenwich Market nearby. Read more on the best things to do in Greenwich.

Location: South-East London. Nearest stations are Greenwich and Maze Hill.
Opening Hours: 6am – 9:30pm, Green Park Official Site.
Located in South London, Brockwell Park spans 126 acres and is a local favourite for its scenic beauty and community vibe. The park features rolling meadows, ornamental gardens, and a historic walled garden. One of its main attractions is Brockwell Lido, an art deco outdoor swimming pool open year-round. The Brockwell Lido offers great relief from the summer weather and I loved coming here when I lived nearby.
Brockwell Park is also known for its sports facilities, including tennis courts and a BMX track, as well as hosting events like the Lambeth Country Show. The park offers panoramic views of the city skyline and is close to the bustling neighbourhood of Brixton.
Location: South London, Nearest Station: Brixton, Tulse Hill.
Opening Hours: Brockwell Park Official Site
The post A Guide to The Best Parks in London appeared first on Char's Footsteps.
]]>The post A Day Out at Kyoto Gardens London appeared first on Char's Footsteps.
]]>
The Kyoto Gardens were created in 1991 as a gift from Kyoto to commemorate the long-standing friendship between Japan and Great Britain. The gardens emulate the traditional Japanese landscape, featuring tranquil water features, carefully pruned trees and a variety of beautiful plants. The garden’s centrepiece is a cascading waterfall that flows into a serene pond, inhabited by colourful koi fish, adding to the garden’s enchanting atmosphere.

The main thing to do in the Kyoto Gardens is to walk along the winding path and immerse yourself in the serene, peaceful gardens. The entire area is extremely well manicured and features traditional stone lanterns and a small waterfall. You’re not allowed on the grass, so once you’ve finished walking a lap of the small gardens, you can spend time sitting on one for the garden’ benches.

You’ll also find diverse wildlife to enjoy here. From Peacocks, to Koi Fish, to Herons, this is a great place for wildlife enthusiasts. For the photographers out there, I’d highly recommend coming early in the morning as the park does get quite busy. It’s very small and can be hard to get photos without lots of people around.

The Kyoto Gardens are a popular destination, especially on weekends and during the warmer months. To avoid the crowds, consider visiting early in the morning or later in the afternoon. Weekdays are generally quieter, making for a more peaceful experience. The Kyoto Gardens are surprisingly small, so if you’re looking to just walk round and take pictures, you can be done in 10 minutes! You are not allowed to stand on the grass here, so there is a path that laps the entire Kyoto Gardens

The Kyoto Gardens are open daily from 7:30 am until 30 minutes before dusk and entry is free!

Once you’ve finished in Kyoto Gardens, be sure to spend time exploring other areas in Holland Park. Holland Park itself is one of London’s most charming green spaces, offering beautiful woodland trails, a large children’s playground, and a stunning orangery. I have added a map of Holland Park (below) so you can plan your time there. There are two children’s parks; one for toddlers and one for older children – I used to LOVE going to the playground here as a kid! There are also a number of woodland trails to enjoy walks and run on. I love coming here to escape the noise of city life.

Holland Park is also home to other pretty, and unique, gardens that are worth checking out. My other favourite one is the Dutch Gardens (pictured below) which has hundreds of colourful flowers when in bloom. Be sure to visit during the spring and summer months to take full advantage of these gardens, when the flowers are out. You’ll find this garden is lined with a number of beaches to sit on and enjoy the surrounding gardens.

Additionally, the park is home to the Holland Park Opera. This has events on throughout the year, with a particular focus on their three-month summer festival. Check out the Holland Park Opera site for what’s on and tickets.
Just a short walk from the park, you can find the vibrant shopping and dining districts of Kensington High Street and Notting Hill. Kensington High Street offers a mix of high-end boutiques, eateries, popular retail stores and the stunning Kensington Gardens. You’ll also find the Design Museum on Kensington High Street, directly outside Holland Park.
Whilst Notting Hill is famous for its colourful houses, eclectic shops and the renowned Portobello Road Market. Whether you’re in the mood for some retail therapy, a delicious meal, or simply exploring more of London’s charming neighbourhoods, there’s plenty to see and do nearby.
The post A Day Out at Kyoto Gardens London appeared first on Char's Footsteps.
]]>The post Best Markets in London appeared first on Char's Footsteps.
]]>Borough Market, one of London’s oldest and most renowned food markets, is a paradise for food lovers. Located near London Bridge, it boasts an impressive array of fresh produce, artisanal goods, and international street food. The perfect place for tasting gourmet cheese, freshly baked bread, delectable pastries and street-food type foods. The atmosphere is lively, with a mix of locals and tourists enjoying the high-quality offerings. Borough Market is not just a place to shop; it’s an experience that captures the essence of London’s culinary scene.

There are too many great stalls to recommend, but some of my favourite are; Borough Olives, the MANY cheese stalls, Butter Nut of London, Humble Crumble, the Black Pig and Gastronomica. For more sit-down options, I love Bao, Kolae, Mei Mei, Arabica and Tapas Brindisa. There are honestly so many great places here so be sure to allocate a few hours to explore. As you might expect, it does get very crowded here, particularly on weekends. For more information on Borough Market, check out their official site.

Location & Nearest Tube: South-East London. London Bridge Underground
Opening Hours: Tuesday – Sunday

Maltby Street Market, nestled in Bermondsey, South London, is a hidden gem known for its artisanal food and vibrant atmosphere. Open on weekends, this market is smaller than some of London’s more famous markets but packs a punch with its high-quality offerings. There are many fantastic gourmet street food options, freshly baked pastries and drink options from independent vendors. The market’s Ropewalk area is particularly famous for its eclectic mix of stalls, where you can find everything from cheese to handmade chocolates.
Maltby Street Market is more intimate and less touristy, so I’ve found it to be a more relaxed experience, away from the larger crowds. I would recommend going on Saturday, as that’s the only day when all traders and stalls are open.
Outside of the Maltby Street Market, you can also enjoy the Maltby Street Arches. These are little hole-in-the-wall restaurants nestled in the railway arches. With both indoor and on-market seating, this is a great place to come outside of the market’s operational hours. There are so many great places here, but I always love going to Bar Tozino.
Check out the Maltby Street Market site and Maltby Street Arches for more information.
Location & Nearest Tube: South-East London. London Bridge Underground or Bermondsey Underground.
Opening Hours: Saturday & Sunday
Brixton Village Market is a lively, indoor market in the heart of Brixton, South London. Open every day, this market is famous for its eclectic mix of global cuisine, trendy boutiques, and artistic flair. Visitors can enjoy a diverse range of foods, from traditional Caribbean dishes to innovative fusion cuisine. The market’s charm lies in its community feel, with local artisans and small business owners offering unique products and services. Brixton Village is a cultural melting pot, perfect for those seeking an authentic and vibrant London experience. There are lots of great places here but i’ve always enjoyed drinks at Kraft Brixton, for craft beers, and Pergola Brixton for cocktails in the sun!
Over the road from Brixton Village Market is Pop Brixton, a place definitely worth checking out, if you’re in the area. Pop Brixton is made up from repurposed shipping containers, housing a variety of independent businesses including street food vendors, boutique shops, and creative workspaces, offering a dynamic mix of cultural events, dining, and shopping experiences.
Location & Nearest Tube: South London. Brixton Underground
Opening Hours: Daily, with differing hours.
Leadenhall Market is situated in the heart of London’s Financial District, locally known as ‘the City of London’. This beautiful Victorian market is one of the oldest markets in London, opening in 1445!! This area is a popular destination for professionals working nearby. The market’s stunning architecture, with its ornate roof and cobbled floors, provides a picturesque setting for shopping and dining.

Leadenhall offers a range of high-end shops, pubs and eateries, making it an ideal spot for lunch breaks and after-work drinks. I have always loved the Bedales Wine Bar here and the cheese & wine bar ‘Cheese’. Leadenhall Market is also famous for featuring in several tv series and films, including Harry Potter!

Location & Nearest Tube: East-Central London. Monument, Bank or Liverpool Street Underground
Opening Hours: Daily – best enjoyed in the afternoon/evenings.
Broadway Market, located in the heart of Hackney, is a bustling weekend market that attracts a more arty crowd. Known for its artisanal food stalls, vintage clothing and unique crafts, it’s a great place to explore local talent, arts and creativity. The market’s laid-back vibe and diverse offerings, from gourmet street food to handmade jewellery, make it a favourite among East Londoners. Visitors can enjoy live music, street performances, and a vibrant community atmosphere, making Broadway Market a perfect weekend destination.
Other than the weekend market, Broadway Market is a street home to a number of bars, restaurants, shops, cafes, and more! You can enjoy this street any day of the week. London Fields park is located adjacent to Broadway Market and is a lovely place to visit. I often get food from the market to take to the park.
If you are planning a trip to Broadway Market, it’s worth checking out the Regent’s Canal Walk too! This 9-mile (14km) footpath goes across London, from Paddington area to Limehouse Basin and is one of my favourite walks in London. It’s easily accessibly from Broadway Market, and if you’re short on time, you can take it to Kings Cross and see some of the markets there!
Location & Nearest Tube: East London – London Fields Overground, Hoxton Station
Opening Hours: Saturday & Sunday
As the name would suggest, Canopy Market can be found under the famous Victorian steel and glass canopy in Kings Cross. This lively weekend market is primarily filled with street foods, fresh produce and a few handmade goods. You’ll be able to buy a range of food to eat from the various international street food stalls. In addition, there were a few great stalls selling high quality cured meats, cheeses, artisan breads and oils. I liked how the vibe here was lively but much quieter than other markets, meaning you could walk round more freely and spend more time at each stall.

Canopy Market also have a drinks section where you’ll find a few pop-up bars with seating. There was a mix of craft beers, cocktails bars and two more general bars. I loved the vibe around here and definitely recommend coming for some street food and pints over a weekend afternoon!

If you have time on a sunny weekend, I highly recommend going to this/Lower Stable Street Market and then doing a section of the Regent’s Canal Walk until Broadway Market. The markets each have their own unique vibe and the canal walk is beautiful in the sun. As always, check out the Canopy Market site for more information on events and openings.
Location and nearest tube station: Kings Cross – Kings Cross St Pancras
Opening times: Friday 12-8pm, Saturday-Sunday 11am-6pm
Lower Stable Street Market is also located in King’s Cross and is round the corner from Canopy Market. It’s a smaller market with a big focus on independent traders. You’ll find everything from vintage clothing, handmade crafts, hewellery books, records and an array of food stalls. The emphasis on supporting local businesses means you’ll also find lots of high quality, small-batch produce. It’s a great one to go looking for unique gifts – just be wary that it does get quite crowded! As with Canopy Market, there’s lots of great things to do in the area including the free, popup outdoor cinema – now hosted by Everyman Cinema. Check out their site for more information on upcoming events.

Location & Nearest Tube: Coal Drops Yard, Kings Cross – Kings Cross St Pancras
Opening Hours: Thursday/Friday 12-7pm, Saturday, Sunday & Bank Holdiays 11am-6pm
Old Spitalfields Market, near Liverpool Street Station, is a historic market offering a mix of contemporary and traditional stalls. Open seven days a week, it features a variety of vendors selling fashion, antiques and gourmet food. The market’s unique blend of the old and new attracts a diverse crowd, from trendy shoppers to history enthusiasts. Regular events, including art installations and pop-up shops, add to the market’s appeal. Old Spitalfields is a must-visit for anyone looking to experience the rich cultural tapestry of East London.

If you’re planning to visit Old Spitalfields Market, head down the road to another popular food market Truman Brewery Markets. Open on weekends, the market has a fantastic array of food options, showcasing the diversity of London. From here, head to Brick Lane for colourful street art, graffiti, vintage clothing stores, restaurants and fun bars! Check out the Truman Brewery site and Old Spitalfields Market site for more information.

Location & Nearest Tube: Central London – Liverpool Street Underground and Shoreditch High Street Overground
Opening Hours: Saturday & Sunday
Camden Market is one of London’s most iconic markets, with over 1,000 stalls and shops to explore! Open daily, Camden Market consists of several adjoining markets, including Camden Lock Market and Stables Market. You can find everything from vintage and alternative clothing, handmade jewellery, unique crafts, quirky gifts and a diverse street food scene. Camden Market’s eclectic atmosphere, live music, and street performances create an energetic and bohemian vibe. It’s a hub of creativity and individuality, perfect for those looking to explore London’s alternative culture. Check out the Camden Market site to see what’s going on.
Location & Nearest Tube: North London – Mornington Crescent Underground and Camden Road Overground
Opening Hours: Daily – but best at weekends!
Columbia Road Flower Market, open every Sunday, is a floral paradise in East London. The street comes alive with vibrant colours and scents as flower vendors display their beautiful blooms. In addition to flowers, the market features independent shops, galleries, and cafes. You can buy everything from fresh flowers and plants to gardening accessories and handmade crafts.
This is my go-to for plants, as you’ll be able to so many species at really reasonable prices. It’s a lovely place to spend a Sunday morning, attracting both locals and tourists. This is also a great place to come in the lead up to Christmas for Christmas trees and other festive plants. I would recommend coming early on Sunday if you’re looking to buy plants, as many stalls are sold out, or low in stock, by the afternoon. Check out their site for more info.
Location & Nearest Tube: East London – Old Street Underground and Hoxton Overground
Opening Hours: Sunday – go early in the morning!
Portobello Road Market in Notting Hill is one of the world’s largest and most famous street markets. Open daily, with the main market day on Saturday, it offers a wide range of goods, from antiques and collectibles to fashion and fresh produce. The market is divided into sections, each with its own unique offerings, including the famous antiques arcade. You can enjoy browsing through vintage treasures, sampling delicious street food, and soaking up the lively atmosphere. After visiting Portobello Road Market, you should walk around Notting Hill to marvel at the pretty, colourful houses! Just be mindful of the local residents who call these streets home …a number of them are choosing to paint their houses black to deter the huge number of tourists flocking their streets daily!
Location & Nearest Tube: West London – Notting Hill Gate Underground or Ladbroke Grove Underground
Opening Hours: Daily – Saturday is the main market day
Broadway Tooting Market, nestled in South London, is a hidden gem known for its multicultural vibe. Open seven days a week, this market offers everything from fresh produce to unique crafts. What sets Tooting Broadway apart is its eclectic mix of street food stalls, reflecting the area’s diverse community. You can try food from around the world, including Caribbean, South Asian, and African cuisines. The market also features vintage clothing shops, quirky boutiques and a vibrant atmosphere that makes it a favourite among locals. For more information, check out the Broadway Tooting Market site.
Location & Nearest Tube: South London. Tooting Broadway Underground
Opening Hours: Daily, with differing hours.
London is home to countless other markets, each with its own unique charm and offerings. In addition to the well-known markets, there are many smaller, local farmer markets worth checking out:
The post Best Markets in London appeared first on Char's Footsteps.
]]>The post Harry Potter Things to Do in London appeared first on Char's Footsteps.
]]>One of the best ways to experience Harry Potter’s world is by visiting the actual locations where key scenes were filmed. The bonus of visiting these locations, is that you can enjoy them all for free! Here are some must-see spots:
This historic market in the City of London served as the entrance to the Leaky Cauldron in Harry Potter and the Philosopher’s Stone. Its ornate architecture and cobbled floors create a magical atmosphere perfect for fans. The square is covered and beautifully decorated with vibrant colours. The main thing to do at Leadenhall Market is eat and drink at one of the restaurants or pubs. It does get quite crowded, particularly during the weekday evenings! You’ll often find big walking tour groups here too nowadays.

No Harry Potter pilgrimage is complete without a visit to the iconic King’s Cross Station. Head to the famous Platform 9¾, where you can snap a photo with the trolley disappearing into the wall. There’s also an actual Harry Potter merchandise shop there too!
If you want to take this experience to the next level, visit the station on 1st September. Known as ‘Back to Hogwarts Day’, on September 1st Kings Cross Station actually announce a train to Hogsmeade! It shows up on the departures board at 11am, as the Hogwarts Express departing from platform 9 ¾. This is followed by a rendition of the Harry Potter theme tune. Because this has now attracted so many fans, last year they did this from 1st-3rd September, to help deal with the crowds.
Featured in Harry Potter and the Half-Blood Prince, the Millennium Bridge is a modern icon of London that was dramatically destroyed by Death Eaters in the film. Walk across it to get a sense of the scale and enjoy stunning views of the Thames. Whilst on the Millennium Bridge, you’ll be treated to great views of St. Paul’s Cathedral, peering between buildings. And on the other side, Southbank, check out the Shakespeare’s Globe and Tate Modern whist you’re there.

Located on the Strand, this building was used as the exterior of Gringotts Wizarding Bank. You won’t be able to access the interior of Australia House, but the impressive exterior is definitely worth a visit.
A popular tourist spot in London anyway, Piccadilly Circus was shot during Harry Potter and the Deathly Hallows – Part 1. Take photos of the illuminated billboards and the famous Shaftesbury Memorial Fountain. Outside of Harry Potter, this area is worth visiting anyway, with its vibrant mix of entertainment, shopping, theatres, eateries and bars.
Beyond the filming locations, there are several other Harry Potter-themed activities and attractions to explore in London.
Located just outside London in Watford, this tour is a must-visit for any fan. You can explore authentic sets, see original props and costumes and learn about the special effects and behind-the-scenes secrets that brought the series to life! Highlights include the Great Hall, Diagon Alley and the Forbidden Forest but the whole experience was magical. Well, maybe except for the butter beers which were gross!
The House of MinaLima is a charming gallery and shop in Soho, that showcases the graphic art from the Harry Potter films. Created by designers Miraphora Mina and Eduardo Lima, it includes everything from posters and prints to books and stationery.
Experience the award-winning Harry Potter and the Cursed Child play at the Palace Theatre. The story continues where the books left off, following Harry Potter’s son, Albus, on his own adventure. Be sure to book tickets in advance though, as the show is very popular. Check out the official site for tickets and more information.

For something a little different, grab a drink at The Cauldron. Located in Dalston, this magical-themed bar lets you mix your own potions and enjoy unique cocktails. It’s an immersive experience where you can dress up in robes wands, and use a variety of magical ingredients to create your drinks. And as the name suggests, drinks are often mixed in cauldrons.
Several companies offer Harry Potter-themed walking tours of London, guiding you to various filming locations and spots that inspired J.K. Rowling. These tours often include fun trivia and behind-the-scenes stories, making them a great way to see the city. One of the most popular tours is the Tour for Muggles, but search around for what works best for you.
Known for its numerous bookshops, Charing Cross Road and the nearby Cecil Court are said to have inspired Diagon Alley. Although, I’ve heard a number of different places that were supposedly the inspiration behind Diagon Alley, so i’m not 100% sure what to believe. Nevertheless, it’s a very cute street that is home to a number of rare book shops. There are also a few fun bars and restaurants nearby, in Soho, if you want to extend your visit here.

London offers a range of experiences for Harry Potter fans, from iconic filming locations to immersive attractions and themed activities! To avoid any disappointment, I strong advise to plan your trip ahead of time. London is a big place, so map out the places you want to visit, to save traipsing around town. Also some of these places require tickets, so be sure to book!
The post Harry Potter Things to Do in London appeared first on Char's Footsteps.
]]>The post How to Travel Between London Heathrow Airport & London Gatwick Airport appeared first on Char's Footsteps.
]]>Duration: 1 hour 15 minutes to 1 hour 30 minutes
Cost: Approximately £25-£30
National Express coaches run directly between London Heathrow Airport and London Gatwick Airport. Coaches depart from the central bus station at Heathrow and stop at all terminals at Gatwick. Tickets can be purchased online, at the airport, or on the bus (if space is available). This is a comfortable option with plenty of space for luggage and also the cheapest option. However, factor in traffic and check if you’ll be travelling during peak / rush hour. This journey can take a while by coach if you’re stuck in traffic. Check their official site to buy tickets and get more information.
Duration: 1 hour 30 minutes to 2 hours
Cost: Approximately £30-£40
Getting the train between Heathrow and Gatwick is a little complex, but could be a good option if you’re travelling during peak times. You will need to take the Heathrow Express or TfL Rail from Heathrow to London Paddington. Once at London Paddington, you’ll need to get the London Underground (Circle or Hammersmith & City line) to London Victoria. The London Underground line you’ll need is Circle (yellow line) or Hammersmith & City Line (pink line). Once you arrive at London Victoria Underground, you will need to follow signs to the main train station, located directly next to it. From here, catch the Gatwick Express (quickest, most direct option but more expensive) or Southern Rail to Gatwick (longer as it stops at more stations but cheaper). This option might be harder to navigate, especially if you’re unfamiliar with the city, but would be quicker during rush hour.
Duration: 45 minutes to 1 hour 15 minutes (depending on traffic)
Cost: Approximately £100-£150
Taxis and private transfers are the most direct but also the most expensive option. Licensed black cabs and private hire vehicles can be booked in advance. This option is ideal for those with a lot of luggage or those travelling in a group, where costs can be split.
Duration: 45 minutes to 1 hour 15 minutes (depending on traffic)
Cost: Varies
Probably the least desirable, given logistics, but there’s an option to rent a car. Both airports have numerous car hire companies to choose from. This will give you the flexibility to travel at your own pace and provides convenience if you have a lot of luggage. However, you’ll need to factor in additional costs for fuel, insurance and possible congestion charges if driving through central London.
Duration: 45 minutes to 1 hour 15 minutes (depending on traffic)
Cost: Approximately £60-£80
Ride-sharing services, like Uber or Bolt, can be a convenient middle-ground between public transport and taxis. You can book a ride via the app and have the flexibility of door-to-door service without the high cost of a taxi. The downside of this is these ride-sharing services are typically not able to pick you up directly from arrivals at the airports, as this is reserved for black cabs and private taxi companies.
Allow Extra Time: Traffic can be unpredictable, especially during peak hours, so allow as much time as ppossible for your journey.
Check Flight Connections: Ensure you have enough time between flights when booking connections between Heathrow and Gatwick.
Luggage Handling: If you have a lot of luggage, consider the comfort and convenience of your chosen mode of transport. For example, the option to go via two trains and the London Underground would be a difficult option if you had lots of heavy bags.
Advance Booking: For coaches, taxis, and private transfers, booking in advance can save time and sometimes money. National Express Coaches often fill up so don’t risk getting a ticket on the day and book ahead of time.
I hope this guide helps you choose the best way to travel between London Heathrow and Gatwick Airport, ensuring a smooth and stress-free journey. I’ve only had to do this journey once and I opted for the National Express Coach. This offered a cheaper option and was hassle free.
Related Blogs: What To Do in Greenwich, London
The post How to Travel Between London Heathrow Airport & London Gatwick Airport appeared first on Char's Footsteps.
]]>