@explorable-viz/fluid 0.9.3 → 0.9.5

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.5",
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": {
@@ -25,7 +25,7 @@
25
25
  "script/util/clean.sh",
26
26
  "script/util/lisp-case.sh",
27
27
  "website/article",
28
- "script/install-article.sh",
28
+ "script/install-website.sh",
29
29
  "script/util/serve.sh"
30
30
  ],
31
31
  "scripts": {
@@ -84,7 +84,7 @@
84
84
  "bin": {
85
85
  "fluid": "./dist/fluid/shared/fluid.mjs",
86
86
  "test-website": "./dist/fluid/shared/website-test.js",
87
- "install-article": "./script/install-article.sh",
87
+ "install-website": "./script/install-website.sh",
88
88
  "bundle-website": "./script/bundle-website.sh"
89
89
  },
90
90
  "packageManager": "yarn@1.22.22+sha512.a6b2f7906b721bba3d67d4aff083df04dad64c399707841b7acf00f6b133b7ac24255f2652fa22ae3534329dc6180534e98d17432037ff6fd140556e2bb3137e"
@@ -0,0 +1,25 @@
1
+ #!/usr/bin/env bash
2
+ set -xeu
3
+
4
+ # Run from root of repo
5
+
6
+ WEBSITE=$1
7
+ NPM_ROOT=node_modules/@explorable-viz/fluid
8
+
9
+ if [ -e "website/$WEBSITE" ]; then
10
+ echo "Error: website/$WEBSITE already exists" >&2
11
+ exit 1
12
+ fi
13
+
14
+ if [ -e "website/$WEBSITE" ]; then
15
+ echo "Error: $NPM_ROOT/website/$WEBSITE does not exist" >&2
16
+ exit 1
17
+ fi
18
+
19
+ mkdir -p website/$WEBSITE
20
+ cp -r $NPM_ROOT/website/{css,font,shared} website
21
+ cp -r $NPM_ROOT/website/$1 website
22
+
23
+ ln -s website/css website/$WEBSITE/css
24
+ ln -s website/font website/$WEBSITE/font
25
+ 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
+ }
@@ -1,10 +0,0 @@
1
- #!/usr/bin/env bash
2
- set -xeu
3
-
4
- rm -rf website
5
- mkdir -p website
6
- cp -r node_modules/@explorable-viz/fluid/website/{article,css,font,shared} website
7
-
8
- ln -s ../css website/article/css
9
- ln -s ../font website/article/font
10
- ln -s ../shared website/article/shared