Rework activitypub-core-types src

This commit is contained in:
Michael Puckett 2022-10-11 08:26:07 -04:00
parent 361643246c
commit 5fa44af27d
264 changed files with 3232 additions and 1104 deletions

1
.env Normal file
View File

@ -0,0 +1 @@
NODE_OPTIONS="--experimental_modules"

View File

@ -9,9 +9,9 @@
"version": "0.0.35",
"license": "MIT",
"dependencies": {
"activitypub-core-express-middleware": "^0.0.5",
"activitypub-core-jsx-components": "^0.0.1",
"activitypub-core-types": "^0.0.35",
"activitypub-core-express-middleware": "^0.0.36",
"activitypub-core-jsx-components": "^0.0.36",
"activitypub-core-types": "^0.0.36",
"firebase-admin": "^11.1.0",
"react": "^16.14.0",
"react-server": "^0.8.1"
@ -840,11 +840,12 @@
}
},
"node_modules/activitypub-core-express-middleware": {
"version": "0.0.5",
"resolved": "https://registry.npmjs.org/activitypub-core-express-middleware/-/activitypub-core-express-middleware-0.0.5.tgz",
"integrity": "sha512-zO5qkFlPA/BxgYymfNbVf1lblj7ojtPFuGTJSisRdvdZwc8HRPNyzMdbLQ9k0zhTjhERhP4FIL9o/6P84x2wFg==",
"version": "0.0.36",
"resolved": "https://registry.npmjs.org/activitypub-core-express-middleware/-/activitypub-core-express-middleware-0.0.36.tgz",
"integrity": "sha512-mFoQ3pIw6j/peIjY1/DzEnkWSknlVRdxQ5SPvJIvECfJ1DnhMy2gyOeiz9DypdubdrIV/FTSvh7WmBDUiB2A5g==",
"dependencies": {
"activitypub-core": "^0.0.28",
"activitypub-core-types": "^0.0.36",
"express": "^4.18.2",
"firebase-admin": "^11.1.0",
"http": "^0.0.1-security"
@ -892,6 +893,31 @@
"superjson": "^1.10.1"
}
},
"node_modules/activitypub-core-express-middleware/node_modules/activitypub-core-jsx-components": {
"version": "0.0.1",
"resolved": "https://registry.npmjs.org/activitypub-core-jsx-components/-/activitypub-core-jsx-components-0.0.1.tgz",
"integrity": "sha512-cRar55cVR3hFmg2HSWsoM3o9lRomHT8+BsKx3OkmIhHF0qaj+3IINo3DmpWa+ZURCmH3+xmDDr5ck3Mypy8H2Q==",
"dependencies": {
"activitypub-core": "^0.0.24",
"activitypub-core-express-middleware": "^0.0.0",
"react": "^18.2.0"
}
},
"node_modules/activitypub-core-express-middleware/node_modules/activitypub-core-jsx-components/node_modules/activitypub-core": {
"version": "0.0.24",
"resolved": "https://registry.npmjs.org/activitypub-core/-/activitypub-core-0.0.24.tgz",
"integrity": "sha512-rpyYApqgnKTWHUKdeyT3fRcPt8FpJonUNWgUmF1Ub/FiFkJyd3XTUS/SghmG++gJCI64ZJtdtu1Z4twZ8rDZ3A==",
"dependencies": {
"cookie": "^0.5.0",
"firebase-admin": "^11.1.0",
"http": "^0.0.1-security",
"isomorphic-fetch": "^3.0.0",
"jsonld": "^8.1.0",
"mongodb": "^4.10.0",
"next": "^12.3.1",
"superjson": "^1.10.1"
}
},
"node_modules/activitypub-core-express-middleware/node_modules/cookie": {
"version": "0.5.0",
"resolved": "https://registry.npmjs.org/cookie/-/cookie-0.5.0.tgz",
@ -956,7 +982,6 @@
"version": "18.2.0",
"resolved": "https://registry.npmjs.org/react/-/react-18.2.0.tgz",
"integrity": "sha512-/3IjMdb2L9QbBdWiW5e3P2/npwMBaU9mHCSCUzNln0ZCYbcfTsGbTJrU/kGemdH2IWmB2ioZ+zkxtmq6g09fGQ==",
"peer": true,
"dependencies": {
"loose-envify": "^1.1.0"
},
@ -987,12 +1012,12 @@
}
},
"node_modules/activitypub-core-jsx-components": {
"version": "0.0.1",
"resolved": "https://registry.npmjs.org/activitypub-core-jsx-components/-/activitypub-core-jsx-components-0.0.1.tgz",
"integrity": "sha512-cRar55cVR3hFmg2HSWsoM3o9lRomHT8+BsKx3OkmIhHF0qaj+3IINo3DmpWa+ZURCmH3+xmDDr5ck3Mypy8H2Q==",
"version": "0.0.36",
"resolved": "https://registry.npmjs.org/activitypub-core-jsx-components/-/activitypub-core-jsx-components-0.0.36.tgz",
"integrity": "sha512-oGO4vun+hsbT6Ts8JGyFpXwESamBuhWf8QmF7h+chx9CjOFykuKlfFTtwbAHz5MaxRVJi5gBpXeetjARRhTtZg==",
"dependencies": {
"activitypub-core": "^0.0.24",
"activitypub-core-express-middleware": "^0.0.0",
"activitypub-core-types": "^0.0.36",
"react": "^18.2.0"
}
},
@ -1018,9 +1043,9 @@
}
},
"node_modules/activitypub-core-types": {
"version": "0.0.1",
"resolved": "https://registry.npmjs.org/activitypub-core-types/-/activitypub-core-types-0.0.1.tgz",
"integrity": "sha512-ILbRangWIutnlf612xREVq42o363zTe8tf5O1UuegmsZ8Xs57BBcwG0xODg6gDYI/p7uMyt1hl6lmc40RWqdNg=="
"version": "0.0.36",
"resolved": "https://registry.npmjs.org/activitypub-core-types/-/activitypub-core-types-0.0.36.tgz",
"integrity": "sha512-hb7FZymbEf6uN/FvTCHO+nzyaB2WcFs0Gg76ovC9VJpA3LNJMpqO01s2Z/v+OQMaulGIp6dwcI1HOxV+JTHxHQ=="
},
"node_modules/activitypub-core/node_modules/cookie": {
"version": "0.5.0",
@ -5187,11 +5212,12 @@
}
},
"activitypub-core-express-middleware": {
"version": "0.0.5",
"resolved": "https://registry.npmjs.org/activitypub-core-express-middleware/-/activitypub-core-express-middleware-0.0.5.tgz",
"integrity": "sha512-zO5qkFlPA/BxgYymfNbVf1lblj7ojtPFuGTJSisRdvdZwc8HRPNyzMdbLQ9k0zhTjhERhP4FIL9o/6P84x2wFg==",
"version": "0.0.36",
"resolved": "https://registry.npmjs.org/activitypub-core-express-middleware/-/activitypub-core-express-middleware-0.0.36.tgz",
"integrity": "sha512-mFoQ3pIw6j/peIjY1/DzEnkWSknlVRdxQ5SPvJIvECfJ1DnhMy2gyOeiz9DypdubdrIV/FTSvh7WmBDUiB2A5g==",
"requires": {
"activitypub-core": "^0.0.28",
"activitypub-core-types": "^0.0.36",
"express": "^4.18.2",
"firebase-admin": "^11.1.0",
"http": "^0.0.1-security"
@ -5241,6 +5267,33 @@
}
}
},
"activitypub-core-jsx-components": {
"version": "0.0.1",
"resolved": "https://registry.npmjs.org/activitypub-core-jsx-components/-/activitypub-core-jsx-components-0.0.1.tgz",
"integrity": "sha512-cRar55cVR3hFmg2HSWsoM3o9lRomHT8+BsKx3OkmIhHF0qaj+3IINo3DmpWa+ZURCmH3+xmDDr5ck3Mypy8H2Q==",
"requires": {
"activitypub-core": "^0.0.24",
"activitypub-core-express-middleware": "^0.0.0",
"react": "^18.2.0"
},
"dependencies": {
"activitypub-core": {
"version": "0.0.24",
"resolved": "https://registry.npmjs.org/activitypub-core/-/activitypub-core-0.0.24.tgz",
"integrity": "sha512-rpyYApqgnKTWHUKdeyT3fRcPt8FpJonUNWgUmF1Ub/FiFkJyd3XTUS/SghmG++gJCI64ZJtdtu1Z4twZ8rDZ3A==",
"requires": {
"cookie": "^0.5.0",
"firebase-admin": "^11.1.0",
"http": "^0.0.1-security",
"isomorphic-fetch": "^3.0.0",
"jsonld": "^8.1.0",
"mongodb": "^4.10.0",
"next": "^12.3.1",
"superjson": "^1.10.1"
}
}
}
},
"cookie": {
"version": "0.5.0",
"resolved": "https://registry.npmjs.org/cookie/-/cookie-0.5.0.tgz",
@ -5276,7 +5329,6 @@
"version": "18.2.0",
"resolved": "https://registry.npmjs.org/react/-/react-18.2.0.tgz",
"integrity": "sha512-/3IjMdb2L9QbBdWiW5e3P2/npwMBaU9mHCSCUzNln0ZCYbcfTsGbTJrU/kGemdH2IWmB2ioZ+zkxtmq6g09fGQ==",
"peer": true,
"requires": {
"loose-envify": "^1.1.0"
}
@ -5303,12 +5355,12 @@
}
},
"activitypub-core-jsx-components": {
"version": "0.0.1",
"resolved": "https://registry.npmjs.org/activitypub-core-jsx-components/-/activitypub-core-jsx-components-0.0.1.tgz",
"integrity": "sha512-cRar55cVR3hFmg2HSWsoM3o9lRomHT8+BsKx3OkmIhHF0qaj+3IINo3DmpWa+ZURCmH3+xmDDr5ck3Mypy8H2Q==",
"version": "0.0.36",
"resolved": "https://registry.npmjs.org/activitypub-core-jsx-components/-/activitypub-core-jsx-components-0.0.36.tgz",
"integrity": "sha512-oGO4vun+hsbT6Ts8JGyFpXwESamBuhWf8QmF7h+chx9CjOFykuKlfFTtwbAHz5MaxRVJi5gBpXeetjARRhTtZg==",
"requires": {
"activitypub-core": "^0.0.24",
"activitypub-core-express-middleware": "^0.0.0",
"activitypub-core-types": "^0.0.36",
"react": "^18.2.0"
},
"dependencies": {
@ -5333,9 +5385,9 @@
}
},
"activitypub-core-types": {
"version": "0.0.1",
"resolved": "https://registry.npmjs.org/activitypub-core-types/-/activitypub-core-types-0.0.1.tgz",
"integrity": "sha512-ILbRangWIutnlf612xREVq42o363zTe8tf5O1UuegmsZ8Xs57BBcwG0xODg6gDYI/p7uMyt1hl6lmc40RWqdNg=="
"version": "0.0.36",
"resolved": "https://registry.npmjs.org/activitypub-core-types/-/activitypub-core-types-0.0.36.tgz",
"integrity": "sha512-hb7FZymbEf6uN/FvTCHO+nzyaB2WcFs0Gg76ovC9VJpA3LNJMpqO01s2Z/v+OQMaulGIp6dwcI1HOxV+JTHxHQ=="
},
"agent-base": {
"version": "6.0.2",

View File

@ -1,6 +1,6 @@
{
"name": "activitypub-core-express-jsx",
"version": "0.0.35",
"version": "0.0.36",
"description": "> TODO: description",
"author": "Michael Puckett <michaelcpuckett@gmail.com>",
"homepage": "",
@ -22,11 +22,11 @@
"dev": "ts-node ./src/index.tsx"
},
"dependencies": {
"activitypub-core-express-middleware": "^0.0.5",
"activitypub-core-jsx-components": "^0.0.1",
"activitypub-core-types": "^0.0.35",
"activitypub-core-express-middleware": "^0.0.36",
"activitypub-core-jsx-components": "^0.0.36",
"activitypub-core-types": "^0.0.36",
"firebase-admin": "^11.1.0",
"react": "^16.14.0",
"react-server": "^0.8.1"
}
}
}

