@zhongguo168a/yxeditor-common 0.0.112 → 0.0.119

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/README.md CHANGED
@@ -41,3 +41,13 @@ npm version patch && npm publish --access public
41
41
  ```shell
42
42
  npm version patch && npm publish --access public
43
43
  ```
44
+
45
+
46
+ npm 2FA Recovery Codes
47
+ ```
48
+ 891dffeb71266ea5d2a196589367da9a0e09659d16d1be254f8c635639b8c2d4
49
+ 355e2e46df3f9179d41af99a0b4b4ea6478e0ef516d4c1475f55560b6c38f082
50
+ a7e71f6df9cf2aee6bc66cf61266d8867db50739448a5a21a8a27628093a3bb4
51
+ af822ad8ed2a28cb95e7ba98c3a1c3cb227dad4b17413f8969c50f91ee4d713f
52
+ 9e4ea27411fdd50b79eae520f9678b3a7cd8f36a1fa552a85551bcacdef76b15
53
+ ```
package/dist/index.d.ts CHANGED
@@ -1598,6 +1598,10 @@ declare class AssetLoader extends Dispatcher {
1598
1598
  onComplete?: (err: any, asset: any) => void;
1599
1599
  preload?: boolean;
1600
1600
  }): this;
1601
+ loadText(uri: string, otherConfig?: {
1602
+ onComplete?: (err: any, asset: any) => void;
1603
+ preload?: boolean;
1604
+ }): this;
1601
1605
  loadJson(uri: string, otherConfig?: {
1602
1606
  onComplete?: (err: any, asset: any) => void;
1603
1607
  preload?: boolean;
package/dist/index.esm.js CHANGED
@@ -5085,6 +5085,17 @@ class AssetLoader extends Dispatcher {
5085
5085
  this._loaderList.push(item);
5086
5086
  return this;
5087
5087
  }
5088
+ loadText(uri, otherConfig) {
5089
+ let item = new LoaderItem();
5090
+ item.type = "Text";
5091
+ item.uri = new AssetURI(uri);
5092
+ if (otherConfig) {
5093
+ item.onComplete = otherConfig.onComplete;
5094
+ item.preload = otherConfig.preload != undefined ? otherConfig.preload : false;
5095
+ }
5096
+ this._loaderList.push(item);
5097
+ return this;
5098
+ }
5088
5099
  loadJson(uri, otherConfig) {
5089
5100
  let item = new LoaderItem();
5090
5101
  item.type = "Json";
@@ -5170,6 +5181,22 @@ class AssetLoader extends Dispatcher {
5170
5181
  });
5171
5182
  break;
5172
5183
  }
5184
+ case "Text": {
5185
+ let asset = assetx.getAsset(item.uri.name);
5186
+ if (asset) {
5187
+ this._loaded++;
5188
+ item.callHandler(null, asset);
5189
+ this.validComplete();
5190
+ }
5191
+ else {
5192
+ this._loadByItem(item, null, (err, asset) => {
5193
+ this._loaded++;
5194
+ item.callHandler(err, asset);
5195
+ this.validComplete();
5196
+ });
5197
+ }
5198
+ break;
5199
+ }
5173
5200
  case "Json": {
5174
5201
  let asset = assetx.getAsset(item.uri.name);
5175
5202
  if (asset) {