@citolab/qti-components 6.0.27 → 6.0.29
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/dist/{chunk-C4C24R3I.cjs → chunk-M4CYU6DC.cjs} +1 -1
- package/dist/{chunk-EGPC25SK.cjs → chunk-PNQIHQ4E.cjs} +3 -5
- package/dist/{chunk-OKBEUQM2.js → chunk-QFISTKXH.js} +2 -4
- package/dist/{chunk-BVYXUE3V.js → chunk-QROD4MVT.js} +1 -1
- package/dist/context/index.cjs +1 -1
- package/dist/context/index.d.cts +8 -1
- package/dist/context/index.d.ts +8 -1
- package/dist/context/index.js +1 -1
- package/dist/custom-elements.json +487 -484
- package/dist/decorators/index.cjs +1 -1
- package/dist/decorators/index.js +1 -1
- package/dist/index.cjs +91 -80
- package/dist/index.css +0 -2
- package/dist/index.d.cts +7 -12
- package/dist/index.d.ts +7 -12
- package/dist/index.js +91 -80
- package/dist/qti-components/index.cjs +67 -54
- package/dist/qti-components/index.d.cts +10 -15
- package/dist/qti-components/index.d.ts +10 -15
- package/dist/qti-components/index.js +76 -63
- package/dist/qti-item/index.cjs +1 -1
- package/dist/qti-item/index.d.cts +19 -3
- package/dist/qti-item/index.d.ts +19 -3
- package/dist/qti-item/index.js +1 -1
- package/dist/qti-item-react/index.cjs +1 -1
- package/dist/qti-item-react/index.d.cts +2 -2
- package/dist/qti-item-react/index.d.ts +2 -2
- package/dist/qti-item-react/index.js +1 -1
- package/dist/{qti-simple-choice-86f433b6.d.ts → qti-simple-choice-9a8c789b.d.ts} +1 -1
- package/dist/qti-transform/index.cjs +1 -1
- package/dist/qti-transform/index.js +1 -1
- package/package.json +19 -18
- package/dist/audience-context-444478f4.d.ts +0 -8
- package/dist/qti-item-395a9535.d.ts +0 -19
- /package/dist/{chunk-NMCIOGD2.js → chunk-343LZK3D.js} +0 -0
- /package/dist/{chunk-HOQW4KDA.cjs → chunk-6G76D2MI.cjs} +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunk6G76D2MIcjs = require('./chunk-6G76D2MI.cjs');function k(e,c){let t,u=_chunk6G76D2MIcjs.a.call(void 0, {},c);return(n,d)=>{let{connectedCallback:f,disconnectedCallback:s}=n;n.connectedCallback=function(){var i;f.call(this);let p=l=>{let h=Array.from(this.querySelectorAll(e));for(let m of l){let y=Array.from(m.addedNodes).map(o=>o),U=Array.from(m.addedNodes).map(o=>o);m.type==="childList"&&y.find(o=>h.includes(o))&&this[d](y,U)}};t=new MutationObserver(p),t.observe(this,{childList:!0,subtree:!0});let a=(i=this.querySelectorAll(e))!=null?i:[];this[d](Array.from(a),[])},n.disconnectedCallback=function(){s.call(this),t.disconnect()}}}function C(e,c){let t=_chunk6G76D2MIcjs.a.call(void 0, {waitUntilFirstUpdate:!1},c);return(u,n)=>{let{update:d}=u,f=Array.isArray(e)?e:[e];u.update=function(s){f.forEach(p=>{let a=p;if(s.has(a)){let i=s.get(a),l=this[a];i!==l&&(!t.waitUntilFirstUpdate||this.hasUpdated)&&this[n](i,l)}}),d.call(this,s)}}}exports.a = k; exports.b = C;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkGGEPFBR7cjs = require('./chunk-GGEPFBR7.cjs');var _chunkZ2P5ZMVDcjs = require('./chunk-Z2P5ZMVD.cjs');var
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkGGEPFBR7cjs = require('./chunk-GGEPFBR7.cjs');var _chunkZ2P5ZMVDcjs = require('./chunk-Z2P5ZMVD.cjs');var _chunk6G76D2MIcjs = require('./chunk-6G76D2MI.cjs');var _lit = require('lit');var _decoratorsjs = require('lit/decorators.js');var _unsafehtmljs = require('lit/directives/unsafe-html.js');var _context = require('@lit-labs/context');var e=`/* PK: Tailwind theming file for all qti-components
|
|
2
2
|
Uses tailwind components and utilities from the other files
|
|
3
3
|
|
|
4
4
|
https://play.tailwindcss.com/OFThGk8CbR
|
|
@@ -572,7 +572,6 @@ qti-choice-interaction:not(.qti-input-control-hidden) qti-simple-choice{
|
|
|
572
572
|
display: flex;
|
|
573
573
|
align-items: center;
|
|
574
574
|
gap: 0.5rem;
|
|
575
|
-
border-radius: 9999px;
|
|
576
575
|
padding-left: 0.25rem;
|
|
577
576
|
padding-right: 0.25rem;
|
|
578
577
|
padding-top: 0.125rem;
|
|
@@ -1188,7 +1187,6 @@ qti-hottext-interaction:not(.qti-input-control-hidden) qti-hottext{
|
|
|
1188
1187
|
display: flex;
|
|
1189
1188
|
align-items: center;
|
|
1190
1189
|
gap: 0.5rem;
|
|
1191
|
-
border-radius: 9999px;
|
|
1192
1190
|
padding-left: 0.25rem;
|
|
1193
1191
|
padding-right: 0.25rem;
|
|
1194
1192
|
padding-top: 0.125rem;
|
|
@@ -2193,8 +2191,8 @@ video {
|
|
|
2193
2191
|
max-width: 100%;
|
|
2194
2192
|
height: auto;
|
|
2195
2193
|
}
|
|
2196
|
-
`;var t=class extends _lit.LitElement{constructor(){super(...arguments);this.itemLocation="";this.provider=new (0, _context.ContextProvider)(this,_chunkGGEPFBR7cjs.a,{view:"candidate"});this.render=()=>_lit.html`${_unsafehtmljs.unsafeHTML.call(void 0, this._xml)}<slot></slot>`}set audienceContext(o){this.provider.value.view=o.view,this.provider.updateObservers()}set xml(o){let w=this._xml;this._xml=_chunkZ2P5ZMVDcjs.a.call(void 0, o).customTypes().customDefinition().assetsLocation(`${this.itemLocation}`).xml(),this.requestUpdate("xml",w)
|
|
2194
|
+
`;var t=class extends _lit.LitElement{constructor(){super(...arguments);this.itemLocation="";this.provider=new (0, _context.ContextProvider)(this,_chunkGGEPFBR7cjs.a,{view:"candidate"});this.render=()=>_lit.html`${_unsafehtmljs.unsafeHTML.call(void 0, this._xml)}<slot></slot>`}set audienceContext(o){this.provider.value.view=o.view,this.provider.updateObservers()}set xml(o){let w=this._xml;this._xml=_chunkZ2P5ZMVDcjs.a.call(void 0, o).customTypes().customDefinition().assetsLocation(`${this.itemLocation}`).xml(),this.requestUpdate("xml",w)}get xml(){return this._xml}connectedCallback(){super.connectedCallback();let o=document.createElement("style");o.textContent=e,this.shadowRoot.appendChild(o)}};t.styles=_lit.css`
|
|
2197
2195
|
:host {
|
|
2198
2196
|
display: block;
|
|
2199
2197
|
}
|
|
2200
|
-
`,
|
|
2198
|
+
`,_chunk6G76D2MIcjs.c.call(void 0, [_decoratorsjs.property.call(void 0, {type:String,attribute:"item-location"})],t.prototype,"itemLocation",2),_chunk6G76D2MIcjs.c.call(void 0, [_decoratorsjs.property.call(void 0, {type:String})],t.prototype,"xml",1),t= exports.a =_chunk6G76D2MIcjs.c.call(void 0, [_decoratorsjs.customElement.call(void 0, "qti-item")],t);exports.a = t;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a as i}from"./chunk-5GG2XAUT.js";import{a}from"./chunk-OO5TITDR.js";import{c as r}from"./chunk-
|
|
1
|
+
import{a as i}from"./chunk-5GG2XAUT.js";import{a}from"./chunk-OO5TITDR.js";import{c as r}from"./chunk-343LZK3D.js";import{css as c,html as d,LitElement as g}from"lit";import{customElement as h,property as n}from"lit/decorators.js";import{unsafeHTML as l}from"lit/directives/unsafe-html.js";import{ContextProvider as p}from"@lit-labs/context";var e=`/* PK: Tailwind theming file for all qti-components
|
|
2
2
|
Uses tailwind components and utilities from the other files
|
|
3
3
|
|
|
4
4
|
https://play.tailwindcss.com/OFThGk8CbR
|
|
@@ -572,7 +572,6 @@ qti-choice-interaction:not(.qti-input-control-hidden) qti-simple-choice{
|
|
|
572
572
|
display: flex;
|
|
573
573
|
align-items: center;
|
|
574
574
|
gap: 0.5rem;
|
|
575
|
-
border-radius: 9999px;
|
|
576
575
|
padding-left: 0.25rem;
|
|
577
576
|
padding-right: 0.25rem;
|
|
578
577
|
padding-top: 0.125rem;
|
|
@@ -1188,7 +1187,6 @@ qti-hottext-interaction:not(.qti-input-control-hidden) qti-hottext{
|
|
|
1188
1187
|
display: flex;
|
|
1189
1188
|
align-items: center;
|
|
1190
1189
|
gap: 0.5rem;
|
|
1191
|
-
border-radius: 9999px;
|
|
1192
1190
|
padding-left: 0.25rem;
|
|
1193
1191
|
padding-right: 0.25rem;
|
|
1194
1192
|
padding-top: 0.125rem;
|
|
@@ -2193,7 +2191,7 @@ video {
|
|
|
2193
2191
|
max-width: 100%;
|
|
2194
2192
|
height: auto;
|
|
2195
2193
|
}
|
|
2196
|
-
`;var t=class extends g{constructor(){super(...arguments);this.itemLocation="";this.provider=new p(this,i,{view:"candidate"});this.render=()=>d`${l(this._xml)}<slot></slot>`}set audienceContext(o){this.provider.value.view=o.view,this.provider.updateObservers()}set xml(o){let w=this._xml;this._xml=a(o).customTypes().customDefinition().assetsLocation(`${this.itemLocation}`).xml(),this.requestUpdate("xml",w)
|
|
2194
|
+
`;var t=class extends g{constructor(){super(...arguments);this.itemLocation="";this.provider=new p(this,i,{view:"candidate"});this.render=()=>d`${l(this._xml)}<slot></slot>`}set audienceContext(o){this.provider.value.view=o.view,this.provider.updateObservers()}set xml(o){let w=this._xml;this._xml=a(o).customTypes().customDefinition().assetsLocation(`${this.itemLocation}`).xml(),this.requestUpdate("xml",w)}get xml(){return this._xml}connectedCallback(){super.connectedCallback();let o=document.createElement("style");o.textContent=e,this.shadowRoot.appendChild(o)}};t.styles=c`
|
|
2197
2195
|
:host {
|
|
2198
2196
|
display: block;
|
|
2199
2197
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as r}from"./chunk-
|
|
1
|
+
import{a as r}from"./chunk-343LZK3D.js";function k(e,c){let t,u=r({},c);return(n,d)=>{let{connectedCallback:f,disconnectedCallback:s}=n;n.connectedCallback=function(){var i;f.call(this);let p=l=>{let h=Array.from(this.querySelectorAll(e));for(let m of l){let y=Array.from(m.addedNodes).map(o=>o),U=Array.from(m.addedNodes).map(o=>o);m.type==="childList"&&y.find(o=>h.includes(o))&&this[d](y,U)}};t=new MutationObserver(p),t.observe(this,{childList:!0,subtree:!0});let a=(i=this.querySelectorAll(e))!=null?i:[];this[d](Array.from(a),[])},n.disconnectedCallback=function(){s.call(this),t.disconnect()}}}function C(e,c){let t=r({waitUntilFirstUpdate:!1},c);return(u,n)=>{let{update:d}=u,f=Array.isArray(e)?e:[e];u.update=function(s){f.forEach(p=>{let a=p;if(s.has(a)){let i=s.get(a),l=this[a];i!==l&&(!t.waitUntilFirstUpdate||this.hasUpdated)&&this[n](i,l)}}),d.call(this,s)}}}export{k as a,C as b};
|
package/dist/context/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkGGEPFBR7cjs = require('../chunk-GGEPFBR7.cjs');require('../chunk-
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkGGEPFBR7cjs = require('../chunk-GGEPFBR7.cjs');require('../chunk-6G76D2MI.cjs');exports.audienceContext = _chunkGGEPFBR7cjs.a;
|
package/dist/context/index.d.cts
CHANGED
|
@@ -1 +1,8 @@
|
|
|
1
|
-
|
|
1
|
+
interface Audience {
|
|
2
|
+
view: 'author' | 'candidate' | 'proctor' | 'scorer' | 'testConstructor' | 'tutor';
|
|
3
|
+
}
|
|
4
|
+
declare const audienceContext: {
|
|
5
|
+
__context__: Audience;
|
|
6
|
+
};
|
|
7
|
+
|
|
8
|
+
export { Audience, audienceContext };
|
package/dist/context/index.d.ts
CHANGED
|
@@ -1 +1,8 @@
|
|
|
1
|
-
|
|
1
|
+
interface Audience {
|
|
2
|
+
view: 'author' | 'candidate' | 'proctor' | 'scorer' | 'testConstructor' | 'tutor';
|
|
3
|
+
}
|
|
4
|
+
declare const audienceContext: {
|
|
5
|
+
__context__: Audience;
|
|
6
|
+
};
|
|
7
|
+
|
|
8
|
+
export { Audience, audienceContext };
|
package/dist/context/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as o}from"../chunk-5GG2XAUT.js";import"../chunk-
|
|
1
|
+
import{a as o}from"../chunk-5GG2XAUT.js";import"../chunk-343LZK3D.js";export{o as audienceContext};
|