@skrillex1224/chrome-article-publish-extension 1.0.2 → 1.0.4
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/adapters/index.d.ts +4 -9
- package/dist/adapters/index.js +1 -1
- package/dist/{chunk-LUN2JBGI.js → chunk-6KMYIRZU.js} +342 -364
- package/dist/chunk-6KMYIRZU.js.map +1 -0
- package/dist/{chunk-GPHPFYRZ.js → chunk-DTCVBBPG.js} +58 -2
- package/dist/chunk-DTCVBBPG.js.map +1 -0
- package/dist/index.d.ts +4 -4
- package/dist/index.js +3 -3
- package/dist/index.js.map +1 -1
- package/dist/{interface-DRp7JR58.d.ts → interface-CLQqUboy.d.ts} +27 -1
- package/dist/runtime/index.d.ts +8 -4
- package/dist/runtime/index.js +1 -1
- package/dist/{types-DllMbt54.d.ts → types-CTtvGuEx.d.ts} +1 -1
- package/package.json +5 -2
- package/dist/chunk-GPHPFYRZ.js.map +0 -1
- package/dist/chunk-LUN2JBGI.js.map +0 -1
package/dist/adapters/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { P as PlatformAdapter, a as PublishOptions, A as AdapterRegistryEntry, b as PreprocessConfig } from '../types-
|
|
2
|
-
export { C as Category, D as DEFAULT_PREPROCESS_CONFIG, c as Draft, I as ImageProgressCallback, O as OutputFormat } from '../types-
|
|
3
|
-
import { P as PlatformMeta, R as RuntimeInterface, A as AuthResult, a as Article, S as SyncResult, c as PublishStatusRef, d as PublishStatusResult, H as HeaderRule } from '../interface-
|
|
1
|
+
import { P as PlatformAdapter, a as PublishOptions, A as AdapterRegistryEntry, b as PreprocessConfig } from '../types-CTtvGuEx.js';
|
|
2
|
+
export { C as Category, D as DEFAULT_PREPROCESS_CONFIG, c as Draft, I as ImageProgressCallback, O as OutputFormat } from '../types-CTtvGuEx.js';
|
|
3
|
+
import { P as PlatformMeta, R as RuntimeInterface, A as AuthResult, a as Article, S as SyncResult, c as PublishStatusRef, d as PublishStatusResult, H as HeaderRule } from '../interface-CLQqUboy.js';
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* 适配器基类
|
|
@@ -461,7 +461,6 @@ declare class CSDNAdapter extends CodeAdapter {
|
|
|
461
461
|
private preserveTaskListMarkers;
|
|
462
462
|
private postSaveArticle;
|
|
463
463
|
private postSaveArticleFromPage;
|
|
464
|
-
private getCsdnTabId;
|
|
465
464
|
publish(article: Article, options?: PublishOptions): Promise<SyncResult>;
|
|
466
465
|
getStatus(statusRef: PublishStatusRef): Promise<PublishStatusResult>;
|
|
467
466
|
private findManagedArticle;
|
|
@@ -614,7 +613,7 @@ declare class DouyinAdapter extends CodeAdapter {
|
|
|
614
613
|
private getCreatorJsonFromPage;
|
|
615
614
|
private postCreatorForm;
|
|
616
615
|
private postCreatorFormFromPage;
|
|
617
|
-
private
|
|
616
|
+
private withCreatorTab;
|
|
618
617
|
private extractUserData;
|
|
619
618
|
private isSuccessResponse;
|
|
620
619
|
private buildTextPayload;
|
|
@@ -666,7 +665,6 @@ declare class BaijiahaoAdapter extends CodeAdapter {
|
|
|
666
665
|
private mapArticleStatus;
|
|
667
666
|
private isPublishedItem;
|
|
668
667
|
private resolvePublishedPublicUrl;
|
|
669
|
-
private getPublishedPageTabId;
|
|
670
668
|
private readPublishedPageSnapshot;
|
|
671
669
|
private urlMatchesArticleId;
|
|
672
670
|
private sleep;
|
|
@@ -804,13 +802,11 @@ declare class ToutiaoAdapter extends CodeAdapter {
|
|
|
804
802
|
protected uploadImageByUrl(src: string): Promise<ImageUploadResult>;
|
|
805
803
|
private getCsrfToken;
|
|
806
804
|
private publishInPage;
|
|
807
|
-
private ensureToutiaoTab;
|
|
808
805
|
private findManagedArticle;
|
|
809
806
|
private extractList;
|
|
810
807
|
private parseManagedRow;
|
|
811
808
|
private itemMatches;
|
|
812
809
|
private mapManagedStatus;
|
|
813
|
-
private ensureToutiaoManageTab;
|
|
814
810
|
private getVisitedUserId;
|
|
815
811
|
private buildManagedListUrl;
|
|
816
812
|
private resolvePostUrl;
|
|
@@ -845,7 +841,6 @@ declare class TencentAdapter extends CodeAdapter {
|
|
|
845
841
|
private uploadImageFileByUrl;
|
|
846
842
|
private prepareArticleContent;
|
|
847
843
|
private callPublishService;
|
|
848
|
-
private ensureTencentTab;
|
|
849
844
|
private buildArticleListUrl;
|
|
850
845
|
private hasListData;
|
|
851
846
|
private extractUserInfo;
|