View File

@ -1,6 +1,6 @@
import type { NextFunction } from 'express';
import type { IncomingMessage, ServerResponse } from 'http';
import { AP } from 'activitypub-core-types/src';
import { AP } from 'activitypub-core-types';
import type { ServiceAccount } from 'firebase-admin';
export declare const activityPub: ({ renderIndex, renderHome, renderEntity, }: {
renderIndex: () => Promise<string>;

View File

@ -1,6 +1,6 @@
{
"name": "activitypub-core-express-middleware",
"version": "0.0.35",
"version": "0.0.36",
"description": "> TODO: description",
"author": "Michael Puckett <michaelcpuckett@gmail.com>",
"homepage": "",
@ -21,9 +21,9 @@
},
"dependencies": {
"activitypub-core": "^0.0.28",
"activitypub-core-types": "^0.0.35",
"activitypub-core-types": "^0.0.36",
"express": "^4.18.2",
"firebase-admin": "^11.1.0",
"http": "^0.0.1-security"
}
}
}

View File

@ -1,7 +1,7 @@
import type { NextFunction } from 'express';
import type { IncomingMessage, ServerResponse } from 'http';
import { userPostHandler, homeGetHandler, entityGetHandler } from 'activitypub-core';
import { AP } from 'activitypub-core-types/src';
import { AP } from 'activitypub-core-types';
import type { ServiceAccount } from 'firebase-admin';
export const activityPub = ({

View File

@ -1,5 +1,5 @@
/// <reference types="react" />
import { AP } from 'activitypub-core-types/src';
import { AP } from 'activitypub-core-types';
export declare const EntityPage: ({ entity }: {
entity: AP.Entity;
}) => JSX.Element;

View File

@ -1,5 +1,5 @@
/// <reference types="react" />
import { AP } from 'activitypub-core-types/src';
import { AP } from 'activitypub-core-types';
export declare function ActivityEntity({ activity }: {
activity: AP.Activity;
}): JSX.Element;

View File

@ -1,5 +1,5 @@
/// <reference types="react" />
import { AP } from 'activitypub-core-types/src';
import { AP } from 'activitypub-core-types';
export declare function ActorEntity({ actor }: {
actor: AP.Actor;
}): JSX.Element;

View File

@ -1,5 +1,5 @@
/// <reference types="react" />
import { AP } from 'activitypub-core-types/src';
import { AP } from 'activitypub-core-types';
export declare function CollectionEntity({ collection }: {
collection: AP.Collection;
}): JSX.Element;

View File

@ -1,5 +1,5 @@
/// <reference types="react" />
import { AP } from 'activitypub-core-types/src';
import { AP } from 'activitypub-core-types';
export declare function CollectionPageEntity({ collectionPage }: {
collectionPage: AP.CollectionPage;
}): JSX.Element;

View File

@ -1,5 +1,5 @@
/// <reference types="react" />
import { AP } from 'activitypub-core-types/src';
import { AP } from 'activitypub-core-types';
export declare function LinkEntity({ link }: {
link: AP.Link;
}): JSX.Element;

View File

@ -1,5 +1,5 @@
/// <reference types="react" />
import { AP } from 'activitypub-core-types/src';
import { AP } from 'activitypub-core-types';
export declare function NoteEntity({ note }: {
note: AP.Note;
}): JSX.Element;

View File

@ -1,5 +1,5 @@
/// <reference types="react" />
import { AP } from 'activitypub-core-types/src';
import { AP } from 'activitypub-core-types';
export declare function ObjectEntity({ object }: {
object: AP.ExtendedObject;
}): JSX.Element;

View File

@ -4,11 +4,11 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.ObjectEntity = void 0;
const src_1 = require("activitypub-core-types/src");
const activitypub_core_types_1 = require("activitypub-core-types");
const Note_1 = require("./Note");
const react_1 = __importDefault(require("react"));
function ObjectEntity({ object }) {
if (object.type === src_1.AP.ExtendedObjectTypes.NOTE) {
if (object.type === activitypub_core_types_1.AP.ExtendedObjectTypes.NOTE) {
return react_1.default.createElement(Note_1.NoteEntity, { note: object });
}
return react_1.default.createElement("div", { className: "card" },

View File

@ -1 +1 @@
{"version":3,"file":"Object.js","sourceRoot":"","sources":["../../../src/pages/EntityPage/Object.tsx"],"names":[],"mappings":";;;;;;AAAA,oDAAgD;AAChD,iCAAoC;AACpC,kDAA0B;AAE1B,SAAgB,YAAY,CAAC,EAAE,MAAM,EAAiC;IACpE,IAAI,MAAM,CAAC,IAAI,KAAK,QAAE,CAAC,mBAAmB,CAAC,IAAI,EAAE;QAC/C,OAAO,8BAAC,iBAAU,IAAC,IAAI,EAAE,MAAM,GAAe,CAAC;KAChD;IAED,OAAO,uCAAK,SAAS,EAAC,MAAM;QAC1B;YACE;;gBACK,MAAM,CAAC,IAAI,CACb,CACA,CACD,CAAC;AACT,CAAC;AAZD,oCAYC"}
{"version":3,"file":"Object.js","sourceRoot":"","sources":["../../../src/pages/EntityPage/Object.tsx"],"names":[],"mappings":";;;;;;AAAA,mEAA4C;AAC5C,iCAAoC;AACpC,kDAA0B;AAE1B,SAAgB,YAAY,CAAC,EAAE,MAAM,EAAiC;IACpE,IAAI,MAAM,CAAC,IAAI,KAAK,2BAAE,CAAC,mBAAmB,CAAC,IAAI,EAAE;QAC/C,OAAO,8BAAC,iBAAU,IAAC,IAAI,EAAE,MAAM,GAAe,CAAC;KAChD;IAED,OAAO,uCAAK,SAAS,EAAC,MAAM;QAC1B;YACE;;gBACK,MAAM,CAAC,IAAI,CACb,CACA,CACD,CAAC;AACT,CAAC;AAZD,oCAYC"}

View File

@ -1,5 +1,5 @@
/// <reference types="react" />
import { AP } from 'activitypub-core-types/src';
import { AP } from 'activitypub-core-types';
export declare function OrderedCollectionEntity({ collection }: {
collection: AP.OrderedCollection;
}): JSX.Element;

View File

@ -1,5 +1,5 @@
/// <reference types="react" />
import { AP } from 'activitypub-core-types/src';
import { AP } from 'activitypub-core-types';
export declare function OrderedCollectionPageEntity({ orderedCollectionPage }: {
orderedCollectionPage: AP.OrderedCollectionPage;
}): JSX.Element;

View File

@ -1,5 +1,5 @@
/// <reference types="react" />
import { AP } from 'activitypub-core-types/src';
import { AP } from 'activitypub-core-types';
export declare function EntityPage({ entity }: {
entity: AP.Entity;
}): JSX.Element;

View File

@ -4,7 +4,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.EntityPage = void 0;
const src_1 = require("activitypub-core-types/src");
const activitypub_core_types_1 = require("activitypub-core-types");
const Activity_1 = require("./Activity");
const Actor_1 = require("./Actor");
const Collection_1 = require("./Collection");
@ -27,34 +27,34 @@ function EntityPage({ entity }) {
}
exports.EntityPage = EntityPage;
function Entity({ entity }) {
if (entity.type === src_1.AP.CollectionTypes.COLLECTION) {
if (entity.type === activitypub_core_types_1.AP.CollectionTypes.COLLECTION) {
return react_1.default.createElement(Collection_1.CollectionEntity, { collection: entity });
}
if (entity.type === src_1.AP.CollectionTypes.ORDERED_COLLECTION) {
if (entity.type === activitypub_core_types_1.AP.CollectionTypes.ORDERED_COLLECTION) {
return react_1.default.createElement(OrderedCollection_1.OrderedCollectionEntity, { collection: entity });
}
if (entity.type === src_1.AP.CollectionPageTypes.COLLECTION_PAGE) {
if (entity.type === activitypub_core_types_1.AP.CollectionPageTypes.COLLECTION_PAGE) {
return react_1.default.createElement(CollectionPage_1.CollectionPageEntity, { collectionPage: entity });
}
if (entity.type === src_1.AP.CollectionPageTypes.ORDERED_COLLECTION_PAGE) {
if (entity.type === activitypub_core_types_1.AP.CollectionPageTypes.ORDERED_COLLECTION_PAGE) {
return react_1.default.createElement(OrderedCollectionPage_1.OrderedCollectionPageEntity, { orderedCollectionPage: entity });
}
for (const type of Object.values(src_1.AP.ActivityTypes)) {
for (const type of Object.values(activitypub_core_types_1.AP.ActivityTypes)) {
if (entity.type === type) {
return react_1.default.createElement(Activity_1.ActivityEntity, { activity: entity });
}
}
for (const type of Object.values(src_1.AP.ActorTypes)) {
for (const type of Object.values(activitypub_core_types_1.AP.ActorTypes)) {
if (entity.type === type) {
return react_1.default.createElement(Actor_1.ActorEntity, { actor: entity });
}
}
for (const type of Object.values(src_1.AP.ExtendedObjectTypes)) {
for (const type of Object.values(activitypub_core_types_1.AP.ExtendedObjectTypes)) {
if (entity.type === type) {
return react_1.default.createElement(Object_1.ObjectEntity, { object: entity });
}
}
for (const type of Object.values(src_1.AP.LinkTypes)) {
for (const type of Object.values(activitypub_core_types_1.AP.LinkTypes)) {
if (entity.type === type) {
return react_1.default.createElement(Link_1.LinkEntity, { link: entity });
}

View File

@ -1 +1 @@
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/pages/EntityPage/index.tsx"],"names":[],"mappings":";;;;;;AAAA,oDAAgD;AAChD,yCAA4C;AAC5C,mCAAsC;AACtC,6CAAgD;AAChD,qDAAwD;AACxD,iCAAoC;AACpC,qCAAwC;AACxC,2DAA8D;AAC9D,mEAAsE;AACtE,qDAA6B;AAE7B,kDAA0B;AAE1B,SAAgB,UAAU,CAAC,EACzB,MAAM,EAGP;IAEC,OAAO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AAC,2BAAE,CAAC,SAAS,CAAC,EAAE;QAC9C,IAAI,MAAM,CAAC,IAAI,KAAK,IAAI,EAAE;YACxB,OAAO,8BAAC,iBAAU,IAAC,IAAI,EAAE,MAAiB,GAAe,CAAA;SAC1D;KACF;IAED,OAAO,sEAEJ,CAAC;AACN,CAAC"}

View File

@ -1,5 +1,5 @@
/// <reference types="react" />
import { AP } from 'activitypub-core-types/src';
import { AP } from 'activitypub-core-types';
export declare const HomePage: ({ actor }: {
actor: AP.Actor;
}) => JSX.Element;

View File

@ -1,5 +1,5 @@
/// <reference types="react" />
import { AP } from 'activitypub-core-types/src';
import { AP } from 'activitypub-core-types';
export declare function CreateForm({ actor }: {
actor: AP.Actor;
}): JSX.Element;

View File

@ -5,7 +5,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
Object.defineProperty(exports, "__esModule", { value: true });
exports.CreateForm = void 0;
const globals_1 = require("activitypub-core/src/globals");
const src_1 = require("activitypub-core-types/src");
const activitypub_core_types_1 = require("activitypub-core-types");
const react_1 = __importDefault(require("react"));
function CreateForm({ actor }) {
return react_1.default.createElement(react_1.default.Fragment, null,
@ -15,7 +15,7 @@ function CreateForm({ actor }) {
react_1.default.createElement("input", { type: "hidden", value: actor.outbox instanceof URL ? actor.outbox.toString() : actor.outbox?.id?.toString(), name: "actorOutboxId" }),
react_1.default.createElement("label", null,
react_1.default.createElement("span", null, "Type"),
react_1.default.createElement("select", { name: "type", defaultValue: 'Note' }, Object.values(src_1.AP.ExtendedObjectTypes).map(type => react_1.default.createElement("option", { key: type }, type)))),
react_1.default.createElement("select", { name: "type", defaultValue: 'Note' }, Object.values(activitypub_core_types_1.AP.ExtendedObjectTypes).map(type => react_1.default.createElement("option", { key: type }, type)))),
react_1.default.createElement("label", null,
react_1.default.createElement("span", null, "Summary"),
react_1.default.createElement("textarea", { name: "summary" })),

View File

@ -1 +1 @@
{"version":3,"file":"CreateForm.js","sourceRoot":"","sources":["../../../src/pages/HomePage/CreateForm.tsx"],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C,IAAI,CACC;YACX,0CAAQ,IAAI,EAAC,QAAQ,aAEZ,CACJ,CACN,CAAC;AACN,CAAC;AA3DD,gCA2DC;AAAA,CAAC"}

View File

@ -1,5 +1,5 @@
/// <reference types="react" />
import { AP } from 'activitypub-core-types/src';
import { AP } from 'activitypub-core-types';
export declare function Welcome({ actor }: {
actor: AP.Actor;
}): JSX.Element;

View File

@ -1,5 +1,5 @@
/// <reference types="react" />
import { AP } from 'activitypub-core-types/src';
import { AP } from 'activitypub-core-types';
declare type Data = {
actor: AP.Actor;
};

View File

@ -1,16 +1,16 @@
{
"name": "activitypub-core-jsx-components",
"version": "0.0.35",
"version": "0.0.36",
"lockfileVersion": 2,
"requires": true,
"packages": {
"": {
"name": "activitypub-core-jsx-components",
"version": "0.0.35",
"version": "0.0.36",
"license": "MIT",
"dependencies": {
"activitypub-core-express-middleware": "^0.0.0",
"activitypub-core-types": "^0.0.35",
"activitypub-core-types": "^0.0.36",
"react": "^18.2.0"
},
"devDependencies": {
@ -813,9 +813,9 @@
}
},
"node_modules/activitypub-core-types": {
"version": "0.0.1",
"resolved": "https://registry.npmjs.org/activitypub-core-types/-/activitypub-core-types-0.0.1.tgz",
"integrity": "sha512-ILbRangWIutnlf612xREVq42o363zTe8tf5O1UuegmsZ8Xs57BBcwG0xODg6gDYI/p7uMyt1hl6lmc40RWqdNg=="
"version": "0.0.36",
"resolved": "https://registry.npmjs.org/activitypub-core-types/-/activitypub-core-types-0.0.36.tgz",
"integrity": "sha512-hb7FZymbEf6uN/FvTCHO+nzyaB2WcFs0Gg76ovC9VJpA3LNJMpqO01s2Z/v+OQMaulGIp6dwcI1HOxV+JTHxHQ=="
},
"node_modules/agent-base": {
"version": "6.0.2",
@ -4440,9 +4440,9 @@
}
},
"activitypub-core-types": {
"version": "0.0.1",
"resolved": "https://registry.npmjs.org/activitypub-core-types/-/activitypub-core-types-0.0.1.tgz",
"integrity": "sha512-ILbRangWIutnlf612xREVq42o363zTe8tf5O1UuegmsZ8Xs57BBcwG0xODg6gDYI/p7uMyt1hl6lmc40RWqdNg=="
"version": "0.0.36",
"resolved": "https://registry.npmjs.org/activitypub-core-types/-/activitypub-core-types-0.0.36.tgz",
"integrity": "sha512-hb7FZymbEf6uN/FvTCHO+nzyaB2WcFs0Gg76ovC9VJpA3LNJMpqO01s2Z/v+OQMaulGIp6dwcI1HOxV+JTHxHQ=="
},
"agent-base": {
"version": "6.0.2",

View File

@ -1,6 +1,6 @@
{
"name": "activitypub-core-jsx-components",
"version": "0.0.35",
"version": "0.0.36",
"description": "> TODO: description",
"author": "Michael Puckett <michaelcpuckett@gmail.com>",
"homepage": "",
@ -22,7 +22,7 @@
},
"dependencies": {
"activitypub-core-express-middleware": "^0.0.0",
"activitypub-core-types": "^0.0.35",
"activitypub-core-types": "^0.0.36",
"react": "^18.2.0"
}
}
}

View File

@ -1,4 +1,4 @@
import { AP } from 'activitypub-core-types/src';
import { AP } from 'activitypub-core-types';
import { EntityLink } from '../EntityLink';
import { EntityMeta } from '../EntityMeta';
import { NoteCard } from './Note';

View File

@ -1,4 +1,4 @@
import { AP } from 'activitypub-core-types/src';
import { AP } from 'activitypub-core-types';
import { EntityLink } from '../EntityLink';
import { EntityMeta } from '../EntityMeta';

View File

@ -1,4 +1,4 @@
import { AP } from 'activitypub-core-types/src';
import { AP } from 'activitypub-core-types';
import { EntityLink } from '../components/EntityLink';
import { EntityMeta } from '../components/EntityMeta';

View File

@ -1,5 +1,5 @@
import { PUBLIC_ACTOR } from 'activitypub-core/src/globals';
import { AP } from 'activitypub-core-types/src';
import { AP } from 'activitypub-core-types';
import { ActorCard } from './Actor';
import { ActivityCard } from './Activity';
import { NoteCard } from './Note';

View File

@ -1,5 +1,5 @@
import React, { ReactElement } from 'react';
import { AP } from 'activitypub-core-types/src';
import { AP } from 'activitypub-core-types';
function BoxLink({ collection, children }: { collection?: URL | AP.EitherCollection, children: string | ReactElement }) {
if (!collection) {

View File

@ -1,4 +1,4 @@
import { AP } from 'activitypub-core-types/src';
import { AP } from 'activitypub-core-types';
import React from 'react';
export function ActivityEntity({ activity }: { activity: AP.Activity }) {

View File

@ -1,4 +1,4 @@
import { AP } from 'activitypub-core-types/src';
import { AP } from 'activitypub-core-types';
import React from 'react';
export function ActorEntity({ actor }: { actor: AP.Actor }) {

View File

@ -1,4 +1,4 @@
import { AP } from 'activitypub-core-types/src';
import { AP } from 'activitypub-core-types';
import React from 'react';

View File

@ -1,5 +1,5 @@
import React from 'react';
import { AP } from 'activitypub-core-types/src';
import { AP } from 'activitypub-core-types';
export function CollectionPageEntity({ collectionPage }: { collectionPage: AP.CollectionPage }) {
return <>

View File

@ -1,4 +1,4 @@
import { AP } from 'activitypub-core-types/src';
import { AP } from 'activitypub-core-types';
import React from 'react';
export function LinkEntity({ link }: { link: AP.Link }) {

View File

@ -1,4 +1,4 @@
import { AP } from 'activitypub-core-types/src';
import { AP } from 'activitypub-core-types';
import React from 'react';
export function NoteEntity({ note }: { note: AP.Note }) {

View File

@ -1,4 +1,4 @@
import { AP } from 'activitypub-core-types/src';
import { AP } from 'activitypub-core-types';
import { NoteEntity } from './Note';
import React from 'react';

View File

@ -1,4 +1,4 @@
import { AP } from 'activitypub-core-types/src';
import { AP } from 'activitypub-core-types';
import React from 'react';
export function OrderedCollectionEntity({ collection }: { collection: AP.OrderedCollection }) {

View File

@ -1,4 +1,4 @@
import { AP } from 'activitypub-core-types/src';
import { AP } from 'activitypub-core-types';
import React from 'react';
export function OrderedCollectionPageEntity({ orderedCollectionPage }: { orderedCollectionPage: AP.OrderedCollectionPage }) {

View File

@ -1,4 +1,4 @@
import { AP } from 'activitypub-core-types/src';
import { AP } from 'activitypub-core-types';
import { ActivityEntity } from './Activity';
import { ActorEntity } from './Actor';
import { CollectionEntity } from './Collection';

View File

@ -1,5 +1,5 @@
import { ACTIVITYSTREAMS_CONTEXT, PUBLIC_ACTOR } from 'activitypub-core/src/globals';
import { AP } from 'activitypub-core-types/src';
import { AP } from 'activitypub-core-types';
import { FormEvent, FormEventHandler } from 'react';
import React from 'react';

View File

@ -1,4 +1,4 @@
import { AP } from 'activitypub-core-types/src';
import { AP } from 'activitypub-core-types';
import React from 'react';
export function Welcome({ actor }: { actor: AP.Actor }) {

View File

@ -1,6 +1,6 @@
import Head from 'next/head'
import { ChangeEvent, ChangeEventHandler, FormEventHandler, MouseEventHandler, ReactElement, useState } from 'react';
import { AP } from 'activitypub-core-types/src';
import { AP } from 'activitypub-core-types';
import { Welcome } from './Welcome';
import { CreateForm } from './CreateForm';
import { ACCEPT_HEADER, ACTIVITYSTREAMS_CONTENT_TYPE } from 'activitypub-core/src/globals';

View File

@ -0,0 +1 @@
export * as AP from './src';

View File

@ -1 +0,0 @@
{"version":3,"file":"CoreObject.js","sourceRoot":"","sources":["../../../src/activitypub/Core/CoreObject.ts"],"names":[],"mappings":""}

View File

@ -1 +0,0 @@
{"version":3,"file":"Activity.js","sourceRoot":"","sources":["../../../src/activitypub/Extended/Activity.ts"],"names":[],"mappings":""}

View File

@ -1 +0,0 @@
{"version":3,"file":"Actor.js","sourceRoot":"","sources":["../../../src/activitypub/Extended/Actor.ts"],"names":[],"mappings":""}

View File

@ -1 +0,0 @@
{"version":3,"file":"Collection.js","sourceRoot":"","sources":["../../../src/activitypub/Extended/Collection.ts"],"names":[],"mappings":""}

View File

@ -1 +0,0 @@
{"version":3,"file":"ExtendedObject.js","sourceRoot":"","sources":["../../../src/activitypub/Extended/ExtendedObject.ts"],"names":[],"mappings":""}

View File

@ -1 +0,0 @@
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/activitypub/Extended/index.ts"],"names":[],"mappings":""}

View File

@ -1 +0,0 @@
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/activitypub/index.ts"],"names":[],"mappings":";;;AAAA,sCAWsB;AAVpB,wGAAA,eAAe,OAAA;AACf,kGAAA,SAAS,OAAA;AACT,gHAAA,uBAAuB,OAAA;AACvB,kHAAA,yBAAyB,OAAA;AACzB,sGAAA,aAAa,OAAA;AACb,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EAAE,MAAM;IACZ,MAAM,EAAE,QAAQ;IAChB,MAAM,EAAE,QAAQ;IAChB,gBAAgB,EAAE,iBAAiB;IACnC,gBAAgB,EAAE,iBAAiB;IACnC,IAAI,EAAE,MAAM;IACZ,MAAM,EAAE,QAAQ;IAChB,IAAI,EAAE,MAAM;CACJ,CAAC;AAEE,QAAA,yBAAyB,GAAG;IACvC,MAAM,EAAE,QAAQ;IAChB,MAAM,EAAE,QAAQ;IAChB,QAAQ,EAAE,UAAU;CACZ,CAAC;AAEE,QAAA,aAAa,GAAG;IAC3B,GAAG,+BAAuB;IAC1B,GAAG,iCAAyB;CACpB,CAAC;AAEE,QAAA,eAAe,GAAG;IAC7B,UAAU,EAAE,YAAY;IACxB,kBAAkB,EAAE,mBAAmB;CAC/B,CAAC;AAEE,QAAA,mBAAmB,GAAG;IACjC,eAAe,EAAE,gBAAgB;IACjC,uBAAuB,EAAE,uBAAuB;CACxC,CAAC;AAEE,QAAA,eAAe,GAAG;IAC7B,GAAG,2BAAmB;IACtB,GAAG,kBAAU;IACb,GAAG,qBAAa;IAChB,GAAG,uBAAe;IAClB,GAAG,2BAAmB;CACd,CAAC;AAEE,QAAA,QAAQ,GAAG;IACtB,GAAG,uBAAe;IAClB,GAAG,iBAAS;CACJ,CAAC"}

View File

@ -1 +1 @@
export * as AP from './activitypub';
export * as AP from './src';

View File

@ -24,5 +24,5 @@ var __importStar = (this && this.__importStar) || function (mod) {
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.AP = void 0;
exports.AP = __importStar(require("./activitypub"));
exports.AP = __importStar(require("./src"));
//# sourceMappingURL=index.js.map

View File

@ -1 +1 @@
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,oDAAoC"}
{"version":3,"file":"index.js","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,4CAA4B"}

View File

@ -0,0 +1 @@
{"version":3,"file":"CoreObject.js","sourceRoot":"","sources":["../../../src/Core/CoreObject.ts"],"names":[],"mappings":""}

View File

@ -1 +1 @@
{"version":3,"file":"Entity.js","sourceRoot":"","sources":["../../../src/activitypub/Core/Entity.ts"],"names":[],"mappings":""}
{"version":3,"file":"Entity.js","sourceRoot":"","sources":["../../../src/Core/Entity.ts"],"names":[],"mappings":""}

View File

@ -1 +1 @@
{"version":3,"file":"Link.js","sourceRoot":"","sources":["../../../src/activitypub/Core/Link.ts"],"names":[],"mappings":""}
{"version":3,"file":"Link.js","sourceRoot":"","sources":["../../../src/Core/Link.ts"],"names":[],"mappings":""}

View File

@ -1 +1 @@
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/activitypub/Core/index.ts"],"names":[],"mappings":""}
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/Core/index.ts"],"names":[],"mappings":""}

View File

@ -0,0 +1 @@
{"version":3,"file":"Activity.js","sourceRoot":"","sources":["../../../src/Extended/Activity.ts"],"names":[],"mappings":""}

View File

@ -0,0 +1 @@
{"version":3,"file":"Actor.js","sourceRoot":"","sources":["../../../src/Extended/Actor.ts"],"names":[],"mappings":""}

View File

@ -0,0 +1 @@
{"version":3,"file":"Collection.js","sourceRoot":"","sources":["../../../src/Extended/Collection.ts"],"names":[],"mappings":""}

View File

@ -0,0 +1 @@
{"version":3,"file":"ExtendedObject.js","sourceRoot":"","sources":["../../../src/Extended/ExtendedObject.ts"],"names":[],"mappings":""}

View File

@ -0,0 +1 @@
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/Extended/index.ts"],"names":[],"mappings":""}

View File

@ -0,0 +1 @@
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";;;AAAA,sCAWsB;AAVpB,wGAAA,eAAe,OAAA;AACf,kGAAA,SAAS,OAAA;AACT,gHAAA,uBAAuB,OAAA;AACvB,kHAAA,yBAAyB,OAAA;AACzB,sGAAA,aAAa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IAAI,EAAE,MAAM;IACZ,MAAM,EAAE,QAAQ;IAChB,MAAM,EAAE,QAAQ;IAChB,gBAAgB,EAAE,iBAAiB;IACnC,gBAAgB,EAAE,iBAAiB;IACnC,IAAI,EAAE,MAAM;IACZ,MAAM,EAAE,QAAQ;IAChB,IAAI,EAAE,MAAM;CACJ,CAAC;AAEE,QAAA,yBAAyB,GAAG;IACvC,MAAM,EAAE,QAAQ;IAChB,MAAM,EAAE,QAAQ;IAChB,QAAQ,EAAE,UAAU;CACZ,CAAC;AAEE,QAAA,aAAa,GAAG;IAC3B,GAAG,+BAAuB;IAC1B,GAAG,iCAAyB;CACpB,CAAC;AAEE,QAAA,eAAe,GAAG;IAC7B,UAAU,EAAE,YAAY;IACxB,kBAAkB,EAAE,mBAAmB;CAC/B,CAAC;AAEE,QAAA,mBAAmB,GAAG;IACjC,eAAe,EAAE,gBAAgB;IACjC,uBAAuB,EAAE,uBAAuB;CACxC,CAAC;AAEE,QAAA,eAAe,GAAG;IAC7B,GAAG,2BAAmB;IACtB,GAAG,kBAAU;IACb,GAAG,qBAAa;IAChB,GAAG,uBAAe;IAClB,GAAG,2BAAmB;CACd,CAAC;AAEE,QAAA,QAAQ,GAAG;IACtB,GAAG,uBAAe;IAClB,GAAG,iBAAS;CACJ,CAAC"}

View File

@ -1 +1 @@
{"version":3,"file":"values.js","sourceRoot":"","sources":["../../../src/activitypub/util/values.ts"],"names":[],"mappings":""}
{"version":3,"file":"values.js","sourceRoot":"","sources":["../../../src/util/values.ts"],"names":[],"mappings":""}

View File

@ -1,6 +1,6 @@
{
"name": "activitypub-core-types",
"version": "0.0.35",
"version": "0.0.36",
"description": "> TODO: description",
"author": "Michael Puckett <michaelcpuckett@gmail.com>",
"homepage": "",
@ -19,4 +19,4 @@
"devDependencies": {
"ts-node": "^10.9.1"
}
}
}

Some files were not shown because too many files have changed in this diff Show More