@citolab/qti-components 6.0.28 → 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-5U4R2HMK.cjs → chunk-PNQIHQ4E.cjs} +3 -3
- package/dist/{chunk-2K77UHFA.js → chunk-QFISTKXH.js} +2 -2
- 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 +287 -287
- package/dist/decorators/index.cjs +1 -1
- package/dist/decorators/index.js +1 -1
- package/dist/index.cjs +58 -58
- package/dist/index.d.cts +0 -1
- package/dist/index.d.ts +0 -1
- package/dist/index.js +59 -59
- package/dist/qti-components/index.cjs +22 -22
- package/dist/qti-components/index.d.cts +3 -4
- package/dist/qti-components/index.d.ts +3 -4
- package/dist/qti-components/index.js +20 -20
- 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
|
|
@@ -2191,8 +2191,8 @@ video {
|
|
|
2191
2191
|
max-width: 100%;
|
|
2192
2192
|
height: auto;
|
|
2193
2193
|
}
|
|
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)
|
|
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`
|
|
2195
2195
|
:host {
|
|
2196
2196
|
display: block;
|
|
2197
2197
|
}
|
|
2198
|
-
`,
|
|
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
|
|
@@ -2191,7 +2191,7 @@ video {
|
|
|
2191
2191
|
max-width: 100%;
|
|
2192
2192
|
height: auto;
|
|
2193
2193
|
}
|
|
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)
|
|
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`
|
|
2195
2195
|
:host {
|
|
2196
2196
|
display: block;
|
|
2197
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};
|