@sit-onyx/tiptap 0.1.0-dev-20260224210053 → 0.1.0-dev-20260225060604

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/index.d.ts CHANGED
@@ -6,4 +6,4 @@ export { default as OnyxEditorToolbarFlyout } from './components/OnyxEditorToolb
6
6
  export * from './components/OnyxEditorToolbarFlyout/types.js';
7
7
  export { default as OnyxEditorToolbarGroup } from './components/OnyxEditorToolbarGroup/OnyxEditorToolbarGroup.vue';
8
8
  export * from './components/OnyxTextEditor/extensions/index.js';
9
- export * from './composables/useEditorUtils.js';
9
+ export { useEditorUtils } from './composables/useEditorUtils.js';
@@ -0,0 +1,33 @@
1
+ import { DefineComponent } from 'vue';
2
+ /**
3
+ * Utility for creating a Storybook example/story where the example uses a dedicated .vue file (useful for advanced examples).
4
+ * The example must be put inside e.g. "src/components/{componentName}/examples/{exampleName}".
5
+ *
6
+ * Make sure to import all onyx components, types etc. from the index file "../../../" so its replaced correctly in the code snippet.
7
+ *
8
+ * **Note** The "Controls" and "Actions" panel/tab will be disabled for this story since they will probably be mostly unusable due to the custom example.
9
+ */
10
+ export declare function createAdvancedStoryExample(componentName: string, exampleName: string): {
11
+ render: (args: {}) => {
12
+ components: {
13
+ Component: DefineComponent;
14
+ };
15
+ setup: () => {
16
+ args: {};
17
+ };
18
+ template: string;
19
+ };
20
+ parameters: {
21
+ docs: {
22
+ source: {
23
+ code: string;
24
+ };
25
+ };
26
+ controls: {
27
+ disable: boolean;
28
+ };
29
+ actions: {
30
+ disable: boolean;
31
+ };
32
+ };
33
+ };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@sit-onyx/tiptap",
3
3
  "description": "A rich text editor powered by the Tiptap editor and the onyx design system created by Schwarz IT",
4
- "version": "0.1.0-dev-20260224210053",
4
+ "version": "0.1.0-dev-20260225060604",
5
5
  "type": "module",
6
6
  "author": "Schwarz IT KG",
7
7
  "license": "Apache-2.0",
@@ -37,8 +37,8 @@
37
37
  "@tiptap/starter-kit": ">= 3",
38
38
  "@tiptap/vue-3": ">= 3",
39
39
  "vue": ">= 3.5.0",
40
- "@sit-onyx/icons": "^1.7.0-dev-20260224210053",
41
- "sit-onyx": "^1.9.0-dev-20260224210053"
40
+ "@sit-onyx/icons": "^1.7.0-dev-20260225060604",
41
+ "sit-onyx": "^1.9.0-dev-20260225060604"
42
42
  },
43
43
  "devDependencies": {
44
44
  "@axe-core/playwright": "^4.11.1",
@@ -51,11 +51,11 @@
51
51
  "@tiptap/starter-kit": "^3.20.0",
52
52
  "@tiptap/vue-3": "^3.20.0",
53
53
  "@vue/compiler-dom": "3.5.28",
54
- "@sit-onyx/icons": "^1.7.0-dev-20260224210053",
55
54
  "@sit-onyx/playwright-utils": "^1.1.1",
56
- "@sit-onyx/shared": "^0.1.0",
55
+ "@sit-onyx/icons": "^1.7.0-dev-20260225060604",
57
56
  "@sit-onyx/storybook-utils": "^1.1.1",
58
- "sit-onyx": "^1.9.0-dev-20260224210053"
57
+ "@sit-onyx/shared": "^0.1.0",
58
+ "sit-onyx": "^1.9.0-dev-20260225060604"
59
59
  },
60
60
  "scripts": {
61
61
  "dev": "storybook dev -p 6006 --no-open",