@explorable-viz/fluid 0.9.3 → 0.9.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -300528,10 +300528,10 @@ var $$goto = (v) => (page2) => _bind(_liftEffect(log2("Going to " + showStringIm
300528
300528
  var getAttributeValue = (page2) => (selector2) => (attribute) => _bind(runPromiseAffE3(_unsafePageEval)(selector2)("element => element.getAttribute('" + attribute + "')")(page2))((attrValue) => _pure(attrValue));
300529
300529
  var defaultViewport = { deviceScaleFactor: 1, hasTouch: false, height: 800, isLandscape: false, isMobile: false, width: 1200 };
300530
300530
  var click = (element) => (page2) => _bind(_bind(_liftEffect(_click(element, page2)))(toAff$p(coerce)))(() => testCondition2(element)(true)("click"));
300531
- var clickToggle = (page2) => (figId) => {
300532
- const toggle = "div#" + figId + "-data-pane + div .toggle-button";
300533
- return _bind(waitFor(toggle)(page2))(() => _bind(click(toggle)(page2))(() => waitFor("div#" + figId + "-data-pane")(page2)));
300534
- };
300531
+ var clickToggle = (page2) => (idPrev) => _bind(waitFor("#grid.data-pane-hidden")(page2))(() => {
300532
+ const toggle = "div#" + idPrev + " + div .toggle-button";
300533
+ return _bind(waitFor(toggle)(page2))(() => _bind(click(toggle)(page2))(() => waitFor("#grid:not(.data-pane-hidden)")(page2)));
300534
+ });
300535
300535
  var checkTextContent = (page2) => (selector2) => (expected) => _bind(waitFor(selector2)(page2))(() => _bind(textContentValue(page2)(selector2))((text2) => _bind(testCondition2(selector2)(text2 === expected)("text == " + showStringImpl(expected)))(() => _pure())));
300536
300536
  var checkAttributeContains = (page2) => (sel) => (attr) => (expected) => _bind(getAttributeValue(page2)(sel)(attr))((found) => {
300537
300537
  const success = contains(expected)(found);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@explorable-viz/fluid",
3
- "version": "0.9.3",
3
+ "version": "0.9.4",
4
4
  "description": "A functional programming language which integrates a bidirectional dynamic analysis, connecting outputs to data sources in a fine-grained way. Fluid is implemented in PureScript and runs in the browser.",
5
5
  "main": "index.js",
6
6
  "repository": {
@@ -1,10 +1,18 @@
1
1
  #!/usr/bin/env bash
2
2
  set -xeu
3
3
 
4
- rm -rf website
5
- mkdir -p website
6
- cp -r node_modules/@explorable-viz/fluid/website/{article,css,font,shared} website
4
+ # Run from root of repo
7
5
 
8
- ln -s ../css website/article/css
9
- ln -s ../font website/article/font
10
- ln -s ../shared website/article/shared
6
+ WEBSITE=$1
7
+
8
+ if [ -e "website/$WEBSITE" ]; then
9
+ echo "Error: website/$WEBSITE already exists" >&2
10
+ exit 1
11
+ fi
12
+
13
+ mkdir -p website/$WEBSITE
14
+ cp -r node_modules/@explorable-viz/fluid/website/{css,font,shared} website
15
+
16
+ ln -s website/css website/$WEBSITE/css
17
+ ln -s website/font website/$WEBSITE/font
18
+ ln -s website/shared website/$WEBSITE/shared
@@ -0,0 +1,15 @@
1
+ function toggleDataPane(gridId) {
2
+ const grid = document.getElementById(gridId)
3
+ const hidden = grid.classList.contains('data-pane-hidden')
4
+ const dataPaneButton = document.querySelector('.data-pane-button')
5
+
6
+ if (hidden) {
7
+ grid.classList.remove('data-pane-hidden')
8
+ dataPaneButton.classList.remove('fa-eye-slash')
9
+ dataPaneButton.classList.add('fa-eye')
10
+ } else {
11
+ grid.classList.add('data-pane-hidden')
12
+ dataPaneButton.classList.remove('fa-eye')
13
+ dataPaneButton.classList.add('fa-eye-slash')
14
+ }
15
+ }