@explorable-viz/fluid 0.7.67 → 0.7.69

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1 @@
1
+ let x = 1;
@@ -28444,7 +28444,7 @@ var parseImports = /* @__PURE__ */ $Parser(
28444
28444
  );
28445
28445
  var evaluate = (v) => {
28446
28446
  const $0 = v._1.fileName;
28447
- const fluidSrcPaths = ["fluid"];
28447
+ const fluidSrcPaths = ["fluid", ...v._1.library ? ["node_modules/@explorable-viz/fluid"] : []];
28448
28448
  return _bind(loadProgCxt3(fluidSrcPaths)(v._1.imports)(v._1.datasets))((progCxt) => _bind(prepConfig3(fluidSrcPaths)($0)(progCxt))((v1) => _bind(graphEval2(v1.gconfig)(v1.e))((v2) => _pure($Val(
28449
28449
  void 0,
28450
28450
  functorBaseVal.map((v$1) => {
@@ -28462,22 +28462,19 @@ var copyOptions = {
28462
28462
  encoding: Nothing,
28463
28463
  shell: Nothing
28464
28464
  };
28465
- var publish = (website) => ($$package) => {
28466
- const cmd$p = "/script/bundle-website.sh -w " + website;
28467
- return exec2($$package ? "./node_modules/@explorable-viz/fluid" + cmd$p + " -r true" : "." + cmd$p)(copyOptions)((v) => {
28468
- if (v.error.tag === "Just") {
28469
- return log(showErrorImpl(v.error._1));
28470
- }
28471
- if (v.error.tag === "Nothing") {
28472
- const $0 = toString2(monadEffect)(ASCII)(v.stdout);
28473
- return () => {
28474
- const $1 = $0();
28475
- return log($1)();
28476
- };
28477
- }
28478
- fail();
28479
- });
28480
- };
28465
+ var publish = (website) => ($$package) => exec2($$package ? "./node_modules/@explorable-viz/fluid" : "./script/bundle-website.sh -w " + website)(copyOptions)((v) => {
28466
+ if (v.error.tag === "Just") {
28467
+ return log(showErrorImpl(v.error._1));
28468
+ }
28469
+ if (v.error.tag === "Nothing") {
28470
+ const $0 = toString2(monadEffect)(ASCII)(v.stdout);
28471
+ return () => {
28472
+ const $1 = $0();
28473
+ return log($1)();
28474
+ };
28475
+ }
28476
+ fail();
28477
+ });
28481
28478
  var dispatchCommand = (v) => {
28482
28479
  if (v.tag === "Evaluate") {
28483
28480
  return _bind(evaluate(v._1))((v1) => _liftEffect(log(intercalate4("\n")(removeDocWS(prettyVal(highlightableUnit).pretty(v1)).lines))));
@@ -28547,7 +28544,29 @@ var program = /* @__PURE__ */ (() => $Parser(
28547
28544
  $Parser(
28548
28545
  "MultP",
28549
28546
  $MultPE(
28550
- parserFunctor.map((v) => (v1) => (v2) => $Program({ imports: v, datasets: v1, fileName: v2 }))(parserFunctor.map(fromFoldable29)(parseImports)),
28547
+ $Parser(
28548
+ "MultP",
28549
+ $MultPE(
28550
+ parserFunctor.map((v) => (v1) => (v2) => (v3) => $Program({ library: v, imports: v1, datasets: v2, fileName: v3 }))($Parser(
28551
+ "AltP",
28552
+ flag$p(true)((() => {
28553
+ const $0 = help("Are you running fluid as a library?");
28554
+ const $1 = $0._2._1.tag === "Nothing" ? Nothing : $0._2._1;
28555
+ const $2 = $0._2._2.tag === "Nothing" ? Nothing : $0._2._2;
28556
+ return $Mod(
28557
+ (x) => $0._1({
28558
+ flagNames: [$OptName("OptShort", "l"), $OptName("OptLong", "library"), ...x.flagNames],
28559
+ flagActive: x.flagActive
28560
+ }),
28561
+ $DefaultProp($1.tag === "Nothing" ? Nothing : $1, $2.tag === "Nothing" ? Nothing : $2),
28562
+ (x) => $0._3(x)
28563
+ );
28564
+ })()),
28565
+ $Parser("NilP", false)
28566
+ )),
28567
+ parserFunctor.map(fromFoldable29)(parseImports)
28568
+ )
28569
+ ),
28551
28570
  parserFunctor.map(fromFoldable29)(parseDatasets)
28552
28571
  )
28553
28572
  ),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@explorable-viz/fluid",
3
- "version": "0.7.67",
3
+ "version": "0.7.69",
4
4
  "description": "Fluid is an experimental programming language which integrates a bidirectional dynamic analysis to connect 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": {
@@ -52,10 +52,11 @@ done
52
52
  echo "Processing shared js files:"
53
53
  cp -r fluid dist/$WEBSITE_LISP_CASE
54
54
 
55
- if [[ "$PREFIX" != "" ]]; then
56
- cp -r "${PREFIX_}dist/fluid/fluid" dist/$WEBSITE_LISP_CASE
57
- fi
55
+ # if [[ "$PREFIX" != "" ]]; then
56
+ # cp -r "${PREFIX_}dist/fluid/fluid" dist/$WEBSITE_LISP_CASE
57
+ # fi
58
58
  cp -r "${PREFIX_}dist/fluid/shared" dist/$WEBSITE_LISP_CASE
59
+ [ -d "website/$WEBSITE/fluid" ] && cp -r "website/$WEBSITE/fluid" dist/$WEBSITE_LISP_CASE
59
60
 
60
61
  if [[ -e "website/$SRC_PATH/test.mjs" ]]; then
61
62
  cp website/$SRC_PATH/test.mjs dist/SRC_PATH_LISP_CASE/test.mjs