@pie-element/passage 3.5.6-next.5 → 3.5.6-next.9
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/lib/stimulus-tabs.js +8 -1
- package/lib/stimulus-tabs.js.map +1 -1
- package/module/configure.js +1 -1
- package/module/element.js +26 -19
- package/module/manifest.json +1 -1
- package/module/print.js +26 -19
- package/package.json +2 -2
package/lib/stimulus-tabs.js
CHANGED
|
@@ -44,7 +44,14 @@ var styles = function styles(theme) {
|
|
|
44
44
|
passages: {
|
|
45
45
|
flexGrow: 1,
|
|
46
46
|
backgroundColor: _renderUi.color.background(),
|
|
47
|
-
color: _renderUi.color.text()
|
|
47
|
+
color: _renderUi.color.text(),
|
|
48
|
+
'&:not(.MathJax) table': {
|
|
49
|
+
borderCollapse: 'collapse'
|
|
50
|
+
},
|
|
51
|
+
'&:not(.MathJax) table td, &:not(.MathJax) table th': {
|
|
52
|
+
padding: '.6em 1em',
|
|
53
|
+
textAlign: 'left'
|
|
54
|
+
}
|
|
48
55
|
},
|
|
49
56
|
passage: {
|
|
50
57
|
backgroundColor: _renderUi.color.background(),
|
package/lib/stimulus-tabs.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/stimulus-tabs.jsx"],"names":["styles","theme","passages","flexGrow","backgroundColor","color","background","text","passage","padding","spacing","unit","passageTitle","fontSize","passageSubtitle","passageAuthor","passageText","stickyTabs","position","top","tab","palette","common","white","black","tabButton","teacherInstructions","marginBottom","StimulusTabs","activeTab","event","setState","setTimeout","tabChangeEvent","CustomEvent","detail","window","dispatchEvent","currentTabId","key","tabs","props","newTabIndex","currentIndex","findIndex","id","length","preventDefault","handleChange","document","getElementById","focus","div","createElement","innerHTML","replace","audio","querySelector","source","setAttribute","getAttribute","removeAttribute","appendChild","disabledTabs","teacherInstructionsDiv","hidden","visible","classes","renderInstructions","title","subtitle","__html","parsedText","author","model","state","extraCSSRules","selectedTab","find","map","renderTab","root","flexContainer","label","handleKeyDown","React","Component","propTypes","PropTypes","object","isRequired","arrayOf","shape","number","string","bool"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAAA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;;;;;AAEA,IAAMA,MAAM,GAAG,SAATA,MAAS,CAACC,KAAD;AAAA,SAAY;AACzBC,IAAAA,QAAQ,EAAE;AACRC,MAAAA,QAAQ,EAAE,CADF;AAERC,MAAAA,eAAe,EAAEC,gBAAMC,UAAN,EAFT;AAGRD,MAAAA,KAAK,EAAEA,gBAAME,IAAN;AAHC,KADe;AAMzBC,IAAAA,OAAO,EAAE;AACPJ,MAAAA,eAAe,EAAEC,gBAAMC,UAAN,EADV;AAEPD,MAAAA,KAAK,EAAEA,gBAAME,IAAN,EAFA;AAGPE,MAAAA,OAAO,EAAER,KAAK,CAACS,OAAN,CAAcC,IAAd,GAAqB;AAHvB,KANgB;AAWzBC,IAAAA,YAAY,EAAE;AACZC,MAAAA,QAAQ,EAAE;AADE,KAXW;AAczBC,IAAAA,eAAe,EAAE;AACfD,MAAAA,QAAQ,EAAE;AADK,KAdQ;AAiBzBE,IAAAA,aAAa,EAAE;AACbF,MAAAA,QAAQ,EAAE;AADG,KAjBU;AAoBzBG,IAAAA,WAAW,EAAE,EApBY;AAqBzBC,IAAAA,UAAU,EAAE;AACVX,MAAAA,UAAU,EAAED,gBAAMC,UAAN,EADF;AAEVY,MAAAA,QAAQ,EAAE,QAFA;AAGVC,MAAAA,GAAG,EAAE;AAHK,KArBa;AA0BzBC,IAAAA,GAAG,EAAE;AACHd,MAAAA,UAAU,EAAEL,KAAK,CAACoB,OAAN,CAAcC,MAAd,CAAqBC,KAD9B;AACqC;AACxCV,MAAAA,QAAQ,EAAE,SAFP;AAGHR,MAAAA,KAAK,EAAEJ,KAAK,CAACoB,OAAN,CAAcC,MAAd,CAAqBE,KAHzB,CAGgC;;AAHhC,KA1BoB;AA+BzBC,IAAAA,SAAS,EAAE;AACTn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A,YAAY,EAAEyB,sBAAUO;AAbD,CAAzB;;eAgBe,wBAAW/F,MAAX,EAAmB4B,YAAnB,C","sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport Tabs from '@material-ui/core/Tabs';\nimport Tab from '@material-ui/core/Tab';\nimport { withStyles } from '@material-ui/core/styles';\nimport { Collapsible, color, PreviewPrompt, Purpose, UiLayout } from '@pie-lib/pie-toolbox/render-ui';\nimport classNames from 'classnames';\n\nconst styles = (theme) => ({\n passages: {\n flexGrow: 1,\n backgroundColor: color.background(),\n color: color.text(),\n },\n passage: {\n backgroundColor: color.background(),\n color: color.text(),\n padding: theme.spacing.unit * 2,\n },\n passageTitle: {\n fontSize: '1.75rem',\n },\n passageSubtitle: {\n fontSize: '1.5rem',\n },\n passageAuthor: {\n fontSize: '1.25rem',\n },\n passageText: {},\n stickyTabs: {\n background: color.background(),\n position: 'sticky',\n top: 0,\n },\n tab: {\n background: theme.palette.common.white, // replace with color.background() once PD-2801 is DONE\n fontSize: 'inherit',\n color: theme.palette.common.black, // remove when PD-2801 is DONE\n },\n tabButton: {\n background: theme.palette.common.white, // replace with color.background() once PD-2801 is DONE\n },\n teacherInstructions: {\n marginBottom: theme.spacing.unit * 2,\n },\n});\n\nclass StimulusTabs extends React.Component {\n state = {\n activeTab: 0,\n };\n\n handleChange = (event, activeTab) => {\n this.setState(() => ({ activeTab }));\n\n setTimeout(() => {\n const tabChangeEvent = new CustomEvent('pie-ui-passage-tabChanged', {\n detail: { tab: activeTab },\n });\n\n window.dispatchEvent(tabChangeEvent);\n });\n };\n\n handleKeyDown = (event, currentTabId) => {\n const { key } = event;\n const { tabs } = this.props;\n\n let newTabIndex = -1;\n const currentIndex = tabs.findIndex((tab) => tab.id === currentTabId);\n\n switch (key) {\n case 'ArrowRight':\n // Move to the next tab\n newTabIndex = (currentIndex + 1) % tabs.length;\n break;\n case 'ArrowLeft':\n // Move to the previous tab\n newTabIndex = (currentIndex - 1 + tabs.length) % tabs.length;\n break;\n // Commented out ArrowDown and ArrowUp for future vertical tab navigation\n // case 'ArrowDown':\n // // Move to the next tab (for vertical alignment)\n // newTabIndex = (currentIndex + 1) % tabs.length;\n // break;\n // case 'ArrowUp':\n // // Move to the previous tab (for vertical alignment)\n // newTabIndex = (currentIndex - 1 + tabs.length) % tabs.length;\n // break;\n case 'Home':\n // Move to the first tab\n newTabIndex = 0;\n break;\n case 'End':\n // Move to the last tab\n newTabIndex = tabs.length - 1;\n break;\n case 'Enter':\n case ' ':\n // Activate the current tab\n newTabIndex = currentIndex;\n break;\n default:\n break;\n }\n\n if (newTabIndex !== -1) {\n event.preventDefault();\n this.handleChange(event, tabs[newTabIndex].id);\n document.getElementById(`button-${tabs[newTabIndex].id}`).focus();\n }\n };\n\n parsedText = (text = '') => {\n // fix imported audio content for Safari PD-1391\n const div = document.createElement('div');\n div.innerHTML = text.replace(/(<br\\/>\\n)/g, '<br/>');\n\n const audio = div.querySelector('audio');\n\n if (audio) {\n const source = document.createElement('source');\n\n source.setAttribute('type', 'audio/mp3');\n source.setAttribute('src', audio.getAttribute('src'));\n\n audio.removeAttribute('src');\n audio.appendChild(source);\n }\n\n return div.innerHTML;\n };\n\n renderInstructions(teacherInstructions, disabledTabs = false) {\n if (!teacherInstructions) {\n return;\n }\n\n const teacherInstructionsDiv = (\n <PreviewPrompt\n tagName=\"div\"\n className=\"prompt\"\n defaultClassName=\"teacher-instructions\"\n prompt={teacherInstructions}\n />\n );\n\n if (disabledTabs) {\n return teacherInstructionsDiv;\n }\n\n return (\n <Collapsible\n labels={{\n hidden: 'Show Teacher Instructions',\n visible: 'Hide Teacher Instructions',\n }}\n >\n {teacherInstructionsDiv}\n </Collapsible>\n );\n }\n\n renderTab(tab, disabledTabs) {\n const { classes } = this.props;\n\n return (\n <div\n className={classNames(classes.passage, 'passage')}\n key={tab.id}\n id={`tabpanel-${tab.id}`}\n role=\"tabpanel\"\n aria-labelledby={`button-${tab.id}`}\n >\n {this.renderInstructions(tab.teacherInstructions, disabledTabs)}\n\n {(tab.title || tab.subtitle) && (\n <h2>\n {tab.title && (\n <Purpose purpose=\"passage-title\">\n <div\n className={classNames(classes.passageTitle, 'title')}\n dangerouslySetInnerHTML={{ __html: this.parsedText(tab.title) }}\n />\n </Purpose>\n )}\n {tab.subtitle && (\n <Purpose purpose=\"passage-subtitle\">\n <div\n className={classNames(classes.passageSubtitle, 'subtitle')}\n dangerouslySetInnerHTML={{ __html: this.parsedText(tab.subtitle) }}\n />\n </Purpose>\n )}\n </h2>\n )}\n\n {tab.author && (\n <Purpose purpose=\"passage-author\">\n <div\n className={classNames(classes.passageAuthor, 'author')}\n dangerouslySetInnerHTML={{ __html: this.parsedText(tab.author) }}\n />\n </Purpose>\n )}\n\n {tab.text && (\n <Purpose purpose=\"passage-text\">\n <div\n key={tab.id}\n className={classNames(classes.passageText, 'text')}\n dangerouslySetInnerHTML={{ __html: this.parsedText(tab.text) }}\n />\n </Purpose>\n )}\n </div>\n );\n }\n\n render() {\n const { classes, model, tabs, disabledTabs } = this.props;\n const { activeTab } = this.state;\n\n if (!tabs?.length) {\n return;\n }\n\n const { extraCSSRules } = model || {};\n const selectedTab = (tabs || []).find((tab) => tab.id === activeTab);\n\n return (\n <UiLayout extraCSSRules={extraCSSRules} className={classNames(classes.passages, 'passages')}>\n {disabledTabs || tabs.length === 1 ? (\n tabs.map((tab) => this.renderTab(tab, disabledTabs))\n ) : (\n <>\n <Tabs\n classes={{\n root: classes.stickyTabs,\n flexContainer: classes.tabButton,\n }}\n value={activeTab}\n onChange={this.handleChange}\n >\n {tabs.map((tab) => (\n <Tab\n className={classes.tab}\n key={tab.id}\n id={`button-${tab.id}`}\n label={\n <Purpose purpose=\"passage-label\">\n <span dangerouslySetInnerHTML={{ __html: this.parsedText(tab.label) }} />\n </Purpose>\n }\n value={tab.id}\n tabIndex={activeTab === tab.id ? 0 : -1}\n aria-controls={`tabpanel-${tab.id}`}\n aria-selected={activeTab === tab.id}\n onFocus={() => this.handleChange(null, tab.id)}\n onKeyDown={(event) => this.handleKeyDown(event, tab.id)}\n />\n ))}\n </Tabs>\n {selectedTab ? this.renderTab(selectedTab, disabledTabs) : null}\n </>\n )}\n </UiLayout>\n );\n }\n}\n\nStimulusTabs.propTypes = {\n classes: PropTypes.object.isRequired,\n tabs: PropTypes.arrayOf(\n PropTypes.shape({\n id: PropTypes.number.isRequired,\n label: PropTypes.string.isRequired,\n title: PropTypes.string.isRequired,\n subtitle: PropTypes.string,\n author: PropTypes.string,\n text: PropTypes.string.isRequired,\n teacherInstructions: PropTypes.string,\n }).isRequired,\n ).isRequired,\n disabledTabs: PropTypes.bool,\n};\n\nexport default withStyles(styles)(StimulusTabs);\n"],"file":"stimulus-tabs.js"}
|
|
1
|
+
{"version":3,"sources":["../src/stimulus-tabs.jsx"],"names":["styles","theme","passages","flexGrow","backgroundColor","color","background","text","borderCollapse","padding","textAlign","passage","spacing","unit","passageTitle","fontSize","passageSubtitle","passageAuthor","passageText","stickyTabs","position","top","tab","palette","common","white","black","tabButton","teacherInstructions","marginBottom","StimulusTabs","activeTab","event","setState","setTimeout","tabChangeEvent","CustomEvent","detail","window","dispatchEvent","currentTabId","key","tabs","props","newTabIndex","currentIndex","findIndex","id","length","preventDefault","handleChange","document","getElementById","focus","div","createElement","innerHTML","replace","audio","querySelector","source","setAttribute","getAttribute","removeAttribute","appendChild","disabledTabs","teacherInstructionsDiv","hidden","visible","classes","renderInstructions","title","subtitle","__html","parsedText","author","model","state","extraCSSRules","selectedTab","find","map","renderTab","root","flexContainer","label","handleKeyDown","React","Component","propTypes","PropTypes","object","isRequired","arrayOf","shape","number","string","bool"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAAA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;;;;;AAEA,IAAMA,MAAM,GAAG,SAATA,MAAS,CAACC,KAAD;AAAA,SAAY;AACzBC,IAAAA,QAAQ,EAAE;AACRC,MAAAA,QAAQ,EAAE,CADF;AAERC,MAAAA,eAAe,EAAEC,gB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from '@material-ui/core/Tab';\nimport { withStyles } from '@material-ui/core/styles';\nimport { Collapsible, color, PreviewPrompt, Purpose, UiLayout } from '@pie-lib/pie-toolbox/render-ui';\nimport classNames from 'classnames';\n\nconst styles = (theme) => ({\n passages: {\n flexGrow: 1,\n backgroundColor: color.background(),\n color: color.text(),\n '&:not(.MathJax) table': {\n borderCollapse: 'collapse',\n },\n '&:not(.MathJax) table td, &:not(.MathJax) table th': {\n padding: '.6em 1em',\n textAlign: 'left',\n },\n },\n passage: {\n backgroundColor: color.background(),\n color: color.text(),\n padding: theme.spacing.unit * 2,\n },\n passageTitle: {\n fontSize: '1.75rem',\n },\n passageSubtitle: {\n fontSize: '1.5rem',\n },\n passageAuthor: {\n fontSize: '1.25rem',\n },\n passageText: {},\n stickyTabs: {\n background: color.background(),\n position: 'sticky',\n top: 0,\n },\n tab: {\n background: theme.palette.common.white, // replace with color.background() once PD-2801 is DONE\n fontSize: 'inherit',\n color: theme.palette.common.black, // remove when PD-2801 is DONE\n },\n tabButton: {\n background: theme.palette.common.white, // replace with color.background() once PD-2801 is DONE\n },\n teacherInstructions: {\n marginBottom: theme.spacing.unit * 2,\n },\n});\n\nclass StimulusTabs extends React.Component {\n state = {\n activeTab: 0,\n };\n\n handleChange = (event, activeTab) => {\n this.setState(() => ({ activeTab }));\n\n setTimeout(() => {\n const tabChangeEvent = new CustomEvent('pie-ui-passage-tabChanged', {\n detail: { tab: activeTab },\n });\n\n window.dispatchEvent(tabChangeEvent);\n });\n };\n\n handleKeyDown = (event, currentTabId) => {\n const { key } = event;\n const { tabs } = this.props;\n\n let newTabIndex = -1;\n const currentIndex = tabs.findIndex((tab) => tab.id === currentTabId);\n\n switch (key) {\n case 'ArrowRight':\n // Move to the next tab\n newTabIndex = (currentIndex + 1) % tabs.length;\n break;\n case 'ArrowLeft':\n // Move to the previous tab\n newTabIndex = (currentIndex - 1 + tabs.length) % tabs.length;\n break;\n // Commented out ArrowDown and ArrowUp for future vertical tab navigation\n // case 'ArrowDown':\n // // Move to the next tab (for vertical alignment)\n // newTabIndex = (currentIndex + 1) % tabs.length;\n // break;\n // case 'ArrowUp':\n // // Move to the previous tab (for vertical alignment)\n // newTabIndex = (currentIndex - 1 + tabs.length) % tabs.length;\n // break;\n case 'Home':\n // Move to the first tab\n newTabIndex = 0;\n break;\n case 'End':\n // Move to the last tab\n newTabIndex = tabs.length - 1;\n break;\n case 'Enter':\n case ' ':\n // Activate the current tab\n newTabIndex = currentIndex;\n break;\n default:\n break;\n }\n\n if (newTabIndex !== -1) {\n event.preventDefault();\n this.handleChange(event, tabs[newTabIndex].id);\n document.getElementById(`button-${tabs[newTabIndex].id}`).focus();\n }\n };\n\n parsedText = (text = '') => {\n // fix imported audio content for Safari PD-1391\n const div = document.createElement('div');\n div.innerHTML = text.replace(/(<br\\/>\\n)/g, '<br/>');\n\n const audio = div.querySelector('audio');\n\n if (audio) {\n const source = document.createElement('source');\n\n source.setAttribute('type', 'audio/mp3');\n source.setAttribute('src', audio.getAttribute('src'));\n\n audio.removeAttribute('src');\n audio.appendChild(source);\n }\n\n return div.innerHTML;\n };\n\n renderInstructions(teacherInstructions, disabledTabs = false) {\n if (!teacherInstructions) {\n return;\n }\n\n const teacherInstructionsDiv = (\n <PreviewPrompt\n tagName=\"div\"\n className=\"prompt\"\n defaultClassName=\"teacher-instructions\"\n prompt={teacherInstructions}\n />\n );\n\n if (disabledTabs) {\n return teacherInstructionsDiv;\n }\n\n return (\n <Collapsible\n labels={{\n hidden: 'Show Teacher Instructions',\n visible: 'Hide Teacher Instructions',\n }}\n >\n {teacherInstructionsDiv}\n </Collapsible>\n );\n }\n\n renderTab(tab, disabledTabs) {\n const { classes } = this.props;\n\n return (\n <div\n className={classNames(classes.passage, 'passage')}\n key={tab.id}\n id={`tabpanel-${tab.id}`}\n role=\"tabpanel\"\n aria-labelledby={`button-${tab.id}`}\n >\n {this.renderInstructions(tab.teacherInstructions, disabledTabs)}\n\n {(tab.title || tab.subtitle) && (\n <h2>\n {tab.title && (\n <Purpose purpose=\"passage-title\">\n <div\n className={classNames(classes.passageTitle, 'title')}\n dangerouslySetInnerHTML={{ __html: this.parsedText(tab.title) }}\n />\n </Purpose>\n )}\n {tab.subtitle && (\n <Purpose purpose=\"passage-subtitle\">\n <div\n className={classNames(classes.passageSubtitle, 'subtitle')}\n dangerouslySetInnerHTML={{ __html: this.parsedText(tab.subtitle) }}\n />\n </Purpose>\n )}\n </h2>\n )}\n\n {tab.author && (\n <Purpose purpose=\"passage-author\">\n <div\n className={classNames(classes.passageAuthor, 'author')}\n dangerouslySetInnerHTML={{ __html: this.parsedText(tab.author) }}\n />\n </Purpose>\n )}\n\n {tab.text && (\n <Purpose purpose=\"passage-text\">\n <div\n key={tab.id}\n className={classNames(classes.passageText, 'text')}\n dangerouslySetInnerHTML={{ __html: this.parsedText(tab.text) }}\n />\n </Purpose>\n )}\n </div>\n );\n }\n\n render() {\n const { classes, model, tabs, disabledTabs } = this.props;\n const { activeTab } = this.state;\n\n if (!tabs?.length) {\n return;\n }\n\n const { extraCSSRules } = model || {};\n const selectedTab = (tabs || []).find((tab) => tab.id === activeTab);\n\n return (\n <UiLayout extraCSSRules={extraCSSRules} className={classNames(classes.passages, 'passages')}>\n {disabledTabs || tabs.length === 1 ? (\n tabs.map((tab) => this.renderTab(tab, disabledTabs))\n ) : (\n <>\n <Tabs\n classes={{\n root: classes.stickyTabs,\n flexContainer: classes.tabButton,\n }}\n value={activeTab}\n onChange={this.handleChange}\n >\n {tabs.map((tab) => (\n <Tab\n className={classes.tab}\n key={tab.id}\n id={`button-${tab.id}`}\n label={\n <Purpose purpose=\"passage-label\">\n <span dangerouslySetInnerHTML={{ __html: this.parsedText(tab.label) }} />\n </Purpose>\n }\n value={tab.id}\n tabIndex={activeTab === tab.id ? 0 : -1}\n aria-controls={`tabpanel-${tab.id}`}\n aria-selected={activeTab === tab.id}\n onFocus={() => this.handleChange(null, tab.id)}\n onKeyDown={(event) => this.handleKeyDown(event, tab.id)}\n />\n ))}\n </Tabs>\n {selectedTab ? this.renderTab(selectedTab, disabledTabs) : null}\n </>\n )}\n </UiLayout>\n );\n }\n}\n\nStimulusTabs.propTypes = {\n classes: PropTypes.object.isRequired,\n tabs: PropTypes.arrayOf(\n PropTypes.shape({\n id: PropTypes.number.isRequired,\n label: PropTypes.string.isRequired,\n title: PropTypes.string.isRequired,\n subtitle: PropTypes.string,\n author: PropTypes.string,\n text: PropTypes.string.isRequired,\n teacherInstructions: PropTypes.string,\n }).isRequired,\n ).isRequired,\n disabledTabs: PropTypes.bool,\n};\n\nexport default withStyles(styles)(StimulusTabs);\n"],"file":"stimulus-tabs.js"}
|
package/module/configure.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {_dll_react, _dll_prop_types, _dll_react_dom} from "../../../@pie-lib/pie-toolbox-math-rendering-module@3.
|
|
1
|
+
import {_dll_react, _dll_prop_types, _dll_react_dom} from "../../../@pie-lib/pie-toolbox-math-rendering-module@3.9.0/module/index.js";
|
|
2
2
|
import {_dll_pie_lib__pie_toolbox_config_ui, _dll_pie_lib__pie_toolbox_editable_html} from "../../../@pie-lib/pie-toolbox-module@6.1.2/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) {
|
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} from "../../../@pie-lib/pie-toolbox-math-rendering-module@3.
|
|
1
|
+
import {_dll_react, _dll_prop_types, _dll_classnames, _dll_react_dom, _dll_pie_lib__pie_toolbox_math_rendering} from "../../../@pie-lib/pie-toolbox-math-rendering-module@3.9.0/module/index.js";
|
|
2
2
|
import {_dll_pie_lib__pie_toolbox_render_ui} from "../../../@pie-lib/pie-toolbox-module@6.1.2/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) {
|
|
@@ -8609,7 +8609,14 @@ const styles = theme => ({
|
|
|
8609
8609
|
passages: {
|
|
8610
8610
|
flexGrow: 1,
|
|
8611
8611
|
backgroundColor: color.background(),
|
|
8612
|
-
color: color.text()
|
|
8612
|
+
color: color.text(),
|
|
8613
|
+
'&:not(.MathJax) table': {
|
|
8614
|
+
borderCollapse: 'collapse'
|
|
8615
|
+
},
|
|
8616
|
+
'&:not(.MathJax) table td, &:not(.MathJax) table th': {
|
|
8617
|
+
padding: '.6em 1em',
|
|
8618
|
+
textAlign: 'left'
|
|
8619
|
+
}
|
|
8613
8620
|
},
|
|
8614
8621
|
passage: {
|
|
8615
8622
|
backgroundColor: color.background(),
|
|
@@ -8729,7 +8736,7 @@ class StimulusTabs extends React$1.Component {
|
|
|
8729
8736
|
__self: this,
|
|
8730
8737
|
__source: {
|
|
8731
8738
|
fileName: _jsxFileName,
|
|
8732
|
-
lineNumber:
|
|
8739
|
+
lineNumber: 147
|
|
8733
8740
|
}
|
|
8734
8741
|
});
|
|
8735
8742
|
if (disabledTabs) {
|
|
@@ -8743,7 +8750,7 @@ class StimulusTabs extends React$1.Component {
|
|
|
8743
8750
|
__self: this,
|
|
8744
8751
|
__source: {
|
|
8745
8752
|
fileName: _jsxFileName,
|
|
8746
|
-
lineNumber:
|
|
8753
|
+
lineNumber: 160
|
|
8747
8754
|
}
|
|
8748
8755
|
}, teacherInstructionsDiv);
|
|
8749
8756
|
}
|
|
@@ -8758,20 +8765,20 @@ class StimulusTabs extends React$1.Component {
|
|
|
8758
8765
|
__self: this,
|
|
8759
8766
|
__source: {
|
|
8760
8767
|
fileName: _jsxFileName,
|
|
8761
|
-
lineNumber:
|
|
8768
|
+
lineNumber: 175
|
|
8762
8769
|
}
|
|
8763
8770
|
}, this.renderInstructions(tab.teacherInstructions, disabledTabs), (tab.title || tab.subtitle) && React$1.createElement('h2', {
|
|
8764
8771
|
__self: this,
|
|
8765
8772
|
__source: {
|
|
8766
8773
|
fileName: _jsxFileName,
|
|
8767
|
-
lineNumber:
|
|
8774
|
+
lineNumber: 185
|
|
8768
8775
|
}
|
|
8769
8776
|
}, tab.title && React$1.createElement(Purpose, {
|
|
8770
8777
|
purpose: "passage-title",
|
|
8771
8778
|
__self: this,
|
|
8772
8779
|
__source: {
|
|
8773
8780
|
fileName: _jsxFileName,
|
|
8774
|
-
lineNumber:
|
|
8781
|
+
lineNumber: 187
|
|
8775
8782
|
}
|
|
8776
8783
|
}, React$1.createElement('div', {
|
|
8777
8784
|
className: classNames(classes.passageTitle, 'title'),
|
|
@@ -8781,14 +8788,14 @@ class StimulusTabs extends React$1.Component {
|
|
|
8781
8788
|
__self: this,
|
|
8782
8789
|
__source: {
|
|
8783
8790
|
fileName: _jsxFileName,
|
|
8784
|
-
lineNumber:
|
|
8791
|
+
lineNumber: 188
|
|
8785
8792
|
}
|
|
8786
8793
|
})), tab.subtitle && React$1.createElement(Purpose, {
|
|
8787
8794
|
purpose: "passage-subtitle",
|
|
8788
8795
|
__self: this,
|
|
8789
8796
|
__source: {
|
|
8790
8797
|
fileName: _jsxFileName,
|
|
8791
|
-
lineNumber:
|
|
8798
|
+
lineNumber: 195
|
|
8792
8799
|
}
|
|
8793
8800
|
}, React$1.createElement('div', {
|
|
8794
8801
|
className: classNames(classes.passageSubtitle, 'subtitle'),
|
|
@@ -8798,14 +8805,14 @@ class StimulusTabs extends React$1.Component {
|
|
|
8798
8805
|
__self: this,
|
|
8799
8806
|
__source: {
|
|
8800
8807
|
fileName: _jsxFileName,
|
|
8801
|
-
lineNumber:
|
|
8808
|
+
lineNumber: 196
|
|
8802
8809
|
}
|
|
8803
8810
|
}))), tab.author && React$1.createElement(Purpose, {
|
|
8804
8811
|
purpose: "passage-author",
|
|
8805
8812
|
__self: this,
|
|
8806
8813
|
__source: {
|
|
8807
8814
|
fileName: _jsxFileName,
|
|
8808
|
-
lineNumber:
|
|
8815
|
+
lineNumber: 206
|
|
8809
8816
|
}
|
|
8810
8817
|
}, React$1.createElement('div', {
|
|
8811
8818
|
className: classNames(classes.passageAuthor, 'author'),
|
|
@@ -8815,14 +8822,14 @@ class StimulusTabs extends React$1.Component {
|
|
|
8815
8822
|
__self: this,
|
|
8816
8823
|
__source: {
|
|
8817
8824
|
fileName: _jsxFileName,
|
|
8818
|
-
lineNumber:
|
|
8825
|
+
lineNumber: 207
|
|
8819
8826
|
}
|
|
8820
8827
|
})), tab.text && React$1.createElement(Purpose, {
|
|
8821
8828
|
purpose: "passage-text",
|
|
8822
8829
|
__self: this,
|
|
8823
8830
|
__source: {
|
|
8824
8831
|
fileName: _jsxFileName,
|
|
8825
|
-
lineNumber:
|
|
8832
|
+
lineNumber: 215
|
|
8826
8833
|
}
|
|
8827
8834
|
}, React$1.createElement('div', {
|
|
8828
8835
|
key: tab.id,
|
|
@@ -8833,7 +8840,7 @@ class StimulusTabs extends React$1.Component {
|
|
|
8833
8840
|
__self: this,
|
|
8834
8841
|
__source: {
|
|
8835
8842
|
fileName: _jsxFileName,
|
|
8836
|
-
lineNumber:
|
|
8843
|
+
lineNumber: 216
|
|
8837
8844
|
}
|
|
8838
8845
|
})));
|
|
8839
8846
|
}
|
|
@@ -8851,7 +8858,7 @@ class StimulusTabs extends React$1.Component {
|
|
|
8851
8858
|
__self: this,
|
|
8852
8859
|
__source: {
|
|
8853
8860
|
fileName: _jsxFileName,
|
|
8854
|
-
lineNumber:
|
|
8861
|
+
lineNumber: 239
|
|
8855
8862
|
}
|
|
8856
8863
|
}, disabledTabs || tabs.length === 1 ? tabs.map(tab => this.renderTab(tab, disabledTabs)) : React$1.createElement(React$1.Fragment, null, React$1.createElement(Tabs, {
|
|
8857
8864
|
classes: {
|
|
@@ -8863,7 +8870,7 @@ class StimulusTabs extends React$1.Component {
|
|
|
8863
8870
|
__self: this,
|
|
8864
8871
|
__source: {
|
|
8865
8872
|
fileName: _jsxFileName,
|
|
8866
|
-
lineNumber:
|
|
8873
|
+
lineNumber: 244
|
|
8867
8874
|
}
|
|
8868
8875
|
}, tabs.map(tab => React$1.createElement(Tab, {
|
|
8869
8876
|
className: classes.tab,
|
|
@@ -8874,7 +8881,7 @@ class StimulusTabs extends React$1.Component {
|
|
|
8874
8881
|
__self: this,
|
|
8875
8882
|
__source: {
|
|
8876
8883
|
fileName: _jsxFileName,
|
|
8877
|
-
lineNumber:
|
|
8884
|
+
lineNumber: 258
|
|
8878
8885
|
}
|
|
8879
8886
|
}, React$1.createElement('span', {
|
|
8880
8887
|
dangerouslySetInnerHTML: {
|
|
@@ -8883,7 +8890,7 @@ class StimulusTabs extends React$1.Component {
|
|
|
8883
8890
|
__self: this,
|
|
8884
8891
|
__source: {
|
|
8885
8892
|
fileName: _jsxFileName,
|
|
8886
|
-
lineNumber:
|
|
8893
|
+
lineNumber: 259
|
|
8887
8894
|
}
|
|
8888
8895
|
})),
|
|
8889
8896
|
value: tab.id,
|
|
@@ -8895,7 +8902,7 @@ class StimulusTabs extends React$1.Component {
|
|
|
8895
8902
|
__self: this,
|
|
8896
8903
|
__source: {
|
|
8897
8904
|
fileName: _jsxFileName,
|
|
8898
|
-
lineNumber:
|
|
8905
|
+
lineNumber: 253
|
|
8899
8906
|
}
|
|
8900
8907
|
}))), selectedTab ? this.renderTab(selectedTab, disabledTabs) : null));
|
|
8901
8908
|
}
|
package/module/manifest.json
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@3.
|
|
1
|
+
import {_dll_react, _dll_prop_types, _dll_classnames, _dll_react_dom, _dll_lodash, _dll_debug} from "../../../@pie-lib/pie-toolbox-math-rendering-module@3.9.0/module/index.js";
|
|
2
2
|
import {_dll_pie_lib__pie_toolbox_render_ui} from "../../../@pie-lib/pie-toolbox-module@6.1.2/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) {
|
|
@@ -8572,7 +8572,14 @@ const styles = theme => ({
|
|
|
8572
8572
|
passages: {
|
|
8573
8573
|
flexGrow: 1,
|
|
8574
8574
|
backgroundColor: color.background(),
|
|
8575
|
-
color: color.text()
|
|
8575
|
+
color: color.text(),
|
|
8576
|
+
'&:not(.MathJax) table': {
|
|
8577
|
+
borderCollapse: 'collapse'
|
|
8578
|
+
},
|
|
8579
|
+
'&:not(.MathJax) table td, &:not(.MathJax) table th': {
|
|
8580
|
+
padding: '.6em 1em',
|
|
8581
|
+
textAlign: 'left'
|
|
8582
|
+
}
|
|
8576
8583
|
},
|
|
8577
8584
|
passage: {
|
|
8578
8585
|
backgroundColor: color.background(),
|
|
@@ -8692,7 +8699,7 @@ class StimulusTabs extends React$1.Component {
|
|
|
8692
8699
|
__self: this,
|
|
8693
8700
|
__source: {
|
|
8694
8701
|
fileName: _jsxFileName,
|
|
8695
|
-
lineNumber:
|
|
8702
|
+
lineNumber: 147
|
|
8696
8703
|
}
|
|
8697
8704
|
});
|
|
8698
8705
|
if (disabledTabs) {
|
|
@@ -8706,7 +8713,7 @@ class StimulusTabs extends React$1.Component {
|
|
|
8706
8713
|
__self: this,
|
|
8707
8714
|
__source: {
|
|
8708
8715
|
fileName: _jsxFileName,
|
|
8709
|
-
lineNumber:
|
|
8716
|
+
lineNumber: 160
|
|
8710
8717
|
}
|
|
8711
8718
|
}, teacherInstructionsDiv);
|
|
8712
8719
|
}
|
|
@@ -8721,20 +8728,20 @@ class StimulusTabs extends React$1.Component {
|
|
|
8721
8728
|
__self: this,
|
|
8722
8729
|
__source: {
|
|
8723
8730
|
fileName: _jsxFileName,
|
|
8724
|
-
lineNumber:
|
|
8731
|
+
lineNumber: 175
|
|
8725
8732
|
}
|
|
8726
8733
|
}, this.renderInstructions(tab.teacherInstructions, disabledTabs), (tab.title || tab.subtitle) && React$1.createElement('h2', {
|
|
8727
8734
|
__self: this,
|
|
8728
8735
|
__source: {
|
|
8729
8736
|
fileName: _jsxFileName,
|
|
8730
|
-
lineNumber:
|
|
8737
|
+
lineNumber: 185
|
|
8731
8738
|
}
|
|
8732
8739
|
}, tab.title && React$1.createElement(Purpose, {
|
|
8733
8740
|
purpose: "passage-title",
|
|
8734
8741
|
__self: this,
|
|
8735
8742
|
__source: {
|
|
8736
8743
|
fileName: _jsxFileName,
|
|
8737
|
-
lineNumber:
|
|
8744
|
+
lineNumber: 187
|
|
8738
8745
|
}
|
|
8739
8746
|
}, React$1.createElement('div', {
|
|
8740
8747
|
className: classNames(classes.passageTitle, 'title'),
|
|
@@ -8744,14 +8751,14 @@ class StimulusTabs extends React$1.Component {
|
|
|
8744
8751
|
__self: this,
|
|
8745
8752
|
__source: {
|
|
8746
8753
|
fileName: _jsxFileName,
|
|
8747
|
-
lineNumber:
|
|
8754
|
+
lineNumber: 188
|
|
8748
8755
|
}
|
|
8749
8756
|
})), tab.subtitle && React$1.createElement(Purpose, {
|
|
8750
8757
|
purpose: "passage-subtitle",
|
|
8751
8758
|
__self: this,
|
|
8752
8759
|
__source: {
|
|
8753
8760
|
fileName: _jsxFileName,
|
|
8754
|
-
lineNumber:
|
|
8761
|
+
lineNumber: 195
|
|
8755
8762
|
}
|
|
8756
8763
|
}, React$1.createElement('div', {
|
|
8757
8764
|
className: classNames(classes.passageSubtitle, 'subtitle'),
|
|
@@ -8761,14 +8768,14 @@ class StimulusTabs extends React$1.Component {
|
|
|
8761
8768
|
__self: this,
|
|
8762
8769
|
__source: {
|
|
8763
8770
|
fileName: _jsxFileName,
|
|
8764
|
-
lineNumber:
|
|
8771
|
+
lineNumber: 196
|
|
8765
8772
|
}
|
|
8766
8773
|
}))), tab.author && React$1.createElement(Purpose, {
|
|
8767
8774
|
purpose: "passage-author",
|
|
8768
8775
|
__self: this,
|
|
8769
8776
|
__source: {
|
|
8770
8777
|
fileName: _jsxFileName,
|
|
8771
|
-
lineNumber:
|
|
8778
|
+
lineNumber: 206
|
|
8772
8779
|
}
|
|
8773
8780
|
}, React$1.createElement('div', {
|
|
8774
8781
|
className: classNames(classes.passageAuthor, 'author'),
|
|
@@ -8778,14 +8785,14 @@ class StimulusTabs extends React$1.Component {
|
|
|
8778
8785
|
__self: this,
|
|
8779
8786
|
__source: {
|
|
8780
8787
|
fileName: _jsxFileName,
|
|
8781
|
-
lineNumber:
|
|
8788
|
+
lineNumber: 207
|
|
8782
8789
|
}
|
|
8783
8790
|
})), tab.text && React$1.createElement(Purpose, {
|
|
8784
8791
|
purpose: "passage-text",
|
|
8785
8792
|
__self: this,
|
|
8786
8793
|
__source: {
|
|
8787
8794
|
fileName: _jsxFileName,
|
|
8788
|
-
lineNumber:
|
|
8795
|
+
lineNumber: 215
|
|
8789
8796
|
}
|
|
8790
8797
|
}, React$1.createElement('div', {
|
|
8791
8798
|
key: tab.id,
|
|
@@ -8796,7 +8803,7 @@ class StimulusTabs extends React$1.Component {
|
|
|
8796
8803
|
__self: this,
|
|
8797
8804
|
__source: {
|
|
8798
8805
|
fileName: _jsxFileName,
|
|
8799
|
-
lineNumber:
|
|
8806
|
+
lineNumber: 216
|
|
8800
8807
|
}
|
|
8801
8808
|
})));
|
|
8802
8809
|
}
|
|
@@ -8814,7 +8821,7 @@ class StimulusTabs extends React$1.Component {
|
|
|
8814
8821
|
__self: this,
|
|
8815
8822
|
__source: {
|
|
8816
8823
|
fileName: _jsxFileName,
|
|
8817
|
-
lineNumber:
|
|
8824
|
+
lineNumber: 239
|
|
8818
8825
|
}
|
|
8819
8826
|
}, disabledTabs || tabs.length === 1 ? tabs.map(tab => this.renderTab(tab, disabledTabs)) : React$1.createElement(React$1.Fragment, null, React$1.createElement(Tabs, {
|
|
8820
8827
|
classes: {
|
|
@@ -8826,7 +8833,7 @@ class StimulusTabs extends React$1.Component {
|
|
|
8826
8833
|
__self: this,
|
|
8827
8834
|
__source: {
|
|
8828
8835
|
fileName: _jsxFileName,
|
|
8829
|
-
lineNumber:
|
|
8836
|
+
lineNumber: 244
|
|
8830
8837
|
}
|
|
8831
8838
|
}, tabs.map(tab => React$1.createElement(Tab, {
|
|
8832
8839
|
className: classes.tab,
|
|
@@ -8837,7 +8844,7 @@ class StimulusTabs extends React$1.Component {
|
|
|
8837
8844
|
__self: this,
|
|
8838
8845
|
__source: {
|
|
8839
8846
|
fileName: _jsxFileName,
|
|
8840
|
-
lineNumber:
|
|
8847
|
+
lineNumber: 258
|
|
8841
8848
|
}
|
|
8842
8849
|
}, React$1.createElement('span', {
|
|
8843
8850
|
dangerouslySetInnerHTML: {
|
|
@@ -8846,7 +8853,7 @@ class StimulusTabs extends React$1.Component {
|
|
|
8846
8853
|
__self: this,
|
|
8847
8854
|
__source: {
|
|
8848
8855
|
fileName: _jsxFileName,
|
|
8849
|
-
lineNumber:
|
|
8856
|
+
lineNumber: 259
|
|
8850
8857
|
}
|
|
8851
8858
|
})),
|
|
8852
8859
|
value: tab.id,
|
|
@@ -8858,7 +8865,7 @@ class StimulusTabs extends React$1.Component {
|
|
|
8858
8865
|
__self: this,
|
|
8859
8866
|
__source: {
|
|
8860
8867
|
fileName: _jsxFileName,
|
|
8861
|
-
lineNumber:
|
|
8868
|
+
lineNumber: 253
|
|
8862
8869
|
}
|
|
8863
8870
|
}))), selectedTab ? this.renderTab(selectedTab, disabledTabs) : null));
|
|
8864
8871
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pie-element/passage",
|
|
3
|
-
"version": "3.5.6-next.
|
|
3
|
+
"version": "3.5.6-next.9+6cd0190b2",
|
|
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": "6cd0190b27cb787176c4d50d156396874a5a5293",
|
|
21
21
|
"scripts": {
|
|
22
22
|
"postpublish": "../../scripts/postpublish"
|
|
23
23
|
},
|