@pie-element/passage 2.21.6 → 2.21.7-beta.0

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.
package/module/element.js CHANGED
@@ -1,4 +1,4 @@
1
- import {_dll_react, _dll_prop_types, _dll_classnames, _dll_react_dom, _dll_pie_lib__pie_toolbox_math_rendering_accessible} from "../../../@pie-lib/pie-toolbox-math-rendering-module@1.24.3/module/index.js";
1
+ import {_dll_react, _dll_prop_types, _dll_classnames, _dll_react_dom, _dll_pie_lib__pie_toolbox_math_rendering_accessible} from "../../../@pie-lib/pie-toolbox-math-rendering-module@1.26.1/module/index.js";
2
2
  import {_dll_pie_lib__pie_toolbox_render_ui} from "../../../@pie-lib/pie-toolbox-module@4.24.3/module/index.js";
3
3
  var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
4
4
  function getDefaultExportFromCjs(x) {
@@ -8581,7 +8581,7 @@ const classNames = _dll_classnames;
8581
8581
  const {Collapsible: Collapsible} = _dll_pie_lib__pie_toolbox_render_ui;
8582
8582
  const {color: color} = _dll_pie_lib__pie_toolbox_render_ui;
8583
8583
  const {PreviewPrompt: PreviewPrompt} = _dll_pie_lib__pie_toolbox_render_ui;
8584
- const _jsxFileName = "/home/circleci/repo/packages/passage/src/stimulus-tabs.jsx";
8584
+ const _jsxFileName = "/Users/andreeapescar/WORK/pie/pie-elements/packages/passage/src/stimulus-tabs.jsx";
8585
8585
  function _optionalChain(ops) {
8586
8586
  let lastAccessLHS = undefined;
8587
8587
  let value = ops[0];
package/module/index.html CHANGED
@@ -2,7 +2,7 @@
2
2
  <!doctype html>
3
3
  <html>
4
4
  <head>
5
- <title>@pie-element/passage@2.21.5</title>
5
+ <title>@pie-element/passage@2.21.7</title>
6
6
  <script
7
7
  type="module"
8
8
  src="https://cdn.jsdelivr.net/npm/@pslb/demo-el@^1.0.0/dist/demo-el/demo-el.esm.js"></script>
@@ -1,10 +1,10 @@
1
1
  {
2
2
  "name": "@pie-element/passage",
3
- "version": "2.21.5",
3
+ "version": "2.21.7",
4
4
  "modules": [
5
5
  {
6
6
  "name": "@pie-lib/pie-toolbox-math-rendering-module",
7
- "version": "1.24.3"
7
+ "version": "1.26.1"
8
8
  },
9
9
  {
10
10
  "name": "@pie-lib/pie-toolbox-module",
package/module/print.html CHANGED
@@ -2,7 +2,7 @@
2
2
  <!doctype html>
3
3
  <html>
4
4
  <head>
5
- <title>@pie-element/passage@2.21.5</title>
5
+ <title>@pie-element/passage@2.21.7</title>
6
6
  <link
7
7
  href="https://fonts.googleapis.com/css?family=Roboto&display=swap"
8
8
  rel="stylesheet"
package/module/print.js CHANGED
@@ -1,4 +1,4 @@
1
- import {_dll_react, _dll_prop_types, _dll_classnames, _dll_react_dom, _dll_lodash, _dll_debug} from "../../../@pie-lib/pie-toolbox-math-rendering-module@1.24.3/module/index.js";
1
+ import {_dll_react, _dll_prop_types, _dll_classnames, _dll_react_dom, _dll_lodash, _dll_debug} from "../../../@pie-lib/pie-toolbox-math-rendering-module@1.26.1/module/index.js";
2
2
  import {_dll_pie_lib__pie_toolbox_render_ui} from "../../../@pie-lib/pie-toolbox-module@4.24.3/module/index.js";
3
3
  var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
4
4
  function getDefaultExportFromCjs(x) {
@@ -8544,7 +8544,7 @@ const classNames = _dll_classnames;
8544
8544
  const {Collapsible: Collapsible} = _dll_pie_lib__pie_toolbox_render_ui;
8545
8545
  const {color: color} = _dll_pie_lib__pie_toolbox_render_ui;
8546
8546
  const {PreviewPrompt: PreviewPrompt} = _dll_pie_lib__pie_toolbox_render_ui;
8547
- const _jsxFileName = "/home/circleci/repo/packages/passage/src/stimulus-tabs.jsx";
8547
+ const _jsxFileName = "/Users/andreeapescar/WORK/pie/pie-elements/packages/passage/src/stimulus-tabs.jsx";
8548
8548
  function _optionalChain(ops) {
8549
8549
  let lastAccessLHS = undefined;
8550
8550
  let value = ops[0];
@@ -8846,14 +8846,16 @@ const debug = _dll_debug;
8846
8846
  const log = debug('pie-element:passage:print');
8847
8847
  const preparePrintPassage = (model, opts) => {
8848
8848
  const isInstructor = opts.role === 'instructor';
8849
+ const teacherInstructionsEnabled = model.teacherInstructionsEnabled || model.teacherInstructionsEnabled === undefined || model.teacherInstructionsEnabled === null;
8850
+ const textEnabled = model.textEnabled || model.textEnabled === undefined || model.textEnabled === null;
8849
8851
  return model.passages.map((passage, index) => ({
8850
8852
  id: index,
8851
- teacherInstructions: model.teacherInstructionsEnabled ? isInstructor && passage.teacherInstructions || '' : '',
8853
+ teacherInstructions: teacherInstructionsEnabled ? isInstructor && passage.teacherInstructions || '' : '',
8852
8854
  label: passage.title || `Passage ${index + 1}`,
8853
8855
  title: model.titleEnabled ? passage.title || '' : '',
8854
8856
  author: model.authorEnabled ? passage.author || '' : '',
8855
8857
  subtitle: model.subtitleEnabled ? passage.subtitle || '' : '',
8856
- text: model.textEnabled ? passage.text || '' : ''
8858
+ text: textEnabled ? passage.text || '' : ''
8857
8859
  }));
8858
8860
  };
8859
8861
  class PassagePrint extends HTMLElement {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pie-element/passage",
3
- "version": "2.21.6",
3
+ "version": "2.21.7-beta.0",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -17,7 +17,7 @@
17
17
  "react": "^16.8.1",
18
18
  "react-dom": "^16.8.1"
19
19
  },
20
- "gitHead": "174c154a18fea883421348f56071c6cc590124be",
20
+ "gitHead": "0e14ff981bcdc8a89a0e58484026496701bfdbc3",
21
21
  "scripts": {
22
22
  "postpublish": "../../scripts/postpublish"
23
23
  },
package/LICENSE.md DELETED
@@ -1,5 +0,0 @@
1
- Copyright 2019 CoreSpring Inc
2
-
3
- Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies.
4
-
5
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.