@pie-lib/categorize 3.0.3-next.20261026212738 → 3.0.3-next.20261110055344

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/index.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import { score as e } from "./scoring.js";
2
2
  import t from "debug";
3
3
  import { clone as n, remove as r } from "@pie-element/shared-lodash";
4
- //#region src/index.ts
4
+ // src/index.ts
5
5
  var i = "foo-two", a = t("@pie-lib:categorize"), o = (e, t, n) => n.reduce((n, r) => {
6
6
  let i = f(e, n.choices);
7
7
  return (r !== e || i < t) && n.choices.push(r), n;
@@ -147,5 +147,4 @@ var i = "foo-two", a = t("@pie-lib:categorize"), o = (e, t, n) => n.reduce((n, r
147
147
  bestResponse: o
148
148
  };
149
149
  };
150
- //#endregion
151
150
  export { i as FooTwo, E as buildCategories, C as buildChoices, D as buildState, p as countChosen, d as countInAnswer, f as countInChoices, u as ensureNoExtraChoicesInAlternate, l as ensureNoExtraChoicesInAnswer, T as getAllPossibleResponses, w as getBuiltCategories, o as limitChoices, c as limitInArray, s as limitInArrays, x as moveChoiceToAlternate, b as moveChoiceToCategory, g as rearrangeChoices, h as removeAllChoices, m as removeCategory, y as removeChoiceFromAlternate, v as removeChoiceFromCategory, e as score, S as stillSelectable, _ as verifyAllowMultiplePlacements };
package/dist/scoring.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import e from "debug";
2
- //#region src/scoring.ts
2
+ // src/scoring.ts
3
3
  var t = e("@pie-lib:categorize:scoring"), n = (e) => !e || !e.weighting ? [] : e.weighting.enabled && e.weighting && e.weighting.rules || [], r = (e, n) => {
4
4
  if (t("partial? ", e), e && e.enabled) {
5
5
  let t = e.rules.find((e) => e.category === n);
@@ -63,5 +63,4 @@ var t = e("@pie-lib:categorize:scoring"), n = (e) => !e || !e.weighting ? [] : e
63
63
  }
64
64
  });
65
65
  });
66
- //#endregion
67
66
  export { i as score };
package/package.json CHANGED
@@ -1,7 +1,8 @@
1
1
  {
2
2
  "name": "@pie-lib/categorize",
3
- "version": "3.0.3-next.20261026212738",
3
+ "version": "3.0.3-next.20261110055344",
4
4
  "description": "",
5
+ "license": "MIT",
5
6
  "repository": {
6
7
  "type": "git",
7
8
  "url": "git+https://github.com/pie-framework/pie-elements-ng.git",
@@ -9,7 +10,7 @@
9
10
  },
10
11
  "dependencies": {
11
12
  "debug": "^4.1.1",
12
- "@pie-element/shared-lodash": "0.1.4-next.20261026212738"
13
+ "@pie-element/shared-lodash": "0.1.4-next.20261110055344"
13
14
  },
14
15
  "type": "module",
15
16
  "main": "./dist/index.js",