@citolab/qti-components 6.0.28 → 6.0.30
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-5U4R2HMK.cjs → chunk-3S2ODAEN.cjs} +4 -10
- package/dist/{chunk-2K77UHFA.js → chunk-KT5PFIUE.js} +3 -9
- package/dist/{chunk-C4C24R3I.cjs → chunk-M4CYU6DC.cjs} +1 -1
- 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 +425 -425
- package/dist/decorators/index.cjs +1 -1
- package/dist/decorators/index.js +1 -1
- package/dist/index.cjs +92 -109
- package/dist/index.css +1 -7
- package/dist/index.d.cts +4 -4
- package/dist/index.d.ts +4 -4
- package/dist/index.js +93 -110
- package/dist/qti-components/index.cjs +63 -74
- package/dist/qti-components/index.d.cts +7 -7
- package/dist/qti-components/index.d.ts +7 -7
- package/dist/qti-components/index.js +78 -89
- 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,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
|
|
@@ -266,6 +266,7 @@
|
|
|
266
266
|
--tw-ring-inset: inset;
|
|
267
267
|
--tw-ring-opacity: 1;
|
|
268
268
|
--tw-ring-color: rgb(209 213 219 / var(--tw-ring-opacity));
|
|
269
|
+
display: inline-block;
|
|
269
270
|
border-radius: 0.25rem;
|
|
270
271
|
border-width: 1px;
|
|
271
272
|
--tw-border-opacity: 1;
|
|
@@ -278,13 +279,6 @@
|
|
|
278
279
|
padding-bottom: 0.5rem;
|
|
279
280
|
--tw-text-opacity: 1;
|
|
280
281
|
color: rgb(75 85 99 / var(--tw-text-opacity));
|
|
281
|
-
/* min-height: 20px;
|
|
282
|
-
padding: 19px;
|
|
283
|
-
border: 1px solid #e3e3e3;
|
|
284
|
-
border-radius: 4px;
|
|
285
|
-
margin-bottom: 20px;
|
|
286
|
-
background-color: #f5f5f5;
|
|
287
|
-
box-shadow: inset 0 1px 1px rgb(0 0 0 / 5%); */
|
|
288
282
|
}
|
|
289
283
|
|
|
290
284
|
.qti-layout-row {
|
|
@@ -2191,8 +2185,8 @@ video {
|
|
|
2191
2185
|
max-width: 100%;
|
|
2192
2186
|
height: auto;
|
|
2193
2187
|
}
|
|
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)
|
|
2188
|
+
`;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
2189
|
:host {
|
|
2196
2190
|
display: block;
|
|
2197
2191
|
}
|
|
2198
|
-
`,
|
|
2192
|
+
`,_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
|
|
@@ -266,6 +266,7 @@ import{a as i}from"./chunk-5GG2XAUT.js";import{a}from"./chunk-OO5TITDR.js";impor
|
|
|
266
266
|
--tw-ring-inset: inset;
|
|
267
267
|
--tw-ring-opacity: 1;
|
|
268
268
|
--tw-ring-color: rgb(209 213 219 / var(--tw-ring-opacity));
|
|
269
|
+
display: inline-block;
|
|
269
270
|
border-radius: 0.25rem;
|
|
270
271
|
border-width: 1px;
|
|
271
272
|
--tw-border-opacity: 1;
|
|
@@ -278,13 +279,6 @@ import{a as i}from"./chunk-5GG2XAUT.js";import{a}from"./chunk-OO5TITDR.js";impor
|
|
|
278
279
|
padding-bottom: 0.5rem;
|
|
279
280
|
--tw-text-opacity: 1;
|
|
280
281
|
color: rgb(75 85 99 / var(--tw-text-opacity));
|
|
281
|
-
/* min-height: 20px;
|
|
282
|
-
padding: 19px;
|
|
283
|
-
border: 1px solid #e3e3e3;
|
|
284
|
-
border-radius: 4px;
|
|
285
|
-
margin-bottom: 20px;
|
|
286
|
-
background-color: #f5f5f5;
|
|
287
|
-
box-shadow: inset 0 1px 1px rgb(0 0 0 / 5%); */
|
|
288
282
|
}
|
|
289
283
|
|
|
290
284
|
.qti-layout-row {
|
|
@@ -2191,7 +2185,7 @@ video {
|
|
|
2191
2185
|
max-width: 100%;
|
|
2192
2186
|
height: auto;
|
|
2193
2187
|
}
|
|
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)
|
|
2188
|
+
`;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
2189
|
:host {
|
|
2196
2190
|
display: block;
|
|
2197
2191
|
}
|
|
@@ -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 +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};
|