@singi-labs/sifa-sdk 0.20.1 → 0.21.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.
- package/dist/index.cjs +53 -92
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +13 -16
- package/dist/index.d.ts +13 -16
- package/dist/index.js +5 -6
- package/dist/index.js.map +1 -1
- package/dist/query/fetchers/index.cjs +40 -32
- package/dist/query/fetchers/index.cjs.map +1 -1
- package/dist/query/fetchers/index.d.cts +1 -1
- package/dist/query/fetchers/index.d.ts +1 -1
- package/dist/query/fetchers/index.js +6 -8
- package/dist/query/fetchers/index.js.map +1 -1
- package/dist/query/fetchers/roadmap.js +41 -25
- package/dist/query/fetchers/roadmap.js.map +1 -1
- package/dist/query/hooks/index.cjs +31 -81
- package/dist/query/hooks/index.cjs.map +1 -1
- package/dist/query/hooks/index.d.cts +2 -2
- package/dist/query/hooks/index.d.ts +2 -2
- package/dist/query/hooks/index.js +3 -6
- package/dist/query/hooks/index.js.map +1 -1
- package/dist/query/hooks/use-roadmap-mutations.js +9 -31
- package/dist/query/hooks/use-roadmap-mutations.js.map +1 -1
- package/dist/query/index.cjs +46 -77
- package/dist/query/index.cjs.map +1 -1
- package/dist/query/index.d.cts +3 -3
- package/dist/query/index.d.ts +3 -3
- package/dist/query/index.js +12 -14
- package/dist/query/index.js.map +1 -1
- package/dist/query/keys.js +0 -5
- package/dist/query/keys.js.map +1 -1
- package/dist/roadmap/board-body.js +55 -0
- package/dist/roadmap/board-body.js.map +1 -0
- package/dist/roadmap/index.js +0 -91
- package/dist/roadmap/index.js.map +1 -1
- package/dist/{use-user-settings-YIv1C3qN.d.cts → use-user-settings-Bn6g8bgr.d.cts} +11 -14
- package/dist/{use-user-settings-CrS3ZXoW.d.ts → use-user-settings-DQ6Dyby7.d.ts} +11 -14
- package/dist/{user-settings-Bvafly0r.d.ts → user-settings-BdNrDa9O.d.ts} +54 -37
- package/dist/{user-settings-DWq91Gj-.d.cts → user-settings-C8JUD4DM.d.cts} +54 -37
- package/package.json +1 -1
- package/dist/query/hooks/use-roadmap.js +0 -31
- package/dist/query/hooks/use-roadmap.js.map +0 -1
package/dist/index.cjs
CHANGED
|
@@ -7754,100 +7754,61 @@ var ProfileInvestmentRecordSchema = zod.z.object({
|
|
|
7754
7754
|
|
|
7755
7755
|
// src/roadmap/index.ts
|
|
7756
7756
|
var ROADMAP_ISSUES_REPO = "singi-labs/sifa-workspace";
|
|
7757
|
-
var ROADMAP_ITEM_META = {
|
|
7758
|
-
endorsementsAttestations: {
|
|
7759
|
-
description: "Let colleagues vouch for your skills and experience, recorded as attestations you carry with you.",
|
|
7760
|
-
issues: [3, 166]
|
|
7761
|
-
},
|
|
7762
|
-
notifications: {
|
|
7763
|
-
description: "Get told when someone endorses you, links an organization, or acts on your profile.",
|
|
7764
|
-
issues: [158]
|
|
7765
|
-
},
|
|
7766
|
-
verifiedConnections: {
|
|
7767
|
-
description: "Confirm real working relationships, not just follows.",
|
|
7768
|
-
issues: []
|
|
7769
|
-
},
|
|
7770
|
-
profileAnalytics: {
|
|
7771
|
-
description: "See who views your profile and how people find you.",
|
|
7772
|
-
issues: []
|
|
7773
|
-
},
|
|
7774
|
-
jobProfiles: {
|
|
7775
|
-
description: "Structured work history that stays with your identity across the network.",
|
|
7776
|
-
issues: [102]
|
|
7777
|
-
},
|
|
7778
|
-
eventRsvp: {
|
|
7779
|
-
description: "Show the talks and events you're attending or speaking at.",
|
|
7780
|
-
issues: [214]
|
|
7781
|
-
},
|
|
7782
|
-
companyPages: {
|
|
7783
|
-
description: "Claimable organization pages that link the people who work there.",
|
|
7784
|
-
issues: [73]
|
|
7785
|
-
},
|
|
7786
|
-
advancedSearch: {
|
|
7787
|
-
description: "Search across categories, with filters and forgiving name matching.",
|
|
7788
|
-
issues: [5]
|
|
7789
|
-
},
|
|
7790
|
-
multiAccountLinking: {
|
|
7791
|
-
description: "Tie several atproto accounts to one professional identity.",
|
|
7792
|
-
issues: [8]
|
|
7793
|
-
},
|
|
7794
|
-
mobileApps: {
|
|
7795
|
-
description: "Native iOS and Android apps.",
|
|
7796
|
-
issues: [114]
|
|
7797
|
-
},
|
|
7798
|
-
atmosphereStream: {
|
|
7799
|
-
description: "One feed that gathers your activity from across the atproto network.",
|
|
7800
|
-
issues: [7, 12]
|
|
7801
|
-
},
|
|
7802
|
-
localizationMultiLanguage: {
|
|
7803
|
-
description: "The interface in your own language.",
|
|
7804
|
-
issues: [218]
|
|
7805
|
-
},
|
|
7806
|
-
rssFediverseIngestion: {
|
|
7807
|
-
description: "Fediverse posts are in your stream. RSS feeds are next.",
|
|
7808
|
-
issues: [111, 153]
|
|
7809
|
-
},
|
|
7810
|
-
githubFeedIngestion: {
|
|
7811
|
-
description: "GitHub activity is in your track record. GitLab and org-owned repositories are next.",
|
|
7812
|
-
issues: [391, 392]
|
|
7813
|
-
},
|
|
7814
|
-
compensationInformation: {
|
|
7815
|
-
description: "Add optional pay and compensation context to your roles.",
|
|
7816
|
-
issues: [81]
|
|
7817
|
-
},
|
|
7818
|
-
embedCustomization: {
|
|
7819
|
-
description: "Choose which fields show in your embeddable profile card.",
|
|
7820
|
-
issues: [117]
|
|
7821
|
-
},
|
|
7822
|
-
academicLexicon: {
|
|
7823
|
-
description: "Schema and features built for researchers and academics.",
|
|
7824
|
-
issues: [119, 148]
|
|
7825
|
-
},
|
|
7826
|
-
journalismLexicon: {
|
|
7827
|
-
description: "Schema and features built for journalists.",
|
|
7828
|
-
issues: [121]
|
|
7829
|
-
},
|
|
7830
|
-
skillEvidenceGithub: {
|
|
7831
|
-
description: "Back up skill claims with the languages in your GitHub repositories.",
|
|
7832
|
-
issues: [107]
|
|
7833
|
-
},
|
|
7834
|
-
latexCvExport: {
|
|
7835
|
-
description: "Export your profile as a LaTeX CV.",
|
|
7836
|
-
issues: [113]
|
|
7837
|
-
},
|
|
7838
|
-
jsonResumeImportExport: {
|
|
7839
|
-
description: "Move your profile in and out using the JSON Resume standard.",
|
|
7840
|
-
issues: [151]
|
|
7841
|
-
},
|
|
7842
|
-
linkedClaimsResearch: {
|
|
7843
|
-
description: "Exploring the LinkedClaims spec for portable, verifiable endorsements.",
|
|
7844
|
-
issues: [155]
|
|
7845
|
-
}
|
|
7846
|
-
};
|
|
7847
7757
|
function roadmapIssueUrl(issue) {
|
|
7848
7758
|
return `https://github.com/${ROADMAP_ISSUES_REPO}/issues/${issue}`;
|
|
7849
7759
|
}
|
|
7850
7760
|
|
|
7761
|
+
// src/roadmap/board-body.ts
|
|
7762
|
+
var TRACKING_PREFIX = "tracking:";
|
|
7763
|
+
var ISSUE_PATH_PREFIX = `/${ROADMAP_ISSUES_REPO}/issues/`;
|
|
7764
|
+
var TRAILING_PUNCTUATION = /* @__PURE__ */ new Set([">", ".", ",", ";", ")"]);
|
|
7765
|
+
function roadmapIssueNumber(candidate) {
|
|
7766
|
+
let url;
|
|
7767
|
+
try {
|
|
7768
|
+
url = new URL(candidate);
|
|
7769
|
+
} catch {
|
|
7770
|
+
return null;
|
|
7771
|
+
}
|
|
7772
|
+
if (url.protocol !== "https:" || url.hostname !== "github.com") return null;
|
|
7773
|
+
if (url.search || url.hash || !url.pathname.startsWith(ISSUE_PATH_PREFIX)) return null;
|
|
7774
|
+
const rest = url.pathname.slice(ISSUE_PATH_PREFIX.length);
|
|
7775
|
+
if (rest.length === 0 || rest.length > 9) return null;
|
|
7776
|
+
for (const ch of rest) if (ch < "0" || ch > "9") return null;
|
|
7777
|
+
return Number(rest);
|
|
7778
|
+
}
|
|
7779
|
+
function trimEntry(raw) {
|
|
7780
|
+
const start = raw.startsWith("<") ? 1 : 0;
|
|
7781
|
+
let end = raw.length;
|
|
7782
|
+
while (end > start && TRAILING_PUNCTUATION.has(raw[end - 1] ?? "")) end--;
|
|
7783
|
+
return raw.slice(start, end);
|
|
7784
|
+
}
|
|
7785
|
+
function parseTrackingLine(entries) {
|
|
7786
|
+
const numbers = [];
|
|
7787
|
+
for (const raw of entries.split(",").flatMap((part) => part.split(" "))) {
|
|
7788
|
+
const candidate = trimEntry(raw.trim());
|
|
7789
|
+
if (!candidate) continue;
|
|
7790
|
+
const number = roadmapIssueNumber(candidate);
|
|
7791
|
+
if (number === null) return null;
|
|
7792
|
+
numbers.push(number);
|
|
7793
|
+
}
|
|
7794
|
+
return numbers.length > 0 ? numbers : null;
|
|
7795
|
+
}
|
|
7796
|
+
function splitRoadmapBody(body) {
|
|
7797
|
+
const issues = [];
|
|
7798
|
+
const kept = [];
|
|
7799
|
+
for (const line of (body ?? "").split("\n")) {
|
|
7800
|
+
const trimmed = line.trim();
|
|
7801
|
+
const numbers = trimmed.toLowerCase().startsWith(TRACKING_PREFIX) ? parseTrackingLine(trimmed.slice(TRACKING_PREFIX.length)) : null;
|
|
7802
|
+
if (!numbers) {
|
|
7803
|
+
kept.push(line);
|
|
7804
|
+
continue;
|
|
7805
|
+
}
|
|
7806
|
+
for (const number of numbers) issues.push({ number, url: roadmapIssueUrl(number) });
|
|
7807
|
+
}
|
|
7808
|
+
const description = kept.join("\n").trim();
|
|
7809
|
+
return { description: description || null, issues };
|
|
7810
|
+
}
|
|
7811
|
+
|
|
7851
7812
|
// src/repo/groups.ts
|
|
7852
7813
|
var SIFA_REPO_GROUPS = [
|
|
7853
7814
|
{
|
|
@@ -8044,7 +8005,7 @@ function describeSifaRecord(collection, value) {
|
|
|
8044
8005
|
}
|
|
8045
8006
|
|
|
8046
8007
|
// src/index.ts
|
|
8047
|
-
var SIFA_SDK_VERSION = "0.
|
|
8008
|
+
var SIFA_SDK_VERSION = "0.21.0";
|
|
8048
8009
|
|
|
8049
8010
|
exports.ACTIVITY_TIERS = ACTIVITY_TIERS;
|
|
8050
8011
|
exports.ACTIVITY_VERBS = ACTIVITY_VERBS;
|
|
@@ -8166,7 +8127,6 @@ exports.ProfileSkillRecordSchema = ProfileSkillRecordSchema;
|
|
|
8166
8127
|
exports.ProfileVolunteeringRecordSchema = ProfileVolunteeringRecordSchema;
|
|
8167
8128
|
exports.PublicationAuthorSchema = PublicationAuthorSchema;
|
|
8168
8129
|
exports.ROADMAP_ISSUES_REPO = ROADMAP_ISSUES_REPO;
|
|
8169
|
-
exports.ROADMAP_ITEM_META = ROADMAP_ITEM_META;
|
|
8170
8130
|
exports.RelatedIdentifierSchema = RelatedIdentifierSchema;
|
|
8171
8131
|
exports.SEARCH_FILTER_DEFS = SEARCH_FILTER_DEFS;
|
|
8172
8132
|
exports.SECTION_GROUPS = SECTION_GROUPS;
|
|
@@ -8391,6 +8351,7 @@ exports.sortPositions = sortPositions;
|
|
|
8391
8351
|
exports.sortProjects = sortProjects;
|
|
8392
8352
|
exports.sortPublications = sortPublications;
|
|
8393
8353
|
exports.splitCoursesByRole = splitCoursesByRole;
|
|
8354
|
+
exports.splitRoadmapBody = splitRoadmapBody;
|
|
8394
8355
|
exports.streamAddressSchema = streamAddressSchema;
|
|
8395
8356
|
exports.streamAuthorSchema = streamAuthorSchema;
|
|
8396
8357
|
exports.streamCardBodyContent = streamCardBodyContent;
|