@colixsystems/widget-sdk 0.277.2 → 0.277.4

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.
@@ -1,8 +1,10 @@
1
1
  // sc-15080 — `<MarkdownInput>`'s editing surface (web).
2
2
  //
3
- // Mounts the shared editor (./markdown-editor-core.js) straight into the page.
4
- // The editor is loaded on first use, so a widget without a `<MarkdownInput>`
5
- // never downloads it. The native mirror is ./markdown-editor-field.native.js.
3
+ // Mounts the shared editor (./markdown-editor-core.js) straight into the page,
4
+ // from its build with Tiptap inlined, so no host has to install Tiptap
5
+ // (sc-15310). The editor is loaded on first use, so a widget without a
6
+ // `<MarkdownInput>` never downloads it. The native mirror is
7
+ // ./markdown-editor-field.native.js.
6
8
 
7
9
  import React from "react";
8
10
  import { markdownEditorCss } from "./markdown-editor-css.js";
@@ -32,7 +34,7 @@ export const MarkdownEditorField = React.forwardRef(function MarkdownEditorField
32
34
 
33
35
  React.useEffect(() => {
34
36
  let cancelled = false;
35
- import("./markdown-editor-core.js")
37
+ import("./markdown-editor-bundle.js")
36
38
  .then(({ createMarkdownEditor }) => {
37
39
  if (cancelled || !host.current) return;
38
40
  editor.current = createMarkdownEditor({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@colixsystems/widget-sdk",
3
- "version": "0.277.2",
3
+ "version": "0.277.4",
4
4
  "description": "Common widget interface for AppStudio. Implements WidgetManifest, WidgetContext, property schema, and helper hooks.",
5
5
  "homepage": "https://github.com/Colix-AB/AppStudio",
6
6
  "type": "module",
@@ -76,20 +76,6 @@
76
76
  "react-native": "*",
77
77
  "react-dom": ">=18.0.0",
78
78
  "react-native-web": ">=0.19.0",
79
- "@tiptap/core": "^3.32.2",
80
- "@tiptap/extension-bold": "^3.32.2",
81
- "@tiptap/extension-code": "^3.32.2",
82
- "@tiptap/extension-code-block": "^3.32.2",
83
- "@tiptap/extension-document": "^3.32.2",
84
- "@tiptap/extension-heading": "^3.32.2",
85
- "@tiptap/extension-image": "^3.32.2",
86
- "@tiptap/extension-italic": "^3.32.2",
87
- "@tiptap/extension-link": "^3.32.2",
88
- "@tiptap/extension-list": "^3.32.2",
89
- "@tiptap/extension-paragraph": "^3.32.2",
90
- "@tiptap/extension-table": "^3.32.2",
91
- "@tiptap/extension-text": "^3.32.2",
92
- "@tiptap/extensions": "^3.32.2",
93
79
  "react-native-webview": ">=13.7.0"
94
80
  },
95
81
  "peerDependenciesMeta": {
@@ -105,48 +91,6 @@
105
91
  "react-dom": {
106
92
  "optional": true
107
93
  },
108
- "@tiptap/core": {
109
- "optional": true
110
- },
111
- "@tiptap/extension-bold": {
112
- "optional": true
113
- },
114
- "@tiptap/extension-code": {
115
- "optional": true
116
- },
117
- "@tiptap/extension-code-block": {
118
- "optional": true
119
- },
120
- "@tiptap/extension-document": {
121
- "optional": true
122
- },
123
- "@tiptap/extension-heading": {
124
- "optional": true
125
- },
126
- "@tiptap/extension-image": {
127
- "optional": true
128
- },
129
- "@tiptap/extension-italic": {
130
- "optional": true
131
- },
132
- "@tiptap/extension-link": {
133
- "optional": true
134
- },
135
- "@tiptap/extension-list": {
136
- "optional": true
137
- },
138
- "@tiptap/extension-paragraph": {
139
- "optional": true
140
- },
141
- "@tiptap/extension-table": {
142
- "optional": true
143
- },
144
- "@tiptap/extension-text": {
145
- "optional": true
146
- },
147
- "@tiptap/extensions": {
148
- "optional": true
149
- },
150
94
  "react-native-webview": {
151
95
  "optional": true
152
96
  }