fw-webbuilder 1.1.289 → 1.1.291

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/index.d.ts CHANGED
@@ -417,7 +417,8 @@ declare class webBuilderService {
417
417
  updateAdminCategory(id: string, data: any): Promise<any>;
418
418
  deleteAdminCategory(id: string): Promise<any>;
419
419
  getAdminCategories_byFields(query: any, sort: any, page?: number, limit?: number): Promise<any>;
420
- onPublish(): Promise<Object>;
420
+ onPublish(): Promise<Object> | Promise<null>;
421
+ publishProjectById(projectId: string): Promise<Object> | Promise<null>;
421
422
  initProject(): Promise<void>;
422
423
  addDomain(data: any): Promise<Object>;
423
424
  deleteDomain(id: string): Promise<any>;
@@ -497,7 +498,10 @@ declare class webBuilderService {
497
498
  openManageImgsForEditor(callback: (url: string, meta?: any) => void): void;
498
499
  /**
499
500
  * hàm chuyển tên thành slug
500
- * vd: "Giới thieu" => "gioi-thieu"
501
+ * Chuyển đổi tên/tiêu đề thành URL Slug chuẩn SEO.
502
+ * Loại bỏ toàn bộ ký tự đặc biệt, dấu câu, khoảng trắng thừa, gộp dấu gạch ngang liên tiếp.
503
+ * vd: "MỞ ĐĂNG KÝ LỚP HỌC TRẢI NGHIỆM HSK 1 - 3.0 - HOÀN TOÀN MIỄN PHÍ - DẪN DẮT BỞI THS. TIỂU MINH"
504
+ * => "mo-dang-ky-lop-hoc-trai-nghiem-hsk-1-3-0-hoan-toan-mien-phi-dan-dat-boi-ths-tieu-minh"
501
505
  * @param name tên cần format
502
506
  */
503
507
  convertNameToSlug(name: string): string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fw-webbuilder",
3
- "version": "1.1.289",
3
+ "version": "1.1.291",
4
4
  "peerDependencies": {
5
5
  "@fingerprintjs/fingerprintjs": "^5.2.0",
6
6
  "@abacritt/angularx-social-login": "2.4.0",