@forgedevstack/ink 1.1.0 → 1.1.1

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.
Files changed (40) hide show
  1. package/CHANGELOG.md +9 -0
  2. package/dist/components/InkEditor/InkEditor.cjs +1 -1
  3. package/dist/components/InkEditor/InkEditor.d.ts.map +1 -1
  4. package/dist/components/InkEditor/InkEditor.js +344 -331
  5. package/dist/components/InkEditor/components/AiPanel/AiPanel.cjs +1 -1
  6. package/dist/components/InkEditor/components/AiPanel/AiPanel.js +7 -6
  7. package/dist/components/InkEditor/components/ToolbarButton/ToolbarButton.cjs +1 -1
  8. package/dist/components/InkEditor/components/ToolbarButton/ToolbarButton.js +3 -2
  9. package/dist/constants/index.d.ts +1 -0
  10. package/dist/constants/index.d.ts.map +1 -1
  11. package/dist/constants/premium.const.cjs +1 -0
  12. package/dist/constants/premium.const.d.ts +8 -0
  13. package/dist/constants/premium.const.d.ts.map +1 -0
  14. package/dist/constants/premium.const.js +97 -0
  15. package/dist/index.cjs +1 -1
  16. package/dist/index.d.ts +3 -3
  17. package/dist/index.d.ts.map +1 -1
  18. package/dist/index.js +42 -29
  19. package/dist/styles.css +23 -1
  20. package/dist/types/index.d.ts +1 -0
  21. package/dist/types/index.d.ts.map +1 -1
  22. package/dist/types/ink.types.d.ts +7 -0
  23. package/dist/types/ink.types.d.ts.map +1 -1
  24. package/dist/types/premium.types.d.ts +30 -0
  25. package/dist/types/premium.types.d.ts.map +1 -0
  26. package/dist/utils/index.d.ts +3 -0
  27. package/dist/utils/index.d.ts.map +1 -1
  28. package/dist/utils/license.utils.cjs +1 -0
  29. package/dist/utils/license.utils.d.ts +2 -0
  30. package/dist/utils/license.utils.d.ts.map +1 -0
  31. package/dist/utils/license.utils.js +16 -0
  32. package/dist/utils/paste.utils.cjs +1 -0
  33. package/dist/utils/paste.utils.d.ts +4 -0
  34. package/dist/utils/paste.utils.d.ts.map +1 -0
  35. package/dist/utils/paste.utils.js +31 -0
  36. package/dist/utils/premium.utils.cjs +1 -0
  37. package/dist/utils/premium.utils.d.ts +6 -0
  38. package/dist/utils/premium.utils.d.ts.map +1 -0
  39. package/dist/utils/premium.utils.js +30 -0
  40. package/package.json +1 -1
@@ -0,0 +1,30 @@
1
+ import { INK_PREMIUM_LICENSE_PREFIX as u, INK_PREMIUM_FEATURES as a, INK_THEME_CSS_VARS as l } from "../constants/premium.const.js";
2
+ const n = () => Object.fromEntries(a.map((e) => [e, !1])), E = () => Object.fromEntries(a.map((e) => [e, !0])), m = /^[A-Z0-9]{4}(?:_[A-Z0-9]{4}){3}$/, o = (e) => {
3
+ if (!e) return !1;
4
+ const t = e.trim();
5
+ if (!t.startsWith(u)) return !1;
6
+ const s = t.slice(u.length);
7
+ return m.test(s);
8
+ }, I = (e) => {
9
+ const t = !!(e != null && e.enabled || o(e == null ? void 0 : e.licenseKey));
10
+ if (!t)
11
+ return { active: !1, features: n() };
12
+ const s = E();
13
+ if (e != null && e.features)
14
+ for (const r of a)
15
+ e.features[r] === !1 && (s[r] = !1);
16
+ return { active: t, features: s };
17
+ }, _ = (e, t) => e.active && e.features[t], c = (e) => {
18
+ if (!e) return {};
19
+ const t = {};
20
+ return Object.keys(l).forEach((s) => {
21
+ const r = e[s];
22
+ r && (t[l[s]] = r);
23
+ }), t;
24
+ };
25
+ export {
26
+ _ as hasInkPremiumFeature,
27
+ o as isInkPremiumLicenseKey,
28
+ I as resolveInkPremium,
29
+ c as themeTokensToStyle
30
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@forgedevstack/ink",
3
- "version": "1.1.0",
3
+ "version": "1.1.1",
4
4
  "description": "ForgeStack rich text editor for React — CKEditor-inspired WYSIWYG with tables, track changes, comments, block handles, and pluggable Ink AI (BYO LLM). The writing layer of ForgeStack.",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",