Resource icon

Standard Library by Xon 1.24.11

No permission to download
  • Compatibility fix for XF2.3.0-XF2.3.4
  • Implement XF2.4's link-post javascript used to prevent crawler repeatedly following GET's with per-session tokens in them.
    Applies to;
    • Front end style/style variation/advanced cookie consent/logout
    • Admin language/style variation
  • Backport updating cloudflare/google/googlecloud ips
  • Backport latest XF user-agent definitions for robot/crawlers
  • Update Helper::repo()->aliasClass() to avoid needing to generate shim files which live in the code cache, but requires additional argument to define the base class
  • Add Basic implementation of config.php based feature flags
    In config.php
    PHP:
    $config['svFeatureFlags']['flag'] = true;

    It can then be used via
    PHP:
    if (Helper::isFeatureFlagEnabled('flag'))
    {
    ...
    }
    And in templates;
    XML:
    <xf:if is="sv_feature_flag('flag')">...</xf:if>
  • Allow radiobox type style properties to implement style variants (Used in Selectable Logos)
  • Harden installer when backporting features could cause the add-on to get caught into a silent zombie state depending on if the GUI updater is used
  • Update choices.js v11.2.3
    • Fix search input width unexpectedly collapses
  • Fix InstallerHelper::renamePhrases used to migrate phrases from one title scheme to another when the new phrase already exists would probably fail to migrate any customizations
    In practice, this would only happen on re-running the install-step or if the user manually created a new phrase
  • Fix installer for pre-XF2.3 not backporting the xf_style_property.has_variations column
  • Minor code cleanup around the use of \SV\StandardLib\Helper::repo()->aliasClass()
  • Update to choices.js v11.2.2
    • Fix opening the dropdown could cause the entire page to scroll
    • Fix non-fixed width font support when computing width for input element
  • Fix incorrect CSS when choices.js has no items selected
  • Update array_first/array_last functions to not mutate the array pointer
  • Choices.js integration
    • Fix pre-rendered choices.js widget didn't respect data-search-enabled="0" to disable search
    • Fix javascript error when parsing boolean data-* options on XF2.2
    • Fix 'required' attribute didn't work as expected
    • Workaround for widget height collapsing when no items are selected and not placeholder exists
  • Compatibility fix for Finder::fetchDeferred()
  • Like
Reactions: TAIFUN and PhineasD
  • Fix custom date-time handling parsing had a broken condition for non-safari browsers
  • Fix installer could sometimes cause errors when using aliasClass helper method
  • Fix rebuilding or updating StandardLib could cause option values to be incorrectly cached without expected types, only applies to pre-XF2.3.8
    • Only noticeable if StandardLib is updated without updating another other add-on
  • Backport array_is_list templeter function which is native in XF2.3.9+
  • Fix for custom date/time macro (svStandardLib_helper_macros::date_time_input)
    • Fix seconds would be prompted in the time input even when $showSeconds arg was false
    • Fix safari support as safari (ie any iphone browser) doesn't support seconds for the input[type=time] field
  • Like
Reactions: TAIFUN and StarArmy
  • Fix XF2.2 boolean options was not cast as bools as expected
  • Fix XF2.2 default value for float options were cast to integers instead of floats
  • Update backported templater functions array_diff/array_reverse/array_sum to match XF2.3 behavior. These return arrays, not collections depending on input.
  • Add array_first/array_lasttemplater functions
  • Adjust addo-on version string comparison so "preview" releases as less than stable releases
  • Do not patch option entity in XF2.3.8+ to support strict type checks against \XF::options() properties, as this is now natively supported
  • Backporting array_* templater function changes
    • Add array_sum templater function for pre-XF2.3.8
    • Only backport array_diff/array_reverse templater functions for older XF versions
Back
Top Bottom