@pie-element/passage 2.21.6-next.1 → 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/CHANGELOG.md +22 -0
- package/configure/CHANGELOG.md +22 -0
- package/configure/lib/defaults.js +1 -1
- package/configure/lib/defaults.js.map +1 -1
- package/configure/lib/design.js +49 -39
- package/configure/lib/design.js.map +1 -1
- package/configure/package.json +1 -1
- package/controller/CHANGELOG.md +11 -0
- package/controller/lib/defaults.js +3 -3
- package/controller/lib/defaults.js.map +1 -1
- package/controller/lib/index.js +26 -5
- package/controller/lib/index.js.map +1 -1
- package/controller/package.json +5 -2
- package/lib/print.js +4 -2
- package/lib/print.js.map +1 -1
- package/module/configure.js +56 -55
- package/module/controller.js +1000 -7
- package/module/element.js +2 -2
- package/module/index.html +1 -1
- package/module/manifest.json +2 -2
- package/module/print.html +1 -1
- package/module/print.js +6 -4
- package/package.json +2 -2
- package/LICENSE.md +0 -5
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.
|
|
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 = "/
|
|
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
package/module/manifest.json
CHANGED
package/module/print.html
CHANGED
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.
|
|
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 = "/
|
|
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:
|
|
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:
|
|
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.
|
|
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": "
|
|
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.
|