@coffer-org/plugin-documents 1.4.0 → 1.4.2

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.
@@ -12,6 +12,7 @@ nationality — ISO alpha-2. variants — given/family name per language (field.
12
12
  field.keyed({
13
13
  key: 'variants',
14
14
  label: 'documents.person_identity.fields.variants',
15
+ icon: 'lucide:languages',
15
16
  by: field.select({ key: 'lang', label: 'documents.person_identity.variants.lang', options: 'languages' }),
16
17
  fields: [
17
18
  field.string({ key: 'name', label: 'documents.person_identity.variants.name' }),
package/dist/schema.js CHANGED
@@ -4609,6 +4609,25 @@ function internalApiToken(o) {
4609
4609
  ]
4610
4610
  });
4611
4611
  }
4612
+ /**
4613
+ * Internal "connected apps" list — the OAuth clients (claude.ai & co) the user
4614
+ * has authorized for MCP access. Same "internal" caveat and custom-renderer
4615
+ * trick as internalApiToken(): read-only rows + a revoke action, never part of
4616
+ * the parent form's save.
4617
+ */
4618
+ function internalOauthGrants(o) {
4619
+ return group({
4620
+ key: o.key,
4621
+ label: o.label ?? o.key,
4622
+ multiple: true,
4623
+ view: { kind: "internalOauthGrants" },
4624
+ fields: [
4625
+ string({ key: "clientName" }),
4626
+ string({ key: "createdAt" }),
4627
+ string({ key: "lastUsedAt" })
4628
+ ]
4629
+ });
4630
+ }
4612
4631
  var SLUG_RE = /^[a-z0-9-]+$/;
4613
4632
  function slug(raw) {
4614
4633
  const o = normalizeOpts(raw);
@@ -5038,7 +5057,8 @@ var presets = {
5038
5057
  weight,
5039
5058
  dimensions,
5040
5059
  country,
5041
- internalApiToken
5060
+ internalApiToken,
5061
+ internalOauthGrants
5042
5062
  };
5043
5063
  //#endregion
5044
5064
  //#region ../../node_modules/iso-639-1/src/data.js
@@ -5867,7 +5887,7 @@ function group(o) {
5867
5887
  required: o.required,
5868
5888
  unique: r.unique,
5869
5889
  label: o.label,
5870
- icon: v.icon,
5890
+ icon: o.icon,
5871
5891
  display: v.display ?? "wrap",
5872
5892
  kind: v.kind,
5873
5893
  fixed: r.fixed,
@@ -5878,11 +5898,9 @@ function group(o) {
5878
5898
  function row(o) {
5879
5899
  return group({
5880
5900
  label: o.label,
5901
+ icon: o.icon,
5881
5902
  fields: o.fields,
5882
- view: {
5883
- ...o.view,
5884
- display: "scroll"
5885
- }
5903
+ view: { display: "scroll" }
5886
5904
  });
5887
5905
  }
5888
5906
  /** Tabular collection (array of rows → <table>, aligned by columns). Sugar. */
@@ -5890,14 +5908,12 @@ function table(o) {
5890
5908
  return group({
5891
5909
  key: o.key,
5892
5910
  label: o.label,
5911
+ icon: o.icon,
5893
5912
  fields: o.fields,
5894
5913
  multiple: true,
5895
5914
  required: o.required,
5896
5915
  rules: o.rules,
5897
- view: {
5898
- ...o.view,
5899
- display: "table"
5900
- }
5916
+ view: { display: "table" }
5901
5917
  });
5902
5918
  }
5903
5919
  /**
@@ -5913,11 +5929,9 @@ function sheet(o) {
5913
5929
  });
5914
5930
  return group({
5915
5931
  label: o.label,
5932
+ icon: o.icon,
5916
5933
  fields: flat,
5917
- view: {
5918
- ...o.view,
5919
- display: "sheet"
5920
- }
5934
+ view: { display: "sheet" }
5921
5935
  });
5922
5936
  }
5923
5937
  /**
@@ -5949,8 +5963,8 @@ function keyed(o) {
5949
5963
  return {
5950
5964
  ...(o.container ?? group)({
5951
5965
  label: o.label,
5952
- fields: [o.by, ...o.fields],
5953
- view: o.view
5966
+ icon: o.icon,
5967
+ fields: [o.by, ...o.fields]
5954
5968
  }),
5955
5969
  key: o.key,
5956
5970
  multiple: true,
@@ -7916,6 +7930,7 @@ nationality — ISO alpha-2. variants — given/family name per language (field.
7916
7930
  }), field.keyed({
7917
7931
  key: "variants",
7918
7932
  label: "documents.person_identity.fields.variants",
7933
+ icon: "lucide:languages",
7919
7934
  by: field.select({
7920
7935
  key: "lang",
7921
7936
  label: "documents.person_identity.variants.lang",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@coffer-org/plugin-documents",
3
- "version": "1.4.0",
3
+ "version": "1.4.2",
4
4
  "type": "module",
5
5
  "engines": {
6
6
  "node": ">=24"
@@ -25,6 +25,7 @@
25
25
  "postpack": "node ../../scripts/swap-exports.mjs src"
26
26
  },
27
27
  "dependencies": {
28
+ "@coffer-org/plugin-people": "^1.4.0",
28
29
  "@coffer-org/sdk": "^1.5.0",
29
30
  "@coffer-org/server": "^1.8.0"
30
31
  },