PluginProbe
Blockenberg — 600+ Advanced Gutenberg Blocks & AI Agent for WordPress Block Editor / 2.0.14
Blockenberg — 600+ Advanced Gutenberg Blocks & AI Agent for WordPress Block Editor v2.0.14
2.0.14 2.0.13 2.0.12 2.0.11 2.0.10 2.0.9 trunk 2.0.2 2.0.3 2.0.4 2.0.5 2.0.6 2.0.7 2.0.8
← All changes | blocks/week-schedule/index.js +14 -3 2.0.11 → 2.0.14 View file →
@@ -12,11 +12,22 @@
12 12 var SelectControl = wp.components.SelectControl;
13 13 var TextControl = wp.components.TextControl;
14 14 var Button = wp.components.Button;
15 15
16 - var _tc, _tvf;
17 - Object.defineProperty(window, '_tc', { get: function () { return _tc || (_tc = window.bkbgTypographyControl); } });
18 - Object.defineProperty(window, '_tvf', { get: function () { return _tvf || (_tvf = window.bkbgTypoCssVars); } });
16 + // Resolve the shared components lazily without defining globals for each block.
17 + function _tc(label, key, attrs, setA) {
18 + var Control = window.bkbgTypographyControl;
19 + return Control ? el(Control, {
20 + label: label,
21 + value: attrs[key] || {},
22 + onChange: function (value) { var update = {}; update[key] = value; setA(update); }
23 + }) : null;
24 + }
25 + function _tvf(vars, key, attrs, prefix) {
26 + var cssVars = window.bkbgTypoCssVars;
27 + if (cssVars) Object.assign(vars, cssVars(attrs[key] || {}, prefix));
28 + return vars;
29 + }
19 30 function getTypoControl(label, key, attrs, setA) { return _tc(label, key, attrs, setA); }
20 31 function getTypoCssVars(attrs) {
21 32 var v = {};
22 33 _tvf(v, 'titleTypo', attrs, '--bkwscd-tt-');