@uniformdev/canvas 19.56.1-alpha.10 → 19.56.1-alpha.22
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.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.esm.js +4 -1
- package/dist/index.js +4 -1
- package/dist/index.mjs +4 -1
- package/package.json +3 -3
    
        package/dist/index.d.mts
    CHANGED
    
    | @@ -11184,7 +11184,7 @@ declare function mapSlotToPersonalizedVariations(slot: ComponentInstance[] | und | |
| 11184 11184 | 
             
            declare function mapSlotToTestVariations(slot: ComponentInstance[] | undefined): Array<ComponentInstance & TestVariant>;
         | 
| 11185 11185 |  | 
| 11186 11186 | 
             
            declare const isComponentPlaceholderId: (id: string | undefined) => boolean | undefined;
         | 
| 11187 | 
            -
            declare const generateComponentPlaceholderId: (randomId: string) => string;
         | 
| 11187 | 
            +
            declare const generateComponentPlaceholderId: (randomId: string, sdkVersion: number | undefined) => string;
         | 
| 11188 11188 |  | 
| 11189 11189 | 
             
            type BindVariablesResult<TValue> = {
         | 
| 11190 11190 | 
             
                /** Number of dynamic expressions that attempted to be bound (regardless of the success of the binding) */
         | 
    
        package/dist/index.d.ts
    CHANGED
    
    | @@ -11184,7 +11184,7 @@ declare function mapSlotToPersonalizedVariations(slot: ComponentInstance[] | und | |
| 11184 11184 | 
             
            declare function mapSlotToTestVariations(slot: ComponentInstance[] | undefined): Array<ComponentInstance & TestVariant>;
         | 
| 11185 11185 |  | 
| 11186 11186 | 
             
            declare const isComponentPlaceholderId: (id: string | undefined) => boolean | undefined;
         | 
| 11187 | 
            -
            declare const generateComponentPlaceholderId: (randomId: string) => string;
         | 
| 11187 | 
            +
            declare const generateComponentPlaceholderId: (randomId: string, sdkVersion: number | undefined) => string;
         | 
| 11188 11188 |  | 
| 11189 11189 | 
             
            type BindVariablesResult<TValue> = {
         | 
| 11190 11190 | 
             
                /** Number of dynamic expressions that attempted to be bound (regardless of the success of the binding) */
         | 
    
        package/dist/index.esm.js
    CHANGED
    
    | @@ -1857,7 +1857,10 @@ var isComponentPlaceholderId = (id) => { | |
| 1857 1857 | 
             
              }
         | 
| 1858 1858 | 
             
              return id == null ? void 0 : id.startsWith(PLACEHOLDER_ID);
         | 
| 1859 1859 | 
             
            };
         | 
| 1860 | 
            -
            var generateComponentPlaceholderId = (randomId) => {
         | 
| 1860 | 
            +
            var generateComponentPlaceholderId = (randomId, sdkVersion) => {
         | 
| 1861 | 
            +
              if (typeof sdkVersion === "undefined" || sdkVersion === 1) {
         | 
| 1862 | 
            +
                return PLACEHOLDER_ID;
         | 
| 1863 | 
            +
              }
         | 
| 1861 1864 | 
             
              return `${PLACEHOLDER_ID}_${randomId}`;
         | 
| 1862 1865 | 
             
            };
         | 
| 1863 1866 |  | 
    
        package/dist/index.js
    CHANGED
    
    | @@ -1962,7 +1962,10 @@ var isComponentPlaceholderId = (id) => { | |
| 1962 1962 | 
             
              }
         | 
| 1963 1963 | 
             
              return id == null ? void 0 : id.startsWith(PLACEHOLDER_ID);
         | 
| 1964 1964 | 
             
            };
         | 
| 1965 | 
            -
            var generateComponentPlaceholderId = (randomId) => {
         | 
| 1965 | 
            +
            var generateComponentPlaceholderId = (randomId, sdkVersion) => {
         | 
| 1966 | 
            +
              if (typeof sdkVersion === "undefined" || sdkVersion === 1) {
         | 
| 1967 | 
            +
                return PLACEHOLDER_ID;
         | 
| 1968 | 
            +
              }
         | 
| 1966 1969 | 
             
              return `${PLACEHOLDER_ID}_${randomId}`;
         | 
| 1967 1970 | 
             
            };
         | 
| 1968 1971 |  | 
    
        package/dist/index.mjs
    CHANGED
    
    | @@ -1857,7 +1857,10 @@ var isComponentPlaceholderId = (id) => { | |
| 1857 1857 | 
             
              }
         | 
| 1858 1858 | 
             
              return id == null ? void 0 : id.startsWith(PLACEHOLDER_ID);
         | 
| 1859 1859 | 
             
            };
         | 
| 1860 | 
            -
            var generateComponentPlaceholderId = (randomId) => {
         | 
| 1860 | 
            +
            var generateComponentPlaceholderId = (randomId, sdkVersion) => {
         | 
| 1861 | 
            +
              if (typeof sdkVersion === "undefined" || sdkVersion === 1) {
         | 
| 1862 | 
            +
                return PLACEHOLDER_ID;
         | 
| 1863 | 
            +
              }
         | 
| 1861 1864 | 
             
              return `${PLACEHOLDER_ID}_${randomId}`;
         | 
| 1862 1865 | 
             
            };
         | 
| 1863 1866 |  | 
    
        package/package.json
    CHANGED
    
    | @@ -1,6 +1,6 @@ | |
| 1 1 | 
             
            {
         | 
| 2 2 | 
             
              "name": "@uniformdev/canvas",
         | 
| 3 | 
            -
              "version": "19.56.1-alpha. | 
| 3 | 
            +
              "version": "19.56.1-alpha.22+a6fd2a3df",
         | 
| 4 4 | 
             
              "description": "Common functionality and types for Uniform Canvas",
         | 
| 5 5 | 
             
              "license": "SEE LICENSE IN LICENSE.txt",
         | 
| 6 6 | 
             
              "main": "./dist/index.js",
         | 
| @@ -38,7 +38,7 @@ | |
| 38 38 | 
             
                "pusher-js": "8.2.0"
         | 
| 39 39 | 
             
              },
         | 
| 40 40 | 
             
              "dependencies": {
         | 
| 41 | 
            -
                "@uniformdev/context": "19.56.1-alpha. | 
| 41 | 
            +
                "@uniformdev/context": "19.56.1-alpha.22+a6fd2a3df",
         | 
| 42 42 | 
             
                "immer": "9.0.21"
         | 
| 43 43 | 
             
              },
         | 
| 44 44 | 
             
              "files": [
         | 
| @@ -47,5 +47,5 @@ | |
| 47 47 | 
             
              "publishConfig": {
         | 
| 48 48 | 
             
                "access": "public"
         | 
| 49 49 | 
             
              },
         | 
| 50 | 
            -
              "gitHead": " | 
| 50 | 
            +
              "gitHead": "a6fd2a3dfdfa76a6610f664a81f3d531f98388f0"
         | 
| 51 51 | 
             
            }
         |