@bernierllc/content-editor-ui 0.2.1 → 0.4.1
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/errors.d.ts +12 -0
- package/dist/errors.d.ts.map +1 -0
- package/dist/errors.js +25 -0
- package/dist/errors.js.map +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3 -1
- package/dist/index.js.map +1 -1
- package/package.json +4 -5
package/dist/errors.d.ts
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export type ContentEditorUiErrorCode = 'CONTENT_EDITOR_UI_ERROR' | 'INVALID_INPUT' | 'OPERATION_FAILED';
|
|
2
|
+
export interface ContentEditorUiErrorOptions {
|
|
3
|
+
cause?: Error;
|
|
4
|
+
code?: ContentEditorUiErrorCode;
|
|
5
|
+
context?: Record<string, unknown>;
|
|
6
|
+
}
|
|
7
|
+
export declare class ContentEditorUiError extends Error {
|
|
8
|
+
readonly code: ContentEditorUiErrorCode;
|
|
9
|
+
readonly context?: Record<string, unknown>;
|
|
10
|
+
constructor(message: string, options?: ContentEditorUiErrorOptions);
|
|
11
|
+
}
|
|
12
|
+
//# sourceMappingURL=errors.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../src/errors.ts"],"names":[],"mappings":"AAQA,MAAM,MAAM,wBAAwB,GAChC,yBAAyB,GACzB,eAAe,GACf,kBAAkB,CAAC;AAEvB,MAAM,WAAW,2BAA2B;IAC1C,KAAK,CAAC,EAAE,KAAK,CAAC;IACd,IAAI,CAAC,EAAE,wBAAwB,CAAC;IAChC,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CACnC;AAED,qBAAa,oBAAqB,SAAQ,KAAK;IAC7C,QAAQ,CAAC,IAAI,EAAE,wBAAwB,CAAC;IACxC,QAAQ,CAAC,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;gBAE/B,OAAO,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,2BAA2B;CASnE"}
|
package/dist/errors.js
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
Copyright (c) 2025 Bernier LLC
|
|
4
|
+
|
|
5
|
+
This file is licensed to the client under a limited-use license.
|
|
6
|
+
The client may use and modify this code *only within the scope of the project it was delivered for*.
|
|
7
|
+
Redistribution or use in other products or commercial offerings is not permitted without written consent from Bernier LLC.
|
|
8
|
+
*/
|
|
9
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
+
exports.ContentEditorUiError = void 0;
|
|
11
|
+
class ContentEditorUiError extends Error {
|
|
12
|
+
code;
|
|
13
|
+
context;
|
|
14
|
+
constructor(message, options) {
|
|
15
|
+
super(message, options?.cause ? { cause: options.cause } : undefined);
|
|
16
|
+
this.name = 'ContentEditorUiError';
|
|
17
|
+
this.code = options?.code ?? 'CONTENT_EDITOR_UI_ERROR';
|
|
18
|
+
if (options?.context !== undefined) {
|
|
19
|
+
this.context = options.context;
|
|
20
|
+
}
|
|
21
|
+
Error.captureStackTrace?.(this, this.constructor);
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
exports.ContentEditorUiError = ContentEditorUiError;
|
|
25
|
+
//# sourceMappingURL=errors.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"errors.js","sourceRoot":"","sources":["../src/errors.ts"],"names":[],"mappings":";AAAA;;;;;;EAME;;;AAaF,MAAa,oBAAqB,SAAQ,KAAK;IACpC,IAAI,CAA2B;IAC/B,OAAO,CAA2B;IAE3C,YAAY,OAAe,EAAE,OAAqC;QAChE,KAAK,CAAC,OAAO,EAAE,OAAO,EAAE,KAAK,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,OAAO,CAAC,KAAK,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC;QACtE,IAAI,CAAC,IAAI,GAAG,sBAAsB,CAAC;QACnC,IAAI,CAAC,IAAI,GAAG,OAAO,EAAE,IAAI,IAAI,yBAAyB,CAAC;QACvD,IAAI,OAAO,EAAE,OAAO,KAAK,SAAS,EAAE,CAAC;YACnC,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC;QACjC,CAAC;QACD,KAAK,CAAC,iBAAiB,EAAE,CAAC,IAAI,EAAE,IAAI,CAAC,WAAW,CAAC,CAAC;IACpD,CAAC;CACF;AAbD,oDAaC"}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export type { ContentEditorUIConfig, ContentEditorProps, ToolbarItem, StatusItem, EditorToolbarConfig, EditorStatusBarConfig, EditorThemeConfig, EditorExtensionConfig, EditorEventData, EditorStatistics, EditorValidationResult, EditorAutoSaveConfig, EditorKeyboardShortcuts } from './types';
|
|
2
2
|
export { ContentEditor } from './content-editor';
|
|
3
3
|
export { ContentTypeSelector, MediaUploader, ContentEditorSettings } from './editor-components';
|
|
4
|
+
export { ContentEditorUiError, type ContentEditorUiErrorCode, type ContentEditorUiErrorOptions } from './errors';
|
|
4
5
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AASA,YAAY,EACV,qBAAqB,EACrB,kBAAkB,EAClB,WAAW,EACX,UAAU,EACV,mBAAmB,EACnB,qBAAqB,EACrB,iBAAiB,EACjB,qBAAqB,EACrB,eAAe,EACf,gBAAgB,EAChB,sBAAsB,EACtB,oBAAoB,EACpB,uBAAuB,EACxB,MAAM,SAAS,CAAC;AAGjB,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACjD,OAAO,EAAE,mBAAmB,EAAE,aAAa,EAAE,qBAAqB,EAAE,MAAM,qBAAqB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AASA,YAAY,EACV,qBAAqB,EACrB,kBAAkB,EAClB,WAAW,EACX,UAAU,EACV,mBAAmB,EACnB,qBAAqB,EACrB,iBAAiB,EACjB,qBAAqB,EACrB,eAAe,EACf,gBAAgB,EAChB,sBAAsB,EACtB,oBAAoB,EACpB,uBAAuB,EACxB,MAAM,SAAS,CAAC;AAGjB,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACjD,OAAO,EAAE,mBAAmB,EAAE,aAAa,EAAE,qBAAqB,EAAE,MAAM,qBAAqB,CAAC;AAChG,OAAO,EAAE,oBAAoB,EAAE,KAAK,wBAAwB,EAAE,KAAK,2BAA2B,EAAE,MAAM,UAAU,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -7,7 +7,7 @@ The client may use and modify this code *only within the scope of the project it
|
|
|
7
7
|
Redistribution or use in other products or commercial offerings is not permitted without written consent from Bernier LLC.
|
|
8
8
|
*/
|
|
9
9
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
-
exports.ContentEditorSettings = exports.MediaUploader = exports.ContentTypeSelector = exports.ContentEditor = void 0;
|
|
10
|
+
exports.ContentEditorUiError = exports.ContentEditorSettings = exports.MediaUploader = exports.ContentTypeSelector = exports.ContentEditor = void 0;
|
|
11
11
|
// Export main components
|
|
12
12
|
var content_editor_1 = require("./content-editor");
|
|
13
13
|
Object.defineProperty(exports, "ContentEditor", { enumerable: true, get: function () { return content_editor_1.ContentEditor; } });
|
|
@@ -15,4 +15,6 @@ var editor_components_1 = require("./editor-components");
|
|
|
15
15
|
Object.defineProperty(exports, "ContentTypeSelector", { enumerable: true, get: function () { return editor_components_1.ContentTypeSelector; } });
|
|
16
16
|
Object.defineProperty(exports, "MediaUploader", { enumerable: true, get: function () { return editor_components_1.MediaUploader; } });
|
|
17
17
|
Object.defineProperty(exports, "ContentEditorSettings", { enumerable: true, get: function () { return editor_components_1.ContentEditorSettings; } });
|
|
18
|
+
var errors_1 = require("./errors");
|
|
19
|
+
Object.defineProperty(exports, "ContentEditorUiError", { enumerable: true, get: function () { return errors_1.ContentEditorUiError; } });
|
|
18
20
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AAAA;;;;;;EAME;;;AAmBF,yBAAyB;AACzB,mDAAiD;AAAxC,+GAAA,aAAa,OAAA;AACtB,yDAAgG;AAAvF,wHAAA,mBAAmB,OAAA;AAAE,kHAAA,aAAa,OAAA;AAAE,0HAAA,qBAAqB,OAAA"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AAAA;;;;;;EAME;;;AAmBF,yBAAyB;AACzB,mDAAiD;AAAxC,+GAAA,aAAa,OAAA;AACtB,yDAAgG;AAAvF,wHAAA,mBAAmB,OAAA;AAAE,kHAAA,aAAa,OAAA;AAAE,0HAAA,qBAAqB,OAAA;AAClE,mCAAiH;AAAxG,8GAAA,oBAAoB,OAAA"}
|
package/package.json
CHANGED
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bernierllc/content-editor-ui",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.4.1",
|
|
4
4
|
"description": "TipTap editor with Tamagui UI components for content management",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
7
7
|
"files": [
|
|
8
8
|
"dist/**/*",
|
|
9
|
-
"README.md"
|
|
10
|
-
"LICENSE"
|
|
9
|
+
"README.md"
|
|
11
10
|
],
|
|
12
11
|
"keywords": [
|
|
13
12
|
"content",
|
|
@@ -44,8 +43,8 @@
|
|
|
44
43
|
"react": "^18.2.0",
|
|
45
44
|
"react-dom": "^18.2.0",
|
|
46
45
|
"tamagui": "^1.91.0",
|
|
47
|
-
"@bernierllc/content-type-registry": "1.
|
|
48
|
-
"@bernierllc/content-autosave-manager": "1.
|
|
46
|
+
"@bernierllc/content-type-registry": "^1.6.0",
|
|
47
|
+
"@bernierllc/content-autosave-manager": "^1.6.0"
|
|
49
48
|
},
|
|
50
49
|
"devDependencies": {
|
|
51
50
|
"@types/jest": "^29.5.5",
|