rimecms 0.27.4 → 0.27.5

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.
@@ -5,7 +5,7 @@ import { Node } from '@tiptap/core';
5
5
  import type { Component } from 'svelte';
6
6
  declare module '@tiptap/core' {
7
7
  interface Commands<ReturnType> {
8
- 'richt-text-fields': {
8
+ 'rich-text-fields': {
9
9
  insertSheet: (attributes?: Dic) => ReturnType;
10
10
  };
11
11
  }
@@ -2,7 +2,7 @@ import { Node, mergeAttributes } from '@tiptap/core';
2
2
  import SvelteNodeViewRenderer from '../../svelte/node-view-renderer.svelte';
3
3
  import FieldsComponent from './fields.svelte';
4
4
  export const FieldsExtension = Node.create({
5
- name: 'richt-text-fields',
5
+ name: 'rich-text-fields',
6
6
  group: 'block',
7
7
  atom: true,
8
8
  draggable: true,
@@ -3,14 +3,14 @@ import { FieldsExtension } from './extension.js';
3
3
  const fieldsFeatureNode = (args) => ({
4
4
  label: args.label || args.name,
5
5
  icon: SheetIcon,
6
- isActive: ({ editor }) => editor.isActive('richt-text-fields-' + args.name),
6
+ isActive: ({ editor }) => editor.isActive('rich-text-fields-' + args.name),
7
7
  suggestion: {
8
8
  command: ({ editor }) => editor.chain().focus().insertSheet().run()
9
9
  }
10
10
  });
11
11
  export const FieldsFeature = (args) => ({
12
12
  extension: FieldsExtension.configure({ fields: args.fields, preview: args.preview }).extend({
13
- name: 'richt-text-fields-' + args.name
13
+ name: 'rich-text-fields-' + args.name
14
14
  }),
15
15
  nodes: [fieldsFeatureNode(args)]
16
16
  });
@@ -4,13 +4,13 @@ export const ResourceFeature = (args) => {
4
4
  const slug = args.source.split('?')[0];
5
5
  return {
6
6
  extension: Resource.configure(args).extend({
7
- name: 'richt-text-resource-' + slug
7
+ name: 'rich-text-resource-' + slug
8
8
  }),
9
9
  nodes: [
10
10
  {
11
11
  label: args.label || slug,
12
12
  icon: Images,
13
- isActive: ({ editor }) => editor.isActive('richt-text-resource-' + slug),
13
+ isActive: ({ editor }) => editor.isActive('rich-text-resource-' + slug),
14
14
  suggestion: {
15
15
  command: ({ editor }) => editor.chain().focus().insertResource().run()
16
16
  }
@@ -3,12 +3,12 @@ import { Upload } from './upload-extension.js';
3
3
  export const UploadFeature = (args) => {
4
4
  const slug = args.source.split('?')[0];
5
5
  return {
6
- extension: Upload.configure(args).extend({ name: 'richt-text-upload-' + slug }),
6
+ extension: Upload.configure(args).extend({ name: 'rich-text-upload-' + slug }),
7
7
  nodes: [
8
8
  {
9
9
  label: 'Media',
10
10
  icon: Images,
11
- isActive: ({ editor }) => editor.isActive('richt-text-upload-' + slug),
11
+ isActive: ({ editor }) => editor.isActive('rich-text-upload-' + slug),
12
12
  suggestion: {
13
13
  command: ({ editor }) => editor.chain().focus().insertUpload().run()
14
14
  }
@@ -27,10 +27,10 @@ export const Upload = Node.create({
27
27
  };
28
28
  },
29
29
  parseHTML() {
30
- return [{ tag: 'richt-text-media' }];
30
+ return [{ tag: 'rich-text-media' }];
31
31
  },
32
32
  renderHTML({ HTMLAttributes }) {
33
- return ['richt-text-media', mergeAttributes(HTMLAttributes)];
33
+ return ['rich-text-media', mergeAttributes(HTMLAttributes)];
34
34
  },
35
35
  addNodeView() {
36
36
  return SvelteNodeViewRenderer(CounterComponent);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rimecms",
3
- "version": "0.27.4",
3
+ "version": "0.27.5",
4
4
  "homepage": "https://github.com/bienbiendev/rime",
5
5
  "scripts": {
6
6
  "dev": "vite dev",