@lapis-notes/lapis-plugin-contacts 0.0.0-stage → 0.1.0

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 (145) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/LICENSE +661 -0
  3. package/README.md +125 -2
  4. package/dist/ContactMarkdownEditor-DoTuV5ka.js +69 -0
  5. package/dist/apl-B2DGVGxc.js +76 -0
  6. package/dist/asciiarmor-2LVJmxlE.js +34 -0
  7. package/dist/asn1-jKiBa2Ya.js +95 -0
  8. package/dist/asterisk-DS281yxp.js +271 -0
  9. package/dist/brainfuck-C_p9pTT8.js +34 -0
  10. package/dist/clike-BMALKCNj.js +620 -0
  11. package/dist/clojure-CCKyeQKf.js +800 -0
  12. package/dist/cmake-CuaCgAKt.js +28 -0
  13. package/dist/cobol-BlTKFDRj.js +72 -0
  14. package/dist/coffeescript-BVCvwO8I.js +179 -0
  15. package/dist/commonlisp-D_kxz07b.js +75 -0
  16. package/dist/crystal-D309uH6_.js +217 -0
  17. package/dist/css-BkF-NPzE.js +1553 -0
  18. package/dist/cypher-BMq4Fwjl.js +68 -0
  19. package/dist/d-BZcgY6La.js +127 -0
  20. package/dist/diff-Cg9d_RX2.js +18 -0
  21. package/dist/dist--69zc0xf.js +247 -0
  22. package/dist/dist-3FBhTVCW.js +260 -0
  23. package/dist/dist-BIUwdsPJ.js +300 -0
  24. package/dist/dist-BKba7kvs.js +75 -0
  25. package/dist/dist-BqWvrEwT.js +98 -0
  26. package/dist/dist-ByOxufTQ.js +58 -0
  27. package/dist/dist-CU8VWvs8.js +288 -0
  28. package/dist/dist-C_EduL9A.js +268 -0
  29. package/dist/dist-Cqfbp9Nb.js +310 -0
  30. package/dist/dist-DLu2t1SV.js +611 -0
  31. package/dist/dist-DPPvU9Yj.js +134 -0
  32. package/dist/dist-DufK_s_A.js +564 -0
  33. package/dist/dist-Dug8cDx1.js +93 -0
  34. package/dist/dist-IBryJBJR.js +137 -0
  35. package/dist/dist-ciD_jrkE.js +158 -0
  36. package/dist/dist-v6nTmcwY.js +71 -0
  37. package/dist/dockerfile-DFX8bq9N.js +194 -0
  38. package/dist/dtd-CtLokQ-U.js +84 -0
  39. package/dist/dylan-QYeExnWK.js +234 -0
  40. package/dist/ebnf-DUPDuY4r.js +78 -0
  41. package/dist/ecl-CiXN-g_D.js +121 -0
  42. package/dist/eiffel-yQhjl4T1.js +110 -0
  43. package/dist/elm-CNT9vbN0.js +108 -0
  44. package/dist/erlang-CFOYdy9e.js +487 -0
  45. package/dist/factor-Clf6BoVk.js +65 -0
  46. package/dist/fcl-CPC2WYrI.js +103 -0
  47. package/dist/forth-BmxRyE9S.js +60 -0
  48. package/dist/fortran-9bvPyrOW.js +442 -0
  49. package/dist/gas-cpmYfFX2.js +183 -0
  50. package/dist/gherkin-CJuwpceU.js +34 -0
  51. package/dist/groovy-DZeT_VM-.js +146 -0
  52. package/dist/haskell-CxiO_7JL.js +375 -0
  53. package/dist/haxe-70NVW1pR.js +359 -0
  54. package/dist/http-D9LttvKF.js +44 -0
  55. package/dist/idl-B6TRFYjl.js +947 -0
  56. package/dist/index-BGQ4A2O3.js +148265 -0
  57. package/dist/index.js +16 -0
  58. package/dist/javascript-DOuB9oqA.js +691 -0
  59. package/dist/julia-DpvXAuO6.js +241 -0
  60. package/dist/livescript-CanGTf8u.js +272 -0
  61. package/dist/lua-DBWH1E3Q.js +217 -0
  62. package/dist/mathematica-jaRHnSxC.js +35 -0
  63. package/dist/mbox-BctzC1hL.js +76 -0
  64. package/dist/mirc-CFBPAOaF.js +72 -0
  65. package/dist/mllike-BSnXJBGA.js +272 -0
  66. package/dist/modelica-vUgVs--1.js +93 -0
  67. package/dist/module-BFIPY8X5.js +2973 -0
  68. package/dist/mscgen-Cpl0NYLN.js +104 -0
  69. package/dist/mumps-CQoS1kWX.js +25 -0
  70. package/dist/native-CDi4YD_s.js +13 -0
  71. package/dist/nginx-zDPm3Z74.js +89 -0
  72. package/dist/nsis-DAjtFbMY.js +62 -0
  73. package/dist/ntriples-CsNjv2QF.js +79 -0
  74. package/dist/octave-C8PmmSRH.js +143 -0
  75. package/dist/oz-Ce8aN8oE.js +151 -0
  76. package/dist/pascal-De0D6mP7.js +77 -0
  77. package/dist/perl-B4bSCe1C.js +915 -0
  78. package/dist/pig-D24Z8EXi.js +54 -0
  79. package/dist/powershell-DkYVfTzP.js +249 -0
  80. package/dist/properties-Dn9wna3M.js +26 -0
  81. package/dist/protobuf-BPIjwpzm.js +49 -0
  82. package/dist/pug-TGXr6c5j.js +248 -0
  83. package/dist/puppet-nyd4dhjf.js +45 -0
  84. package/dist/python-BkR3uSy8.js +313 -0
  85. package/dist/q-DyHZGnqm.js +86 -0
  86. package/dist/r-LKEuhEGI.js +104 -0
  87. package/dist/rpm-IznJm2Xc.js +57 -0
  88. package/dist/ruby-DjGRFiOI.js +228 -0
  89. package/dist/sas-7E8yHoCW.js +105 -0
  90. package/dist/scheme-DjibxsNh.js +124 -0
  91. package/dist/shell-C0C2sNA_.js +182 -0
  92. package/dist/sieve-Bwz7vjP5.js +72 -0
  93. package/dist/simple-mode-mNVtnu0l.js +89 -0
  94. package/dist/smalltalk-Bhddl2pB.js +48 -0
  95. package/dist/solr-BNlsLglM.js +41 -0
  96. package/dist/sparql-FarWu_Gb.js +197 -0
  97. package/dist/spreadsheet-C-cy4P5N.js +49 -0
  98. package/dist/sql-CfG5lQ3l.js +282 -0
  99. package/dist/styles.css +1 -0
  100. package/dist/stylus-CAdqWld3.js +250 -0
  101. package/dist/swift-DSxqR9R6.js +230 -0
  102. package/dist/tcl-xfoLljhY.js +81 -0
  103. package/dist/textile-D1AWE-pc.js +295 -0
  104. package/dist/tiddlywiki-5wqsXtSk.js +155 -0
  105. package/dist/tiki-__Kn3CeS.js +181 -0
  106. package/dist/toml-DWAmxCjl.js +58 -0
  107. package/dist/troff-D2UO-fKf.js +35 -0
  108. package/dist/ttcn-Bsa4sfRm.js +123 -0
  109. package/dist/ttcn-cfg-Bac_acMi.js +88 -0
  110. package/dist/turtle-xwJUxoPV.js +80 -0
  111. package/dist/types/contacts/contact-fields.d.ts +28 -0
  112. package/dist/types/contacts/contact-list-view.d.ts +41 -0
  113. package/dist/types/contacts/contact-methods.d.ts +38 -0
  114. package/dist/types/contacts/contact-selection.d.ts +23 -0
  115. package/dist/types/contacts/markdown-session-types.d.ts +8 -0
  116. package/dist/types/contacts/model.d.ts +103 -0
  117. package/dist/types/contacts/person.d.ts +49 -0
  118. package/dist/types/contacts/validate-frontmatter.d.ts +1 -0
  119. package/dist/types/lib/contacts-plugin.d.ts +34 -0
  120. package/dist/types/lib/contacts-settings-definition.d.ts +24 -0
  121. package/dist/types/lib/contacts-settings.d.ts +48 -0
  122. package/dist/types/lib/contacts-view.d.ts +22 -0
  123. package/dist/types/lib/google/conflict-queue.d.ts +35 -0
  124. package/dist/types/lib/google/google-person.d.ts +54 -0
  125. package/dist/types/lib/google/google-sync.d.ts +50 -0
  126. package/dist/types/lib/google/people-client.d.ts +50 -0
  127. package/dist/types/lib/google/people-import.d.ts +61 -0
  128. package/dist/types/lib/google/people-push.d.ts +30 -0
  129. package/dist/types/lib/google/reconcile.d.ts +62 -0
  130. package/dist/types/lib/google/vault-contact-files.d.ts +8 -0
  131. package/dist/types/lib/google-conflicts-view.d.ts +15 -0
  132. package/dist/types/lib/index.d.ts +4 -0
  133. package/dist/types/lib/vault-contacts.d.ts +64 -0
  134. package/dist/vb-c2kQGd6-.js +74 -0
  135. package/dist/vbscript-1f_Dhg5H.js +324 -0
  136. package/dist/velocity-DJd0pTTC.js +96 -0
  137. package/dist/verilog-CiS1jyi5.js +262 -0
  138. package/dist/vhdl-T9HkrbI2.js +106 -0
  139. package/dist/webidl-CjfDENEo.js +155 -0
  140. package/dist/xquery-Ct6lEb4B.js +422 -0
  141. package/dist/yacas-C0absKBh.js +73 -0
  142. package/dist/z80-Pki2zAjW.js +61 -0
  143. package/manifest.json +43 -0
  144. package/package.json +116 -4
  145. package/schemas/contact.schema.json +619 -0
