lakelib 0.1.23 → 0.1.25

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/lib/lake.js CHANGED
@@ -2931,7 +2931,7 @@ var enUS = {
2931
2931
  image: 'Image',
2932
2932
  file: 'File',
2933
2933
  emoji: 'Emoji',
2934
- equation: 'Equation',
2934
+ equation: 'Mathematical formula',
2935
2935
  removeColor: 'Remove color',
2936
2936
  },
2937
2937
  slash: {
@@ -2963,8 +2963,8 @@ var enUS = {
2963
2963
  codeBlockDesc: 'Insert a code block',
2964
2964
  video: 'Video',
2965
2965
  videoDesc: 'Insert a video from YouTube',
2966
- equation: 'Equation',
2967
- equationDesc: 'Insert TeX expression in text',
2966
+ equation: 'Mathematical formula',
2967
+ equationDesc: 'Insert a TeX expression',
2968
2968
  image: 'Image',
2969
2969
  imageDesc: 'Upload an image',
2970
2970
  file: 'File',
@@ -3056,7 +3056,7 @@ var zhCN = {
3056
3056
  image: '图片',
3057
3057
  file: '文件',
3058
3058
  emoji: '表情',
3059
- equation: '公式',
3059
+ equation: '数学公式',
3060
3060
  removeColor: '默认',
3061
3061
  },
3062
3062
  slash: {
@@ -3088,7 +3088,7 @@ var zhCN = {
3088
3088
  codeBlockDesc: '插入代码块',
3089
3089
  video: '视频',
3090
3090
  videoDesc: '插入 YouTube 视频',
3091
- equation: '公式',
3091
+ equation: '数学公式',
3092
3092
  equationDesc: '支持 TeX 语法',
3093
3093
  image: '图片',
3094
3094
  imageDesc: '上传图片',
@@ -3130,7 +3130,7 @@ var zhCN = {
3130
3130
  },
3131
3131
  equation: {
3132
3132
  save: '确定',
3133
- placeholder: '请输入 TeX 公式',
3133
+ placeholder: '请输入 TeX 表达式',
3134
3134
  },
3135
3135
  };
3136
3136
 
@@ -3181,7 +3181,7 @@ var ja = {
3181
3181
  image: '画像',
3182
3182
  file: 'ファイル',
3183
3183
  emoji: '絵文字',
3184
- equation: '公式',
3184
+ equation: '数学公式',
3185
3185
  removeColor: 'デフォルト',
3186
3186
  },
3187
3187
  slash: {
@@ -3213,8 +3213,8 @@ var ja = {
3213
3213
  codeBlockDesc: 'コードブロックを挿入',
3214
3214
  video: '動画',
3215
3215
  videoDesc: 'YouTube から動画を挿入',
3216
- equation: '公式',
3217
- equationDesc: 'TeX 式を挿入',
3216
+ equation: '数学公式',
3217
+ equationDesc: 'TeX 数式を挿入',
3218
3218
  image: '画像',
3219
3219
  imageDesc: '画像をアップロード',
3220
3220
  file: 'ファイル',
@@ -3255,7 +3255,7 @@ var ja = {
3255
3255
  },
3256
3256
  equation: {
3257
3257
  save: '確認',
3258
- placeholder: 'TeX 公式を入力してください。',
3258
+ placeholder: 'TeX 数式を入力してください。',
3259
3259
  },
3260
3260
  };
3261
3261
 
@@ -3306,7 +3306,7 @@ var ko = {
3306
3306
  image: '이미지',
3307
3307
  file: '파일',
3308
3308
  emoji: '이모지',
3309
- equation: '수식',
3309
+ equation: '수학 공식',
3310
3310
  removeColor: '기본색',
3311
3311
  },
3312
3312
  slash: {
@@ -3338,8 +3338,8 @@ var ko = {
3338
3338
  codeBlockDesc: '코드 블록을 삽입',
3339
3339
  video: '동영상',
3340
3340
  videoDesc: '유튜브 동영상을 삽입',
3341
- equation: '수식',
3342
- equationDesc: '텍스 표현식을 삽입',
3341
+ equation: '수학 공식',
3342
+ equationDesc: 'TeX 수식을 삽입',
3343
3343
  image: '이미지',
3344
3344
  imageDesc: '이미지를 업로드',
3345
3345
  file: '파일',
@@ -5352,7 +5352,7 @@ function removeBox(range) {
5352
5352
  return box;
5353
5353
  }
5354
5354
 
5355
- var version = "0.1.23";
5355
+ var version = "0.1.25";
5356
5356
 
5357
5357
  // Returns the attributes of the element as an key-value object.
5358
5358
  function getAttributes(node) {
@@ -5438,6 +5438,9 @@ class Selection {
5438
5438
  }
5439
5439
  // Adds the saved range to the native selection.
5440
5440
  sync() {
5441
+ if (!this.container.contains(this.range.commonAncestor)) {
5442
+ return;
5443
+ }
5441
5444
  this.selection.removeAllRanges();
5442
5445
  this.selection.addRange(this.range.get());
5443
5446
  }
@@ -7567,7 +7570,7 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
7567
7570
  OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
7568
7571
  PERFORMANCE OF THIS SOFTWARE.
7569
7572
  ***************************************************************************** */
7570
- /* global Reflect, Promise, SuppressedError, Symbol */
7573
+ /* global Reflect, Promise, SuppressedError, Symbol, Iterator */
7571
7574
 
7572
7575
 
7573
7576
  function __awaiter(thisArg, _arguments, P, generator) {