Skip to content

Releases: worldoptimizer/HypeDataMagic

Hype Data Magic v1.4.1

26 Feb 16:14
c002efd
Compare
Choose a tag to compare
  • Removed a leftover console.log from debugging

Hype Data Magic v1.4.0

31 Jan 15:17
d25be48
Compare
Choose a tag to compare
  • Fixed bug not using branches from inner elements data-magic-key definitions
  • Fixed a retrieval bug by adding baseElement to findAttribute limiting the search to an element
  • Fixed legacy code usage of substr in favor of slice
  • Added HypeDataMagic.resolveVariables allowing to resolve variables in objects and strings (auto detected wrapper)
  • Added HypeDataMagic.constructVariablesContext allowing to construct a variables context for resolving variables
  • Added new default autoVariables allowing to resolve variables automatically before handlers are called
  • Added legacy support for handling variables in text and image handlers
  • Switched display from Data Magic to key content as suggested by @markhunte

Hype Data Magic v1.3.9

22 Jun 15:07
1bef8d4
Compare
Choose a tag to compare
  • Refactored findMagicAttribute, exposed it as findAttribute,
  • Added the ability to traverse data-magic-braches further with +,
  • HypeDataMagic.setData now offers to set a key on a object

Hype Data Magic v1.3.8

22 Jun 15:00
9462c7e
Compare
Choose a tag to compare

Hype Data Magic v1.3.7

06 Jun 22:46
3f1e23f
Compare
Choose a tag to compare
  • Reverted the observer in IDE portion (only affects preview in IDE, fixing quirks)

Hype Data Magic 1.3.6

26 Apr 22:12
8b0a36b
Compare
Choose a tag to compare
  • Added dataset variables and the handler 'dataset',
  • Added data-magic-sets to enable comma separated queries for foreign datasets, parent(s) and closest()
  • Added default refreshOnCustomData and reactivity to custom data,
  • Exposed HypeDataMagic.enableReactiveObject (low-level) allowing to create you own reactive objects,
  • Exposed HypeDataMagic.disableReactiveObject (low-level) to revert a object back to normal,
  • Added HypeDataMagic.debounceByRequestFrame (helper) to create a function version that is debounced by rAF,
  • Added HypeDataMagic.createSequence (helper) as a function factory for sequences progress on demand,
  • Change default on all forceRedraws (Safari-Bugfix) to false, you can enable them if needed for IDE or exports only,
  • Added HypeDataMagic.setDefault('highlightDataMagic', true); to allow inspecting regions managed by Data Magic,
  • Added inline syntax for data-magic-key as source:key (this overrides any branch lookups),
  • Added inline syntax for variables as source:key, add %{} and (sparkles-emoji){} options for variable names,
  • Refactored observer in IDE portion, added plenty of comments to code

Hype Data Magic 1.3.5

20 Apr 15:37
d76904c
Compare
Choose a tag to compare
  • Function in data constructs are now resolved, new handler 'variables' resolves to customData,
  • exposed default 'handler', to change use HypeDataMagic.setDefault('handler', 'text'),
  • new default 'customData' is used to init hypeDocument.customData (in addition to old 'customDataForPreview'),
  • new default 'allowDataFunctions' is set to true and allows for functions in data,
  • new default 'allowVariables' is set to true and allows for variables in default handlers image and text,
  • exposed low-level functions resolveVariablesInString, resolveVariablesInObject and cloneObject

Hype Data Magic 1.3.4

16 Nov 12:56
251da90
Compare
Choose a tag to compare

Ending handler with () forwards them to hypeDocument.functions, exposed resolveObjectByKey and added and exposed resolveKeyToArray (keys can now be arrays), fixed append/prepend bug

Hype Data Magic 1.3.3

09 Sep 19:47
6505b68
Compare
Choose a tag to compare

Added forceRedraw (bugfix), HypeDataMagic.refresh and auto refresh (on HypeDataMagic.setData)

Hype Data Magic 1.3.2

16 Jun 22:26
e9f5438
Compare
Choose a tag to compare

Fixed event data bug and unloads, allow event returns