@@ -0,0 +1,35 @@
1
+ var h = {};
2
+ function u(n) {
3
+ if (n.eatSpace()) return null;
4
+ var t = n.sol(), c = n.next();
5
+ if (c === "\\")
6
+ return n.match("fB") || n.match("fR") || n.match("fI") || n.match("u") || n.match("d") || n.match("%") || n.match("&") ? "string" : n.match("m[") ? (n.skipTo("]"), n.next(), "string") : n.match("s+") || n.match("s-") ? (n.eatWhile(/[\d-]/), "string") : ((n.match("(") || n.match("*(")) && n.eatWhile(/[\w-]/), "string");
7
+ if (t && (c === "." || c === "'") && n.eat("\\") && n.eat('"'))
8
+ return n.skipToEnd(), "comment";
9
+ if (t && c === ".") {
10
+ if (n.match("B ") || n.match("I ") || n.match("R "))
11
+ return "attribute";
12
+ if (n.match("TH ") || n.match("SH ") || n.match("SS ") || n.match("HP "))
13
+ return n.skipToEnd(), "quote";
14
+ if (n.match(/[A-Z]/) && n.match(/[A-Z]/) || n.match(/[a-z]/) && n.match(/[a-z]/))
15
+ return "attribute";
16
+ }
17
+ n.eatWhile(/[\w-]/);
18
+ var i = n.current();
19
+ return h.hasOwnProperty(i) ? h[i] : null;
20
+ }
21
+ function f(n, t) {
22
+ return (t.tokens[0] || u)(n, t);
23
+ }
24
+ const o = {
25
+ name: "troff",
26
+ startState: function() {
27
+ return { tokens: [] };
28
+ },
29
+ token: function(n, t) {
30
+ return f(n, t);
31
+ }
32
+ };
33
+ export {
34
+ o as troff
35
+ };
@@ -0,0 +1,123 @@
1
+ function o(e) {
2
+ for (var t = {}, n = e.split(" "), r = 0; r < n.length; ++r) t[n[r]] = !0;
3
+ return t;
4
+ }
5
+ const i = {
6
+ keywords: o("activate address alive all alt altstep and and4b any break case component const continue control deactivate display do else encode enumerated except exception execute extends extension external for from function goto group if import in infinity inout interleave label language length log match message mixed mod modifies module modulepar mtc noblock not not4b nowait of on optional or or4b out override param pattern port procedure record recursive rem repeat return runs select self sender set signature system template testcase to type union value valueof var variant while with xor xor4b"),
7
+ builtin: o("bit2hex bit2int bit2oct bit2str char2int char2oct encvalue decomp decvalue float2int float2str hex2bit hex2int hex2oct hex2str int2bit int2char int2float int2hex int2oct int2str int2unichar isbound ischosen ispresent isvalue lengthof log2str oct2bit oct2char oct2hex oct2int oct2str regexp replace rnd sizeof str2bit str2float str2hex str2int str2oct substr unichar2int unichar2char enum2int"),
8
+ types: o("anytype bitstring boolean char charstring default float hexstring integer objid octetstring universal verdicttype timer"),
9
+ timerOps: o("read running start stop timeout"),
10
+ portOps: o("call catch check clear getcall getreply halt raise receive reply send trigger"),
11
+ configOps: o("create connect disconnect done kill killed map unmap"),
12
+ verdictOps: o("getverdict setverdict"),
13
+ sutOps: o("action"),
14
+ functionOps: o("apply derefers refers"),
15
+ verdictConsts: o("error fail inconc none pass"),
16
+ booleanConsts: o("true false"),
17
+ otherConsts: o("null NULL omit"),
18
+ visibilityModifiers: o("private public friend"),
19
+ templateMatch: o("complement ifpresent subset superset permutation")
20
+ };
21
+ var h = [];
22
+ function p(e) {
23
+ if (e) for (var t in e) e.hasOwnProperty(t) && h.push(t);
24
+ }
25
+ p(i.keywords);
26
+ p(i.builtin);
27
+ p(i.timerOps);
28
+ p(i.portOps);
29
+ var y = i.keywords || {}, v = i.builtin || {}, x = i.timerOps || {}, g = i.portOps || {}, k = i.configOps || {}, O = i.verdictOps || {}, w = i.sutOps || {}, E = i.functionOps || {}, C = i.verdictConsts || {}, I = i.booleanConsts || {}, z = i.otherConsts || {}, L = i.types || {}, M = i.visibilityModifiers || {}, S = i.templateMatch || {}, W = i.indentStatements !== !1, d = /[+\-*&@=<>!\/]/, l;
30
+ function T(e, t) {
31
+ var n = e.next();
32
+ if (n == '"' || n == "'")
33
+ return t.tokenize = N(n), t.tokenize(e, t);
34
+ if (/[\[\]{}\(\),;\\:\?\.]/.test(n))
35
+ return l = n, "punctuation";
36
+ if (n == "#")
37
+ return e.skipToEnd(), "atom";
38
+ if (n == "%")
39
+ return e.eatWhile(/\b/), "atom";
40
+ if (/\d/.test(n))
41
+ return e.eatWhile(/[\w\.]/), "number";
42
+ if (n == "/") {
43
+ if (e.eat("*"))
44
+ return t.tokenize = m, m(e, t);
45
+ if (e.eat("/"))
46
+ return e.skipToEnd(), "comment";
47
+ }
48
+ if (d.test(n))
49
+ return n == "@" && (e.match("try") || e.match("catch") || e.match("lazy")) ? "keyword" : (e.eatWhile(d), "operator");
50
+ e.eatWhile(/[\w\$_\xa1-\uffff]/);
51
+ var r = e.current();
52
+ return y.propertyIsEnumerable(r) ? "keyword" : v.propertyIsEnumerable(r) ? "builtin" : x.propertyIsEnumerable(r) || k.propertyIsEnumerable(r) || O.propertyIsEnumerable(r) || g.propertyIsEnumerable(r) || w.propertyIsEnumerable(r) || E.propertyIsEnumerable(r) ? "def" : C.propertyIsEnumerable(r) || I.propertyIsEnumerable(r) || z.propertyIsEnumerable(r) ? "string" : L.propertyIsEnumerable(r) ? "typeName.standard" : M.propertyIsEnumerable(r) ? "modifier" : S.propertyIsEnumerable(r) ? "atom" : "variable";
53
+ }
54
+ function N(e) {
55
+ return function(t, n) {
56
+ for (var r = !1, c, f = !1; (c = t.next()) != null; ) {
57
+ if (c == e && !r) {
58
+ var s = t.peek();
59
+ s && (s = s.toLowerCase(), (s == "b" || s == "h" || s == "o") && t.next()), f = !0;
60
+ break;
61
+ }
62
+ r = !r && c == "\\";
63
+ }
64
+ return f && (n.tokenize = null), "string";
65
+ };
66
+ }
67
+ function m(e, t) {
68
+ for (var n = !1, r; r = e.next(); ) {
69
+ if (r == "/" && n) {
70
+ t.tokenize = null;
71
+ break;
72
+ }
73
+ n = r == "*";
74
+ }
75
+ return "comment";
76
+ }
77
+ function b(e, t, n, r, c) {
78
+ this.indented = e, this.column = t, this.type = n, this.align = r, this.prev = c;
79
+ }
80
+ function a(e, t, n) {
81
+ var r = e.indented;
82
+ return e.context && e.context.type == "statement" && (r = e.context.indented), e.context = new b(r, t, n, null, e.context);
83
+ }
84
+ function u(e) {
85
+ var t = e.context.type;
86
+ return (t == ")" || t == "]" || t == "}") && (e.indented = e.context.indented), e.context = e.context.prev;
87
+ }
88
+ const P = {
89
+ name: "ttcn",
90
+ startState: function() {
91
+ return {
92
+ tokenize: null,
93
+ context: new b(0, 0, "top", !1),
94
+ indented: 0,
95
+ startOfLine: !0
96
+ };
97
+ },
98
+ token: function(e, t) {
99
+ var n = t.context;
100
+ if (e.sol() && (n.align == null && (n.align = !1), t.indented = e.indentation(), t.startOfLine = !0), e.eatSpace()) return null;
101
+ l = null;
102
+ var r = (t.tokenize || T)(e, t);
103
+ if (r == "comment") return r;
104
+ if (n.align == null && (n.align = !0), (l == ";" || l == ":" || l == ",") && n.type == "statement")
105
+ u(t);
106
+ else if (l == "{") a(t, e.column(), "}");
107
+ else if (l == "[") a(t, e.column(), "]");
108
+ else if (l == "(") a(t, e.column(), ")");
109
+ else if (l == "}") {
110
+ for (; n.type == "statement"; ) n = u(t);
111
+ for (n.type == "}" && (n = u(t)); n.type == "statement"; ) n = u(t);
112
+ } else l == n.type ? u(t) : W && ((n.type == "}" || n.type == "top") && l != ";" || n.type == "statement" && l == "newstatement") && a(t, e.column(), "statement");
113
+ return t.startOfLine = !1, r;
114
+ },
115
+ languageData: {
116
+ indentOnInput: /^\s*[{}]$/,
117
+ commentTokens: { line: "//", block: { open: "/*", close: "*/" } },
118
+ autocomplete: h
119
+ }
120
+ };
121
+ export {
122
+ P as ttcn
123
+ };
@@ -0,0 +1,88 @@
1
+ function I(e) {
2
+ for (var n = {}, T = e.split(" "), E = 0; E < T.length; ++E)
3
+ n[T[E]] = !0;
4
+ return n;
5
+ }
6
+ const r = {
7
+ keywords: I("Yes No LogFile FileMask ConsoleMask AppendFile TimeStampFormat LogEventTypes SourceInfoFormat LogEntityName LogSourceInfo DiskFullAction LogFileNumber LogFileSize MatchingHints Detailed Compact SubCategories Stack Single None Seconds DateTime Time Stop Error Retry Delete TCPPort KillTimer NumHCs UnixSocketsEnabled LocalAddress"),
8
+ fileNCtrlMaskOptions: I("TTCN_EXECUTOR TTCN_ERROR TTCN_WARNING TTCN_PORTEVENT TTCN_TIMEROP TTCN_VERDICTOP TTCN_DEFAULTOP TTCN_TESTCASE TTCN_ACTION TTCN_USER TTCN_FUNCTION TTCN_STATISTICS TTCN_PARALLEL TTCN_MATCHING TTCN_DEBUG EXECUTOR ERROR WARNING PORTEVENT TIMEROP VERDICTOP DEFAULTOP TESTCASE ACTION USER FUNCTION STATISTICS PARALLEL MATCHING DEBUG LOG_ALL LOG_NOTHING ACTION_UNQUALIFIED DEBUG_ENCDEC DEBUG_TESTPORT DEBUG_UNQUALIFIED DEFAULTOP_ACTIVATE DEFAULTOP_DEACTIVATE DEFAULTOP_EXIT DEFAULTOP_UNQUALIFIED ERROR_UNQUALIFIED EXECUTOR_COMPONENT EXECUTOR_CONFIGDATA EXECUTOR_EXTCOMMAND EXECUTOR_LOGOPTIONS EXECUTOR_RUNTIME EXECUTOR_UNQUALIFIED FUNCTION_RND FUNCTION_UNQUALIFIED MATCHING_DONE MATCHING_MCSUCCESS MATCHING_MCUNSUCC MATCHING_MMSUCCESS MATCHING_MMUNSUCC MATCHING_PCSUCCESS MATCHING_PCUNSUCC MATCHING_PMSUCCESS MATCHING_PMUNSUCC MATCHING_PROBLEM MATCHING_TIMEOUT MATCHING_UNQUALIFIED PARALLEL_PORTCONN PARALLEL_PORTMAP PARALLEL_PTC PARALLEL_UNQUALIFIED PORTEVENT_DUALRECV PORTEVENT_DUALSEND PORTEVENT_MCRECV PORTEVENT_MCSEND PORTEVENT_MMRECV PORTEVENT_MMSEND PORTEVENT_MQUEUE PORTEVENT_PCIN PORTEVENT_PCOUT PORTEVENT_PMIN PORTEVENT_PMOUT PORTEVENT_PQUEUE PORTEVENT_STATE PORTEVENT_UNQUALIFIED STATISTICS_UNQUALIFIED STATISTICS_VERDICT TESTCASE_FINISH TESTCASE_START TESTCASE_UNQUALIFIED TIMEROP_GUARD TIMEROP_READ TIMEROP_START TIMEROP_STOP TIMEROP_TIMEOUT TIMEROP_UNQUALIFIED USER_UNQUALIFIED VERDICTOP_FINAL VERDICTOP_GETVERDICT VERDICTOP_SETVERDICT VERDICTOP_UNQUALIFIED WARNING_UNQUALIFIED"),
9
+ externalCommands: I("BeginControlPart EndControlPart BeginTestCase EndTestCase")
10
+ };
11
+ var A = r.keywords, U = r.fileNCtrlMaskOptions, R = r.externalCommands, S = r.indentStatements !== !1, O = /[\|]/, t;
12
+ function u(e, n) {
13
+ var T = e.next();
14
+ if (T == '"' || T == "'")
15
+ return n.tokenize = P(T), n.tokenize(e, n);
16
+ if (/[:=]/.test(T))
17
+ return t = T, "punctuation";
18
+ if (T == "#")
19
+ return e.skipToEnd(), "comment";
20
+ if (/\d/.test(T))
21
+ return e.eatWhile(/[\w\.]/), "number";
22
+ if (O.test(T))
23
+ return e.eatWhile(O), "operator";
24
+ if (T == "[")
25
+ return e.eatWhile(/[\w_\]]/), "number";
26
+ e.eatWhile(/[\w\$_]/);
27
+ var E = e.current();
28
+ return A.propertyIsEnumerable(E) ? "keyword" : U.propertyIsEnumerable(E) ? "atom" : R.propertyIsEnumerable(E) ? "deleted" : "variable";
29
+ }
30
+ function P(e) {
31
+ return function(n, T) {
32
+ for (var E = !1, i, l = !1; (i = n.next()) != null; ) {
33
+ if (i == e && !E) {
34
+ var C = n.peek();
35
+ C && (C = C.toLowerCase(), (C == "b" || C == "h" || C == "o") && n.next()), l = !0;
36
+ break;
37
+ }
38
+ E = !E && i == "\\";
39
+ }
40
+ return l && (T.tokenize = null), "string";
41
+ };
42
+ }
43
+ function _(e, n, T, E, i) {
44
+ this.indented = e, this.column = n, this.type = T, this.align = E, this.prev = i;
45
+ }
46
+ function N(e, n, T) {
47
+ var E = e.indented;
48
+ return e.context && e.context.type == "statement" && (E = e.context.indented), e.context = new _(E, n, T, null, e.context);
49
+ }
50
+ function o(e) {
51
+ var n = e.context.type;
52
+ return (n == ")" || n == "]" || n == "}") && (e.indented = e.context.indented), e.context = e.context.prev;
53
+ }
54
+ const L = {
55
+ name: "ttcn",
56
+ startState: function() {
57
+ return {
58
+ tokenize: null,
59
+ context: new _(0, 0, "top", !1),
60
+ indented: 0,
61
+ startOfLine: !0
62
+ };
63
+ },
64
+ token: function(e, n) {
65
+ var T = n.context;
66
+ if (e.sol() && (T.align == null && (T.align = !1), n.indented = e.indentation(), n.startOfLine = !0), e.eatSpace()) return null;
67
+ t = null;
68
+ var E = (n.tokenize || u)(e, n);
69
+ if (E == "comment") return E;
70
+ if (T.align == null && (T.align = !0), (t == ";" || t == ":" || t == ",") && T.type == "statement")
71
+ o(n);
72
+ else if (t == "{") N(n, e.column(), "}");
73
+ else if (t == "[") N(n, e.column(), "]");
74
+ else if (t == "(") N(n, e.column(), ")");
75
+ else if (t == "}") {
76
+ for (; T.type == "statement"; ) T = o(n);
77
+ for (T.type == "}" && (T = o(n)); T.type == "statement"; ) T = o(n);
78
+ } else t == T.type ? o(n) : S && ((T.type == "}" || T.type == "top") && t != ";" || T.type == "statement" && t == "newstatement") && N(n, e.column(), "statement");
79
+ return n.startOfLine = !1, E;
80
+ },
81
+ languageData: {
82
+ indentOnInput: /^\s*[{}]$/,
83
+ commentTokens: { line: "#" }
84
+ }
85
+ };
86
+ export {
87
+ L as ttcnCfg
88
+ };
@@ -0,0 +1,80 @@
1
+ var r;
2
+ function p(e) {
3
+ return new RegExp("^(?:" + e.join("|") + ")$", "i");
4
+ }
5
+ p([]);
6
+ var d = p(["@prefix", "@base", "a"]), f = /[*+\-<>=&|]/;
7
+ function x(e, n) {
8
+ var t = e.next();
9
+ if (r = null, t == "<" && !e.match(/^[\s\u00a0=]/, !1))
10
+ return e.match(/^[^\s\u00a0>]*>?/), "atom";
11
+ if (t == '"' || t == "'")
12
+ return n.tokenize = v(t), n.tokenize(e, n);
13
+ if (/[{}\(\),\.;\[\]]/.test(t))
14
+ return r = t, null;
15
+ if (t == "#")
16
+ return e.skipToEnd(), "comment";
17
+ if (f.test(t))
18
+ return e.eatWhile(f), null;
19
+ if (t == ":")
20
+ return "operator";
21
+ if (e.eatWhile(/[_\w\d]/), e.peek() == ":")
22
+ return "variableName.special";
23
+ var i = e.current();
24
+ return d.test(i) ? "meta" : t >= "A" && t <= "Z" ? "comment" : "keyword";
25
+ var i = e.current();
26
+ }
27
+ function v(e) {
28
+ return function(n, t) {
29
+ for (var i = !1, o; (o = n.next()) != null; ) {
30
+ if (o == e && !i) {
31
+ t.tokenize = x;
32
+ break;
33
+ }
34
+ i = !i && o == "\\";
35
+ }
36
+ return "string";
37
+ };
38
+ }
39
+ function l(e, n, t) {
40
+ e.context = { prev: e.context, indent: e.indent, col: t, type: n };
41
+ }
42
+ function c(e) {
43
+ e.indent = e.context.indent, e.context = e.context.prev;
44
+ }
45
+ const g = {
46
+ name: "turtle",
47
+ startState: function() {
48
+ return {
49
+ tokenize: x,
50
+ context: null,
51
+ indent: 0,
52
+ col: 0
53
+ };
54
+ },
55
+ token: function(e, n) {
56
+ if (e.sol() && (n.context && n.context.align == null && (n.context.align = !1), n.indent = e.indentation()), e.eatSpace()) return null;
57
+ var t = n.tokenize(e, n);
58
+ if (t != "comment" && n.context && n.context.align == null && n.context.type != "pattern" && (n.context.align = !0), r == "(") l(n, ")", e.column());
59
+ else if (r == "[") l(n, "]", e.column());
60
+ else if (r == "{") l(n, "}", e.column());
61
+ else if (/[\]\}\)]/.test(r)) {
62
+ for (; n.context && n.context.type == "pattern"; ) c(n);
63
+ n.context && r == n.context.type && c(n);
64
+ } else r == "." && n.context && n.context.type == "pattern" ? c(n) : /atom|string|variable/.test(t) && n.context && (/[\}\]]/.test(n.context.type) ? l(n, "pattern", e.column()) : n.context.type == "pattern" && !n.context.align && (n.context.align = !0, n.context.col = e.column()));
65
+ return t;
66
+ },
67
+ indent: function(e, n, t) {
68
+ var i = n && n.charAt(0), o = e.context;
69
+ if (/[\]\}]/.test(i))
70
+ for (; o && o.type == "pattern"; ) o = o.prev;
71
+ var u = o && i == o.type;
72
+ return o ? o.type == "pattern" ? o.col : o.align ? o.col + (u ? 0 : 1) : o.indent + (u ? 0 : t.unit) : 0;
73
+ },
74
+ languageData: {
75
+ commentTokens: { line: "#" }
76
+ }
77
+ };
78
+ export {
79
+ g as turtle
80
+ };
@@ -0,0 +1,28 @@
1
+ export interface ContactAddress {
2
+ type?: string;
3
+ formattedValue?: string;
4
+ streetAddress?: string;
5
+ city?: string;
6
+ region?: string;
7
+ postalCode?: string;
8
+ country?: string;
9
+ countryCode?: string;
10
+ extendedAddress?: string;
11
+ poBox?: string;
12
+ start?: string;
13
+ end?: string;
14
+ }
15
+ export declare function formatAddress(row: ContactAddress): string;
16
+ export interface SignificantDate {
17
+ label: string;
18
+ date: string;
19
+ }
20
+ export interface ContactFields {
21
+ addresses: ContactAddress[];
22
+ significantDates: SignificantDate[];
23
+ relatedPeople: string[];
24
+ tags: string[];
25
+ }
26
+ export declare function epoch(value: string): number;
27
+ export declare function readTags(value: unknown): string[];
28
+ export declare function readContactFields(fields: Partial<Record<keyof ContactFields, unknown>>, path: string): ContactFields;
@@ -0,0 +1,41 @@
1
+ /**
2
+ * Directory filtering, sorting and group chip colours. Filters use Design
3
+ * Core's FilterBuilder state (as the canvas table does); matching stays here
4
+ * because the builder never evaluates host records.
5
+ */
6
+ import type { FilterField, StructuredFilterState } from "@lapismd/design-core/shadcn/filter-builder";
7
+ import { type Contact } from "./model";
8
+ /** Theme tones TagList offers; danger is left out so a group never reads as an error. */
9
+ declare const groupTones: readonly ["accent", "success", "warning", "neutral"];
10
+ export type GroupTone = (typeof groupTones)[number];
11
+ /** A stable tone per group name, so a group keeps its colour everywhere. */
12
+ export declare function groupTone(group: string): GroupTone;
13
+ /**
14
+ * Tones for a known set of groups. Each group starts at its stable hashed
15
+ * tone and moves to the next free one when another group already holds it, so
16
+ * up to four groups never share a colour. Groups are placed in name order, so
17
+ * the result does not depend on which contact is read first.
18
+ */
19
+ export declare function groupToneMap(groups: readonly string[]): Map<string, GroupTone>;
20
+ export declare function contactFilterFields(groups: string[]): FilterField[];
21
+ export declare function matchesFilter(contact: Contact, state: StructuredFilterState, today: string): boolean;
22
+ export declare const sortOptions: readonly [{
23
+ readonly value: "name";
24
+ readonly label: "Name";
25
+ }, {
26
+ readonly value: "lastContact";
27
+ readonly label: "Last contacted";
28
+ }, {
29
+ readonly value: "nextDue";
30
+ readonly label: "Next due";
31
+ }, {
32
+ readonly value: "pending";
33
+ readonly label: "Pending replies";
34
+ }];
35
+ export type SortKey = (typeof sortOptions)[number]["value"];
36
+ export type SortDirection = "asc" | "desc";
37
+ /** The natural first direction: A–Z, most recent contact, soonest due, most pending. */
38
+ export declare const defaultDirection: Record<SortKey, SortDirection>;
39
+ /** Sorted copy; contacts missing the value go last either way, then by name. */
40
+ export declare function sortContacts(contacts: Contact[], key: SortKey, direction: SortDirection, today: string): Contact[];
41
+ export {};
@@ -0,0 +1,38 @@
1
+ export declare const methodKinds: readonly ["emails", "phones", "urls", "customFields"];
2
+ export type MethodKind = (typeof methodKinds)[number];
3
+ export type ContactMethod = {
4
+ label: string;
5
+ value: string;
6
+ };
7
+ export type ContactMethods = Record<MethodKind, ContactMethod[]>;
8
+ export declare const methodInfo: {
9
+ readonly emails: {
10
+ readonly name: "Email";
11
+ readonly type: "email";
12
+ readonly key: "emailAddresses";
13
+ readonly legacy: "email";
14
+ };
15
+ readonly phones: {
16
+ readonly name: "Phone";
17
+ readonly type: "tel";
18
+ readonly key: "phoneNumbers";
19
+ readonly legacy: "phone";
20
+ };
21
+ readonly urls: {
22
+ readonly name: "URL";
23
+ readonly type: "url";
24
+ readonly key: "urls";
25
+ readonly legacy: undefined;
26
+ };
27
+ readonly customFields: {
28
+ readonly name: "Custom field";
29
+ readonly type: "text";
30
+ readonly key: "userDefined";
31
+ readonly legacy: undefined;
32
+ };
33
+ };
34
+ export declare function readMethods(kind: MethodKind, input: unknown, legacy?: unknown): ContactMethod[];
35
+ export declare function methodHref(kind: MethodKind, value: string): string;
36
+ export declare function storedMethods(kind: MethodKind, items: ContactMethod[]): {
37
+ value: string;
38
+ }[];
@@ -0,0 +1,23 @@
1
+ /**
2
+ * Directory multi-select and drag, modelled on lapis-plugin-tasks: a click
3
+ * selects one contact, Cmd/Ctrl-click toggles one, Shift-click selects a
4
+ * range, and dragging carries the selection onto a sidebar target.
5
+ */
6
+ export type SelectionMode = "replace" | "toggle" | "range";
7
+ export declare function selectionMode(event: Pick<MouseEvent, "shiftKey" | "metaKey" | "ctrlKey">): SelectionMode;
8
+ /** The next selection, kept in visible order; ids not shown are dropped. */
9
+ export declare function resolveSelection(visible: string[], selected: string[], anchor: string | null, target: string, mode: SelectionMode): {
10
+ ids: string[];
11
+ anchor: string | null;
12
+ };
13
+ /** A sidebar entry that accepts dropped contacts. */
14
+ export type DropTarget = {
15
+ kind: "favourites";
16
+ } | {
17
+ kind: "group";
18
+ group: string;
19
+ };
20
+ export declare function dropTargetId(target: DropTarget): string;
21
+ export declare function parseDropTarget(id: string | undefined): DropTarget | null;
22
+ /** Distance in pixels a press must travel before it becomes a drag. */
23
+ export declare const DRAG_THRESHOLD = 5;
@@ -0,0 +1,8 @@
1
+ import type { App } from "@lapis-notes/api";
2
+ export type ContactEditorMode = "live-preview" | "source";
3
+ /** An App whose Markdown extensions drive the editor, and how to release it. */
4
+ export type MarkdownSession = {
5
+ app: App;
6
+ dispose: () => Promise<void>;
7
+ };
8
+ export type OpenMarkdownSession = () => Promise<MarkdownSession>;
@@ -0,0 +1,103 @@
1
+ import type { DropTarget } from "./contact-selection";
2
+ import { type ContactMethods } from "./contact-methods";
3
+ import { type ContactFields } from "./contact-fields";
4
+ import { type PersonName, type Organization, type Birthday, type Photo } from "./person";
5
+ export type Direction = "mine" | "theirs";
6
+ export type Interaction = {
7
+ date: string;
8
+ channel: string;
9
+ note: string;
10
+ };
11
+ export type FollowUp = {
12
+ id: string;
13
+ topic: string;
14
+ direction: Direction;
15
+ opened: string;
16
+ due: string;
17
+ resolved?: string;
18
+ };
19
+ export type Profile = ContactMethods & ContactFields & {
20
+ name: string;
21
+ names: PersonName[];
22
+ organizations: Organization[];
23
+ birthdays: Birthday[];
24
+ photos: Photo[];
25
+ avatarBackground?: string;
26
+ groups: string[];
27
+ favourite: boolean;
28
+ notes: string;
29
+ };
30
+ export type Contact = Profile & {
31
+ path: string;
32
+ resourceName: string;
33
+ interactions: Interaction[];
34
+ followUps: FollowUp[];
35
+ };
36
+ export declare const blankProfile: () => Profile;
37
+ export declare function readContact(path: string, source: string, assignId?: () => string): Contact;
38
+ export declare function writeContact(contact: Contact): string;
39
+ export declare function addDays(date: string, days: number): string;
40
+ export declare function daysBetween(from: string, to: string): number;
41
+ export declare function dueLabel(due: string, today: string): string;
42
+ export declare const timeline: (contact: Contact) => Interaction[];
43
+ export declare const pending: (contact: Contact) => FollowUp[];
44
+ /** Resolved follow-ups, most recently resolved first. */
45
+ export declare const completed: (contact: Contact) => FollowUp[];
46
+ export declare const directionLabel: (direction: Direction) => "I owe a reply" | "Waiting on them";
47
+ export declare function lastContact(contact: Contact, today: string): string;
48
+ export declare function folderPath(input: string): string;
49
+ export declare function matches(contact: Contact, filter: string, search: string): boolean;
50
+ export declare class MemoryContacts {
51
+ readonly files: Map<string, string>;
52
+ folder: string;
53
+ interval: number;
54
+ private readonly clock;
55
+ constructor(seed: Record<string, string>, today: string | (() => string));
56
+ /** The current calendar date, evaluated on every read so deadlines roll over. */
57
+ get today(): string;
58
+ list(): Contact[];
59
+ configure(folder: string, interval: number): void;
60
+ save(profile: Profile, existing?: Contact): string;
61
+ source(path: string): string;
62
+ replaceSource(path: string, source: string, expected: string): void;
63
+ private put;
64
+ log(contact: Contact, interaction: Interaction): void;
65
+ open(contact: Contact, topic: string, direction: Direction, due?: string): void;
66
+ /** Changes an open follow-up's topic, direction or due date in place. */
67
+ edit(contact: Contact, id: string, changes: Partial<Pick<FollowUp, "topic" | "direction" | "due">>): void;
68
+ /**
69
+ * Adds contacts to Favourites or a group, as a sidebar drop does.
70
+ * Returns how many changed; ones already there are left untouched.
71
+ */
72
+ file(contacts: Contact[], target: DropTarget): number;
73
+ /** Moves a resolved follow-up back to pending. */
74
+ reopen(contact: Contact, id: string): void;
75
+ /** Deletes a follow-up outright, pending or resolved. */
76
+ remove(contact: Contact, id: string): void;
77
+ resolve(contact: Contact, id: string): void;
78
+ }
79
+ type Maybe<T> = T | Promise<T>;
80
+ /**
81
+ * The contract the shell drives. Reads are synchronous against the store's
82
+ * current view; mutations may resolve asynchronously once the backing vault
83
+ * has accepted them, so callers await them before reporting success.
84
+ */
85
+ export interface ContactsStore {
86
+ readonly today: string;
87
+ readonly folder: string;
88
+ readonly interval: number;
89
+ list(): Contact[];
90
+ source(path: string): string;
91
+ save(profile: Profile, existing?: Contact): Maybe<string>;
92
+ replaceSource(path: string, source: string, expected: string): Maybe<void>;
93
+ log(contact: Contact, interaction: Interaction): Maybe<void>;
94
+ open(contact: Contact, topic: string, direction: Direction, due?: string): Maybe<void>;
95
+ edit(contact: Contact, id: string, changes: Partial<Pick<FollowUp, "topic" | "direction" | "due">>): Maybe<void>;
96
+ resolve(contact: Contact, id: string): Maybe<void>;
97
+ reopen(contact: Contact, id: string): Maybe<void>;
98
+ remove(contact: Contact, id: string): Maybe<void>;
99
+ file(contacts: Contact[], target: DropTarget): Maybe<number>;
100
+ /** Called when contacts change outside the shell's own mutations. */
101
+ subscribe?(listener: () => void): () => void;
102
+ }
103
+ export {};
@@ -0,0 +1,49 @@
1
+ /** The editable subset of Google People fields. Imported metadata stays on its entry. */
2
+ interface PersonEntry {
3
+ metadata?: {
4
+ primary?: boolean;
5
+ };
6
+ }
7
+ export interface PersonName extends PersonEntry {
8
+ unstructuredName?: string;
9
+ displayName?: string;
10
+ givenName?: string;
11
+ middleName?: string;
12
+ familyName?: string;
13
+ }
14
+ export interface Organization extends PersonEntry {
15
+ name?: string;
16
+ title?: string;
17
+ department?: string;
18
+ }
19
+ export interface Photo extends PersonEntry {
20
+ url: string;
21
+ default?: boolean;
22
+ }
23
+ export interface Birthday extends PersonEntry {
24
+ date?: {
25
+ year?: number;
26
+ month?: number;
27
+ day?: number;
28
+ };
29
+ text?: string;
30
+ }
31
+ export declare function primary<T extends PersonEntry>(entries: T[]): T | undefined;
32
+ export declare function nameParts(name?: PersonName): string;
33
+ export declare function fullName(name?: PersonName): string;
34
+ export declare function replacePrimary<T extends PersonEntry>(entries: T[], next?: T): T[];
35
+ export declare function editedNames(names: PersonName[], name: string, parts: PersonName): PersonName[];
36
+ export declare function formatBirthday({ date, text }: Birthday): string;
37
+ export declare function validateBirthday(birthday: Birthday): void;
38
+ export declare function displayPhoto(photos: Photo[]): string;
39
+ export declare function editPhoto(photos: Photo[], url: string): Photo[];
40
+ /** The draft's birthday as display text, ignoring parts that are out of range. */
41
+ export declare function birthdayDraftLabel({ year, month, day, text }: BirthdayDraft): string;
42
+ export type BirthdayDraft = Birthday & {
43
+ year: string;
44
+ month: string;
45
+ day: string;
46
+ };
47
+ export declare function birthdayDraft({ date, ...rest }: Birthday): BirthdayDraft;
48
+ export declare function savedBirthday({ year, month, day, text, date, ...rest }: BirthdayDraft): Birthday;
49
+ export {};
@@ -0,0 +1 @@
1
+ export declare function checkFrontmatter(fields: Record<string, unknown>): void;
@@ -0,0 +1,34 @@
1
+ import { Plugin, type App, type PluginManifest } from "@lapis-notes/api";
2
+ import { type ContactsSettings, type ContactsSettingsPatch } from "./contacts-settings";
3
+ import { VaultContacts } from "./vault-contacts";
4
+ import { GoogleConflictQueue } from "./google/conflict-queue";
5
+ import { GoogleSync } from "./google/google-sync";
6
+ export declare const CONTACTS_PLUGIN_ID = "contacts";
7
+ export declare class ContactsPlugin extends Plugin {
8
+ readonly store: VaultContacts;
9
+ private clockSource;
10
+ private data;
11
+ private saveQueue;
12
+ private readonly listeners;
13
+ private dateTimer;
14
+ private lastDate;
15
+ readonly googleQueue: GoogleConflictQueue;
16
+ readonly google: GoogleSync;
17
+ constructor(app: App, manifest?: PluginManifest);
18
+ private saveGoogleLink;
19
+ private notice;
20
+ private runGoogle;
21
+ openGoogleConflicts(): Promise<void>;
22
+ /** The clock deadlines are judged against; tests advance it explicitly. */
23
+ get clock(): () => Date;
24
+ set clock(clock: () => Date);
25
+ onload(): Promise<void>;
26
+ /** Refreshes last-contact and overdue labels once the local date changes. */
27
+ refreshDate(): void;
28
+ private scheduleDateRefresh;
29
+ getSettings(): ContactsSettings;
30
+ updateSettings(patch: ContactsSettingsPatch): Promise<void>;
31
+ subscribeSettings(listener: (settings: ContactsSettings) => void): () => undefined;
32
+ openContacts(): Promise<void>;
33
+ }
34
+ export default ContactsPlugin;