@pie-players/pie-tool-answer-eliminator 0.3.67 → 0.3.69
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/README.md +1 -1
- package/dist/rolldown-runtime--eTHp1Qs.js +20 -0
- package/dist/{sre-B6X0s2cW.js → sre-kwoc_SMV.js} +3431 -3428
- package/dist/tool-answer-eliminator.js +2076 -1331
- package/package.json +10 -8
- package/dist/vite.config.d.ts +0 -2
package/README.md
CHANGED
|
@@ -190,7 +190,7 @@ The tool detects choices through an **adapter registry** (`AdapterRegistry`), no
|
|
|
190
190
|
Support more element types at runtime by registering your own adapter (any object implementing the `ChoiceAdapter` interface: `canHandle`, `findChoices`, `getChoiceId`, `getChoiceLabel`, `canEliminate`, `createChoiceRange`, `getButtonContainer`):
|
|
191
191
|
|
|
192
192
|
```typescript
|
|
193
|
-
import { AdapterRegistry } from '@pie-players/pie-tool-answer-eliminator';
|
|
193
|
+
import { AdapterRegistry } from '@pie-players/pie-tool-answer-eliminator/adapters/adapter-registry';
|
|
194
194
|
|
|
195
195
|
const registry = new AdapterRegistry();
|
|
196
196
|
registry.registerAdapter(myCustomChoiceAdapter);
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
var s = Object.create, i = Object.defineProperty, f = Object.getOwnPropertyDescriptor, c = Object.getOwnPropertyNames, O = Object.getPrototypeOf, p = Object.prototype.hasOwnProperty, P = (e, r) => () => (r || (e((r = { exports: {} }).exports, r), e = null), r.exports), v = (e, r, t, o) => {
|
|
2
|
+
if (r && typeof r == "object" || typeof r == "function")
|
|
3
|
+
for (var u = c(r), a = 0, l = u.length, n; a < l; a++)
|
|
4
|
+
n = u[a], !p.call(e, n) && n !== t && i(e, n, {
|
|
5
|
+
get: ((_) => r[_]).bind(null, n),
|
|
6
|
+
enumerable: !(o = f(r, n)) || o.enumerable
|
|
7
|
+
});
|
|
8
|
+
return e;
|
|
9
|
+
}, b = (e, r, t) => (t = e != null ? s(O(e)) : {}, v(r || !e || !e.__esModule || !p.call(e, "default") ? i(t, "default", {
|
|
10
|
+
value: e,
|
|
11
|
+
enumerable: !0
|
|
12
|
+
}) : t, e)), d = /* @__PURE__ */ ((e) => typeof require < "u" ? require : typeof Proxy < "u" ? new Proxy(e, { get: (r, t) => (typeof require < "u" ? require : r)[t] }) : e)(function(e) {
|
|
13
|
+
if (typeof require < "u") return require.apply(this, arguments);
|
|
14
|
+
throw Error('Calling `require` for "' + e + "\" in an environment that doesn't expose the `require` function. See https://rolldown.rs/in-depth/bundling-cjs#require-external-modules for more details.");
|
|
15
|
+
});
|
|
16
|
+
export {
|
|
17
|
+
d as n,
|
|
18
|
+
b as r,
|
|
19
|
+
P as t
|
|
20
|
+
};
|